ZeroKnight / ZeroBot

My personal IRC/Multi-protocol Bot created (and re-created) for education and amusement.
MIT License
1 stars 0 forks source link

Core command output classes #5

Closed ZeroKnight closed 4 years ago

ZeroKnight commented 4 years ago

Need some small dataclasses encapsulating core command output that will be passed to core_command_* callbacks.

CommandHelp

Encapsulates the end result of a command help request, such as:

This will shift the burden of performing all the string manipulation on the result of format_help() from the core_command_help callback in protocol modules over to Core.

VersionInfo

Provides current version, release date, and anything else version-related appropriate to ZeroBot. This will likely get more attributes in the future.

ZeroKnight commented 4 years ago

Resolved in 5a4188eaab6003a40487b4053099600d7691a7e8.