mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
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:
@@ -56,7 +56,7 @@ class HowdoiHandler(object):
|
||||
* @howdowe! OR @howdoi! > Full answer from SO
|
||||
'''
|
||||
|
||||
def triage_message(self, message):
|
||||
def triage_message(self, message, client):
|
||||
cmd_list = ['@howdowe', '@howdoi', '@howdowe!', '@howdoi!']
|
||||
question = message['content']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user