From a917dd9fae8241c9381c32f7870e39fca361b449 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 28 Sep 2018 20:26:14 +0200 Subject: [PATCH] Completely remove badmeme --- commands/fun/badmeme | 18 ------------------ json/randPic.json | 38 -------------------------------------- 2 files changed, 56 deletions(-) delete mode 100644 commands/fun/badmeme delete mode 100644 json/randPic.json diff --git a/commands/fun/badmeme b/commands/fun/badmeme deleted file mode 100644 index a7374875..00000000 --- a/commands/fun/badmeme +++ /dev/null @@ -1,18 +0,0 @@ -const { Command } = require('discord.js-commando'); -const responseObject = require("../../json/randPic.json"); -module.exports = class BadmemeCommand extends Command { - constructor(client) { - super(client, { - name: 'badmeme', - group: 'fun', - memberName: 'badmeme', - description: `Some very bad meme. There is currently **${Object.keys(responseObject).length}** meme`, - }); - } - - async run(message) { - const number = Object.keys(responseObject).length; - const picNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1; - message.channel.send(picNumber, {files: [responseObject[picNumber]]}); - } -}; \ No newline at end of file diff --git a/json/randPic.json b/json/randPic.json deleted file mode 100644 index ca6c6848..00000000 --- a/json/randPic.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "1": "https://i.imgur.com/yCEWNpx.jpg", - "2": "https://i.imgur.com/6iFrAeS.jpg", - "3": "https://i.imgur.com/jKACsbL.jpg", - "4": "https://i.imgur.com/320zo9S.jpg", - "5": "https://pbs.twimg.com/media/Dni0NnxXgAI9Isa.jpg:large", - "6": "https://i.imgur.com/xL34aws.jpg", - "7": "https://i.imgur.com/6ilt8Nk.jpg", - "8": "https://i.imgur.com/kFBXolM.jpg", - "9": "https://i.imgur.com/1ZsMPyi.jpg", - "10": "https://i.imgur.com/vfkI6iu.jpg", - "11": "https://i.imgur.com/dD5SRGs.jpg", - "12": "https://i.imgur.com/v1q67gw.jpg", - "13": "https://cdn.discordapp.com/attachments/240843640375607296/488346182918078465/iu.png", - "14": "https://cdn.discordapp.com/attachments/423661794070888458/487828878799405056/image0.png", - "15": "https://cdn.discordapp.com/attachments/435167348652245002/486666090194403329/FB_IMG_1536094529838-1.jpg", - "16": "https://cdn.discordapp.com/attachments/435167348652245002/485962920987983872/FB_IMG_1534993616619.jpg", - "17": "https://cdn.discordapp.com/attachments/435167348652245002/484562869401288714/FB_IMG_15355883280587313.jpg", - "18": "https://cdn.discordapp.com/attachments/435167348652245002/483051892629438504/facebook_1535238859911.jpg", - "19": "https://cdn.discordapp.com/attachments/435167348652245002/482959880156610596/40079703_310302226186585_1130228490847649792_n.png", - "20": "https://media.discordapp.net/attachments/242615439115550741/482720447872630784/mlp.png", - "21": "https://cdn.discordapp.com/attachments/435167348652245002/482656093814784010/facebook_1535144544437.jpg", - "22": "https://cdn.discordapp.com/attachments/435167348652245002/481012925071622155/39200793_2189304224675259_3394509741488078848_n.png", - "23": "https://cdn.discordapp.com/attachments/435167348652245002/480436252789702656/Dk5jtdZUcAAMtY_.png", - "24": "https://cdn.discordapp.com/attachments/435167348652245002/480342073413730314/39397717_268922387271802_4663128035732488192_n.png", - "25": "https://cdn.discordapp.com/attachments/435167348652245002/480207349269921802/FB_IMG_1534555932246.jpg", - "26": "https://cdn.discordapp.com/attachments/435167348652245002/479253537046528021/FB_IMG_1534323693229.jpg", - "27": "https://cdn.discordapp.com/attachments/435167348652245002/479083187025215509/39101011_241776876472139_6505763585191313408_n.png", - "28": "https://cdn.discordapp.com/attachments/435167348652245002/479051996083781653/unknown.png", - "29": "https://orig00.deviantart.net/896d/f/2018/094/4/5/mordecai_vs_johnny_test_by_lyricisdead-dc7xnco.png", - "30": "https://pbs.twimg.com/media/DQ5b_VxUIAAleSB.jpg", - "31": "https://pbs.twimg.com/media/DQoDgVmVQAAsm5D.jpg", - "32": "https://cdn.discordapp.com/attachments/435167348652245002/488441530688995328/unknown.png", - "33": "https://cdn.discordapp.com/attachments/435167348652245002/488444489665347594/BALDI-1.png", - "34": "https://cdn.discordapp.com/attachments/435167348652245002/488444476717531161/DjSzlm7W4AAEjBk.jpeg", - "35": "https://cdn.discordapp.com/attachments/488095197033529354/491580196923768858/hahacommunism.png", - "36": "https://cdn.discordapp.com/attachments/435165175155261442/493889853252042772/Dn4mAOtX0AE-1dn.png" -} \ No newline at end of file