2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-31 06:05:22 +00:00

Added /groups

This commit is contained in:
GingerPlusPlus
2017-09-24 23:23:36 +02:00
parent 0b5aa1b02f
commit ac6780f4f5
3 changed files with 33 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ const banHandler = require('./handlers/commands/ban');
const unbanHandler = require('./handlers/commands/unban');
const reportHandler = require('./handlers/commands/report');
const staffHandler = require('./handlers/commands/staff');
const groupsHandler = require('./handlers/commands/groups');
bot.on('new_chat_members', addedToGroupHandler);
bot.use(leaveUnmanagedHandler);
@@ -48,6 +49,7 @@ bot.command('unban', unbanHandler);
bot.command('report', reportHandler);
bot.hears(/^@admins?$/i, reportHandler);
bot.command('staff', staffHandler);
bot.command('groups', groupsHandler);
bot.catch(logErrorProperly);