diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-15 17:07:20 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-15 17:07:20 +0200 |
| commit | 795126408fc717a11d832f412470597377d71449 (patch) | |
| tree | e81700812c75453d1fcf80c296e0a07b84ae449c /bot.js | |
| parent | 0564241327ecc6eb08cd716f510ebb0afbb3eeb3 (diff) | |
| download | discordbot-795126408fc717a11d832f412470597377d71449.tar.gz discordbot-795126408fc717a11d832f412470597377d71449.zip | |
implement basic functionality
Diffstat (limited to 'bot.js')
| -rw-r--r-- | bot.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -19,6 +19,7 @@ client .on("debug", console.log) .on("ready", () => { console.log(`Client ready; logged in as ${client.user.username}#${client.user.discriminator} (${client.user.id})`); + client.user.setGame("?v shutterflySEA | vainsocial.com"); }) .on('disconnect', () => { console.warn('Disconnected!'); }) .on('reconnecting', () => { console.warn('Reconnecting...'); }) @@ -59,8 +60,14 @@ client.setProvider( client.registry .registerGroup('vainsocial', 'VainSocial') - .registerDefaults() + .registerDefaultTypes() + .registerDefaultGroups() + .registerDefaultCommands({ eval_: false, commandState: false }) .registerCommandsIn(path.join(__dirname, 'commands')); client.login(DISCORDTOKEN); + +process.on("unhandledRejection", err => { + console.error("Uncaught Promise Error: \n" + err.stack); +}); |
