소스 검색

Added pyromod back and fixed some small things

TheHamkerCat 5 년 전
부모
커밋
ba43757b4a
3개의 변경된 파일과 5개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 0
      requirements.txt
  2. 1 0
      wbb/__init__.py
  3. 3 3
      wbb/modules/chatbot.py

+ 1 - 0
requirements.txt

@@ -22,3 +22,4 @@ bs4
 wget
 python-dotenv
 feedparser
+pyromod

+ 1 - 0
wbb/__init__.py

@@ -31,6 +31,7 @@ from os import path
 from aiohttp import ClientSession
 from motor.motor_asyncio import AsyncIOMotorClient as MongoClient
 from pyrogram import Client
+from pyromod import listen
 from Python_ARQ import ARQ
 
 # Setup logging

+ 3 - 3
wbb/modules/chatbot.py

@@ -63,7 +63,7 @@ async def chat_bot_toggle(db, message: Message):
         )
     else:
         await edit_or_reply(
-                message, text="**Usage:**\n/chatbot [ENABLE|DISABLE]"
+            message, text="**Usage:**\n/chatbot [ENABLE|DISABLE]"
         )
 
 
@@ -75,7 +75,7 @@ async def chat_bot_toggle(db, message: Message):
 async def chatbot_status(_, message: Message):
     if len(message.command) != 2:
         return await edit_or_reply(
-                message, text="**Usage:**\n/chatbot [ENABLE|DISABLE]"
+            message, text="**Usage:**\n/chatbot [ENABLE|DISABLE]"
         )
     await chat_bot_toggle(active_chats_bot, message)
 
@@ -128,7 +128,7 @@ async def chatbot_talk(_, message: Message):
 async def chatbot_status_ubot(_, message: Message):
     if len(message.text.split()) != 2:
         return await edit_or_reply(
-                message, text="**Usage:**\n.chatbot [ENABLE|DISABLE]"
+            message, text="**Usage:**\n.chatbot [ENABLE|DISABLE]"
         )
     await chat_bot_toggle(active_chats_ubot, message)