Skip to content

The bot do not work after ~40min dev time #121

@neolectron

Description

@neolectron

After working on the bot for a while, the function that push the commands do stale indefinitely.

The Rest.put call that push all commands blocks, and I believe we do get timeout by discord for doing that so often. (each code reload)

Proposal

Use Rest.get to get all commands schemas and diff with the one we have locally,
if nothing change: don't push,
if a command schema change: push only the changed command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions