import logging import discord from discord.ext import commands _logger = logging.getLogger(__name__) class LenaverseBot(commands.Bot): def __init__(self) -> None: intents = discord.Intents.default() intents.message_content = True super().__init__( command_prefix="!", intents=intents, ) async def on_ready(self) -> None: assert self.user is not None _logger.info(f"{self.user.name} has connected to Discord!")