-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot.js
More file actions
31 lines (25 loc) · 919 Bytes
/
bot.js
File metadata and controls
31 lines (25 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const Commando = require('discord.js-commando');
const bot = new Commando.Client({
unknownCommandResponse: false
});
bot.registry.registerGroup('basic', 'Basic');
bot.registry.registerGroup('audio', 'Audio');
bot.registry.registerDefaults();
bot.registry.registerCommandsIn(__dirname + '/commands');
global.servers = {};
global.play_queue = {};
bot.on('ready', function() {
console.log("Time-Warp Ready");
const auto = require("./commands/basic");
auto.raid.raid_time(bot);
auto.raid.auto_SetActivity(bot);
});
bot.on('message', (message) => {
const cmds = require('./commands/basic');
cmds.raid.raid_toggle(bot, message);
//cmds.replies.process(bot, message);
cmds.react.raidAttendance(bot, message);
cmds.react.raidAttendanceDisplay(bot, message);
cmds.commands.commands(bot, message);
});
bot.login(process.env.BOT_TOKEN); // grabs the token from Heroku Config Vars