now must be formatted/vetted
This commit is contained in:
parent
98e9eb44d3
commit
d22bf0a3b5
2
Makefile
2
Makefile
@ -30,6 +30,7 @@ default: fmt
|
|||||||
fmt:
|
fmt:
|
||||||
go fmt ./...
|
go fmt ./...
|
||||||
goimports -l -w .
|
goimports -l -w .
|
||||||
|
go vet ./...
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
docker build -t $(IMAGENAME) .
|
docker build -t $(IMAGENAME) .
|
||||||
@ -43,4 +44,5 @@ go-get:
|
|||||||
cd cmd/$(FN) && go get -v
|
cd cmd/$(FN) && go get -v
|
||||||
|
|
||||||
./$(FN): */*.go cmd/*/*.go go-get
|
./$(FN): */*.go cmd/*/*.go go-get
|
||||||
|
go vet ./...
|
||||||
cd cmd/$(FN) && go build -o ../../$(FN) $(GOFLAGS) .
|
cd cmd/$(FN) && go build -o ../../$(FN) $(GOFLAGS) .
|
||||||
|
@ -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() {
|
||||||
|
@ -26,5 +26,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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user