Browse Source

Add nethack run command

master
Matthew Faltys 5 years ago
parent
commit
a28d524a8d
  1. 1
      config.gcfg
  2. 3
      nethack-launcher.go

1
config.gcfg

@ -1,6 +1,7 @@
[nethacklauncher] [nethacklauncher]
loglevel = "debug" loglevel = "debug"
serverdisplay = "unixvoid.com underground nethack server" serverdisplay = "unixvoid.com underground nethack server"
nethackversion = "3.6.0"
recordlocation = "record" recordlocation = "record"
reclistlocation = "reclist" reclistlocation = "reclist"
bootstrapdelay = 1 bootstrapdelay = 1

3
nethack-launcher.go

@ -20,6 +20,7 @@ type Config struct {
NethackLauncher struct { NethackLauncher struct {
Loglevel string Loglevel string
ServerDisplay string ServerDisplay string
NethackVersion string
RecordLocation string RecordLocation string
ReclistLocation string ReclistLocation string
BootstrapDelay time.Duration BootstrapDelay time.Duration
@ -163,7 +164,7 @@ func printUserScreen(redisClient *redis.Client, username string) string {
println("") println("")
println(" l) Logout") println(" l) Logout")
println(" w) Watch games in progress") println(" w) Watch games in progress")
println(" p) Play NetHack 3.6.0") fmt.Printf(" p) Play NetHack %s\n", config.NethackLauncher.NethackVersion)
println(" q) Quit") println(" q) Quit")
println("") println("")
fmt.Printf(">> ") fmt.Printf(">> ")

Loading…
Cancel
Save