Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup #98

Merged
merged 8 commits into from
May 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 54 additions & 56 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config-example/rules/fotd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ actions:
{{len .data.Events}}
- name: random number between 1-40
type: exec
cmd: bash config/scripts/random.sh ${num_of_events}
cmd: sh config/scripts/random.sh ${num_of_events}
- name: today in history http request
type: GET
url: https://history.muffinlabs.com/date
Expand Down
2 changes: 1 addition & 1 deletion config-example/rules/gopher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: get a random gopher
active: true
respond: gopher
reaction: waiting
reaction: thinking_face
# actions
actions:
- name: gopher http request
Expand Down
13 changes: 7 additions & 6 deletions config-example/rules/joke.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@
{
"name": "joke http request",
"type": "GET",
"url": "https://08ad1pao69.execute-api.us-east-1.amazonaws.com/dev/random_joke",
"auth": null,
"url": "https://icanhazdadjoke.com/",
"expose_json_fields": {
"setup": ".setup",
"punchline": ".punchline"
"joke": ".setup"
},
"custom_headers": {
"Accept": "application/json"
}
}
],
"format_output": "${setup}\n\n${punchline}",
"format_output": "${joke}",
"direct_message_only": false,
"help_text": "joke",
"include_in_help": true
}
}
12 changes: 6 additions & 6 deletions config-example/rules/joke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ respond: joke
actions:
- name: joke http request
type: GET
url: https://08ad1pao69.execute-api.us-east-1.amazonaws.com/dev/random_joke
auth:
url: https://icanhazdadjoke.com/
custom_headers:
Accept: 'application/json'
expose_json_fields:
setup: '.setup'
punchline: '.punchline'
joke: '.joke'
# response
format_output: "${setup}\n\n${punchline}"
format_output: "${joke}"
direct_message_only: false
# help
help_text: joke
include_in_help: true
include_in_help: true
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
name: script-rule
active: true
# trigger and args
respond: bashscript
respond: shellscript
# actions
actions:
- name: sample script
type: exec
cmd: bash config/scripts/script.sh
cmd: sh config/scripts/script.sh
# response
format_output: "${_exec_output}"
direct_message_only: false
# help
help_text: bashscript
help_text: shellscript
include_in_help: true
Loading