Cyclic message in chat


#1

hello guys , in my python chatbot i have the main loop for get message and commands.
i want send a message every 30 sec, how can i implement it in my while?


#2

This is not a python support forum.

This is the third party developers forum for the Twitch API. we don’t really cover language specifics.

You’ll need to implement some sort of cron style function that doesn’t block your main thread from operating


#3

Right i explain bad, i needed the Logic process.
Thankz


#4

I’m not fluent in python.

You’ve provided no existing code to work from


#5

if you have not found out yet . You can import threading and threading timer to repeat a function every 30 seconds