From 608aea3e5b84471f5afcbb8de0e854adb61509d1 Mon Sep 17 00:00:00 2001 From: udf Date: Thu, 13 Sep 2018 23:00:00 +0200 Subject: [PATCH] shitpost harder --- stdplugins/sp_bar.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 stdplugins/sp_bar.py diff --git a/stdplugins/sp_bar.py b/stdplugins/sp_bar.py new file mode 100644 index 0000000..18b698c --- /dev/null +++ b/stdplugins/sp_bar.py @@ -0,0 +1,10 @@ +import asyncio +from telethon import events +from telethon.tl import types +import re + +@borg.on(events.NewMessage(pattern=re.compile(r"^bar$"), chats=1040270887)) +async def on_bar(event): + if event.from_id == 151462131: + return + await event.reply("foo")