Update Telegram.xml

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

@ -6,15 +6,15 @@
<!-- Plugin "Notifier" generated by Plugin Wizard --> <!-- Plugin "Notifier" generated by Plugin Wizard -->
<muclient> <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> </plugin>
<aliases> <aliases>
<alias <alias
name="TestAlert" name="onOffToggle"
match="^tsend$" match="^telegram (on|off)"
script="sendAlert" script="toggleConfig"
regexp="y" regexp="y"
ignore_case="y" ignore_case="y"
enabled="y" enabled="y"
@ -91,8 +91,11 @@ function sendAlert(name, line, wildcards)
end end
pageRequest(msg, "HTTPS") pageRequest(msg, "HTTPS")
end end
]]>
</script>
function toggleConfig(name, line, wildcards)
EnableTriggerGroup("Notifier", (true and (wildcards[1] == "on")))
end
]]>
</script>
</muclient> </muclient>

Loading…
Cancel
Save