diff options
author | RaindropsSys <contact@minteck.org> | 2023-06-15 19:39:39 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-06-15 19:39:39 +0200 |
commit | 5e9f9827098207565d0a8a711e46275d795506b1 (patch) | |
tree | a82678bc3e082d0d55be3c0736075c1daf1e0f2b | |
parent | bc85347d36461704e5c39d5d3b07ca715d21704d (diff) | |
download | butterscotch-5e9f9827098207565d0a8a711e46275d795506b1.tar.gz butterscotch-5e9f9827098207565d0a8a711e46275d795506b1.tar.bz2 butterscotch-5e9f9827098207565d0a8a711e46275d795506b1.zip |
Updated 3 files (automated)
-rw-r--r-- | commands/front.js | 11 | ||||
-rw-r--r-- | discord.js | 2 | ||||
-rw-r--r-- | matrix.js | 2 |
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 @@ -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; } @@ -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; } |