Skip to content

Bot fails if network isn't up yet #1

@BitiTiger

Description

@BitiTiger

When running the bot in a container, the bot will crash and the service will fail if the network takes too long to initialize. The crash report states that it could not connect to discord's api and then exits.

possible solutions:

  • ping discord's api and only start the bot once the ping succeeds
    • easiest solution
    • only works at startup
  • keep trying to connect until it finally succeeds
    • slightly harder to implement
    • can work any time (ex: connection restarts while bot is running)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions