aboutsummaryrefslogtreecommitdiff
path: root/aleebot.js
diff options
context:
space:
mode:
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);
}