mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 22:01:54 +02:00
Oh well, just do it this way then
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user