_examples/simple/plugins/worldweather/weather.go
Function SlackCommandFunc
has 127 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func SlackCommandFunc(ctx context.Context, input sarah.Input, config sarah.CommandConfig) (*sarah.CommandResponse, error) {
strippedMessage := sarah.StripMessage(MatchPattern, input.Message())
// Share the client instance with later executions
conf, _ := config.(*CommandConfig)