mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-23 18:21:55 +01:00
fix wrong Jellyfin gradient colors
This commit is contained in:
parent
a719ccecd9
commit
0d26a5723c
@ -20,8 +20,9 @@ var isSummendByPlay = false;
|
||||
|
||||
// random Color of the Jellyfin Logo Gradient
|
||||
function getRandomDiscordColor () {
|
||||
let random = Math.random();
|
||||
function randomNumber (b, a) {
|
||||
return Math.floor((Math.random() * Math.pow(Math.pow((b - a), 2), 1 / 2)) + (b > a ? a : b));
|
||||
return Math.floor(random * Math.pow(Math.pow((b - a), 2), 1 / 2)) + (b > a ? a : b));
|
||||
}
|
||||
|
||||
const GRANDIENT_START = "#AA5CC3";
|
||||
|
Loading…
Reference in New Issue
Block a user