mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-30 05:37:59 +00:00
Misc
This commit is contained in:
parent
e4ba6d151a
commit
5bbdb529f1
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user