code cleanup, split handler func

This commit is contained in:
2025-06-07 00:34:26 -04:00
parent d1a5de82fe
commit b8bfb76b83
4 changed files with 133 additions and 80 deletions

View File

@@ -6,7 +6,7 @@ type Command struct {
Trigger string //command that triggers payload NOT including the indicator
Payload Payload //payload function to run when a command is detected
Timeout time.Duration //the amount of time before command can run again
LastRun time.Time //timestamp of last command run
lastRun time.Time //timestamp of last command run
Roles []string //roles that can use command
}