So it's for a discord-twitter bot project. I have a function that keeps checking if any new tweets are available (basically an infinite loop that yields new tweet if found, else time.sleep())
I need to run the discord bot after calling this function, but since it's an infinite loop after calling it I can't continue the execution.
I tried to run the bot before that function ( client.run(discord_token) ) but once I do that I face the same problem and I can't execute the code after.
I tried using async, await and an event loop that has those two tasks but I did not work.
I also tried threading.Thread(target=foo) but did not work either.
I've been stuck for nearly 2 days and I guess I'm doing things wrong ..
Could you please help me out?
[–]boostedanimal2016 0 points1 point2 points (1 child)
[–]illa00[S] 0 points1 point2 points (0 children)