-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.py
33 lines (26 loc) · 698 Bytes
/
index.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
# Imports
import discord
import os
from discord.ext import commands
from dotenv import load_dotenv
# Load .env
load_dotenv()
# Global variables
TOKEN = os.getenv('TOKEN')
OWNER_ID = os.getenv('OWNER_ID')
PRESENCE = os.getenv('PRESENCE')
ACTIVITY = discord.Activity(type=discord.ActivityType.listening, name = PRESENCE)
# Initialize bot
bot = discord.AutoShardedBot(activity = ACTIVITY, debug_guilds=[1089717217618296905]) # Delulu Land
@bot.event
async def on_ready():
print(f"[READY] Logged in as {bot.user}")
# Cogs list
cogs_list = [
'teams',
'presence'
]
# Load cogs
for cog in cogs_list:
bot.load_extension(f'cogs.{cog}')
bot.run(TOKEN)