Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshd332 authored Jun 8, 2020
1 parent 8a7e372 commit 0b32def
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,14 @@ function image(message, parts) {

// Send result
var size = urls.length;
var end = Math.floor(Math.random() * size)
if(size>5){
var end = Math.floor(Math.random() * 5)
message.channel.send( urls[end] );
}
else {
var end2 = Math.floor(Math.random() * 5)
message.channel.send ( urls[end] );
}
});
}
client.login(process.env.token);

0 comments on commit 0b32def

Please sign in to comment.