Explorar o código

[quotly killer] Merge pull request #39 from ri5h46h/firsttry

adding a new module. First Try >.<
TheHamkerCat %!s(int64=5) %!d(string=hai) anos
pai
achega
c86144efa5
Modificáronse 1 ficheiros con 17 adicións e 0 borrados
  1. 17 0
      wbb/modules/nonStciker.py

+ 17 - 0
wbb/modules/nonStciker.py

@@ -0,0 +1,17 @@
+from wbb import app
+from pyrogram import filters
+
+@app.on_message(filters.command('bun'))
+async def bunn(_, message):
+    if message.reply_to_message:
+        await message.reply_to_message.reply_sticker('CAACAgUAAx0CWIlO9AABARyRYBhyjKXFATVhu7AGQwip3TzSFiMAAuMBAAJ7usBUIu2xBtXTmuweBA')
+        await app.send_message(message.chat.id, text="Eat Bun")
+        return
+    if not message.reply_to_message:
+        await message.reply_sticker('CAACAgUAAx0CWIlO9AABARyRYBhyjKXFATVhu7AGQwip3TzSFiMAAuMBAAJ7usBUIu2xBtXTmuweBA')
+        await app.send_message(message.chat.id, text="Eat Bun")
+
+@app.on_message(filters.user('QuotLyBot'))
+async def quotly_hoe(_, message):
+    if not message.sticker:
+        await message.delete()