start on inventory rewrite
@@ -183,6 +183,32 @@ class Econ(commands.Cog):
await ctx.send(embed=embed)
+ @commands.command(name="inventory", aliases=["inv", "items"])
+ @commands.cooldown(2, 2, commands.BucketType.user)
+ async def inventory(self, ctx, *, user: discord.User = None):
+ if user is None:
+ user = ctx.author
+
+ if user.bot:
+ if user.id == self.bot.user.id:
+ await self.bot.send(ctx, ctx.l.econ.inv.bot_1)
+ else:
+ await self.bot.send(ctx, ctx.l.econ.inv.bot_2)
+
+ return
+
+ embed = discord.Embed(color=self.d.cc)
+ embed.set_author(name=ctx.l.econ.inv.s_inventory.format(user.display_name), icon_url=user.avatar_url_as())
+
+ embed.add_field(name="Tools", value="`{0}inventory tools`")
+ embed.add_field(name="\uFEFF", value="\uFEFF")
+ embed.add_field(name="Magic", value="`{0}inventory magic`")
+
+ embed.add_field(name="Fishing", value="`{0}inventory fish`")
+ embed.add_field(name="\uFEFF", value="\uFEFF")
+ embed.add_field(name="Materials", value="`{0}inventory materials`")
+
+
@commands.command(name="inventory", aliases=["inv", "items"])
@commands.cooldown(2, 10, commands.BucketType.user)
async def inventory(self, ctx, *, user: discord.User = None):
