Enhance Twitch and Discord bot functionality by updating BOT_STATUS management. Added tracking for Twitch message timestamps and messages per minute, improved connection handling, and refined live status updates. Updated webapp to reflect new status attributes and modified Twitch moderation template for better chat message handling.
This commit is contained in:
@@ -84,6 +84,10 @@ class DiscordBot(discord.Client):
|
||||
|
||||
async def updateStatus(self):
|
||||
while not self.is_closed():
|
||||
bot_status = webapp.config.get("BOT_STATUS", {})
|
||||
if bot_status.get("twitch_is_live") or bot_status.get("discord_streaming_activity"):
|
||||
await asyncio.sleep(60)
|
||||
continue
|
||||
humeurs = Humeur.query.all()
|
||||
if len(humeurs)>0 :
|
||||
humeur = random.choice(humeurs)
|
||||
|
||||
Reference in New Issue
Block a user