This commit is contained in:
Daniel Odendahl Jr
2017-12-04 18:39:26 +00:00
parent bd8a0235f6
commit d10987abd8
10 changed files with 64 additions and 189 deletions
-6
View File
@@ -56,12 +56,6 @@ client.on('warn', err => console.warn('[WARNING]', err));
client.on('commandError', (command, err) => console.error('[COMMAND ERROR]', command.name, err));
client.dispatcher.addInhibitor(msg => {
if (msg.channel.type !== 'text' || !msg.channel.topic) return false;
if (msg.channel.topic.includes('<blocked>')) return 'topic blocked';
return false;
});
client.login(XIAO_TOKEN);
process.on('unhandledRejection', err => {