feat: Introduce dynamic Aurora Observatory terminal with admin command, scheduled updates, and lootdrop event integration.

This commit is contained in:
syntaxbullet
2025-12-24 17:19:22 +01:00
parent 419059904c
commit 345e05f821
5 changed files with 221 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import { Message, TextChannel } from "discord.js";
import { getLootdropMessage } from "./lootdrop.view";
import { config } from "@/lib/config";
import { economyService } from "./economy.service";
import { terminalService } from "@/modules/terminal/terminal.service";
import { lootdrops } from "@/db/schema";
@@ -109,6 +110,9 @@ class LootdropService {
expiresAt: new Date(Date.now() + 600000)
});
// Trigger Terminal Update
terminalService.update();
} catch (error) {
console.error("Failed to spawn lootdrop:", error);
}
@@ -144,6 +148,9 @@ class LootdropService {
`Claimed lootdrop in channel ${drop.channelId}`
);
// Trigger Terminal Update
terminalService.update();
return { success: true, amount: drop.rewardAmount, currency: drop.currency };
} catch (error) {