diff --git a/bot.py b/bot.py index 804c065..e1ca8e1 100644 --- a/bot.py +++ b/bot.py @@ -1,11 +1,12 @@ from os import environ as env import discord -from discord.ext import bridge +from discord.ext import bridge, commands from motor.motor_asyncio import AsyncIOMotorClient as MongoClient from bin.storage import storage bot = bridge.Bot( - help_command=None, + help_command=commands.MinimalHelpCommand(), + description="!help for more info", command_prefix="!", intents=discord.Intents.all(), activity=discord.Activity( @@ -15,7 +16,7 @@ bot = bridge.Bot( # bot.load_extension("cogs.triggers") bot.load_extension("cogs.counting") -# bot.load_extension("cogs.settings") +bot.load_extension("cogs.settings") bot.load_extension("cogs.misc") uri = f"mongodb://{env['DB_USERNAME']}:{env['DB_PASSWORD']}@{env['DB_HOST']}/?authSource=admin" diff --git a/cogs/counting.py b/cogs/counting.py index 4d6a078..1d252f2 100644 --- a/cogs/counting.py +++ b/cogs/counting.py @@ -29,13 +29,13 @@ class Counting(commands.Cog): async def channel(self, ctx): store = storage(ctx.guild.id, self.bot.db).store await store('counting', 'channel', ctx.channel.id) - await ctx.send(f"counting channel set to {await store('counting', 'channel')}") + await ctx.respond(f"counting channel set to {await store('counting', 'channel')}") @bridge.bridge_command() - async def setcount(self, ctx, args): - store = storage(ctx.guild.id, self.bot.store).store - await store('counting', 'count', args) - await ctx.send(f"count set to {args}") + async def setcount(self, ctx, count:int): + store = storage(ctx.guild.id, self.bot.db).store + await store('counting', 'count', count) + await ctx.respond(f"count set to {count}") diff --git a/cogs/future.py b/cogs/future.py deleted file mode 100644 index e69de29..0000000 diff --git a/cogs/misc.py b/cogs/misc.py index df56d8e..df0a6c3 100644 --- a/cogs/misc.py +++ b/cogs/misc.py @@ -22,7 +22,5 @@ class Misc(commands.Cog): print("------") - - def setup(bot): bot.add_cog(Misc(bot)) \ No newline at end of file diff --git a/cogs/settings.py b/cogs/settings.py index a47de2c..4d09264 100644 --- a/cogs/settings.py +++ b/cogs/settings.py @@ -8,6 +8,9 @@ class Settings(commands.Cog): @bridge.bridge_group(aliases=["set", "s"], invoke_without_command=True) async def settings(self, ctx): await ctx.respond("invalid command, see !help settings for more info") + + @settings.command() + diff --git a/requirements.txt b/requirements.txt index 70335db..186ccd4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ py-cord[audio] pymongo PyNaCl -motor \ No newline at end of file +motor +wavelink \ No newline at end of file