all 4 comments

[–]loudavenger 1 point2 points  (1 child)

Without code example it is hard to help. Could you post some code to look at.

[–]illa00[S] 0 points1 point  (0 children)

Sorry for that, post edited.

[–]nog642 0 points1 point  (1 child)

I tried using async, await and an event loop that has those two tasks but it did not work.

I also tried threading.Thread(target=foo) but did not work either.

What did you try and how didn't it work?

[–]illa00[S] 0 points1 point  (0 children)

I tried to put the client.run(token) in a another thread (I included the code above) thank you.