code cleanup, split handler func
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user