mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 13:36:58 +01:00
stop item usage when another item is already in use
This commit is contained in:
@@ -26,3 +26,9 @@ export async function changeItemCount(user: HelixUser, item: string, amount = -1
|
||||
|
||||
return { result: true, reason: '', count: inv[item], inv }
|
||||
}
|
||||
|
||||
export let ITEMBUSY = false
|
||||
|
||||
export function toggleBusy() {
|
||||
ITEMBUSY = !ITEMBUSY
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user