From 2783ab5634b54492c2d487d11bcacad767f57833 Mon Sep 17 00:00:00 2001 From: Alee Date: Sun, 24 Jun 2018 22:36:58 -0400 Subject: Added music back (finally) and changed from 2.10.1 to 2.11.0 Beta --- bot_discord.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'bot_discord.js') 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); -- cgit v1.2.3