rf: js -> ts
This commit is contained in:
parent
2f532fdd0d
commit
3ecd084d44
2 changed files with 7 additions and 7 deletions
|
@ -1,9 +0,0 @@
|
|||
module.exports = (isOnSpamWatch) => {
|
||||
return async (ctx, next) => {
|
||||
if (await isOnSpamWatch(ctx.from.id)) {
|
||||
console.log(`User ${ctx.from.id} is banned on SpamWatch. Blocking command.`);
|
||||
return;
|
||||
}
|
||||
await next();
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue