Skip to main content

PushNtfy

The PushNtfy action pushes a message to a ntfy.sh topic.

Inputs

  • topic - a string with the topic to use.
  • message - a string (or function taking a context parameter) that returns the message to send.

Example usage

local Workflow = require "porla.Workflow"
local PushNtfy = require "porla.actions.PushNtfy"

return Workflow:new{
on = "TorrentAdded",
actions = {
PushNtfy:new{
topic = "some-secret-topic",
message = function(ctx)
return string.format("Torrent %s added", ctx.torrent.name)
end
}
}
}