!!buy max jar of bees
@@ -214,6 +214,10 @@ class Econ(commands.Cog):
item = _item.lower()
+ if (item.startswith("max") or item.startswith("all")) and self.g.shop_items.get(item) is not None:
+ amount = floor((await self.db.get_balance(ctx.author.id))/self.g.shop_items.get(item)[0])
+ item = item.replace("max ", "").replace("all ", "")
+ else:
try: # So proud of this
amount = int(item.split(" ")[0])
item = item.replace(f"{amount} ", "")
