Gutted script, replaced XMPP variables with MQTT