Update dogfact.js
This commit is contained in:
parent
525d3ce123
commit
9948976cf7
1 changed files with 1 additions and 1 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Reference in a new issue