diff options
| author | Unknown <Alee14498@gmail.com> | 2017-08-25 16:50:45 -0400 |
|---|---|---|
| committer | Unknown <Alee14498@gmail.com> | 2017-08-25 16:50:45 -0400 |
| commit | 477b4d4c745b05c465e130d7f3aa74f604f2d5dc (patch) | |
| tree | 84b8a980f9c770449d194e28e6526112b2423354 /aleebot.js | |
| parent | eba5cb75ac74c8eb9a9ed7c1137faf570b4cec07 (diff) | |
| download | AleeBot-477b4d4c745b05c465e130d7f3aa74f604f2d5dc.tar.gz AleeBot-477b4d4c745b05c465e130d7f3aa74f604f2d5dc.tar.bz2 AleeBot-477b4d4c745b05c465e130d7f3aa74f604f2d5dc.zip | |
New command error handler
Diffstat (limited to 'aleebot.js')
| -rw-r--r-- | aleebot.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -100,8 +100,8 @@ client.on("message", function(message) { let commandFile = require(`./commands/${command}.js`); commandFile.run(client, message, args, config, abversion); } catch (err) { - message.reply(`:no_entry_sign: Error!\nThe command ${command} isn't found. (Reported to console.)`) - console.error(err); + message.channel.send(":no_entry_sign: Error!\n`"+ err +"` (Reported to console.)"); + log(err); } |
