From c7fd155939132b4fbc38ce7e410cc7945a42e6f1 Mon Sep 17 00:00:00 2001 From: Dylan Dizon Date: Wed, 5 Sep 2018 22:03:54 -0400 Subject: [PATCH] Add sending of reconnect message to owner --- src/run.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/run.py b/src/run.py index bb9d345..38b251d 100644 --- a/src/run.py +++ b/src/run.py @@ -104,6 +104,8 @@ async def on_ready(): checks.ready = True else: print('\n- - - -\nI N F O : reconnected, reinitializing tasks\n- - - -\n') + reconnect = await bot.get_user(u.config['owner_id']).send('**RECONNECTING**') + await reconnect.add_reaction('\N{SLEEPING SYMBOL}') if u.tasks['auto_del']: for channel in u.tasks['auto_del']: @@ -116,6 +118,7 @@ async def on_ready(): if u.config['playing'] is not '': await bot.change_presence(activity=d.Game(name=u.config['playing'])) + await reconnect.add_reaction('\N{WHITE HEAVY CHECK MARK}') print('\nS U C C E S S\n')