-
Notifications
You must be signed in to change notification settings - Fork 0
/
bot.py
51 lines (34 loc) · 1.26 KB
/
bot.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
40
41
42
43
44
45
46
47
48
49
50
51
import os
from os import getenv
import discord
from cogs.help_commands import EmbedHelpCommand
from discord.ext import commands
from dotenv import load_dotenv
load_dotenv() # For the env file
os.environ["JISHAKU_NO_UNDERSCORE"] = "True"
os.environ["JISHAKU_NO_DM_TRACEBACK"] = "True"
os.environ["JISHAKU_HIDE"] = "True"
intents = discord.Intents.default() # All but the two privileged ones
intents.members = True # Subscribe to the Members intent
bot = commands.Bot(
command_prefix="?",
allowed_mentions=discord.AllowedMentions(
users=False, # Whether to ping individual user @mentions
everyone=False, # Whether to ping @everyone or @here mentions
roles=False, # Whether to ping role @mentions
replied_user=False, # Whether to ping on replies to messages
),
intents=intents,
help_command=EmbedHelpCommand(),
)
bot.load_extension("cogs.owner_commands")
bot.load_extension("jishaku")
bot.load_extension("cogs.admin")
bot.load_extension("cogs.error_handler")
bot.load_extension("cogs.message_attachments")
bot.load_extension("cogs.embed")
bot.load_extension("cogs.embed_no_timezone")
bot.load_extension("cogs.embed_day_timezone")
bot.load_extension("cogs.embed_days_timezone")
token = getenv("TOKEN")
bot.run(token)