handle user bans on widget, add tnt cheer, bugfixes

This commit is contained in:
2025-07-19 17:48:42 +01:00
parent a26903183b
commit e76d22ab77
11 changed files with 96 additions and 52 deletions

View File

@@ -62,7 +62,7 @@ export async function handleCheer(msg: EventSubChannelChatMessageEvent, bits: nu
const selection = cheers.get(bits);
if (!selection) return;
if (await redis.sismember('disabledcheers', selection.name)) { await sendMessage(`The ${selection.name} cheer is disabled`); return; };
if (await redis.sismember('disabledcheers', selection.name)) { await sendMessage(`The ${selection.name} cheer is disabled! Sorry!`, msg.messageId); return; };
try {
selection.execute(msg, user);
} catch (err) {