Showing 3 of 3 total issues
Bot
has 23 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type Bot struct {
ds dataset
strategy string
lastMessage map[string]string
}
Method Bot.HandleMessage
has 52 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (bot *Bot) HandleMessage(inMessage Message, id string) {
env, err := LoadEnv()
if err != nil {
logrus.Fatal(err)
}
Method Bot.Get
has 5 return statements (exceeds 4 allowed). Open
Open
func (bot *Bot) Get(q string) (string, error) {
if q == debugMessage {
return bot.Debug(), nil
}
if q == fullDebugMessage {