> Change word scramble to 1 in 10 (so its actually possible

This commit is contained in:
Christopher Cookman 2023-08-18 15:44:09 -06:00
parent 3636d6a832
commit f4a7f0eaab
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -803,8 +803,8 @@ client.on('messageCreate', async message => {
if (curCooldown) {
return;
}
// 1 in 100 chance to start a word scramble
if (Math.random() < 0.01) {
// 1 in 50 chance to start a word scramble
if (Math.floor(Math.random() * 10) == 0) {
// Start a word scramble
setCooldown({id: 0}, "wordscramble", 5 * 60 * 1000)
gameData = wordScramble();