summaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-05-04 22:33:17 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-05-04 22:33:17 +0200
commit5045641b065bfea9a0db39dd4814b2cf2269e723 (patch)
tree08f3a90d952fb5a5655a105437d0b9de6572a6a6 /bot.js
parent188e3997092a57be11574e5e121af5882dfb40ec (diff)
downloaddiscordbot-5045641b065bfea9a0db39dd4814b2cf2269e723.tar.gz
discordbot-5045641b065bfea9a0db39dd4814b2cf2269e723.zip
fame support (wip)
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/bot.js b/bot.js
index 13ca105..5968392 100644
--- a/bot.js
+++ b/bot.js
@@ -17,7 +17,8 @@ const sqlite = require("sqlite"),
invite: "https://discord.gg/txTchJY",
unknownCommandResponse: false
}),
- responses = require("./responses");
+ responses = require("./responses"),
+ util = require("./util");
const DISCORD_TOKEN = process.env.DISCORD_TOKEN,
LOGGLY_TOKEN = process.env.LOGGLY_TOKEN;
@@ -81,7 +82,7 @@ client
})
// response reaction interface
- .on("messageReactionAdd", responses.onNewReaction);
+ .on("messageReactionAdd", util.onNewReaction);
client.setProvider(
sqlite.open(path.join(__dirname, "settings.sqlite3")).then(
@@ -89,6 +90,7 @@ client.setProvider(
client.registry
.registerGroup('vainsocial', 'VainSocial')
+ .registerGroup('vainsocial-guild', 'VainSocial Guild management')
.registerDefaultTypes()
.registerDefaultGroups()
.registerDefaultCommands({ eval_: false, commandState: false })