05.02.2021, 08:36
You can use a resident script (sleep time = 0) to catch all alerts and forward them to any external service:
Code:
if not client then
function alertcallback(source, text)
log(source, text)
end
client = require('localbus').new()
client:sethandler('alert', alertcallback)
end
client:step()