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:
|
||||
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) .
|
||||
|
@ -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() {
|
||||
|
@ -26,5 +26,5 @@ func main() {
|
||||
b.AccountFirstname = "LSV"
|
||||
b.AccountLastname = "Serious Callers Only"
|
||||
})
|
||||
os.Exit(mybot.Main())
|
||||
mybot.Main()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user