mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-22 12:45:37 +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 {
|
} else {
|
||||||
// Not a valid command.
|
// Not a valid command.
|
||||||
}
|
}
|
||||||
} else {
|
} else if (message.author.bot == false) {
|
||||||
// This is a normal channel message.
|
// This is a normal channel message.
|
||||||
cachedTriggers.forEach(function(trigger) {
|
cachedTriggers.forEach(function(trigger) {
|
||||||
if (trigger.roles == undefined || findArray(message.member.roles.map(function(x) { return x.name; }), trigger.roles)) {
|
if (trigger.roles == undefined || findArray(message.member.roles.map(function(x) { return x.name; }), trigger.roles)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user