Skip to content

How to disconnect? #845

Answered by KubbusYC
KubbusYC asked this question in Q&A
Jan 26, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Aight, got it

So instead of setting up an extra leave command, i just checked within the join command, whether any message in the text channel equals the leave command, allowing me to reference the connection variable made when joining by virtue of being within the same function.

just be sure not to do that in a while loop, you'll open all the threads your cpu can do without an killing itself horribly

ok bye

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@quanticc
Comment options

Answer selected by KubbusYC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants