소스 검색

Fix log mentions

TheHamkerCat 5 년 전
부모
커밋
a25cbfc90c
3개의 변경된 파일과 3개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 1
      app.json
  2. 1 2
      sample_config.env
  3. 1 3
      sample_config.py

+ 1 - 1
app.json

@@ -68,7 +68,7 @@
             "required": true
         },
         "LOG_MENTIONS": {
-            "description": "Fill 1 to turn this one, or 0 to turn it off.",
+            "description": "Fill 1 to turn this on, or 0 to turn it off.",
             "required": true
         },
         "USERBOT_PREFIX": {

+ 1 - 2
sample_config.env

@@ -28,7 +28,6 @@ ARQ_API_URL=https://thearq.tech # Leave it like this
 
 ARQ_API_KEY=your_api_key # Get it from @ARQRobot
 
-LOG_MENTIONS=True # Make It False If You Don't Want It
-
+LOG_MENTIONS=0 # Make It 1 if you want to enable it
 
 RSS_DELAY=300 # In seconds

+ 1 - 3
sample_config.py

@@ -27,9 +27,7 @@ if HEROKU:
     MONGO_DB_URI = environ.get("MONGO_DB_URI", None)
     ARQ_API_URL = environ.get("ARQ_API_URL", None)
     ARQ_API_KEY = environ.get("ARQ_API_KEY", None)
-    LOG_MENTIONS = (
-        True if int(environ.get("LOG_MENTIONS", None)) == 1 else False
-    )
+    LOG_MENTIONS = bool(int(environ.get("LOG_MENTIONS", None)))
     RSS_DELAY = int(environ.get("RSS_DELAY", None))
 else:
     BOT_TOKEN = "467677575:YZfaakjwd545dfg-N6JStihhuw5gQeZHntc"