bot¶
Entry point for the Byte Discord bot.
Byte Bot.
- class src.byte.bot.Byte(command_prefix: list[str], intents: Intents, activity: Activity)[source]¶
Bases:
Bot
Byte Bot Base Class.
Initialize the bot.
- Parameters:
command_prefix (str) – Command prefix for the bot.
intents (discord.Intents) – Intents for the bot.
activity (discord.Activity) – Activity for the bot.
- __init__(command_prefix: list[str], intents: Intents, activity: Activity) None [source]¶
Initialize the bot.
- Parameters:
command_prefix (str) – Command prefix for the bot.
intents (discord.Intents) – Intents for the bot.
activity (discord.Activity) – Activity for the bot.
- async on_message(message: Message) None [source]¶
Handle message events.
- Parameters:
message – Message object.
- async on_command_error(ctx: Context, error: CommandError) None [source]¶
Handle command errors.
- Parameters:
ctx – Context object.
error – Error object.