refactor(stars): simplify reply format and adjust delay
This commit is contained in:
@@ -286,13 +286,12 @@ class TelegramStarsBot:
|
||||
|
||||
if poster_user_id:
|
||||
replies = self.config._load_replies()
|
||||
|
||||
for reply_options in replies:
|
||||
await asyncio.sleep(self.config.api_delay)
|
||||
|
||||
reply_message = f"[userids={poster_user_id};align=left]{random.choice(reply_options)}[/userids]"
|
||||
reply_message = random.choice(reply_options)
|
||||
await self.lolz_api.create_comment(post_id, reply_message)
|
||||
|
||||
await asyncio.sleep(self.config.api_delay)
|
||||
|
||||
if self.notification_bot:
|
||||
await self.notification_bot.success(
|
||||
link=f"https://t.me/{channel}/{message_id}",
|
||||
|
||||
Reference in New Issue
Block a user