mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 07:01:38 +01:00
fix getloot
This commit is contained in:
@@ -37,6 +37,7 @@ export default new Command('getloot', ['getloot', 'dig', 'loot'], 'chatter', asy
|
|||||||
|
|
||||||
for (const [item, amount] of Object.entries(itemDiff)) {
|
for (const [item, amount] of Object.entries(itemDiff)) {
|
||||||
if (userData.inventory[item]) userData.inventory[item] += amount;
|
if (userData.inventory[item]) userData.inventory[item] += amount;
|
||||||
|
else userData.inventory[item] = amount;
|
||||||
};
|
};
|
||||||
|
|
||||||
const itemstrings: string[] = [`${gainedqbucks} qbucks`];
|
const itemstrings: string[] = [`${gainedqbucks} qbucks`];
|
||||||
|
|||||||
Reference in New Issue
Block a user