Skip to content
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 contrib.slack #1313

Merged
merged 7 commits into from Apr 4, 2022
Merged

add contrib.slack #1313

merged 7 commits into from Apr 4, 2022

Conversation

0x2b3bfa0
Copy link
Contributor

@0x2b3bfa0 0x2b3bfa0 commented Apr 3, 2022

tqdm

Usage

>>> from tqdm.contrib.slack import trange
>>> for _ in trange(100, token='{token}', channel='{channel}'):
...     ...
  • {token} is a long code, usually prefixed with xoxb-
  • {channel} can be either a channel name prefixed with a hash or a channel identifier

Testing

Use this manifest to create an app:

display_information:
  name: tqdm
features:
  bot_user:
    display_name: tqdm
oauth_config:
  scopes:
    bot:
      - chat:write.public
      - chat:write

Note that the chat:write.public scope is only required to send messages to channels the app isn't member of.

tqdm/contrib/slack.py Outdated Show resolved Hide resolved
@0x2b3bfa0
Copy link
Contributor Author

468c47c was just to keep Codacy happy; feel free to revert if it's better to leave it as it was before.

@casperdcl casperdcl force-pushed the slack branch 2 times, most recently from 6e8989f to c0c7638 Compare April 4, 2022 00:15
tqdm/contrib/slack.py Outdated Show resolved Hide resolved
tqdm/contrib/slack.py Outdated Show resolved Hide resolved
@casperdcl casperdcl added p3-enhancement 🔥 Much new such feature submodule ⊂ Periphery/subclasses to-merge ↰ Imminent c3-small 🕒 Complexity medium labels Apr 4, 2022
@casperdcl casperdcl added this to Next Release in Casper Apr 4, 2022
@casperdcl casperdcl merged commit 4f208e7 into tqdm:master Apr 4, 2022
Casper automation moved this from Next Release to Done Apr 4, 2022
@casperdcl
Copy link
Sponsor Member

/tag v4.64.0 4f208e7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c3-small 🕒 Complexity medium p3-enhancement 🔥 Much new such feature submodule ⊂ Periphery/subclasses to-merge ↰ Imminent
Projects
Casper
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants