make the bot stop typing
This commit is contained in:
parent
3b8503c024
commit
1d7214f95a
2 changed files with 2 additions and 3 deletions
|
@ -7,8 +7,8 @@ exports.run = async (bot, message, args) => {
|
|||
.then(json => message.channel.send(`__**Did you know?**__\n${json.data[0].fact}`))
|
||||
} catch(err) {
|
||||
message.channel.send(`<:error:466995152976871434> An error has occurred: ${err}`);
|
||||
message.channel.stopTyping();
|
||||
};
|
||||
message.channel.stopTyping();
|
||||
};
|
||||
|
||||
exports.conf = {
|
||||
|
|
|
@ -5,11 +5,10 @@ exports.run = async (bot, message, args) => {
|
|||
fetch('https://dog-api.kinduff.com/api/facts')
|
||||
.then(res => res.json())
|
||||
.then(json => message.channel.send(`__**Did you know?**__\n ${json.facts[0]}`));
|
||||
message.channel.stopTyping();
|
||||
} catch(err) {
|
||||
message.channel.send(`<:error:466995152976871434> An error has occurred: ${err}`);
|
||||
message.channel.stopTyping();
|
||||
};
|
||||
message.channel.stopTyping();
|
||||
};
|
||||
|
||||
exports.conf = {
|
||||
|
|
Loading…
Reference in a new issue