headpat: ignore forwards

ninja_fix
Dan Elkouby 2018-05-16 19:16:38 +00:00
parent a851b5193e
commit b23be7d013
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ oops = "OOPSIE WOOPSIE!! Uwu We madea fucky wucky!! A wittle fucko boingo! " \
@borg.on(events.NewMessage)
async def on_pat(event):
if event.forward:
return
user = borg.me.username
if not user or not re.match(fr"(?i)/headpat@{user}", event.raw_text):