mirror of https://github.com/velour/catbase.git
go fmt because apparently we're all too amazing to handle ill-formatted code, wimps
This commit is contained in:
parent
3cb54e6262
commit
fcfec95c2f
|
@ -4,9 +4,9 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"math/rand"
|
||||
"regexp"
|
||||
"strings"
|
||||
"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))
|
||||
messaged = true
|
||||
}
|
||||
for !p.refreshImpossible() {}
|
||||
for !p.refreshImpossible() {
|
||||
}
|
||||
|
||||
if p.testing {
|
||||
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)) {
|
||||
messaged = true
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue