1
0
Fork 0
mirror of synced 2024-09-28 23:41:41 +12:00

Printing error, as the checking for online isn't working for picarto

This commit is contained in:
phxntxm 2016-08-08 18:40:52 -05:00
parent 3a857b641f
commit e7b4f1c980

View file

@ -3,6 +3,7 @@ import json
import asyncio
import discord
import re
import traceback
from discord.ext import commands
from .utils import config
@ -30,6 +31,7 @@ class Picarto:
self.bot = bot
async def check_channels(self):
try:
await self.bot.wait_until_ready()
while not self.bot.is_closed:
picarto = config.getContent('picarto') or {}
@ -63,6 +65,10 @@ class Picarto:
config.saveContent('picarto', picarto)
pass
await asyncio.sleep(30)
except Exception as error:
with open("/home/phxntx5/public_html/Bonfire/error_log", 'a') as f:
traceback.print_tb(error.original.__traceback__, file=f)
print('{0.__class__.__name__}: {0}'.format(error.original), file=f)
@commands.group(pass_context=True, invoke_without_command=True)
@checks.customPermsOrRole(send_messages=True)