do not subscript users choice

This commit is contained in:
Von Random 2024-11-21 16:06:45 +02:00
parent 9efc01878c
commit d1ae945026

View file

@ -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