(hellobot) Minor adjustment for scheduled task

这个提交包含在:
mio 2022-04-28 03:27:56 +00:00
父节点 20652e5e31
当前提交 44e56e0884
共有 2 个文件被更改,包括 9 次插入2 次删除

查看文件

@ -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" },
},