|
@ -36,6 +36,7 @@ logging.basicConfig(filename='console.log', |
|
|
) |
|
|
) |
|
|
logging.getLogger().addHandler(logging.StreamHandler(sys.stdout)) |
|
|
logging.getLogger().addHandler(logging.StreamHandler(sys.stdout)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@bot.event |
|
|
@bot.event |
|
|
async def on_ready(): |
|
|
async def on_ready(): |
|
|
# Marks bot as running |
|
|
# Marks bot as running |
|
@ -207,7 +208,11 @@ async def on_message(message): |
|
|
await message.channel.send(embed=embed_var) |
|
|
await message.channel.send(embed=embed_var) |
|
|
|
|
|
|
|
|
timings = bot.get_cog('Timings') |
|
|
timings = bot.get_cog('Timings') |
|
|
|
|
|
try: |
|
|
await timings.analyze_timings(message) |
|
|
await timings.analyze_timings(message) |
|
|
|
|
|
except TypeError: |
|
|
|
|
|
await message.channel.send("Uhh I seem to be broken. Please wait one moment as I get a dev to fix me..." |
|
|
|
|
|
"\n<@322764955516665856> YOU GOT A BUG COME FIX IT.") |
|
|
|
|
|
|
|
|
await bot.process_commands(message) |
|
|
await bot.process_commands(message) |
|
|
|
|
|
|
|
@ -478,6 +483,7 @@ async def before_updater(): |
|
|
logging.info('waiting to enter loop') |
|
|
logging.info('waiting to enter loop') |
|
|
await bot.wait_until_ready() |
|
|
await bot.wait_until_ready() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for file_name in os.listdir('./cogs'): |
|
|
for file_name in os.listdir('./cogs'): |
|
|
if file_name.endswith('.py'): |
|
|
if file_name.endswith('.py'): |
|
|
bot.load_extension(f'cogs.{file_name[:-3]}') |
|
|
bot.load_extension(f'cogs.{file_name[:-3]}') |
|
|