summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-06-15 19:39:39 +0200
committerRaindropsSys <contact@minteck.org>2023-06-15 19:39:39 +0200
commit5e9f9827098207565d0a8a711e46275d795506b1 (patch)
treea82678bc3e082d0d55be3c0736075c1daf1e0f2b
parentbc85347d36461704e5c39d5d3b07ca715d21704d (diff)
downloadbutterscotch-5e9f9827098207565d0a8a711e46275d795506b1.tar.gz
butterscotch-5e9f9827098207565d0a8a711e46275d795506b1.tar.bz2
butterscotch-5e9f9827098207565d0a8a711e46275d795506b1.zip
Updated 3 files (automated)
-rw-r--r--commands/front.js11
-rw-r--r--discord.js2
-rw-r--r--matrix.js2
3 files changed, 12 insertions, 3 deletions
diff --git a/commands/front.js b/commands/front.js
index 556c268..44a187b 100644
--- a/commands/front.js
+++ b/commands/front.js
@@ -6,11 +6,20 @@ module.exports = (parameter, wrapper) => {
return;
}
+ if (new Date().getTime() / 1000 >= 1686787200) {
+ wrapper.send("⚠️ This command is outdated and has been disabled. Please use the [evening schedule on Cold Haze](https://ponies.equestria.horse/-/evening) until a replacement is made.");
+ return;
+ }
+
axios.get("https://ponies.equestria.horse/api/schedule", {
headers: {
'Cookie': 'PEH2_SESSION_TOKEN=' + require('../credentials.json').coldhaze
}
}).then((res) => {
- wrapper.send("📆 Here is what is planned:\n\n### Today\n" + res.data['today'].map(i => "* **" + i['cloudburst'].join(" and ") + "** with **" + i['raindrops'].join(" and ") + "**").join("\n") + "\n\n### Tomorrow\n" + res.data['tomorrow'].map(i => "* **" + i['cloudburst'].join(" and ") + "** with **" + i['raindrops'].join(" and ") + "**").join("\n") + "\n\n[[View on Cold Haze](https://ponies.equestria.horse/-/fronting)]");
+ if (new Date().toDateString() === "Wed Jun 14 2023") {
+ wrapper.send("📆 Here is what is planned:\n\n" + res.data['today'].map(i => "* **" + i['cloudburst'].join(" and ") + "** with **" + i['raindrops'].join(" and ") + "**").join("\n") + "\n\n[[View on Cold Haze](https://ponies.equestria.horse/-/fronting)]");
+ } else {
+ wrapper.send("📆 Here is what is planned:\n\n### Today\n" + res.data['today'].map(i => "* **" + i['cloudburst'].join(" and ") + "** with **" + i['raindrops'].join(" and ") + "**").join("\n") + "\n\n### Tomorrow\n" + res.data['tomorrow'].map(i => "* **" + i['cloudburst'].join(" and ") + "** with **" + i['raindrops'].join(" and ") + "**").join("\n") + "\n\n[[View on Cold Haze](https://ponies.equestria.horse/-/fronting)]");
+ }
});
} \ No newline at end of file
diff --git a/discord.js b/discord.js
index cb6f7d9..7c431bf 100644
--- a/discord.js
+++ b/discord.js
@@ -85,7 +85,7 @@ function startDiscord() {
score['score'] -= 50 * worth;
}
- if (text.endsWith(".") && !text.endsWith("..") && !text.endsWith("...")) {
+ if (text.endsWith(".") && !text.endsWith("..") && !text.endsWith("...") && !text.endsWith(".c.")) {
score['score'] -= 10 * worth;
}
diff --git a/matrix.js b/matrix.js
index cb8a4ab..3103a7a 100644
--- a/matrix.js
+++ b/matrix.js
@@ -118,7 +118,7 @@ function startMatrix() {
score['score'] -= 50 * worth;
}
- if (text.endsWith(".") && !text.endsWith("..") && !text.endsWith("...")) {
+ if (text.endsWith(".") && !text.endsWith("..") && !text.endsWith("...") && !text.endsWith(".c.")) {
score['score'] -= 10 * worth;
}