aboutsummaryrefslogtreecommitdiff
path: root/aleebot.js
diff options
context:
space:
mode:
authorUnknown <Alee14498@gmail.com>2017-08-25 16:50:45 -0400
committerUnknown <Alee14498@gmail.com>2017-08-25 16:50:45 -0400
commit477b4d4c745b05c465e130d7f3aa74f604f2d5dc (patch)
tree84b8a980f9c770449d194e28e6526112b2423354 /aleebot.js
parenteba5cb75ac74c8eb9a9ed7c1137faf570b4cec07 (diff)
downloadAleeBot-477b4d4c745b05c465e130d7f3aa74f604f2d5dc.tar.gz
AleeBot-477b4d4c745b05c465e130d7f3aa74f604f2d5dc.tar.bz2
AleeBot-477b4d4c745b05c465e130d7f3aa74f604f2d5dc.zip
New command error handler
Diffstat (limited to 'aleebot.js')
-rw-r--r--aleebot.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/aleebot.js b/aleebot.js
index 7ae2248..3d8d210 100644
--- a/aleebot.js
+++ b/aleebot.js
@@ -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);
}