mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-07 17:32:52 +02:00
@node Mail
This commit is contained in:
@@ -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
@@ -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
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user