@node Mail

This commit is contained in:
SpudGunMan
2024-07-19 00:05:41 -07:00
parent 1432a8b72c
commit 5c3f8ad1f4
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ other features
- `bbshelp` returns the following
- `bbslist` list the messages by ID and subject
- `bbsread` read a message example use: `bbsread #1`
- `bbspost` post a message to public board or send a DM example use: `bbspost $subject #message, or bbspost @node #message`
- `bbspost` post a message to public board or send a DM example use: `bbspost $subject #message, or bbspost @nodeNumber #message`
- `bbsdelete` delete a message example use: `bbsdelete #4`
- Other functions
- `whereami` returns the address of location of sender if known
+2 -2
View File
@@ -186,9 +186,9 @@ def auto_response(message, snr, rssi, hop, message_from_id):
body = message.split("#")[1]
bot_response = bbs_post_dm(toNode, body, message_from_id)
else:
bot_response = "example: bbspost @node #message"
bot_response = "example: bbspost @nodeNumber #message"
else:
bot_response = "example: bbspost $subject #message, or bbspost @node #message"
bot_response = "example: bbspost $subject #message, or bbspost @nodeNumber #message"
elif "bbsread" in message.lower():
# Check if the user added a message number to the message
+1 -1
View File
@@ -102,7 +102,7 @@ def bbs_read_message(messageID = 0):
def save_bbsdm():
global bbs_dm
# save the bbs messages to the database file
print ("System: Saving Direct Messages bbsdm.pkl\n")
print ("System: Saving Updated BBS Direct Messages bbsdm.pkl")
with open('bbsdm.pkl', 'wb') as f:
pickle.dump(bbs_dm, f)