Add autojoin feature

This commit is contained in:
2021-11-02 22:51:30 +01:00
parent eddc557f81
commit cdf848d87d
3 changed files with 78 additions and 28 deletions
+13 -2
View File
@@ -1,3 +1,5 @@
from typing import Optional
import discord
from discord.ext import tasks, commands
@@ -76,11 +78,20 @@ class InformationCog(commands.Cog, name="Information"):
)
await ctx.send(fmt)
from utils import database
database.AutoJoin.get_channels()
@commands.command(name="help", aliases=["about", "info"], slash_command=True)
@commands.cooldown(1, 1, commands.BucketType.user)
async def about(self, ctx: Context):
async def about(
self,
ctx: Context,
command: Optional[str] = commands.Option(
description="Show help for a command or category"
),
):
"""ChristmasBot command list"""
if None:
if command:
entity = self.bot.get_cog(command) or self.bot.get_command(command)
if entity is None: