runabot/Christmas/__main__.py

23 lines
665 B
Python
Raw Normal View History

import sentry_sdk
2023-11-25 15:47:09 +00:00
from types import SimpleNamespace
from typing import Any, cast
from discord import AutoShardedBot, Intents
from discord.ext import commands, tasks
2023-11-25 17:28:48 +00:00
from Christmas.discord import Christmas, load_cogs, apply_uvloop
from Christmas.config import ChristmasConfig
from koreanbots.integrations.discord import DiscordpyKoreanbots
2023-11-25 15:47:09 +00:00
if __name__ == "__main__":
bot = Christmas(
command_prefix=commands.when_mentioned_or("c!"),
case_insensitive=True,
2023-11-26 04:27:34 +00:00
intents=Intents.all()
2023-11-25 15:47:09 +00:00
)
config = ChristmasConfig()
DiscordpyKoreanbots(bot, config.KOREANBOT_TOKEN, run_task=True)
2023-11-25 17:28:48 +00:00
load_cogs(bot)
apply_uvloop()
2023-11-25 15:47:09 +00:00
bot.run()