Add bears handler and fix natural language handler priority

This commit is contained in:
Max Isom 2020-03-27 15:44:49 -05:00
parent 4e1a156f9b
commit a2950ed722
2 changed files with 66 additions and 49 deletions

View file

@ -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;
}