contrib_bots: Expose some information about user profile
- Expose some information about user profile in `RestrictedClient` class, like `full_name` and `email` of the user. - Add `client` argument to `triage_message()`, now it's possible to call bot with another method instead of calling the specified keyword.
This commit is contained in:
parent
6df2450b60
commit
8d35f25fd6
10 changed files with 20 additions and 11 deletions
|
@ -22,7 +22,7 @@ class FollowupHandler(object):
|
|||
called "followup" that your API user can send to.
|
||||
'''
|
||||
|
||||
def triage_message(self, message):
|
||||
def triage_message(self, message, client):
|
||||
# return True iff we want to (possibly) response to this message
|
||||
|
||||
original_content = message['content']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue