Does this make it better?

This commit is contained in:
Daniel Odendahl Jr
2017-05-06 05:13:18 +00:00
parent 1d794d9bf7
commit c3d497f772
+1 -1
View File
@@ -28,7 +28,7 @@ module.exports = class CleverbotCommand extends Command {
try {
const { body } = await request
.post('https://cleverbot.io/1.0/ask')
.send({ user: process.env.CLEVS_USER, key: process.env.CLEVS_KEY, text });
.send({ user: process.env.CLEVS_USER, key: process.env.CLEVS_KEY, text, nick: 'XiaoBot' });
console.log(body.status, body.response, body);
if(body.status !== 'success') throw new Error(body.status);
return msg.reply(body.response);