This feels really hacky

This commit is contained in:
Dragon Fire
2019-12-09 12:43:50 -05:00
parent 082ec9a7ce
commit b4ce3a27a4
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = class CleverbotCommand extends Command {
});
this.convos = new Map();
this.patterns.push(new RegExp(`^(<!?@${this.client.user.id}>) (.+)`, 'i'));
this.client.once('ready', () => this.patterns.push(new RegExp(`^(<!?@${this.client.user.id}>) (.+)`, 'i')));
}
async run(msg, { text }, fromPattern) {