Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Clean up the public API #19

@bnjbvr

Description

@bnjbvr

It would be nice to generally clean up the public API:

  • BotConfig could use a builder pattern to construct itself, with a few defaults.
  • the run function might be split up, with the AppCtx being refactored into a TrinityBot that just contains what's needed to make the core things work. Then it's the responsibility of the library user to create a TrinityBot, and run it.
  • Splitting the lib and binary into two different crates would also help trim down dependency usage in the lib.

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