-
Notifications
You must be signed in to change notification settings - Fork 145
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
Add responder functionality to TheHive4Py #108
Conversation
""" | ||
data = { | ||
"query": { | ||
"_string": responder_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The _string
is no longer recommended with ES6
"objectId": object_id | ||
} | ||
|
||
if responder_name: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of all this if
statement?
Add customFields to alert update
Going to be tracked in #294 and closing this as 1.x is not supported anymore |
Added function to run responder by either responderID or ResponderName. Also added functions to verify responderName and search for responder by responderName.
If you say run_responder(,,responder_name='slackbot') it will fail the verification for the responder name because it is not slackbot_1_0 with the version numbers, however it will do a query for responders with a query string of slackbot and if there is only one matching responder it will run that responder.