mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 23:32:12 +02:00
Fix Lolibooru Command
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "18.8.0",
|
||||
"version": "18.8.1",
|
||||
"description": "A Discord Bot",
|
||||
"main": "shardingmanager.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user