Bot Disconnect from a Chat command

Hello,

i search a method to remove my Bot from a single Channel.
Users can let the bot join in the own channel with >> !join << and the bot joining the channel with >> client.join(userstate.username); << but when a user want a >> !leave << the bot dont leave the Chat.

What is the best way to disconnect from a single channel without a bot reboot?

PART #channelname is “irc”/Twitch chat for leave a channel

1 Like