mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-07-30 05:22:33 +02:00
Add bears handler and fix natural language handler priority
This commit is contained in:
parent
4e1a156f9b
commit
a2950ed722
2 changed files with 66 additions and 49 deletions
src
|
@ -48,13 +48,13 @@ export default class {
|
|||
return this.client.emit('guildCreate', msg.guild);
|
||||
}
|
||||
|
||||
if (await this.naturalLanguage.execute(msg)) {
|
||||
const {prefix, channel} = settings;
|
||||
|
||||
if (!msg.content.startsWith(prefix) && !msg.author.bot && msg.channel.id === channel && await this.naturalLanguage.execute(msg)) {
|
||||
// Natural language command handled message
|
||||
return;
|
||||
}
|
||||
|
||||
const {prefix, channel} = settings;
|
||||
|
||||
if (!msg.content.startsWith(prefix) || msg.author.bot || msg.channel.id !== channel) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue