diff --git a/ai_chat.py b/ai_chat.py index 99ad72c..1595b51 100644 --- a/ai_chat.py +++ b/ai_chat.py @@ -764,6 +764,7 @@ def answer(self, question: str, history: List[Tuple[str, str]], context: Any = N if isinstance(context, dict): extra = [] req_nick = context.get("nickname") or "Pengguna" + chan_name = context.get("channel_name") or f"channel {context.get('channel')}" is_pm = bool(context.get("is_pm")) if is_pm: extra.append(f"Penanya: {req_nick} (mengirim pertanyaan via Private Message / PM, sedang berada di channel: {chan_name}).")