From 0d999b0e3d04cccd1e1de607aea1ab616c2661b0 Mon Sep 17 00:00:00 2001 From: fanyx Date: Sun, 15 Nov 2020 01:39:05 +0100 Subject: [PATCH] prepare inventory command --- src/ext/inventory.py | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/ext/inventory.py diff --git a/src/ext/inventory.py b/src/ext/inventory.py new file mode 100644 index 0000000..6f682b9 --- /dev/null +++ b/src/ext/inventory.py @@ -0,0 +1,43 @@ +from discord.ext import commands +from src.utils.config import build_config + + +class Inventory(commands.Cog): + def __init__(self, bot): + self.bot = bot + self.config = build_config() + + @commands.group() + @commands.guild_only() + async def inventory(self, ctx): + """ + Manage user's inventory + + Usage: ~ak inventory [subcommand] + """ + pass + + @inventory.command(name="list", aliases=["ls"]) + @commands.guild_only() + async def inventory_list(self, ctx): + """ + List user's own inventory + + Usage: ~ak inventory {ls, list} + """ + + # needs database model and connection + pass + + @inventory.command(name="use") + @commands.guild_only() + async def inventory_use(self, ctx, *, ): + """ + Use an item in user's inventory + + Usage: ~ak inventory use [itemId] + """ + + pass + +