-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain.py
39 lines (33 loc) · 829 Bytes
/
main.py
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
34
35
36
37
38
39
import os
import discord
from discord.ext import commands
from dotenv import load_dotenv
load_dotenv()
TOKEN = os.getenv("DISCORD_TOKEN")
discord_intents = discord.Intents.default()
discord_intents.message_content = True
bot = commands.Bot(command_prefix="g.", intents=discord_intents)
def load() -> None:
cogs = [
"alerts",
"deepl",
"detect_ai",
"detect_code",
"detect_media_spam",
"dictionary",
"message_counter",
"misc",
"moderation",
"pubchem",
"rules",
"staffapps_frontend", # v2 for users
"staffapps_backend", # v2 for staff
"surveys",
"tips",
"wikipedia",
]
for cog in cogs:
bot.load_extension(f"cogs.{cog}")
if __name__ == "__main__":
load()
bot.run(TOKEN)