added hangman

This commit is contained in:
Johannes le Roux
2025-02-20 22:53:28 +02:00
parent 6c0d6fd343
commit 4de2a36099
5 changed files with 128 additions and 2 deletions
File diff suppressed because one or more lines are too long
+1
View File
@@ -331,6 +331,7 @@ try:
videoPoker_enabled = config['games'].getboolean('videoPoker', True)
mastermind_enabled = config['games'].getboolean('mastermind', True)
golfSim_enabled = config['games'].getboolean('golfSim', True)
hangman_enabled = config['games'].getboolean('hangman', True)
# messaging settings
responseDelay = config['messagingSettings'].getfloat('responseDelay', 0.7) # default 0.7
+8 -1
View File
@@ -151,7 +151,12 @@ if golfSim_enabled:
from modules.games.golfsim import * # from the spudgunman/meshing-around repo
trap_list = trap_list + ("golfsim",)
games_enabled = True
if hangman_enabled:
from modules.games.hangman import * # from the spudgunman/meshing-around repo
trap_list = trap_list + ("hangman",)
games_enabled = True
# Games Configuration
if games_enabled is True:
help_message = help_message + ", games"
@@ -172,6 +177,8 @@ if games_enabled is True:
gamesCmdList += "masterMind, "
if golfSim_enabled:
gamesCmdList += "golfSim, "
if hangman_enabled:
gamesCmdList += "hangman, "
gamesCmdList = gamesCmdList[:-2] # remove the last comma
else:
gamesCmdList = ""