fix var names
This commit is contained in:
parent
616695b8f5
commit
9360efdce1
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue