-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestbot.py
33 lines (28 loc) · 880 Bytes
/
testbot.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
# bot.py
import os
import random
import discord
import cogs
from dotenv import load_dotenv
from discord.ext import commands
load_dotenv()
token = os.getenv('TEST_TOKEN')
bot = commands.Bot(command_prefix="$")
bot.remove_command('help')
extentions = [ 'cogs.cmd.cmd',
'cogs.moderation.moderation',
'cogs.FFXIV.FFXIV',
'cogs.error.error'
]
@bot.event
async def on_ready():
print(
f'{bot.user} has connected\n'
'-------------------------------------------------------' )
if __name__ == "__main__":
for extention in extentions:
try:
bot.load_extension(extention)
except Exception as error:
print("oopsy whoopsy i made a fucky wucky!! {} failed to woad owo [{}]".format(extention, error))
bot.run(token)