mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-31 14:15:25 +00:00
Made sure names of handlers end with "handler"
This commit is contained in:
8
index.js
8
index.js
@@ -23,11 +23,11 @@ const banHandler = require('./handlers/ban');
|
||||
const unbanHandler = require('./handlers/unban');
|
||||
const messageHandler = require('./handlers/message');
|
||||
const antibotHandler = require('./handlers/antibot');
|
||||
const addedToGroup = require('./handlers/addedToGroup');
|
||||
const leaveUnmanaged = require('./handlers/leaveUnmanaged');
|
||||
const addedToGroupHandler = require('./handlers/addedToGroup');
|
||||
const leaveUnmanagedHandler = require('./handlers/leaveUnmanaged');
|
||||
|
||||
bot.on('new_chat_members', addedToGroup);
|
||||
bot.use(leaveUnmanaged);
|
||||
bot.on('new_chat_members', addedToGroupHandler);
|
||||
bot.use(leaveUnmanagedHandler);
|
||||
bot.use(middlewareHandler);
|
||||
bot.command('admin', adminHandler);
|
||||
bot.command('unadmin', unAdminHandler);
|
||||
|
Reference in New Issue
Block a user