Ok, so i'm slowly learning Python, and i'm trying to create a plugin for a bot that prints "Baby don't hurt me." in a channel whenever anyone types "What is love?". The thing is, i want it to ignore case and punctuation, so if a user types just "what is love" i'd like it to trigger the bot's response also. I have no. fucking. clue how to do this. Any help would be appreciated.
Ok so a while back i made a R.I.P script for a bot that basically just said the word R.I.P when a user quit. I'm trying to refine it. At the moment, it only goes to the active window. How would i make this script trigger on all channels the bot is on?
Here;s the code:
on *:QUIT: {
msg $active And now his watch is ended...
}
Thanks in advance.
So i wrote a small little snippet so that when someone quits, your client will msg your active window with R.I.P and the name of the nick that quit. So it should look like this: [18:30] * Geomat (~keith@NewNet-AF1061E4.static.internode.on.net) Quit (Ping timeout: 181 seconds) [18:30] <Protheus[A]> R.I.P Geomat Enjoy.