# 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, 10, 15, 27), 'discord.Intents.default', 'Intents.default', ({}, {}), '()', False, 'from discord import Intents, Status, Game, AllowedMentions\n'), ((12, 6, 12, 15), 'uvloop.install', 'install', ({}, {}), '()', False, 'from uvloop import install\n'), ((19, 21, 19, 52), 'discord.AllowedMentions', 'AllowedMentions', (), '', False, 'from discord import Intents, Status, Game, AllowedMentions\n'), ((20, 32, 20, 46), 'discord.Game', 'Game', ({(20, 37, 20, 45): '"""起動"""'}, {}), "('起動')", False, 'from discord import Intents, Status, Game, AllowedMentions\n')]