mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-21 23:05:38 +01:00
Check if bot before executing triggers.
This commit is contained in:
parent
8034d2667c
commit
2a868860f7
@ -90,7 +90,7 @@ client.on('message', message => {
|
||||
} else {
|
||||
// Not a valid command.
|
||||
}
|
||||
} else {
|
||||
} else if (message.author.bot == false) {
|
||||
// This is a normal channel message.
|
||||
cachedTriggers.forEach(function(trigger) {
|
||||
if (trigger.roles == undefined || findArray(message.member.roles.map(function(x) { return x.name; }), trigger.roles)) {
|
||||
|
Loading…
Reference in New Issue
Block a user