Skip to content
This repository was archived by the owner on Dec 29, 2025. It is now read-only.

Commit 74f2639

Browse files
MDaffyduckJiralite
andauthored
feat: Add snowverload (#10)
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
1 parent 8a49cd9 commit 74f2639

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

src/main.rs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::{env, time::Duration};
1414
use tokio::{spawn, time::sleep};
1515
use utility::constants::{
1616
APMEKEN_AMETHYST, CLAWDIA, GUTHIXIAN_CACHE, HAPPY_HOUR, MENAPHITE_GIFTS,
17-
NOTIFICATION_CHANNEL_ID, SANTA, SCABARITE_CRYSTAL, WILDERNESS_FLASH_EVENT_SPECIAL,
17+
NOTIFICATION_CHANNEL_ID, SANTA, SCABARITE_CRYSTAL, SNOWVERLOAD, WILDERNESS_FLASH_EVENT_SPECIAL,
1818
};
1919

2020
#[tokio::main]
@@ -175,6 +175,21 @@ async fn notify(client: Http) -> Result<()> {
175175
));
176176
}
177177

178+
if now.minute() == 40
179+
&& ((now.year() == 2025
180+
&& now.month() == 12
181+
&& (now.day() > 1 || (now.day() == 1 && now.hour() >= 11)))
182+
|| (now.year() == 2026 && now.month() == 1 && now.day() < 5))
183+
{
184+
let snowverload_timestamp_start = now + Duration::from_secs(300);
185+
186+
content.push(format!(
187+
"{} spawns <t:{}:R>!",
188+
SNOWVERLOAD.mention(),
189+
snowverload_timestamp_start.timestamp(),
190+
));
191+
}
192+
178193
if now.minute() == 55 {
179194
let date = now + Duration::from_secs(300);
180195
let guthixian_cache_content = guthixian_cache_content(date);

src/utility/constants.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ pub const GUTHIXIAN_CACHE: RoleId = RoleId::new(1211186242067370034);
99
pub const CLAWDIA: RoleId = RoleId::new(1389195127133569144);
1010
pub const HAPPY_HOUR: RoleId = RoleId::new(1389198894323204227);
1111
pub const SANTA: RoleId = RoleId::new(1312368600820088872);
12+
pub const SNOWVERLOAD: RoleId = RoleId::new(1445032404380155955);

0 commit comments

Comments
 (0)