Update bbstools.py

This commit is contained in:
SpudGunMan
2024-06-25 17:47:36 -07:00
parent 6816d6e618
commit 11d077a527
+2 -1
View File
@@ -4,7 +4,7 @@
from dadjokes import Dadjoke # pip install dadjokes
#global message list, later we will use a database on disk
bbs_messages = []
bbs_messages = [[1, "Welcome to meshBBS", "Welcome to the BBS, please post a message!"]]
def tell_joke():
# tell a dad joke, does it need an explanationn :)
@@ -16,6 +16,7 @@ def bbs_help():
return "Commands: 'bbslist', 'bbspost $subject #message', 'bbsread #', 'bbsdelete #'"
def bbs_list_messages():
#print (f"System: raw bbs_messages: {bbs_messages}")
# return a string with new line for each message subject in the list bbs_messages
message_list = ""
for message in bbs_messages: