-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.py
More file actions
35 lines (22 loc) · 730 Bytes
/
Main.py
File metadata and controls
35 lines (22 loc) · 730 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
30
31
32
33
34
35
# Pre-requisites
# pip install -U python-dotenv
# pip install -U discord.py
# pip install -U Pillow
# pip install sqlalchemy
# Set Discord Bot Token as Environmental Variable "ETERNAL_BOT_DISCORD_TOKEN"
import os
from discord.ext import commands
from dotenv import load_dotenv
load_dotenv()
TOKEN = os.getenv('ETERNAL_BOT_DISCORD_TOKEN')
bot = commands.Bot(command_prefix='?', description='Eternal Bot')
# Keep this for now, users might get re-enabled later.
# cogs = ['cogs.Users', 'cogs.Raids']
cogs = ['cogs.Raids', 'cogs.Greeter']
for cog in cogs:
bot.load_extension(cog)
@bot.event
async def on_ready():
print('Logged in as ' + bot.user.name)
print('------')
bot.run(TOKEN, bot=True, reconnect=True)