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
859fb258d2
commit
6c27e0cafd
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue