3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 15:15:02 +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 1a8b600479
commit 3ca55bbbf5

View file

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