mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-30 13:47:54 +00:00
Misc
This commit is contained in:
3
handlers/commands/fban.js
Normal file
3
handlers/commands/fban.js
Normal file
@@ -0,0 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./ban');
|
@@ -10,6 +10,10 @@ const updateUserDataHandler = async (ctx, next) => {
|
||||
updateUser(ctx.message.forward_from);
|
||||
}
|
||||
|
||||
const { entities = [] } = ctx.message;
|
||||
|
||||
await Promise.all(entities.map(({ user }) => user && updateUser(user)));
|
||||
|
||||
if (!ctx.from) return next();
|
||||
|
||||
const user = await updateUser(ctx.from);
|
||||
|
Reference in New Issue
Block a user