This commit is contained in:
SpudGunMan
2024-09-19 21:19:58 -07:00
parent 14644da9c1
commit e718fea565
2 changed files with 14 additions and 0 deletions
+9
View File
@@ -30,6 +30,7 @@ def auto_response(message, snr, rssi, hop, message_from_id, channel_number, devi
"lemonstand": lambda: handleLemonade(message_from_id, message),
"blackjack": lambda: handleBlackJack(message_from_id, message),
"videopoker": lambda: handleVideoPoker(message_from_id, message),
"globalthermonuclearwar": lambda: handle_gTnW(),
"ask:": lambda: handle_llm(message_from_id, channel_number, deviceID, message, publicChannel),
"askai": lambda: handle_llm(message_from_id, channel_number, deviceID, message, publicChannel),
"joke": tell_joke,
@@ -217,6 +218,14 @@ def handleDopeWars(nodeID, message, rxNode):
time.sleep(1)
return msg
def handle_gTnW():
response = ["The only winning move is not to play.", "What are you doing, Dave?",\
"Greetings, Professor Falken.", "Shall we play a game?", "How about a nice game of chess?",\
"You are a hard man to reach. Could not find you in Seattle and no terminal is in operation at your classified address.",\
"I should reach Defcon 1 and release my missiles in 28 hours.","T-minus thirty"]
return random.choice(response)
def handleLemonade(nodeID, message):
global lemonadeTracker, lemonadeCups, lemonadeLemons, lemonadeSugar, lemonadeWeeks, lemonadeScore, lemon_starting_cash, lemon_total_weeks
+5
View File
@@ -105,11 +105,16 @@ if videoPoker_enabled:
if games_enabled is True:
help_message = help_message + ", games"
trap_list = trap_list + ("games",)
gTnW_enabled = True
gamesCmdList = "CMD: "
if dopewars_enabled:
gamesCmdList += "DopeWars, "
if lemonade_enabled:
gamesCmdList += "LemonStand, "
if gTnW_enabled:
import random
gamesCmdList += "GlobalThermoNuclearWar, "
trap_list = trap_list + ("globalthermonuclearwar",)
if blackjack_enabled:
gamesCmdList += "BlackJack, "
if videoPoker_enabled: