This commit is contained in:
Daniel Odendahl Jr
2017-06-01 08:44:02 +00:00
parent 7802bb49cb
commit 14f85f94bd
129 changed files with 1915 additions and 1720 deletions
+2 -7
View File
@@ -29,12 +29,7 @@ module.exports = class CleverbotCommand extends Command {
async run(msg, args) {
const { text } = args;
msg.channel.startTyping();
try {
const { response } = await this.clevs.ask(text);
return msg.reply(response).then(() => msg.channel.stopTyping());
} catch (err) {
return msg.say(`${err.name}: ${err.message}`);
}
const { response } = await this.clevs.ask(text);
return msg.reply(response);
}
};