Add Counter action to count things (#38)
* add host * fix: make user name explicit in IRC * feat: Add counter action
This commit is contained in:
committed by
GitHub
parent
3763f320b9
commit
7486e68a17
@@ -25,6 +25,7 @@ const (
|
||||
ActionBrowse = "browse"
|
||||
ActionSendMail = "send_mail"
|
||||
ActionGenerateImage = "generate_image"
|
||||
ActionCounter = "counter"
|
||||
)
|
||||
|
||||
var AvailableActions = []string{
|
||||
@@ -39,6 +40,7 @@ var AvailableActions = []string{
|
||||
ActionWikipedia,
|
||||
ActionSendMail,
|
||||
ActionGenerateImage,
|
||||
ActionCounter,
|
||||
}
|
||||
|
||||
func Actions(a *state.AgentConfig) func(ctx context.Context) []agent.Action {
|
||||
@@ -80,6 +82,8 @@ func Actions(a *state.AgentConfig) func(ctx context.Context) []agent.Action {
|
||||
allActions = append(allActions, actions.NewBrowse(config))
|
||||
case ActionSendMail:
|
||||
allActions = append(allActions, actions.NewSendMail(config))
|
||||
case ActionCounter:
|
||||
allActions = append(allActions, actions.NewCounter(config))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user