lenaverse-bot/lenaverse_bot/core/bot.py

22 lines
496 B
Python
Raw Normal View History

2023-11-17 09:53:10 +00:00
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!")