Compare commits
No commits in common. "1b15abb7f7013a540753f41a85de47147cb0b310" and "98e9eb44d3b4921e8de05910fccfa1aeb67a47e1" have entirely different histories.
1b15abb7f7
...
98e9eb44d3
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1 @@
|
||||
sco
|
||||
.DS_Store
|
||||
|
6
Makefile
6
Makefile
@ -42,9 +42,5 @@ build: ./$(FN)
|
||||
go-get:
|
||||
cd cmd/$(FN) && go get -v
|
||||
|
||||
vet:
|
||||
go vet ./...
|
||||
bash -c 'test -z "$$(gofmt -l .)"'
|
||||
|
||||
./$(FN): */*.go cmd/*/*.go go-get vet
|
||||
./$(FN): */*.go cmd/*/*.go go-get
|
||||
cd cmd/$(FN) && go build -o ../../$(FN) $(GOFLAGS) .
|
||||
|
@ -52,7 +52,7 @@ func (b *Bot) identify() {
|
||||
Msg("starting")
|
||||
}
|
||||
|
||||
func (b *Bot) Main() {
|
||||
func (b *Bot) Main() int {
|
||||
println(b.BotName)
|
||||
|
||||
b.StartupUnixTime = time.Now().Unix()
|
||||
@ -107,6 +107,7 @@ func (b *Bot) Main() {
|
||||
|
||||
// You can block forever with
|
||||
select {}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (b *Bot) MakeSureServerIsRunning() {
|
||||
|
@ -8,7 +8,6 @@ import (
|
||||
|
||||
var Version string
|
||||
var Commit string
|
||||
|
||||
var Buildarch string
|
||||
|
||||
func main() {
|
||||
@ -27,5 +26,5 @@ func main() {
|
||||
b.AccountFirstname = "LSV"
|
||||
b.AccountLastname = "Serious Callers Only"
|
||||
})
|
||||
mybot.Main()
|
||||
os.Exit(mybot.Main())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user