aboutsummaryrefslogtreecommitdiff
path: root/bot_discord.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot_discord.js')
-rw-r--r--bot_discord.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/bot_discord.js b/bot_discord.js
index 2ebbc62..45da5ea 100644
--- a/bot_discord.js
+++ b/bot_discord.js
@@ -30,6 +30,8 @@ const fs = require('fs');
const db = require('quick.db');
const api = require('./tokens.json');
const dbl = new DBL(api.dbltoken, client);
+const active = new Map();
+const ownerID = "242775871059001344";
const log = message => {
@@ -160,7 +162,7 @@ rl.on('line', function(cmd){
console.log(msg.cyan);
break;
default:
- console.log('Unknown Command type \'help\' to list the commands...'.yellow)
+ console.log('Unknown command, type \'help\' to list the commands...'.yellow)
}
rl.prompt();
});
@@ -245,7 +247,13 @@ client.on('message', (msg) => {
}
}
try {
- cmd.run(client, msg, args);
+
+ let ops = {
+ ownerID: ownerID,
+ active: active
+ }
+
+ cmd.run(client, msg, args, ops);
}
catch (e) {
console.error(e);