mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 22:32:52 +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'
|
type: 'string'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
patterns: []
|
patterns: [/^(clevs|cleverbot|xiao) (.+)/i]
|
||||||
});
|
});
|
||||||
|
|
||||||
this.convos = new Map();
|
this.convos = new Map();
|
||||||
this.client.once('ready', () => this.patterns.push(new RegExp(`^(<!?@${this.client.user.id}>) (.+)`, 'i')));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(msg, { text }, fromPattern) {
|
async run(msg, { text }, fromPattern) {
|
||||||
|
|||||||
Reference in New Issue
Block a user