Skip to content

Commit

Permalink
remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
terminaldweller committed Dec 30, 2023
1 parent 78f6ce3 commit 7c6e113
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/mqtt.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""mqtt.py, sends yur privmsgs over mqtt"""

Check failure on line 1 in scripts/mqtt.py

View workflow job for this annotation

GitHub Actions / test

No IRSSI header in script or name not given

Check failure on line 1 in scripts/mqtt.py

View workflow job for this annotation

GitHub Actions / test

Missing __version__ in script
import irssi
import paho.mqtt.client as mqtt
import threading
Expand Down Expand Up @@ -47,11 +48,6 @@ def publish(
)
client.on_connect = on_connect
client.on_message = on_message
mqtt_server = irssi.settings_get_str(b"mqtt_server")
mqtt_port = irssi.settings_get_int(b"mqtt_port")
mqtt_topic = irssi.settings_get_str(b"mqtt_topic")
mqtt_pass = irssi.settings_get_str(b"mqtt_pass")
mqtt_retain = irssi.settings_get_bool(b"mqtt_retain")

threading.Thread(target=work(client, content)).start()

Expand Down

0 comments on commit 7c6e113

Please sign in to comment.