BaseBot
A subclass of discord.ext.commands.Bot. This bot implement some manage commands errors.
import discord
from discord_slash import SlashCommand
import baseDiscord
mybot = baseDiscord.BaseBot(
token="my token", # token of your bot
prefix="!", # prefix of your bot
color=discord.Colour.blue(), # color embed
color_error=discord.Colour.red(), # color embed for error message
intents=discord.Intents.all() # intents
)
slash = SlashCommand(bot, sync_commands=True) # For slash commandsParameters
BaseBot.__init__(self, token: str, *args, color: discord.Colour, color_error: discord.Colour, send_errors: bool = False, permissions: int = 0, logger=None, **kwargs)Attributes
Methods
Methods overwrite
Last updated