forked from Supositware/Haha-Yes
dice (random number between 1 to 6)
This commit is contained in:
parent
284ed42afc
commit
0e3bd97223
1 changed files with 2 additions and 0 deletions
2
rand.js
2
rand.js
|
@ -25,6 +25,8 @@ exports.random = function (text, message) {
|
|||
text = text.replace(/\[memberRand\]/, message.guild.members.cache.random().user.username);
|
||||
}
|
||||
}
|
||||
|
||||
text = text.replace(/\[dice\]/, Math.floor((Math.random() * 6) + 1));
|
||||
text = text.replace(/\[number\]/, Math.floor((Math.random() * 9) + 1));
|
||||
text = text.replace(/\[kick\]/, ' ');
|
||||
text = text.replace(/\[ban\]/, ' ');
|
||||
|
|
Loading…
Reference in a new issue