File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,6 @@ LABEL maintainer="Discord: pika.pika.no.mi (970119359840284743)" \
2828 description="This bot automatically publishes messages in announcement channels on discord." \
2929 release=$BUILD_DATE \
3030 url="https://github.com/Serpensin/DiscordBots-AutoPublisher" \
31- version="1.7.10 "
31+ version="1.7.11 "
3232
3333CMD ["python3" , "main.py" ]
Original file line number Diff line number Diff line change 1- # Import
1+ # Import
22import time
33
44startupTime_start = time .time ()
2323# Init
2424discord .VoiceClient .warn_nacl = False
2525load_dotenv ()
26- BOT_VERSION = "1.7.10 "
26+ BOT_VERSION = "1.7.11 "
2727APP_FOLDER_NAME = "AutoPublisher"
2828BOT_NAME = "AutoPublisher"
2929if not os .path .exists (f"{ APP_FOLDER_NAME } //Logs" ):
6060SUPPORT_ID = os .getenv ("SUPPORT_SERVER" )
6161TOPGG_TOKEN = os .getenv ("TOPGG_TOKEN" )
6262LOG_LEVEL = os .getenv ("LOG_LEVEL" )
63+ PUBLISH_DELAY_SECONDS = 10
6364
6465# Set-up Logging
6566LOG_FOLDER = f"{ APP_FOLDER_NAME } //Logs//"
@@ -394,6 +395,7 @@ async def auto_publish(
394395 await message .add_reaction ("\U0001f4e2 " ) # 📢
395396
396397 try :
398+ await asyncio .sleep (PUBLISH_DELAY_SECONDS )
397399 await message .publish ()
398400 except discord .HTTPException as e :
399401 if e .code == 50068 :
You can’t perform that action at this time.
0 commit comments