feat: Introduce dynamic Aurora Observatory terminal with admin command, scheduled updates, and lootdrop event integration.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user