Compare commits
3 Commits
98e9eb44d3
...
1b15abb7f7
Author | SHA1 | Date | |
---|---|---|---|
1b15abb7f7 | |||
f6ee57d25c | |||
d22bf0a3b5 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
sco
|
||||
.DS_Store
|
||||
|
6
Makefile
6
Makefile
@ -42,5 +42,9 @@ build: ./$(FN)
|
||||
go-get:
|
||||
cd cmd/$(FN) && go get -v
|
||||
|
||||
./$(FN): */*.go cmd/*/*.go go-get
|
||||
vet:
|
||||
go vet ./...
|
||||
bash -c 'test -z "$$(gofmt -l .)"'
|
||||
|
||||
./$(FN): */*.go cmd/*/*.go go-get 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() {
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
|
||||
var Version string
|
||||
var Commit string
|
||||
|
||||
var Buildarch string
|
||||
|
||||
func main() {
|
||||
@ -26,5 +27,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