mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +02:00
22 lines
589 B
JavaScript
22 lines
589 B
JavaScript
const Command = require('../../structures/Command');
|
|
|
|
module.exports = class CleverbotEndCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'cleverbot-end',
|
|
aliases: ['clevs-end', 'chat-end'],
|
|
group: 'other',
|
|
memberName: 'cleverbot-end',
|
|
description: 'Ends the current Cleverbot chat.'
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
if (!this.client.cleverbots.has(msg.channel.id)) {
|
|
return msg.say('There is not a Cleverbot conversation in this channel.');
|
|
}
|
|
this.client.cleverbots.delete(msg.channel.id);
|
|
return msg.reply('Ended the current conversation.');
|
|
}
|
|
};
|