From 9948976cf7faacf6fe5a167ff880a35b9aef6313 Mon Sep 17 00:00:00 2001 From: MrTech999 <48654513+MrTech999@users.noreply.github.com> Date: Wed, 11 Mar 2020 20:58:58 +0000 Subject: [PATCH] Update dogfact.js --- src/commands/dogfact.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/dogfact.js b/src/commands/dogfact.js index cd89858..31d1639 100644 --- a/src/commands/dogfact.js +++ b/src/commands/dogfact.js @@ -4,8 +4,8 @@ exports.run = async (bot, message, args) => { message.channel.startTyping(); try{ request({ uri: "https://dog-api.kinduff.com/api/facts", json: true }, (error, response, body) => { - message.channel.stopTyping(); message.channel.send(`**Did you know?**\n ${body.facts[0]}`); + message.channel.stopTyping(); }); } catch(err) { message.channel.send(`<:error:466995152976871434> API error: ${err}`);