Compare commits

..

3 Commits

Author SHA1 Message Date
1b15abb7f7 should err on lack of vet/fmt now
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2020-09-08 21:32:16 -07:00
f6ee57d25c now finally errors on bad formatting! 2020-09-08 21:29:42 -07:00
d22bf0a3b5 now must be formatted/vetted 2020-09-08 21:21:13 -07:00
4 changed files with 9 additions and 4 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
sco sco
.DS_Store

View File

@ -42,5 +42,9 @@ build: ./$(FN)
go-get: go-get:
cd cmd/$(FN) && go get -v cd cmd/$(FN) && go get -v
./$(FN): */*.go cmd/*/*.go go-get vet:
go vet ./...
bash -c 'test -z "$$(gofmt -l .)"'
./$(FN): */*.go cmd/*/*.go go-get vet
cd cmd/$(FN) && go build -o ../../$(FN) $(GOFLAGS) . cd cmd/$(FN) && go build -o ../../$(FN) $(GOFLAGS) .

View File

@ -52,7 +52,7 @@ func (b *Bot) identify() {
Msg("starting") Msg("starting")
} }
func (b *Bot) Main() int { func (b *Bot) Main() {
println(b.BotName) println(b.BotName)
b.StartupUnixTime = time.Now().Unix() b.StartupUnixTime = time.Now().Unix()
@ -107,7 +107,6 @@ func (b *Bot) Main() int {
// You can block forever with // You can block forever with
select {} select {}
return 0
} }
func (b *Bot) MakeSureServerIsRunning() { func (b *Bot) MakeSureServerIsRunning() {

View File

@ -8,6 +8,7 @@ import (
var Version string var Version string
var Commit string var Commit string
var Buildarch string var Buildarch string
func main() { func main() {
@ -26,5 +27,5 @@ func main() {
b.AccountFirstname = "LSV" b.AccountFirstname = "LSV"
b.AccountLastname = "Serious Callers Only" b.AccountLastname = "Serious Callers Only"
}) })
os.Exit(mybot.Main()) mybot.Main()
} }