From 4b0b074ba7c2227570697b2b612b44044c2a66d3 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 5 Oct 2025 09:08:47 -0700 Subject: [PATCH] mathWasntMathn' @mesb1 thanks --- README.md | 2 +- modules/games/joke.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a2513d8..60fb4d7 100644 --- a/README.md +++ b/README.md @@ -523,7 +523,7 @@ I used ideas and snippets from other responder bots and want to call them out! - **mikecarper**: ideas, and testing. hamtest - **c.merphy360**: high altitude alerts - **Iris**: testing and finding 🐞 -- **Cisien, bitflip, **Woof**, **propstg**, **trs2982**, **Josh** and Hailo1999**: For testing and feature ideas on Discord and GitHub. +- **Cisien, bitflip, Woof, propstg, trs2982, Josh, mesb1, and Hailo1999**: For testing and feature ideas on Discord and GitHub. - **Meshtastic Discord Community**: For tossing out ideas and testing code. ### Tools diff --git a/modules/games/joke.py b/modules/games/joke.py index 964d43f..7733870 100644 --- a/modules/games/joke.py +++ b/modules/games/joke.py @@ -2,6 +2,7 @@ # The emoji table of contents is used to replace words in the joke with emojis # As a Ham, is this obsecuring the meaning of the joke? Or is it enhancing it? from dadjokes import Dadjoke # pip install dadjokes +import random from modules.log import * lameJokes = [ @@ -174,5 +175,5 @@ def tell_joke(nodeID=0): renderedLaugh = dadjoke.joke return renderedLaugh except Exception as e: - return lameJokes[nodeID % len(lameJokes)] + return random.choice(lameJokes)