-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
30 lines (25 loc) · 901 Bytes
/
main.py
File metadata and controls
30 lines (25 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import discord
from discord.ext import commands
from Thriller_token import *
intents = discord.Intents.default()
intents.message_content = True
class ThrillerBot(commands.Bot):
def __init__(self):
super().__init__(
command_prefix="!",
case_insensitive=False,
description="도움말 제목",
intents=intents.all(),
sync_command=True,
)
self.thrillerCogs = ["Greetings", "Help", "Messages", "Army", "UserManage", "Gamble"]
async def setup_hook(self):
for cog in self.thrillerCogs:
await self.load_extension(f'Cogs.{cog}')
await bot.tree.sync()
async def on_ready(self):
print("ready!")
activity = discord.Game("!도움말 입력")
await self.change_presence(status=discord.Status.online, activity=activity)
bot = ThrillerBot()
bot.run(THRILLER_TOKEN)