Skip to content

[Refactor] don't mix helper logic with business logic #41

Description

@DebVortex

There are several functions and modules in the helper directory that gets passed down the bot. In the end, the helper function even sends out messages via the bot.

I suggest to remove all occurrences of the bot from any helper function and let the bot functions only get called inside the handler functions. This way, the code can be even more DRY and would allow reuse of existing functions.

For example, currently the inline_query can not use the "message formating feature" of the sendDepartureMessage, because it automatically sends out a message which.

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