Discord bot help

im trying to make my bot find badwords in the middle of a message. right now i got

if p_message == ‘badword’:
return ‘You just broke "Rule #3" and I think the admins heard you!!

I tried adding a .find method

if p_message == ‘badword’.find(“badword”):
return ‘You just broke "Rule #3" and I think the admins heard you!!

but that didnt do anything

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.