Skip to content

Offer alternative method to automatically skip update check at startup that doesn't require manual response to an input() #22

Open
@simonhollingshead

Description

@simonhollingshead

I'm running this bot as a systemd service on my VPS, so it starts automatically if the machine needs to reboot for a kernel upgrade.

Waiting for user supplied responses using input() is therefore not a great idea, it'll just make the launch hang.

Therefore, I'd like to propose that the version prompt (https://github.com/Reloisback/Whiteout-Survival-Discord-Bot/blob/main/main.py#L168) should be able to be skipped with a flag (i.e. using argparse). It's probably right that you still do the check and log the fact that you've checked (so an administrator can know that they need to do an update at a time that suits them), but you could offer --no-update and --always-update to act like a default 'y' or 'n' press to the request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions