From 9bba99dd53c17d9a9beeef51d68736b5c5b64569 Mon Sep 17 00:00:00 2001 From: qwerinope Date: Sat, 5 Apr 2025 23:35:56 +0200 Subject: [PATCH] fix tnt usage --- src/lib/items.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/items.ts b/src/lib/items.ts index a012791..3bf18fb 100644 --- a/src/lib/items.ts +++ b/src/lib/items.ts @@ -119,13 +119,14 @@ export async function useTNT(broadcasterId: string, attacker: HelixUser, say: (a if (result.status) { await say(`${target?.name} got blown up by TNT!`) await addTimeoutToDB(attacker, target!, 'tnt') - await addUsedItem(attacker, 'tnt') await updateInventory(attacker, itemResult.inv!) } else { await say(`something went wrong`) console.error(result.reason) } } + + await addUsedItem(attacker, 'tnt') await say(`${attacker.name} blew up ${blastedusers} chatters with their TNT! ${attacker.name} has ${itemResult.count} tnt${itemResult.count === 1 ? '' : 's'} remaining`) }