mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 12:36:59 +01:00
slightly change timing on blastinRoulette
This commit is contained in:
@@ -8,6 +8,7 @@ export type pointRedeemOptions = {
|
||||
cost: number;
|
||||
color?: string;
|
||||
sfxredeem?: boolean;
|
||||
input?: boolean;
|
||||
execution: (message: EventSubChannelRedemptionAddEvent, sender: User) => Promise<void>;
|
||||
};
|
||||
|
||||
@@ -19,6 +20,7 @@ export default class PointRedeem {
|
||||
public readonly cost: number;
|
||||
public readonly color?: string;
|
||||
public readonly sfxredeem?: boolean;
|
||||
public readonly input?: boolean;
|
||||
public readonly execute: (message: EventSubChannelRedemptionAddEvent, sender: User) => Promise<void>;
|
||||
constructor(options: pointRedeemOptions) {
|
||||
this.name = options.name.toLowerCase();
|
||||
@@ -28,6 +30,7 @@ export default class PointRedeem {
|
||||
this.color = options.color;
|
||||
this.execute = options.execution;
|
||||
this.sfxredeem = options.sfxredeem;
|
||||
this.input = options.input;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -72,7 +75,8 @@ for (const [_, redeem] of Array.from(namedRedeems)) {
|
||||
title: redeem.title,
|
||||
prompt: redeem.prompt,
|
||||
cost: redeem.cost,
|
||||
backgroundColor: redeem.color
|
||||
backgroundColor: redeem.color,
|
||||
userInputRequired: redeem.input
|
||||
});
|
||||
logger.ok(`Created custom point redeem ${redeem.title}`);
|
||||
idMap.set(redeem.name, creation.id);
|
||||
|
||||
Reference in New Issue
Block a user