summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-05-28 22:23:34 +0200
committerRaindropsSys <contact@minteck.org>2023-05-28 22:23:34 +0200
commit6fbd992c91f93b7ba91f30c2ce6bf15a344d8495 (patch)
tree3719eb04ff8aada85b422837295b8bf4060df0dd
parent426f5b8b751832cfa16b75381ce6974831333c52 (diff)
downloadbutterscotch-6fbd992c91f93b7ba91f30c2ce6bf15a344d8495.tar.gz
butterscotch-6fbd992c91f93b7ba91f30c2ce6bf15a344d8495.tar.bz2
butterscotch-6fbd992c91f93b7ba91f30c2ce6bf15a344d8495.zip
Updated 3 files (automated)
-rw-r--r--commands/score.js1
-rw-r--r--discord.js3
-rw-r--r--matrix.js3
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";
diff --git a/discord.js b/discord.js
index 1a84fa1..cb6f7d9 100644
--- a/discord.js
+++ b/discord.js
@@ -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;
}
diff --git a/matrix.js b/matrix.js
index ce5978f..cb8a4ab 100644
--- a/matrix.js
+++ b/matrix.js
@@ -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;
}