Compare commits

...

3 Commits

Author SHA1 Message Date
Jeffrey Paul 1b15abb7f7 should err on lack of vet/fmt now
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details
2020-09-08 21:32:16 -07:00
Jeffrey Paul f6ee57d25c now finally errors on bad formatting! 2020-09-08 21:29:42 -07:00
Jeffrey Paul 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
.DS_Store

View File

@ -42,5 +42,9 @@ build: ./$(FN)
go-get:
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) .

View File

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

View File

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