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

[Bugfix] kickBanned doesn't prevent checking new members

This commit is contained in:
GingerPlusPlus
2018-02-01 16:01:21 +01:00
parent 83a61353e5
commit d60ff556b4

View File

@@ -20,10 +20,10 @@ const updateUserDataHandler = require('./updateUserData');
composer.on('new_chat_members', addedToGroupHandler);
composer.on('left_chat_member', kickedFromGroupHandler);
composer.use(leaveUnmanagedHandler);
composer.on('message', updateUserDataHandler, kickBannedHandler);
composer.use(removeCommandsHandler);
composer.on('new_chat_members', syncStatusHandler);
composer.on('new_chat_members', antibotHandler);
composer.on('message', updateUserDataHandler);
composer.on('new_chat_members', syncStatusHandler, antibotHandler);
composer.on('message', kickBannedHandler);
composer.on('text', removeCommandsHandler);
composer.on(
[ 'new_chat_members', 'left_chat_member' ],
deleteJoinsAfter === false