oop
This commit is contained in:
parent
f98c76328a
commit
3694e84e21
1 changed files with 2 additions and 1 deletions
|
@ -177,7 +177,8 @@ randomtheme.callback = async function (msg, line, args, {truerandom}) {
|
||||||
const colors = [];
|
const colors = [];
|
||||||
|
|
||||||
for (let _ = 0; _ < Math.floor(Math.random() * 5) + 1; _++) {
|
for (let _ = 0; _ < Math.floor(Math.random() * 5) + 1; _++) {
|
||||||
colors.push(truerandom ? tinycolor(Math.floor(Math.random() * 0xffffff)) : randomColor());
|
const col = truerandom ? tinycolor(Math.floor(Math.random() * 0xffffff)) : randomColor();
|
||||||
|
colors.push(col.toHexString().substring(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
const angle = Math.floor(Math.random() * 361);
|
const angle = Math.floor(Math.random() * 361);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue