summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}