]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
removed some junk
authorterminaldweller <redacted>
Sat, 30 Dec 2023 15:54:19 +0000 (10:54 -0500)
committerterminaldweller <redacted>
Sat, 30 Dec 2023 15:54:19 +0000 (10:54 -0500)
scripts/mqtt.py

index bafcb7c128cd721548a5b95cff7f4f50a37f94c2..704dd130a8b520fd3f3ca7e7f04a985baef07777 100644 (file)
@@ -1,5 +1,4 @@
 import irssi
-import asyncio
 import paho.mqtt.client as mqtt
 import threading
 
@@ -55,24 +54,6 @@ def publish(
     mqtt_retain = irssi.settings_get_bool(b"mqtt_retain")
 
     threading.Thread(target=work(client, content)).start()
-    # @args = ("mosquitto_pub", "-h", $MQTTServ, "-p", $MQTTPort, "-q", $MQTTQoS, "-I", $MQTTClient, "-u", $MQTTUser, "-P", $MQTTPass, "-t", $MQTTTopic,);
-    # await asyncio.create_subprocess_exec(
-    #     "mosquitto_pub",
-    #     "-h",
-    #     mqtt_server,
-    #     "-p",
-    #     repr(mqtt_port),
-    #     "-P",
-    #     mqtt_pass,
-    #     "-t",
-    #     mqtt_topic.decode("utf-8"),
-    #     "-m",
-    #     content.decode("utf-8"),
-    #     stdout=asyncio.subprocess.PIPE,
-    #     stderr=asyncio.subprocess.PIPE,
-    # )
-    # task = asyncio.create_task(work(client, content))
-    # await asyncio.sleep(0)
 
 
 def mqtt_sig_handler(*args, **kwargs) -> None:
git clone https://git.99rst.org/PROJECT