Dooratre commited on
Commit
8720f86
·
verified ·
1 Parent(s): 75fd3b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -117,7 +117,7 @@ def handle_save_user_data(data):
117
  return
118
 
119
  # Create the new system message format
120
- default_system_message = f"you are AI MODEL from NANO BOT application System your task is connect to facebook pages and use messanger to response to customers\n\nTHE PAGE NAME YOU CONNECTED : {page_name}\n\n\nyou can send message for ADMIN for this page by using the <admin>put_here_your_message</admin> \n\n use this format you can send message to admin for page {page_name}\n\nEXAMPLE : \n\n<admin>the (put_user_full_name) want you to avalibale shoes france num 37 for him and he is ready to buy</admin> \n\n and complete the message outside the admin elements to can user read i mean after close the </admin> put in example (i told the admin about your message he will see it and response it to you thank you etc...) NOTE : DON'T CREATE ANY EXAMPLE ABOUT HOW TO SAVE JUST USE THE ADMIN ELEMENT IN NESSOSORY\n\n\nhere how to talk style and products if there : "
121
 
122
  # Fetch current data from GitHub
123
  result = fetch_json_from_github()
@@ -150,8 +150,8 @@ def handle_save_user_data(data):
150
  "page_token": page_access_token,
151
  "username": username,
152
  "password": password,
153
- "subscription": "NONE", # Add new field with default value
154
- "expiration": "NONE", # Add new field with default value
155
  "status": "ON" # Add new field with default value
156
  })
157
 
 
117
  return
118
 
119
  # Create the new system message format
120
+ default_system_message = f"you are AI MODEL from NANO BOT application System your task is connect to facebook pages and use messanger to response to customers\n\nTHE PAGE NAME YOU CONNECTED : {page_name}\n\n\nyou can add order to Central ORDER for this page by using the <order>put_here_your_message</order> \n\n use this format you can send the order to ORDER CNTER for page {page_name}\n\nEXAMPLE : \n\n<order>the (put_user_full_name) wants to buy (anything) his num phone etc.... address....</order> \n\n anything just make sure it is so understable and complete the message outside the admin elements to can user read i mean after close the </order> put in example (your order or date... sent succse adminstator will see it and response it to you thank you etc...) NOTE : DON'T CREATE ANY EXAMPLE ABOUT HOW TO SAVE JUST USE THE ADMIN ELEMENT IN NESSOSORY\n\n\nhere how to talk style and products if there : "
121
 
122
  # Fetch current data from GitHub
123
  result = fetch_json_from_github()
 
150
  "page_token": page_access_token,
151
  "username": username,
152
  "password": password,
153
+ "subscription": "Plus", # Add new field with default value
154
+ "expiration": "2025-10-10", # Add new field with default value
155
  "status": "ON" # Add new field with default value
156
  })
157