Skip to content

Instantly share code, notes, and snippets.

@khyberspache
Last active January 19, 2021 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khyberspache/171d1fd826342af9dcdb84448c4d9b57 to your computer and use it in GitHub Desktop.
Save khyberspache/171d1fd826342af9dcdb84448c4d9b57 to your computer and use it in GitHub Desktop.
Pneuma commands file for an internal API task
if executor == "keyword" {
task := splitMessage(message, '.')
if task[0] == "api" {
return CallNativeAPI(task[1])
} else if task[0] == "config" {
return updateConfiguration(task[1], agent)
}
return "Keyword selected not available for agent", 0, 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment