# RT by Rext

from asyncio import run

from discord import Intents, Status, Game, AllowedMentions

from core.bot import RT
from data import SECRET

try: from uvloop import install
except ModuleNotFoundError: ...
else: install()


intents = Intents.default()
intents.message_content = True
intents.members = True
bot = RT(
    allowed_mentions=AllowedMentions(everyone=False), intents=intents,
    status=Status.dnd, activity=Game("起動")
)
bot.print("Now loading...")


try: run(bot.start(SECRET["token"]))
except KeyboardInterrupt: bot.print("Bye")
[(15, 'discord.Intents.default', 'Intents.default', False, 'from discord import Intents, Status, Game, AllowedMentions\n'), (12, 'uvloop.install', 'install', False, 'from uvloop import install\n'), (19, 'discord.AllowedMentions', 'AllowedMentions', False, 'from discord import Intents, Status, Game, AllowedMentions\n'), (20, 'discord.Game', 'Game', False, 'from discord import Intents, Status, Game, AllowedMentions\n')]