-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.py
executable file
·52 lines (38 loc) · 1.02 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env python
import asyncio
import discord
from discord.ext.commands import Bot
from discord.ext import commands
from discord.utils import get
from discord.utils import find
client = discord.Client()
# "Intents" are permissions set up by Discord.
intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix = "!", intents=intents)
bot.remove_command("help")
# These are all the cogs. When you add a command or a task, add a
# reference point to this list using the "folder.file" format.
cogs = [
"commands.help",
"commands.g",
"commands.name",
"commands.test",
"commands.maps",
"commands.pick",
"commands.strike",
"commands.unstrike",
"commands.addids",
"commands.newseason",
"commands.automated"
]
if __name__ == "__main__":
for cog in cogs:
bot.load_extension(cog)
@bot.event
async def on_ready():
print("Bot is ready!")
with open("token.txt", "r") as f:
lines = f.readlines()
token = lines[0].strip()
bot.run(token)