Fix Lolibooru Command

This commit is contained in:
Daniel Odendahl Jr
2017-05-09 00:27:05 +00:00
parent 6092e9e09d
commit 20f543515b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ module.exports = class LolibooruCommand extends Command {
try {
const { body } = await request
.get('https://lolibooru.moe/post/index.json?tags=order:random&limit=1');
return msg.channel.send({ files: [`https:${body[0].file_url}`] })
return msg.channel.send({ files: [body[0].file_url] })
.catch(err => msg.say(err));
} catch (err) {
return msg.say(err);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "18.8.0",
"version": "18.8.1",
"description": "A Discord Bot",
"main": "shardingmanager.js",
"scripts": {