do not subscript users choice
This commit is contained in:
parent
9efc01878c
commit
d1ae945026
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ class Responder:
|
|||
if '<randomname>' in response:
|
||||
peer_id = event.message.peer_id
|
||||
users = await self.client.get_participants(entity=peer_id)
|
||||
victim = random.choice(users)[0]
|
||||
victim = random.choice(users)
|
||||
username = self.namegen.get_name(victim)
|
||||
result = result.replace('<randomname>', username)
|
||||
return result
|
||||
|
|
Loading…
Reference in a new issue