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]
loglevel = "debug"
serverdisplay = "unixvoid.com underground nethack server"
nethackversion = "3.6.0"
recordlocation = "record"
reclistlocation = "reclist"
bootstrapdelay = 1

3
nethack-launcher.go

@ -20,6 +20,7 @@ type Config struct {
NethackLauncher struct {
Loglevel string
ServerDisplay string
NethackVersion string
RecordLocation string
ReclistLocation string
BootstrapDelay time.Duration
@ -163,7 +164,7 @@ func printUserScreen(redisClient *redis.Client, username string) string {
println("")
println(" l) Logout")
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("")
fmt.Printf(">> ")

Loading…
Cancel
Save