aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-05-03 22:43:19 -0400
committerUnknown <jtsshieh@outlook.com>2018-05-03 22:43:19 -0400
commit98c9b5116530d0f5daabfa27810fd81141a7f095 (patch)
treef1feae935f9365a529320d8f1e960a50d8a710c9 /bot.js
parent871e8c68be58d5d925a4029db703e2156aa33ad4 (diff)
downloadPokeBot-98c9b5116530d0f5daabfa27810fd81141a7f095.tar.gz
PokeBot-98c9b5116530d0f5daabfa27810fd81141a7f095.tar.bz2
PokeBot-98c9b5116530d0f5daabfa27810fd81141a7f095.zip
bye bye music
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/bot.js b/bot.js
index 4962977..7dd6d4f 100644
--- a/bot.js
+++ b/bot.js
@@ -9,7 +9,7 @@ bot.commands = new Discord.Collection();
bot.aliases = new Discord.Collection();
bot.categories = new Discord.Collection();
bot.queue = new Discord.Collection();
-bot.plugins = { music : require('./plugins/music.js') ,
+bot.plugins = {
economy : require('./plugins/Economy.js'),
settings : require('./plugins/settings.js'),
whitelist: require('./plugins/whitelist.js'),
@@ -85,16 +85,10 @@ fs.readdir('./events', (err, files) => {
});
-const { PlayerManager } = require('discord.js-lavalink');
-const nodes = [
- { 'host': 'localhost', 'port': 6547, 'region': 'us', 'shard': 1, 'password': 'iamaverysecurepassword' },
-];
process.on('unhandledRejection', (err) => {
console.error(err.stack);
bot.Raven.captureException(err);
});
-bot.login(config.token).then(() => {
- bot.player = new PlayerManager(bot, nodes, { user: bot.user.id, shards: 1, password: 'iamaverysecurepassword' });
-});
+bot.login(config.token);