Removed the vault from sudo iw reg set USinventory and made it a seperate command
@@ -134,9 +134,6 @@ class Econ(commands.Cog):
else:
contents += str(bal)+" emeralds\n"
- vault = await self.db.getVault(ctx.author.id)
- contents += "vault: "+str(vault[0])+"<:emerald_block:679121595150893057>/"+str(vault[1])+"\n"
-
beecount = await self.db.getBees(ctx.author.id)
if beecount > 1:
contents += str(beecount)+" jars of bees ("+str(beecount*3)+" bees)\n"
@@ -153,6 +150,11 @@ class Econ(commands.Cog):
inv.set_author(name=ctx.author.display_name+"'s Inventory", url=discord.Embed.Empty)
await ctx.send(embed=inv)
+ @commands.command(name="vault")
+ async def viewVault(self, ctx):
+ vault = await self.db.getVault(ctx.author.id)
+ await ctx.send(embed=discord.Embed(color=discord.Color.green(), description=ctx.author.mention+"'s vault: "+str(vault[0])+"<:emerald_block:679121595150893057>/"+str(vault[1])))
+
@commands.command(name="buy")
async def buy(self, ctx, *, itemm):
item = itemm.lower()
