6693186d40
This Commit Contained Rebrand Patches
24 lines
699 B
Python
24 lines
699 B
Python
import os
|
|
|
|
from typing import Any, cast
|
|
from dotenv import find_dotenv, load_dotenv
|
|
|
|
from discord import AutoShardedBot, Intents
|
|
from discord.ext import commands, tasks
|
|
|
|
from RUNA.discord import Runa, load_cogs, apply_uvloop, init_sentry_sdk
|
|
from koreanbots.integrations.discord import DiscordpyKoreanbots
|
|
|
|
load_dotenv(find_dotenv())
|
|
|
|
if __name__ == "__main__":
|
|
bot = Runa(
|
|
command_prefix=commands.when_mentioned_or("r!"),
|
|
case_insensitive=True,
|
|
intents=Intents.default()
|
|
)
|
|
DiscordpyKoreanbots(bot, os.getenv("KOREANBOT_TOKEN"), run_task=True)
|
|
load_cogs(bot)
|
|
apply_uvloop()
|
|
init_sentry_sdk(os.getenv("SENTRY_DSN"))
|
|
bot.run() |