forked from syntaxbullet/AuroraBot-discord
17 lines
418 B
TypeScript
17 lines
418 B
TypeScript
import { EventEmitter } from "node:events";
|
|
|
|
/**
|
|
* Global system event bus for cross-module communication.
|
|
* Used primarily for real-time dashboard updates.
|
|
*/
|
|
class SystemEventEmitter extends EventEmitter { }
|
|
|
|
export const systemEvents = new SystemEventEmitter();
|
|
|
|
export const EVENTS = {
|
|
DASHBOARD: {
|
|
STATS_UPDATE: "dashboard:stats_update",
|
|
NEW_EVENT: "dashboard:new_event",
|
|
}
|
|
} as const;
|