in fetch_pickaxe and fetch_sword, ensure item actually exists in the database
@@ -268,6 +268,8 @@ class Database(commands.Cog):
if pickaxe in items_names:
return pickaxe
+ await self.add_item(user_id, "Wood Pickaxe", 0, 1, True, False)
+
return "Wood Pickaxe"
async def fetch_sword(self, user_id: int) -> str:
@@ -277,6 +279,8 @@ class Database(commands.Cog):
if sword in items_names:
return sword
+ await self.add_item(user_id, "Wood Sword", 0, 1, True, False)
+
return "Wood Sword"
async def rich_trophy_wipe(self, user_id: int) -> None:
