Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/minecraft/other/eventNotifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ if (config.minecraft.skyblockEventsNotifications.enabled) {
setInterval(async () => {
try {
const eventBOT = new minecraftCommand(bot);
eventBOT.officer = false;
const EVENTS = getSkyblockCalendar();

for (const event in EVENTS.events) {
Expand Down Expand Up @@ -38,12 +39,12 @@ if (config.minecraft.skyblockEventsNotifications.enabled) {

const cTime = getCustomTime(customTime, event);
if (cTime.length !== 0 && cTime.includes(minutes.toString())) {
eventBOT.send(`/gc [EVENT] ${eventData.name}${extraInfo}: Starting in ${minutes}m!`);
eventBOT.send(`[EVENT] ${eventData.name}${extraInfo}: Starting in ${minutes}m!`);
await delay(1500);
}

if (minutes == 0) {
eventBOT.send(`/gc [EVENT] ${eventData.name}${extraInfo}: Starting now!`);
eventBOT.send(`[EVENT] ${eventData.name}${extraInfo}: Starting now!`);
await delay(1500);
}
}
Expand Down
Loading