Skip to content

Commit c6fc5bf

Browse files
authored
fix(eventNotifier): Event Notifier sending /gc at the start of the message (#297)
* fix(eventNotifier): Event Notifier sending /gc at the start of the message * Block going into officer
1 parent c022ac6 commit c6fc5bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/minecraft/other/eventNotifier.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if (config.minecraft.skyblockEventsNotifications.enabled) {
1010
setInterval(async () => {
1111
try {
1212
const eventBOT = new minecraftCommand(bot);
13+
eventBOT.officer = false;
1314
const EVENTS = getSkyblockCalendar();
1415

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

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

4546
if (minutes == 0) {
46-
eventBOT.send(`/gc [EVENT] ${eventData.name}${extraInfo}: Starting now!`);
47+
eventBOT.send(`[EVENT] ${eventData.name}${extraInfo}: Starting now!`);
4748
await delay(1500);
4849
}
4950
}

0 commit comments

Comments
 (0)