now must be formatted/vetted

This commit is contained in:
Jeffrey Paul 2020-09-08 21:21:13 -07:00
parent 98e9eb44d3
commit d22bf0a3b5
3 changed files with 4 additions and 3 deletions

View File

@ -30,6 +30,7 @@ default: fmt
fmt:
go fmt ./...
goimports -l -w .
go vet ./...
docker-build:
docker build -t $(IMAGENAME) .
@ -43,4 +44,5 @@ go-get:
cd cmd/$(FN) && go get -v
./$(FN): */*.go cmd/*/*.go go-get
go 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

@ -26,5 +26,5 @@ func main() {
b.AccountFirstname = "LSV"
b.AccountLastname = "Serious Callers Only"
})
os.Exit(mybot.Main())
mybot.Main()
}