-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (24 loc) 路 744 Bytes
/
Copy pathmain.py
File metadata and controls
29 lines (24 loc) 路 744 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
import discord
from discord.ext import commands
initial_extensions = [
"cogs.config",
"cogs.queue",
"cogs.control",
"cogs.commands",
"cogs.embeds",
"cogs.setup"
]
# TODO: Change command prefix to be server-configurable
bot = commands.Bot(command_prefix="?",
description="A bot to help TAs with queuing.")
@bot.event
async def on_ready():
"""Executes when the bot is logged in.
"""
print(
f'\nLogged in as: {bot.user.name} - {bot.user.id}\nDiscord.py Version: {discord.__version__}\n')
if __name__ == '__main__':
for extension in initial_extensions:
bot.load_extension(extension)
token = bot.get_cog("Config").token
bot.run(token, bot=True, reconnect=True)