mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 08:41:39 +01:00
fix tnt usage
This commit is contained in:
@@ -119,13 +119,14 @@ export async function useTNT(broadcasterId: string, attacker: HelixUser, say: (a
|
|||||||
if (result.status) {
|
if (result.status) {
|
||||||
await say(`${target?.name} got blown up by TNT!`)
|
await say(`${target?.name} got blown up by TNT!`)
|
||||||
await addTimeoutToDB(attacker, target!, 'tnt')
|
await addTimeoutToDB(attacker, target!, 'tnt')
|
||||||
await addUsedItem(attacker, 'tnt')
|
|
||||||
await updateInventory(attacker, itemResult.inv!)
|
await updateInventory(attacker, itemResult.inv!)
|
||||||
} else {
|
} else {
|
||||||
await say(`something went wrong`)
|
await say(`something went wrong`)
|
||||||
console.error(result.reason)
|
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`)
|
await say(`${attacker.name} blew up ${blastedusers} chatters with their TNT! ${attacker.name} has ${itemResult.count} tnt${itemResult.count === 1 ? '' : 's'} remaining`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user