diff --git a/commands/fun/badmeme.js b/commands/fun/badmeme.js index da59e24..ce7d5df 100644 --- a/commands/fun/badmeme.js +++ b/commands/fun/badmeme.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const responseObject = require("../../picVid.json"); module.exports = class BadmemeCommand extends Command { constructor(client) { super(client, { @@ -11,7 +12,7 @@ module.exports = class BadmemeCommand extends Command { run(message) { const number = 12; - const imageNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1; - message.say( {files: ["./pictures/" + imageNumber + ".jpeg"]}); - } + const picNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1; + message.channel.send(responseObject[picNumber]); + } }; \ No newline at end of file diff --git a/pictures/1.jpeg b/pictures/1.jpeg deleted file mode 100644 index b5c409e..0000000 Binary files a/pictures/1.jpeg and /dev/null differ diff --git a/pictures/10.jpeg b/pictures/10.jpeg deleted file mode 100644 index 78a7acf..0000000 Binary files a/pictures/10.jpeg and /dev/null differ diff --git a/pictures/11.jpeg b/pictures/11.jpeg deleted file mode 100644 index 6b391b1..0000000 Binary files a/pictures/11.jpeg and /dev/null differ diff --git a/pictures/12.jpeg b/pictures/12.jpeg deleted file mode 100644 index b1e343d..0000000 Binary files a/pictures/12.jpeg and /dev/null differ diff --git a/pictures/2.jpeg b/pictures/2.jpeg deleted file mode 100644 index c9f546e..0000000 Binary files a/pictures/2.jpeg and /dev/null differ diff --git a/pictures/3.jpeg b/pictures/3.jpeg deleted file mode 100644 index aa031a0..0000000 Binary files a/pictures/3.jpeg and /dev/null differ diff --git a/pictures/4.jpeg b/pictures/4.jpeg deleted file mode 100644 index 7b5d4b6..0000000 Binary files a/pictures/4.jpeg and /dev/null differ diff --git a/pictures/5.jpeg b/pictures/5.jpeg deleted file mode 100644 index e2f77a3..0000000 Binary files a/pictures/5.jpeg and /dev/null differ diff --git a/pictures/6.jpeg b/pictures/6.jpeg deleted file mode 100644 index 4379738..0000000 Binary files a/pictures/6.jpeg and /dev/null differ diff --git a/pictures/7.jpeg b/pictures/7.jpeg deleted file mode 100644 index 54e638b..0000000 Binary files a/pictures/7.jpeg and /dev/null differ diff --git a/pictures/8.jpeg b/pictures/8.jpeg deleted file mode 100644 index 79a36b1..0000000 Binary files a/pictures/8.jpeg and /dev/null differ diff --git a/pictures/9.jpeg b/pictures/9.jpeg deleted file mode 100644 index 0ea3810..0000000 Binary files a/pictures/9.jpeg and /dev/null differ diff --git a/randPic.json b/randPic.json new file mode 100644 index 0000000..79a1647 --- /dev/null +++ b/randPic.json @@ -0,0 +1,14 @@ +{ + "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://i.imgur.com/7fmPaAw.jpg", + "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" +} \ No newline at end of file