diff options
author | RaindropsSys <contact@minteck.org> | 2023-05-28 22:23:34 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-05-28 22:23:34 +0200 |
commit | 6fbd992c91f93b7ba91f30c2ce6bf15a344d8495 (patch) | |
tree | 3719eb04ff8aada85b422837295b8bf4060df0dd | |
parent | 426f5b8b751832cfa16b75381ce6974831333c52 (diff) | |
download | butterscotch-6fbd992c91f93b7ba91f30c2ce6bf15a344d8495.tar.gz butterscotch-6fbd992c91f93b7ba91f30c2ce6bf15a344d8495.tar.bz2 butterscotch-6fbd992c91f93b7ba91f30c2ce6bf15a344d8495.zip |
Updated 3 files (automated)
-rw-r--r-- | commands/score.js | 1 | ||||
-rw-r--r-- | discord.js | 3 | ||||
-rw-r--r-- | matrix.js | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/commands/score.js b/commands/score.js index 05fdbff..420f07b 100644 --- a/commands/score.js +++ b/commands/score.js @@ -8,6 +8,7 @@ module.exports = (parameter, wrapper) => { let worth = 1 / (score['score'] / 100); if (worth < 0.1) worth = 0.1; + if (worth > 100) worth = 100; let difficulty = "neither easy or hard"; @@ -55,6 +55,7 @@ function startDiscord() { if (message.author.id === "186730180872634368" || message.author.id === "189069518016872448" || message.author.id === "493845599469174794") { let worth = 1 / (score['score'] / 100); if (worth < 0.1) worth = 0.1; + if (worth > 100) worth = 100; if (score['score'] === 0) { score['score'] = 0.01; @@ -84,7 +85,7 @@ function startDiscord() { score['score'] -= 50 * worth; } - if (text.endsWith(".")) { + if (text.endsWith(".") && !text.endsWith("..") && !text.endsWith("...")) { score['score'] -= 10 * worth; } @@ -88,6 +88,7 @@ function startMatrix() { 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; + if (worth > 100) worth = 100; if (score['score'] === 0) { score['score'] = 0.01; @@ -117,7 +118,7 @@ function startMatrix() { score['score'] -= 50 * worth; } - if (text.endsWith(".")) { + if (text.endsWith(".") && !text.endsWith("..") && !text.endsWith("...")) { score['score'] -= 10 * worth; } |