From 071aadace5444f0bfd8fe509d4868eeb4ebfc16a Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Wed, 19 Apr 2023 17:38:18 +0200 Subject: [PATCH] chat with yourself --- matrix_pygmalion_bot/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/matrix_pygmalion_bot/core.py b/matrix_pygmalion_bot/core.py index 24821d0..afd1eb9 100644 --- a/matrix_pygmalion_bot/core.py +++ b/matrix_pygmalion_bot/core.py @@ -100,6 +100,8 @@ class Callbacks(object): return self.bot.user_name = room.user_name(event.sender) + if self.bot.user_name == self.bot.name: + self.bot.user_name = "You" if event.body.startswith('!replybot'): print(event)