Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bhargavgv authored Sep 16, 2020
1 parent 4d3b079 commit 6df36eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ bot.on("message", message => {
setTimeout(() => {
// Removes the user from the set after 15 seconds
talkedRecently.delete(message.author.id);
}, 15000);
}, timeout);
} catch (err) {
message.reply(embed.error("There was an error getting the weather.", `${err.response.data.cod}: ${err.response.data.message}`))
}
Expand Down

0 comments on commit 6df36eb

Please sign in to comment.