mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Merge branch 'master' of github.com:Dragory/ZeppelinBot
This commit is contained in:
commit
aee14eac10
1 changed files with 2 additions and 0 deletions
|
@ -104,6 +104,7 @@ export class SpamPlugin extends Plugin {
|
|||
if (action.timestamp < since) return false;
|
||||
if (action.type !== type) return false;
|
||||
if (action.channelId !== channelId) return false;
|
||||
if (action.userId !== userId) return false;
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
@ -113,6 +114,7 @@ export class SpamPlugin extends Plugin {
|
|||
if (action.timestamp < since) return count;
|
||||
if (action.type !== type) return count;
|
||||
if (action.channelId !== channelId) return count;
|
||||
if (action.userId !== userId) return false;
|
||||
return count + action.count;
|
||||
}, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue