This commit is contained in:
cdle
2023-06-20 13:04:16 +08:00
parent f18e8506fa
commit c40ca23954
7 changed files with 102 additions and 16 deletions
+2 -2
View File
@@ -376,7 +376,7 @@ func AddCommand(cmds []*common.Function) {
}
fmtRule(cmds[j])
{
if !cmds[j].Disable && !cmds[j].Module && !cmds[j].OnStart {
if !cmds[j].Disable && !cmds[j].Module {
for plt, Cron := range cmds[j].Cron {
plt := plt
cron := strings.TrimSpace(Cron)
@@ -585,7 +585,7 @@ func HandleMessage(sender common.Sender) {
}
}
for _, function := range Functions {
if function.Disable || function.Module || function.OnStart {
if function.Disable || function.Module {
continue
}
imType := sender.GetImType()