-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmain.py
23 lines (19 loc) · 918 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
import discord, json, tokens
from discord.ext import commands
error_icon = 'https://cdn.discordapp.com/emojis/678014140203401246.png?v=1'
Client = discord.Client()
initial_extensions = ['cogs.admin', 'cogs.moderation', 'cogs.misc', 'cogs.ticket', 'cogs.events', 'jishaku']
client = commands.Bot(
command_prefix=commands.when_mentioned_or('!'),
case_insensitive=True,
allowed_mentions=discord.AllowedMentions(roles=False, everyone=False, users=False, replied_user=True),
reconnect=True,
intents=discord.Intents.all()
)
if __name__ == '__main__':
for extension in initial_extensions:
try:
client.load_extension(extension)
except Exception as e:
print(f'Quacky Support: {extension} could not be loaded!\n{type(e).__name__}: {e}')
client.run(tokens.bot)