5 Commits

Author SHA1 Message Date
neko404notfound
7f2f4a32ca
Fixed a stupid typo. 2018-06-20 18:39:47 +01:00
neko404notfound
becc2d3ade
Update sebi_machine_launcher.sh 2018-06-20 18:03:24 +01:00
neko404notfound
6b9a9cc968
Update sebi_machine_launcher.sh 2018-06-20 18:00:16 +01:00
neko404notfound
76f7e0c36e Requirements and traps.
Requirements file was missing five requirements. This might be useful to
have fixed, so I sorted that out.
    - opuslib
    - youtube_dl
    - asyncpg
    - PyNaCl
    - dataclasses

Made the sebi_machine_launcher.sh executable only under the current
owner.

Added a SIGINT trap to sebi_machine_launcher.sh. You are only restarting
while the bot returns a non-truthy exit code (i.e. non zero). SIGINT,
which triggers the Python KeyboardInterrupt builtin exception being
raised will, if unhandled, result in a non-zero exit code. Thus, if you
provide a keyboard interrupt, you will just have the bot instantly
respawn. This is fine until you have a one second lag over SSH. Then my
wrist starts to hurt from spamming CTRL-C so many times until the bot
process dies.
2018-06-20 17:51:25 +01:00
Dustin Pianalto
3a76598766 Add wrapper script for easy restarts. 2018-06-14 10:18:40 -08:00