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
|
sco
|
||||||
.DS_Store
|
|
||||||
|
6
Makefile
6
Makefile
@ -42,9 +42,5 @@ build: ./$(FN)
|
|||||||
go-get:
|
go-get:
|
||||||
cd cmd/$(FN) && go get -v
|
cd cmd/$(FN) && go get -v
|
||||||
|
|
||||||
vet:
|
./$(FN): */*.go cmd/*/*.go go-get
|
||||||
go vet ./...
|
|
||||||
bash -c 'test -z "$$(gofmt -l .)"'
|
|
||||||
|
|
||||||
./$(FN): */*.go cmd/*/*.go go-get 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() {
|
func (b *Bot) Main() int {
|
||||||
println(b.BotName)
|
println(b.BotName)
|
||||||
|
|
||||||
b.StartupUnixTime = time.Now().Unix()
|
b.StartupUnixTime = time.Now().Unix()
|
||||||
@ -107,6 +107,7 @@ func (b *Bot) Main() {
|
|||||||
|
|
||||||
// You can block forever with
|
// You can block forever with
|
||||||
select {}
|
select {}
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *Bot) MakeSureServerIsRunning() {
|
func (b *Bot) MakeSureServerIsRunning() {
|
||||||
|
@ -8,7 +8,6 @@ import (
|
|||||||
|
|
||||||
var Version string
|
var Version string
|
||||||
var Commit string
|
var Commit string
|
||||||
|
|
||||||
var Buildarch string
|
var Buildarch string
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -27,5 +26,5 @@ func main() {
|
|||||||
b.AccountFirstname = "LSV"
|
b.AccountFirstname = "LSV"
|
||||||
b.AccountLastname = "Serious Callers Only"
|
b.AccountLastname = "Serious Callers Only"
|
||||||
})
|
})
|
||||||
mybot.Main()
|
os.Exit(mybot.Main())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user