package
0.0.0-20240415142148-378d620c8b69
Repository: https://github.com/johnmikee/cuebert.git
Documentation: pkg.go.dev
# Functions
AuthorizationMiddleware checks if a user is authorized to use a given command.
DefaultHandlers registers the default handlers.
FuzzyMatchOpt takes a string and a list of options and returns the closest match.
LoggingInteractionMiddleware logs all interactions.
OptionalBool takes a slack.OptionBlockObject and a current bool and returns the selected value or the current value.
OptionalInt takes a string and a current int and returns the selected value or the current value.
OptionalStr takes a string and a current string and returns the selected value or the current value.
No description provided by the author
OptionalStrSelect takes a slack.OptionBlockObject and a current string and returns the selected value or the current value.
No description provided by the author
RegisterHandlers registers the handlers.
RegisterMiddleWares registers the middlewares.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Handle is a struct that holds the bot, handlers, logger, and alert channel.
Middleware is a struct that holds the bot, users, and logger.
# Type aliases
Handlers is a type for the different handlers that can be registered.
Middlewares is a type for the different middlewares that can be registered.