diff options
Diffstat (limited to 'matrix.js')
-rw-r--r-- | matrix.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -85,7 +85,7 @@ function startMatrix() { let text = event.event.content.body.toLowerCase(); - if (event.event.sender === "@cloudburst:equestria.dev" || event.event.sender === "@raindrops:equestria.dev") { + if (event.event.sender === "@cloudburst:equestria.dev" || event.event.sender === "@raindrops:equestria.dev" || event.event.sender === "@stargrove:equestria.dev") { let worth = 1 / (score['score'] / 100); if (worth < 0.1) worth = 0.1; @@ -197,11 +197,11 @@ function startMatrix() { score['score'] += 3 * worth; } - if (Math.floor(score['percentage']) < Math.floor(score['score'] / 20)) { - matrixSend(room.roomId, "🎉 Congrats! Your love score is now at " + Math.floor(score['score'] / 20) + "%, keep it up!"); + if (Math.floor(score['percentage']) < Math.floor(score['score'] / 12.5)) { + matrixSend(room.roomId, "🎉 Congrats! Your love score is now at " + Math.floor(score['score'] / 12.5) + "%, keep it up!"); } - score['percentage'] = score['score'] / 20; + score['percentage'] = score['score'] / 12.5; } } } @@ -217,7 +217,7 @@ function startMatrix() { })(); } catch (e) { setTimeout(() => { - startDiscord(); + startMatrix(); }, 300000); } } |