current_alerts
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
current_alerts [2022/01/04 10:25] – [GetCurrentAlerts()] emozolyak | current_alerts [2022/01/04 10:30] – [GetCurrentAlerts()] emozolyak | ||
---|---|---|---|
Line 66: | Line 66: | ||
Telegram | Telegram | ||
--]] | --]] | ||
- | TELEGRAM_BOT_ID = " | + | TELEGRAM_BOT_ID = " |
- | active_alerts = 0 | + | active_alerts = 0 -- global counter for current alerts |
function main (userId) | function main (userId) | ||
Line 73: | Line 73: | ||
local alerts = GetCurrentAlerts() | local alerts = GetCurrentAlerts() | ||
| | ||
- | if (#alerts > active_alerts) then -- number has increased | + | if (#alerts > active_alerts) then -- number has increased, # - means count table elements |
local a_names = {} | local a_names = {} | ||
current_alerts.txt · Last modified: 2022/07/04 12:35 by emozolyak