prepare inventory command

This commit is contained in:
fanyx 2020-11-15 01:39:05 +01:00
parent 47003d0f61
commit 0d999b0e3d
1 changed files with 43 additions and 0 deletions

43
src/ext/inventory.py Normal file
View File

@ -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