forked from syntaxbullet/AuroraBot-discord
feat: Add color role item effect with role swapping and implement item consumption toggle.
This commit is contained in:
@@ -48,6 +48,7 @@ export interface GameConfigType {
|
||||
};
|
||||
studentRole: string;
|
||||
visitorRole: string;
|
||||
colorRoles: string[];
|
||||
welcomeChannelId?: string;
|
||||
welcomeMessage?: string;
|
||||
}
|
||||
@@ -111,6 +112,7 @@ const configSchema = z.object({
|
||||
}),
|
||||
studentRole: z.string(),
|
||||
visitorRole: z.string(),
|
||||
colorRoles: z.array(z.string()).default([]),
|
||||
welcomeChannelId: z.string().optional(),
|
||||
welcomeMessage: z.string().optional()
|
||||
});
|
||||
|
||||
@@ -18,7 +18,8 @@ export type ItemEffect =
|
||||
| { type: 'ADD_BALANCE'; amount: number }
|
||||
| { type: 'XP_BOOST'; multiplier: number; durationSeconds?: number; durationMinutes?: number; durationHours?: number }
|
||||
| { type: 'TEMP_ROLE'; roleId: string; durationSeconds?: number; durationMinutes?: number; durationHours?: number }
|
||||
| { type: 'REPLY_MESSAGE'; message: string };
|
||||
| { type: 'REPLY_MESSAGE'; message: string }
|
||||
| { type: 'COLOR_ROLE'; roleId: string };
|
||||
|
||||
export interface ItemUsageData {
|
||||
consume: boolean;
|
||||
|
||||
Reference in New Issue
Block a user