Skip to content

Commit

Permalink
ops
Browse files Browse the repository at this point in the history
  • Loading branch information
ltzmax committed Jan 21, 2024
1 parent 787c5b4 commit 845b385
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions autopublisher/autopublisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ async def on_message_without_command(self, message: discord.Message) -> None:
return
if isinstance(message.channel, TextChannel):
if message.channel.is_news():
try:
await asyncio.sleep(0.5)
await asyncio.wait_for(message.publish(), timeout=60)
except (
discord.HTTPException,
discord.Forbidden,
asyncio.TimeoutError,
) as e:
log.error(e)
try:
await asyncio.sleep(0.5)
await asyncio.wait_for(message.publish(), timeout=60)
except (
discord.HTTPException,
discord.Forbidden,
asyncio.TimeoutError,
) as e:
log.error(e)

@commands.group(aliases=["aph", "autopub"])
@commands.guild_only()
Expand Down

0 comments on commit 845b385

Please sign in to comment.