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.
from cloudbot import hook
@hook.regex(r"^What is love?(!|\?|\.)?$")
def what_hook(match):
return "Baby don't hurt me."