mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
???
This commit is contained in:
@@ -29,6 +29,7 @@ module.exports = class CleverbotCommand extends Command {
|
||||
const { body } = await request
|
||||
.post('https://cleverbot.io/1.0/ask')
|
||||
.send({ user: process.env.CLEVS_USER, key: process.env.CLEVS_KEY, text });
|
||||
console.log(body.status, body.response, body);
|
||||
if(body.status !== 'success') throw new Error(body.status);
|
||||
return msg.reply(body.response);
|
||||
} catch(err) {
|
||||
|
||||
Reference in New Issue
Block a user