go fmt because apparently we're all too amazing to handle ill-formatted code, wimps

This commit is contained in:
Scott Kiesel 2020-03-13 10:23:00 -04:00 committed by Chris Sexton
parent 3cb54e6262
commit fcfec95c2f
2 changed files with 23 additions and 21 deletions

View File

@ -4,9 +4,9 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"math/rand"
"net/http" "net/http"
"net/url" "net/url"
"math/rand"
"regexp" "regexp"
"strings" "strings"
"time" "time"
@ -72,7 +72,8 @@ func (p *Impossible) message(c bot.Connector, kind bot.Kind, message msg.Message
p.b.Send(c, bot.Message, message.Channel, fmt.Sprintf("The last impossible wikipedia article was: \"%s\"", p.title)) p.b.Send(c, bot.Message, message.Channel, fmt.Sprintf("The last impossible wikipedia article was: \"%s\"", p.title))
messaged = true messaged = true
} }
for !p.refreshImpossible() {} for !p.refreshImpossible() {
}
if p.testing { if p.testing {
p.b.Send(c, bot.Message, message.Channel, p.title) p.b.Send(c, bot.Message, message.Channel, p.title)
@ -87,7 +88,8 @@ func (p *Impossible) message(c bot.Connector, kind bot.Kind, message msg.Message
} else if strings.Contains(lowercase, strings.ToLower(p.title)) { } else if strings.Contains(lowercase, strings.ToLower(p.title)) {
messaged = true messaged = true
p.b.Send(c, bot.Message, message.Channel, fmt.Sprintf("You guessed the last impossible wikipedia article: \"%s\"", p.title)) p.b.Send(c, bot.Message, message.Channel, fmt.Sprintf("You guessed the last impossible wikipedia article: \"%s\"", p.title))
for !p.refreshImpossible() {} for !p.refreshImpossible() {
}
} }
return messaged return messaged