Compare commits
3 Commits
98e9eb44d3
...
1b15abb7f7
Author | SHA1 | Date | |
---|---|---|---|
1b15abb7f7 | |||
f6ee57d25c | |||
d22bf0a3b5 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
sco
|
sco
|
||||||
|
.DS_Store
|
||||||
|
6
Makefile
6
Makefile
@ -42,5 +42,9 @@ build: ./$(FN)
|
|||||||
go-get:
|
go-get:
|
||||||
cd cmd/$(FN) && go get -v
|
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) .
|
cd cmd/$(FN) && go build -o ../../$(FN) $(GOFLAGS) .
|
||||||
|
@ -52,7 +52,7 @@ func (b *Bot) identify() {
|
|||||||
Msg("starting")
|
Msg("starting")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *Bot) Main() int {
|
func (b *Bot) Main() {
|
||||||
println(b.BotName)
|
println(b.BotName)
|
||||||
|
|
||||||
b.StartupUnixTime = time.Now().Unix()
|
b.StartupUnixTime = time.Now().Unix()
|
||||||
@ -107,7 +107,6 @@ func (b *Bot) Main() int {
|
|||||||
|
|
||||||
// You can block forever with
|
// You can block forever with
|
||||||
select {}
|
select {}
|
||||||
return 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *Bot) MakeSureServerIsRunning() {
|
func (b *Bot) MakeSureServerIsRunning() {
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
|
|
||||||
var Version string
|
var Version string
|
||||||
var Commit string
|
var Commit string
|
||||||
|
|
||||||
var Buildarch string
|
var Buildarch string
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -26,5 +27,5 @@ func main() {
|
|||||||
b.AccountFirstname = "LSV"
|
b.AccountFirstname = "LSV"
|
||||||
b.AccountLastname = "Serious Callers Only"
|
b.AccountLastname = "Serious Callers Only"
|
||||||
})
|
})
|
||||||
os.Exit(mybot.Main())
|
mybot.Main()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user