Compare commits
2 Commits
2446a20a5b
...
187d990d2b
Author | SHA1 | Date |
---|---|---|
dymik739 | 187d990d2b | |
dymik739 | 151107aa81 |
2
main.py
2
main.py
|
@ -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}")
|
||||
|
|
|
@ -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"]:
|
||||
|
|
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue