added vid

This commit is contained in:
Loïc Bersier 2018-09-08 20:38:39 +02:00
parent ebfb2b3e5f
commit 53f9f34539
2 changed files with 3 additions and 2 deletions

View file

@ -11,7 +11,7 @@ module.exports = class DespacitoCommand extends Command {
} }
run(message) { run(message) {
const number = 2; const number = 4;
const vidNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1; const vidNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
message.channel.send(responseObject[vidNumber]); message.channel.send(responseObject[vidNumber]);
} }

View file

@ -1,5 +1,6 @@
{ {
"1": "https://twitter.com/i/status/1037932315727618048", "1": "https://twitter.com/i/status/1037932315727618048",
"2": "https://www.youtube.com/watch?v=W3GrSMYbkBE", "2": "https://www.youtube.com/watch?v=W3GrSMYbkBE",
"3": "https://www.youtube.com/watch?v=OuzRcfWyurE" "3": "https://www.youtube.com/watch?v=OuzRcfWyurE",
"4": "https://www.youtube.com/watch?v=IejjQzExNM4"
} }