Changed the way badmeme work so it dosent take from picture in a local folder... Much better
|
@ -1,4 +1,5 @@
|
||||||
const { Command } = require('discord.js-commando');
|
const { Command } = require('discord.js-commando');
|
||||||
|
const responseObject = require("../../picVid.json");
|
||||||
module.exports = class BadmemeCommand extends Command {
|
module.exports = class BadmemeCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
|
@ -11,7 +12,7 @@ module.exports = class BadmemeCommand extends Command {
|
||||||
|
|
||||||
run(message) {
|
run(message) {
|
||||||
const number = 12;
|
const number = 12;
|
||||||
const imageNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
|
const picNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
|
||||||
message.say( {files: ["./pictures/" + imageNumber + ".jpeg"]});
|
message.channel.send(responseObject[picNumber]);
|
||||||
}
|
}
|
||||||
};
|
};
|
BIN
pictures/1.jpeg
Before Width: | Height: | Size: 36 KiB |
BIN
pictures/10.jpeg
Before Width: | Height: | Size: 45 KiB |
BIN
pictures/11.jpeg
Before Width: | Height: | Size: 106 KiB |
BIN
pictures/12.jpeg
Before Width: | Height: | Size: 177 KiB |
BIN
pictures/2.jpeg
Before Width: | Height: | Size: 51 KiB |
BIN
pictures/3.jpeg
Before Width: | Height: | Size: 44 KiB |
BIN
pictures/4.jpeg
Before Width: | Height: | Size: 141 KiB |
BIN
pictures/5.jpeg
Before Width: | Height: | Size: 50 KiB |
BIN
pictures/6.jpeg
Before Width: | Height: | Size: 186 KiB |
BIN
pictures/7.jpeg
Before Width: | Height: | Size: 210 KiB |
BIN
pictures/8.jpeg
Before Width: | Height: | Size: 32 KiB |
BIN
pictures/9.jpeg
Before Width: | Height: | Size: 84 KiB |
14
randPic.json
Normal file
|
@ -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"
|
||||||
|
}
|