Remove command prefix check during item creation in ItemManager to streamline the user experience and prevent premature termination of the item creation process.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run

This commit is contained in:
Valerie 2025-05-26 20:23:37 -04:00
parent 224a01ad89
commit 1b77d537be

View file

@ -1756,10 +1756,6 @@ class ItemManager:
await self.ctx.send("Enter a name for this item. It can't be longer than 20 characters.")
name = await self.ctx.bot.wait_for("message", timeout=25, check=Checks(self.ctx, length=30).length_under)
if name.content.startswith(self.ctx.prefix):
await self.ctx.send("Closing item creation. Please don't run commands while attempting to create an item.")
return None
if item:
async with self.instance.Shops() as shops:
shops[shop]["Items"][name.content] = shops[shop]["Items"].pop(item)