TheHamkerCat 5 lat temu
rodzic
commit
d19fe68048
2 zmienionych plików z 5 dodań i 2 usunięć
  1. 4 2
      wbb/modules/couple.py
  2. 1 0
      wbb/utils/dbfunctions.py

+ 4 - 2
wbb/modules/couple.py

@@ -3,7 +3,7 @@ from wbb.utils.errors import capture_err
 from wbb.utils.dbfunctions import _get_lovers, get_couple, save_couple
 from pyrogram import filters
 import random
-import datetime
+from datetime import datetime
 
 __MODULE__ = "Shippering"
 __HELP__ = "/detect_gay - To Choose Couple Of The Day"
@@ -26,8 +26,10 @@ today = str(dt()[0])
 tomorrow = str(dt_tom())
 
 
-@app.on_message(filters.command("detect_gay"))
+@app.on_message(filters.command("detect_gay") & ~filters.edited)
+@capture_err
 async def couple(_, message):
+    print(1)
     if message.chat.type == "private":
         await message.reply_text("This command only works in groups.")
         return

+ 1 - 0
wbb/utils/dbfunctions.py

@@ -8,6 +8,7 @@ warnsdb = db.warns
 karmadb = db.karma
 chatsdb = db.chats
 gbansdb = db.gban
+coupledb = db.couple
 
 """ Notes functions """