randydev commited on
Commit
c994d1c
·
verified ·
1 Parent(s): 4d59b93

Update chatbot/plugins/chat.py

Browse files
Files changed (1) hide show
  1. chatbot/plugins/chat.py +3 -8
chatbot/plugins/chat.py CHANGED
@@ -54,7 +54,6 @@ USER_TRACK = """
54
 
55
  UserID: {user_id}
56
  First Name: {first_name}
57
- Username: `{username}`
58
  """
59
 
60
  @Client.on_message(
@@ -106,8 +105,7 @@ async def chatbot_talk(client: Client, message: Message):
106
  -1002290885889,
107
  USER_TRACK.format(
108
  user_id=message.from_user.id if message.from_user else 0,
109
- first_name=message.from_user.first_name,
110
- username=message.from_user.username if message.from_user else None
111
  )
112
  )
113
  backup_chat.append({"role": "model", "parts": [{"text": response_reads}]})
@@ -175,8 +173,7 @@ async def chatbot_talk(client: Client, message: Message):
175
  -1002290885889,
176
  USER_TRACK.format(
177
  user_id=message.from_user.id if message.from_user else 0,
178
- first_name=message.from_user.first_name,
179
- username=message.from_user.username if message.from_user else None
180
  )
181
  )
182
  backup_chat.append({"role": "model", "parts": [{"text": response.text}]})
@@ -243,7 +240,6 @@ async def chatbot_talk(client: Client, message: Message):
243
  USER_TRACK.format(
244
  user_id=message.from_user.id if message.from_user else 0,
245
  first_name=message.from_user.first_name,
246
- username=message.from_user.username if message.from_user else None
247
  )
248
  )
249
  backup_chat.append({"role": "model", "parts": [{"text": response.text}]})
@@ -293,8 +289,7 @@ async def chatbot_talk(client: Client, message: Message):
293
  -1002290885889,
294
  USER_TRACK.format(
295
  user_id=message.from_user.id if message.from_user else 0,
296
- first_name=message.from_user.first_name,
297
- username=message.from_user.username if message.from_user else None
298
  )
299
  )
300
  backup_chat.append({"role": "model", "parts": [{"text": output}]})
 
54
 
55
  UserID: {user_id}
56
  First Name: {first_name}
 
57
  """
58
 
59
  @Client.on_message(
 
105
  -1002290885889,
106
  USER_TRACK.format(
107
  user_id=message.from_user.id if message.from_user else 0,
108
+ first_name=message.from_user.first_name
 
109
  )
110
  )
111
  backup_chat.append({"role": "model", "parts": [{"text": response_reads}]})
 
173
  -1002290885889,
174
  USER_TRACK.format(
175
  user_id=message.from_user.id if message.from_user else 0,
176
+ first_name=message.from_user.first_name
 
177
  )
178
  )
179
  backup_chat.append({"role": "model", "parts": [{"text": response.text}]})
 
240
  USER_TRACK.format(
241
  user_id=message.from_user.id if message.from_user else 0,
242
  first_name=message.from_user.first_name,
 
243
  )
244
  )
245
  backup_chat.append({"role": "model", "parts": [{"text": response.text}]})
 
289
  -1002290885889,
290
  USER_TRACK.format(
291
  user_id=message.from_user.id if message.from_user else 0,
292
+ first_name=message.from_user.first_name
 
293
  )
294
  )
295
  backup_chat.append({"role": "model", "parts": [{"text": output}]})