3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Include or check to see if the acted on member is the bot

This commit is contained in:
Nils Blömeke 2019-06-17 19:08:15 +02:00
parent c576d9a37c
commit 468cab72ff

View file

@ -17,7 +17,7 @@ export class ZeppelinPlugin<TConfig extends {} = IBasePluginConfig> extends Plug
}
protected canActOn(member1, member2) {
if (member1.id === member2.id) {
if (member1.id === member2.id || member2.id === this.bot.user.id) {
return false;
}