Skip to content
This repository has been archived by the owner on Oct 26, 2019. It is now read-only.

Auto-Restart #1

Closed
Pierce01 opened this issue Apr 30, 2016 · 2 comments
Closed

Auto-Restart #1

Pierce01 opened this issue Apr 30, 2016 · 2 comments

Comments

@Pierce01
Copy link

try:
loop.run_until_complete(bot.login("token"))
loop.run_until_complete(bot.connect())
except Exception:
loop.run_until_complete(os.system(""))
finally:
loop.close()

@EJH2 EJH2 closed this as completed Apr 30, 2016
@EJH2
Copy link
Owner

EJH2 commented Apr 30, 2016

Fixed, thank you.

Repository owner locked and limited conversation to collaborators Apr 30, 2016
@EJH2 EJH2 added the invalid label Apr 30, 2016
Repository owner unlocked this conversation Sep 2, 2016
@EJH2 EJH2 added enhancement and removed invalid labels Sep 2, 2016
@Pierce01 Pierce01 changed the title Here is an idea :3 Auto-Restart Sep 2, 2016
@Pierce01
Copy link
Author

Pierce01 commented Sep 2, 2016

Forgot one thing.

loop = asyncio.get_event_loop()

Put that ontop so it looks like this.

loop = asyncio.get_event_loop()

try:
loop.run_until_complete(bot.login("token"))
loop.run_until_complete(bot.connect())
except Exception:
loop.run_until_complete(os.system(""))
finally:
loop.close()`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants