Exhaustive list of SPDX (Software Package Data Exchange) licenses: https://spdx.org/licenses/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import unicode_literals | |
from client import slack_client as sc | |
outputs=[] | |
def process_message(data): | |
'''If a user passes 'print users' in a message, print the users in the slack | |
team to the console. (Don't run this in production probably)''' | |
if 'print users' in data['text']: | |
for user in sc.api_call("users.list")["members"]: |