-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot.py
More file actions
33 lines (27 loc) · 763 Bytes
/
bot.py
File metadata and controls
33 lines (27 loc) · 763 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
31
32
33
import os
import discord
import jishaku
from discord.ext import commands
import config
if config.BOT.TEST_MODE:
prefix = config.BOT.TEST_PREFIX
token = config.BOT.TEST_TOKEN
else:
prefix = config.BOT.BOT_PREFIX
token = config.BOT.BOT_TOKEN
bot = commands.AutoShardedBot(
command_prefix=prefix,
intents=None,
help_command=None,
owner_ids=config.BOT.OWNER_IDS,
)
bot.load_extension("jishaku")
print("✅ | 로드 - Jishaku")
for file in os.listdir("cogs/"):
if file.endswith(".py"):
try:
bot.load_extension(f"cogs.{file[:-3]}")
print(f"✅ | 로드 - cogs.{file[:-3]}")
except Exception as error:
print(f"❌ | 로드 실패 - cogs.{file[:-3]} ({error})")
bot.run(token)