from types import SimpleNamespace from typing import Any, cast from discord import AutoShardedBot, Intents from discord.ext import commands, tasks from Christmas.discord import Christmas, load_cogs, apply_uvloop from Christmas.config import ChristmasConfig from koreanbots.integrations.discord import DiscordpyKoreanbots if __name__ == "__main__": bot = Christmas( command_prefix=commands.when_mentioned_or("c!"), case_insensitive=True, intents=Intents.all() ) config = ChristmasConfig() DiscordpyKoreanbots(bot, config.KOREANBOT_TOKEN, run_task=True) load_cogs(bot) apply_uvloop() bot.run()