(hellobot) Minor adjustment for scheduled task
parent
20652e5e31
commit
44e56e0884
|
@ -77,5 +77,12 @@ function h.hello(cxt, msg)
|
|||
end
|
||||
|
||||
|
||||
-- This is a task handler for a task named "hello" in the sample config, and is
|
||||
-- an alias to the hello() function above.
|
||||
function h.th_hello(cxt, msg)
|
||||
h.hello(cxt, msg)
|
||||
end
|
||||
|
||||
|
||||
-- Hook up the handlers.
|
||||
itte_handlers = h
|
||||
|
|
|
@ -34,7 +34,7 @@ itte_servers = {
|
|||
admins = { demouser = "password", },
|
||||
-- Scheduled tasks.
|
||||
tasks = {
|
||||
task1 = {
|
||||
hello = {
|
||||
-- Interval at which tasks are performed. Options:
|
||||
-- Every 5, 10, 15, 20 or 30 minutes — e.g. "5m" for 5 minutes
|
||||
-- hourly, daily, weekly, monthly
|
||||
|
@ -44,7 +44,7 @@ itte_servers = {
|
|||
-- at 00:00.
|
||||
time = "12:00",
|
||||
-- The name of the handler to run for the task.
|
||||
handler = "hello",
|
||||
handler = "th_hello",
|
||||
-- The channels or users where the task handler will send messages.
|
||||
recipients = { "#channel1" },
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue