A Python Slack bot through IPython
Reason this release was yanked:
Did not have a security option to limit who could send messages.
Project description
Slack IPython bot 🤯
One Slack bot to rule them all. PyBot. Just send Python code as a message.
Install
pip install slack-ipython
To start the bot, simply run:
slack-ipython
For detailed output, add DEBUG=true
as an environment variable.
Create a .env
(or set these environment variables yourself).
SLACK_APP_TOKEN="xapp-..."
SLACK_BOT_TOKEN="xoxb-..."
Configure your Slack app
First create a new Slack app in the Slack app dashboard.
Your Slack app needs to have:
- [Settings -> Basic Information -> App-Level Tokens]
- Create a bot token
- connections:write
- (Optional) configure app icon.
- Create a bot token
- [Settings -> Socket Mode]
- Socket mode enabled
- [Features -> App Home]
- Messages Tab enabled
- [Features -> App Home -> Show Tabs]
- "Allow users to send Slash commands and messages from the messages tab" enabled
- [Features -> OAuth & Permissions -> Scopes]
- The following OAuth scopes
- chat:write
- files:write
- im:history
- im:read
- im:write
- The following OAuth scopes
- [Features -> Event Subscriptions]
- Events enabled
- Subscribed to bot events
- message.im
Or use the App Manifest slack_app.yaml.
Make sure you install the Slack app in your workspace after configuring the above.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
slack-ipython-0.0.2.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for slack_ipython-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceb079c81cc05350b206887d9ce1103fabe9dfb135179b7a1aa7abcb0731eb8f |
|
MD5 | 9d1e743ae11786b27b007e2981e181c1 |
|
BLAKE2b-256 | 33b89cd1d01b99e11b6202e271084cebedaad0d23a2e195e0fb2366e6a3a58f6 |