For more natural group chat

This commit is contained in:
Dita Aji Pratama 2026-08-04 22:09:50 +07:00
parent 632e30710e
commit b7b012fff6

View File

@ -617,8 +617,7 @@ class XMPPClient(ClientXMPP):
session.add_message('user', body)
is_roleplay = 'roleplayer' in self._skill
if not is_roleplay:
self._schedule_send(jid, f'> {body}\nThinking...')
# Thinking message removed for natural feel
# Delay 1: simulasi membaca pesan user
await _read_delay()
@ -702,8 +701,8 @@ class XMPPClient(ClientXMPP):
prefixed = f'[{nick}] {body}'
session.add_message('user', prefixed)
if self._skill != 'roleplayer':
self._schedule_send(room, f'> [{nick}] {body}\nThinking...', mtype='groupchat')
# Thinking message removed for natural feel
_is_roleplay = 'roleplayer' in self._skill
# Delay 1: simulasi membaca pesan user
await _read_delay()
@ -711,8 +710,6 @@ class XMPPClient(ClientXMPP):
my_name = personality.PERSONALITY.name
quote = f'[{nick}] {body}'
_is_roleplay = 'roleplayer' in self._skill
def on_tool_calls(content):
if content and content.strip():
self._schedule_send(room, content, 'groupchat')