make the bot stop typing

This commit is contained in:
TheCakeChicken 2020-03-26 14:04:34 +00:00
parent 3b8503c024
commit 1d7214f95a
2 changed files with 2 additions and 3 deletions

View file

@ -7,8 +7,8 @@ exports.run = async (bot, message, args) => {
.then(json => message.channel.send(`__**Did you know?**__\n${json.data[0].fact}`)) .then(json => message.channel.send(`__**Did you know?**__\n${json.data[0].fact}`))
} catch(err) { } catch(err) {
message.channel.send(`<:error:466995152976871434> An error has occurred: ${err}`); message.channel.send(`<:error:466995152976871434> An error has occurred: ${err}`);
message.channel.stopTyping();
}; };
message.channel.stopTyping();
}; };
exports.conf = { exports.conf = {

View file

@ -5,11 +5,10 @@ exports.run = async (bot, message, args) => {
fetch('https://dog-api.kinduff.com/api/facts') fetch('https://dog-api.kinduff.com/api/facts')
.then(res => res.json()) .then(res => res.json())
.then(json => message.channel.send(`__**Did you know?**__\n ${json.facts[0]}`)); .then(json => message.channel.send(`__**Did you know?**__\n ${json.facts[0]}`));
message.channel.stopTyping();
} catch(err) { } catch(err) {
message.channel.send(`<:error:466995152976871434> An error has occurred: ${err}`); message.channel.send(`<:error:466995152976871434> An error has occurred: ${err}`);
message.channel.stopTyping();
}; };
message.channel.stopTyping();
}; };
exports.conf = { exports.conf = {