Oh well, just do it this way then

This commit is contained in:
Dragon Fire
2019-12-09 12:47:11 -05:00
parent b4ce3a27a4
commit 9662e7a107
+1 -2
View File
@@ -25,11 +25,10 @@ module.exports = class CleverbotCommand extends Command {
type: 'string'
}
],
patterns: []
patterns: [/^(clevs|cleverbot|xiao) (.+)/i]
});
this.convos = new Map();
this.client.once('ready', () => this.patterns.push(new RegExp(`^(<!?@${this.client.user.id}>) (.+)`, 'i')));
}
async run(msg, { text }, fromPattern) {