runabot/Christmas/__main__.py

18 lines
439 B
Python
Raw Normal View History

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
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
)
2023-11-25 17:28:48 +00:00
load_cogs(bot)
apply_uvloop()
2023-11-25 15:47:09 +00:00
bot.run()