Update Telegram.xml

pull/1/head
AardCrowley 4 years ago
parent 1049ef088c
commit 1ce1fb8cd8

@ -6,15 +6,15 @@
<!-- Plugin "Notifier" generated by Plugin Wizard -->
<muclient>
<plugin name="Notifier" author="Crowley" id="f99bb4b89cfa8c90ac2d03d5" language="Lua" purpose="Uses Telegram API to notify of events." save_state="y" date_written="2018-08-01 22:46:31" requires="5.06" version="1.0">
<plugin name="Notifier" author="Crowley" id="f99bb4b89cfa8c90ac2d03d5" language="Lua" purpose="Uses Telegram API to notify of events." save_state="y" date_written="2018-08-01 22:46:31" requires="5.06" version="1.1">
</plugin>
<aliases>
<alias
name="TestAlert"
match="^tsend$"
script="sendAlert"
name="onOffToggle"
match="^telegram (on|off)"
script="toggleConfig"
regexp="y"
ignore_case="y"
enabled="y"
@ -91,8 +91,11 @@ function sendAlert(name, line, wildcards)
end
pageRequest(msg, "HTTPS")
end
]]>
</script>
function toggleConfig(name, line, wildcards)
EnableTriggerGroup("Notifier", (true and (wildcards[1] == "on")))
end
]]>
</script>
</muclient>

Loading…
Cancel
Save