Add inventory DB cog and fix music cog
This commit is contained in:
parent
743943effd
commit
0c21b2ee01
6 changed files with 137 additions and 33 deletions
10
bot.py
10
bot.py
|
|
@ -13,12 +13,16 @@ async def on_ready():
|
|||
print(f'{client.user.name} is ready.')
|
||||
await client.change_presence(activity=discord.Streaming(name="duck pictures.", url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"))
|
||||
|
||||
@commands.is_owner()
|
||||
@client.command()
|
||||
async def load(ctx, extension):
|
||||
"""Loads a cog"""
|
||||
client.load_extension(f'cogs.{extension}')
|
||||
|
||||
|
||||
@commands.is_owner()
|
||||
@client.command()
|
||||
async def unload(ctx, extension):
|
||||
"""Unloads a cog"""
|
||||
client.unload_extension(f'cogs.{extension}')
|
||||
|
||||
# Subfolders
|
||||
|
|
@ -46,4 +50,8 @@ for filename in os.listdir('./cogs/owner'):
|
|||
if filename.endswith('.py'):
|
||||
client.load_extension(f'cogs.owner.{filename[:-3]}')
|
||||
|
||||
for filename in os.listdir('./cogs/inventory'):
|
||||
if filename.endswith('.py'):
|
||||
client.load_extension(f'cogs.inventory.{filename[:-3]}')
|
||||
|
||||
client.run(TOKEN)
|
||||
Loading…
Add table
Add a link
Reference in a new issue