next #3

Manually merged
sneak merged 7 commits from next into master 2020-09-09 04:34:12 +00:00
3 changed files with 4 additions and 3 deletions
Showing only changes of commit d22bf0a3b5 - Show all commits

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()
}