Fix error
This commit is contained in:
parent
57b666dde2
commit
d25c17a84a
1 changed files with 9 additions and 1 deletions
|
@ -146,6 +146,15 @@ async def message(self, message):
|
||||||
print(current_time(), "COMMAND:", message_text)
|
print(current_time(), "COMMAND:", message_text)
|
||||||
|
|
||||||
match message_lowercase:
|
match message_lowercase:
|
||||||
|
# case "breakpoint":
|
||||||
|
# if jid == get_value("accounts", "XMPP", "operator"):
|
||||||
|
# breakpoint()
|
||||||
|
# else:
|
||||||
|
# response = (
|
||||||
|
# "This action is restricted. "
|
||||||
|
# "Type: breakpoint."
|
||||||
|
# )
|
||||||
|
# send_reply_message(self, message, response)
|
||||||
case "commands":
|
case "commands":
|
||||||
response = text.print_cmd()
|
response = text.print_cmd()
|
||||||
send_reply_message(self, message, response)
|
send_reply_message(self, message, response)
|
||||||
|
@ -329,7 +338,6 @@ async def message(self, message):
|
||||||
"📫️ Processing request to fetch data from {}"
|
"📫️ Processing request to fetch data from {}"
|
||||||
).format(url)
|
).format(url)
|
||||||
send_status_message(self, jid, status_type, status_message)
|
send_status_message(self, jid, status_type, status_message)
|
||||||
send_reply_message(self, message, response)
|
|
||||||
if url.startswith("feed:"):
|
if url.startswith("feed:"):
|
||||||
url = uri.feed_to_http(url)
|
url = uri.feed_to_http(url)
|
||||||
# url_alt = await uri.replace_hostname(url, "feed")
|
# url_alt = await uri.replace_hostname(url, "feed")
|
||||||
|
|
Loading…
Reference in a new issue