-
Notifications
You must be signed in to change notification settings - Fork 1
/
bot.py
37 lines (30 loc) · 878 Bytes
/
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
import os
import discord
from dotenv import load_dotenv
from discord.utils import get
from discord.ext import commands
import random
import jishaku
# get tokens as environment variables (for security)
load_dotenv()
TOKEN = os.getenv('DISCORD_TOKEN')
# initiate client
intents = discord.Intents.all()
client = commands.Bot(
command_prefix=commands.when_mentioned_or('!'), intents=intents)
client.v = 0
client.v2 = 0
client.v3 = 0
client.v4 = 0
client.v5 = 0
client.sent = False
client.roledict = {}
client.roledict2 = {"🤖": "AI/Machine Learning", "🌐": "Web Development",
"🎮": "Game Design", "📈": "Data Science", "🔎": "Algorithms"}
for cog in ['cogs.events', 'cogs.commands', 'cogs.actions', 'jishaku']:
try:
client.load_extension(cog)
except:
print(f'Could not load cog {cog}')
# run client
client.run(TOKEN)