Compare commits

..

2 Commits

3 changed files with 3 additions and 3 deletions

View File

@ -195,7 +195,7 @@ def queue_processor():
response, formatting = mod.process(msg)
if response:
if formatting == None:
if not formatting:
updater.bot.send_message(chat_id=msg.chat.id, text=response,
disable_web_page_preview=True)
print(f"Responded using module {mod.path} ({mod.alias}) with text: {response}")

View File

@ -195,7 +195,7 @@ def queue_processor():
response, formatting = mod.process(msg)
if response:
if formatting == None:
if not formatting:
print(f"Responded using module {mod.path} ({mod.alias}) with text: {response}")
break
elif formatting in ["Markdown", "MarkdownV2", "HTML"]:

View File

@ -22,7 +22,7 @@ if (command[0] in self.aliases) and (1 <= command_length <= 3):
"target": target,
"format": "text"}
res = requests.post("http://127.0.0.1:5000/translate", data = data)
res = requests.post("http://10.1.1.1:5010/translate", data = data)
result = json.loads(res.text)
if source == "auto":