Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

Latest commit

 

History

History
History
11 lines (8 loc) · 397 Bytes

File metadata and controls

11 lines (8 loc) · 397 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
from __future__ import unicode_literals
from client import slack_client as sc
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"]:
print(user["name"], user["id"])
Morty Proxy This is a proxified and sanitized view of the page, visit original site.