mirror of
https://github.com/gizmo4487/O-Bot.git
synced 2026-07-14 08:35:55 -05:00
Complete rewrite - Added slash commands
This commit is contained in:
15
cmd/util/util.js
Normal file
15
cmd/util/util.js
Normal file
@@ -0,0 +1,15 @@
|
||||
function randomHex(){
|
||||
let hex="";
|
||||
let randNum = 0;
|
||||
randNum = (Math.floor(Math.random()*Math.floor(41)));
|
||||
if(randNum<16){
|
||||
hex = "0" + randNum.toString(16);
|
||||
}
|
||||
else{
|
||||
hex = randNum.toString(16);
|
||||
}
|
||||
|
||||
return hex;
|
||||
}
|
||||
|
||||
module.exports = { randomHex };
|
||||
Reference in New Issue
Block a user