mirror of
https://github.com/ION606/selmerBot.git
synced 2026-05-14 21:26:54 +00:00
Worked on the 'game' command and added the 'meme' command
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
function randomHexColor() {
|
||||
var letters = "0123456789ABCDEF";
|
||||
|
||||
// html color code starts with #
|
||||
var randomcol = '#';
|
||||
|
||||
// generating 6 times as HTML color code consist
|
||||
// of 6 letter or digits
|
||||
for (var i = 0; i < 6; i++)
|
||||
randomcol += letters[(Math.floor(Math.random() * 16))];
|
||||
|
||||
return randomcol;
|
||||
}
|
||||
|
||||
module.exports = { randomHexColor }
|
||||
Reference in New Issue
Block a user