runabot/Christmas/__main__.py
2023-12-11 21:22:00 +09:00

24 lines
729 B
Python

import sentry_sdk
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, inital_sentry_sdk
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.default()
)
config = ChristmasConfig()
DiscordpyKoreanbots(bot, config.KOREANBOT_TOKEN, run_task=True)
load_cogs(bot)
apply_uvloop()
inital_sentry_sdk(config.SENTRY_DSN)
bot.run()