21 lines
517 B
TypeScript
21 lines
517 B
TypeScript
import {
|
|
handleAddXp,
|
|
handleAddBalance,
|
|
handleReplyMessage,
|
|
handleXpBoost,
|
|
handleTempRole,
|
|
handleColorRole,
|
|
handleLootbox
|
|
} from "./handlers";
|
|
import type { EffectHandler } from "./types";
|
|
|
|
export const effectHandlers: Record<string, EffectHandler> = {
|
|
'ADD_XP': handleAddXp,
|
|
'ADD_BALANCE': handleAddBalance,
|
|
'REPLY_MESSAGE': handleReplyMessage,
|
|
'XP_BOOST': handleXpBoost,
|
|
'TEMP_ROLE': handleTempRole,
|
|
'COLOR_ROLE': handleColorRole,
|
|
'LOOTBOX': handleLootbox
|
|
};
|