diff --git a/pgbotlib/response.py b/pgbotlib/response.py index 4f6928e..06d38d7 100644 --- a/pgbotlib/response.py +++ b/pgbotlib/response.py @@ -95,13 +95,13 @@ class Responder: result = response if '' in response: sender = await event.get_sender() - result = result.replace('', username) + result = result.replace('', sender) result += ' I AM TEST' if '' in response: peer_id = event.message.peer_id users = await self.client.get_participants(entity=peer_id) - sender = random.choice(users)[0] - result = result.replace('', username) + victim = random.choice(users)[0] + result = result.replace('', victim) return result async def respond(self,