Skip to content
This repository was archived by the owner on Aug 13, 2023. It is now read-only.
This repository was archived by the owner on Aug 13, 2023. It is now read-only.

Create a (shell/bash?) start script for the bot #24

@Amunak

Description

@Amunak

The bot needs a start script that:

  • runs the bot in a loop in case it crashes so that it can get back up
  • listens for the bot's exit code and can detect:
    • proper shutdowns (initiated by, say, the !quit command) and end the loop
    • recoverable failure states (that just restart the bot)
    • unrecoverable failure states (that end the loop) - I'm not sure if we can differentiate between the two
    • proper restarts (using the !restart command and such)
  • optionally logs all of the bot's (console) output, or logs just the sessions where the bot errors out, etc.
  • can run the bot as a daemon
  • possibly tries to run the bot in a tmux or screen session (but I'm not sure if implementing this can be clean)

We don't need all of that, but a loop that can at least tell apart a !restart or crash/error/whatever and !quit would be really helpful.

We could also provide some init scripts or systemd unit files, but I don't think it's necessary.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions