TheHamkerCat преди 5 години
родител
ревизия
e1c7c3e90f
променени са 2 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 0 1
      sample_config.py
  2. 2 2
      wbb/modules/chatbot.py

+ 0 - 1
sample_config.py

@@ -17,4 +17,3 @@ captcha_delay_in_seconds = 300
 
 # Leave This As It Is
 ARQ_API_BASE_URL = "https://thearq.tech/"
-LUNA_API = "https://lunabot.tech/?query="

+ 2 - 2
wbb/modules/chatbot.py

@@ -1,4 +1,4 @@
-from wbb import app, LUNA_API
+from wbb import app, ARQ
 from wbb.utils.fetch import fetch
 from wbb.utils.errors import capture_err
 from wbb.utils.botinfo import BOT_ID
@@ -54,7 +54,7 @@ async def chatbot_talk(_, message):
     if message.reply_to_message.from_user.id != BOT_ID:
         return
     query = message.text
-    response = await fetch(f"{LUNA_API}{query}")
+    response = await fetch(f"{ARQ}luna?query={query}")
     response = response['response']
     await app.send_chat_action(message.chat.id, "typing")
     await message.reply_text(response)