fix async function and some vars
This commit is contained in:
parent
8bbda6ae7a
commit
442b9b78bb
2 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ class Cron:
|
|||
await asyncio.sleep(wait_seconds)
|
||||
message = self.responder.get_response(tokens)
|
||||
message = self.responder.api_match(message, '')
|
||||
message = self.responder.rndm_tmpl(message, job['chat'])
|
||||
message = await self.responder.rndm_tmpl(message, job['chat'])
|
||||
await self.client.send_message(job['chat'], message)
|
||||
return send_message
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ class Responder:
|
|||
users = await self.client.get_participants(entity=chat_id)
|
||||
victim = random.choice(users)
|
||||
username = self.namegen.get_name(victim)
|
||||
return response.replace('<randomname>', username)
|
||||
return response.replace(marker, username)
|
||||
|
||||
async def respond(self,
|
||||
event: telethon.events.common.EventBuilder) -> None:
|
||||
|
|
Loading…
Reference in a new issue