mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-22 00:17:50 +00:00
Add autojoin feature
This commit is contained in:
+13
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user