Skip to content

Instantly share code, notes, and snippets.

Last active Jan 19, 2021
What would you like to do?
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