Cyclic message in chat

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?

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

Right i explain bad, i needed the Logic process.

I’m not fluent in python.

You’ve provided no existing code to work from

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

Using thread for counter in while loop, where recv(1024) is.
I’m not sure to write script in this thread but you could google it

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.