I was hoping to know if there is a way that I could make it to where if the bot detects that it is banned in the channel, it leaves the channel. Any help with this would be much appreciated.
Oh I see how this works. So it is listening for that specific message and if it seen, it will part the channel. Thanks so much for your help. So NOTICE is a function that is listening for messages?
So I did some debugging. Did a simple echo back script to see if the function was working and it is. However it doesn't part the channel. I am confused. Any way here is the full message: -tmi.twitch:#channelnamehere You are permanently banned from talking in #channelnamehere
Code:
on *:NOTICE:You are permanently banned*:#: {
.part $chr(35) $+ $nick
echo this works
}
Oh that makes since! Since there was no stored data in the variable $nick it couldn't recognize which channel to part from so it did nothing.. Can't believe I didn't recognize this. Glad I have an extra eye to see what the issue was. Thanks Westor.