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.timestamp < since) return false;
|
||||||
if (action.type !== type) return false;
|
if (action.type !== type) return false;
|
||||||
if (action.channelId !== channelId) return false;
|
if (action.channelId !== channelId) return false;
|
||||||
|
if (action.userId !== userId) return false;
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -113,6 +114,7 @@ export class SpamPlugin extends Plugin {
|
||||||
if (action.timestamp < since) return count;
|
if (action.timestamp < since) return count;
|
||||||
if (action.type !== type) return count;
|
if (action.type !== type) return count;
|
||||||
if (action.channelId !== channelId) return count;
|
if (action.channelId !== channelId) return count;
|
||||||
|
if (action.userId !== userId) return false;
|
||||||
return count + action.count;
|
return count + action.count;
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue