这个请问现在还能用吗,发送订阅功能是正常的,但是到时间了不会触发设定好的词,都是6级以上窗口。是不是因为设定了好几个task的原因,代码如下
task_call = {
good_morning="good_morning",
good_afternoon="good_afternoon",
good_evening="good_evening",
good_night="good_night",
}
notice_head = ".send notice 6 "
function table_draw(tab)
if(#tab==0)then return "" end
return tab[ranint(1,#tab)]
end
morning_word = {
"早上好",
}
afternoon_word = {
"三点多咯",
}
evening_word = {
"已经七点多了",
}
night_word = {
"夜深了",
}
function good_morning()
eventMsg(notice_head..table_draw(morning_word), 0, getDiceQQ())
end
function good_afternoon()
eventMsg(notice_head..table_draw(afternoon_word), 0, getDiceQQ())
end
function good_evening()
eventMsg(notice_head..table_draw(evening_word), 0, getDiceQQ())
end
function good_night()
eventMsg(notice_head..table_draw(night_word), 0, getDiceQQ())
end
function printChat(msg)
if(msg.fromGroup=="0")then
return "QQ "..msg.fromQQ
else
return "group "..msg.fromGroup
end
end
msg_order = {}
function book_alarm_call(msg)
eventMsg(".admin notice "..printChat(msg).." +6", 0, getDiceQQ())
return "已订阅{self}的定时早午晚安服务√"
end
function unbook_alarm_call(msg)
eventMsg(".admin notice "..printChat(msg).." -6", 0, getDiceQQ())
return "已退订{self}的定时早午晚安服务√"
end
msg_order["订阅问安"]="book_alarm_call"
msg_order["退订问安"]="unbook_alarm_call"