fix var names

This commit is contained in:
Von Random 2024-11-21 15:57:28 +02:00
parent 616695b8f5
commit 9360efdce1

View file

@ -95,13 +95,13 @@ class Responder:
result = response
if '<username>' in response:
sender = await event.get_sender()
result = result.replace('<username>', username)
result = result.replace('<username>', sender)
result += ' I AM TEST'
if '<randomname>' 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('<randomname>', username)
victim = random.choice(users)[0]
result = result.replace('<randomname>', victim)
return result
async def respond(self,