mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 14:27:27 +00:00
Add sending of reconnect message to owner
This commit is contained in:
parent
72055d5eb5
commit
c7fd155939
1 changed files with 3 additions and 0 deletions
|
@ -104,6 +104,8 @@ async def on_ready():
|
||||||
checks.ready = True
|
checks.ready = True
|
||||||
else:
|
else:
|
||||||
print('\n- - - -\nI N F O : reconnected, reinitializing tasks\n- - - -\n')
|
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']:
|
if u.tasks['auto_del']:
|
||||||
for channel in 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 '':
|
if u.config['playing'] is not '':
|
||||||
await bot.change_presence(activity=d.Game(name=u.config['playing']))
|
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')
|
print('\nS U C C E S S\n')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue