https://github.com/Khushi130404/SlackBot
SlackBot is a Django-based bot that integrates with Slack using the Slack Events API. It listens for messages and events in a Slack workspace and responds based on predefined logic.
https://github.com/Khushi130404/SlackBot
chatbot django django-rest-framework slack
Last synced: 9 months ago
JSON representation
SlackBot is a Django-based bot that integrates with Slack using the Slack Events API. It listens for messages and events in a Slack workspace and responds based on predefined logic.
- Host: GitHub
- URL: https://github.com/Khushi130404/SlackBot
- Owner: Khushi130404
- License: mit
- Created: 2024-12-10T15:08:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-05T03:10:43.000Z (over 1 year ago)
- Last Synced: 2025-04-01T20:47:37.403Z (about 1 year ago)
- Topics: chatbot, django, django-rest-framework, slack
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# SlackBox
SlackBot is a Django-based bot that integrates with Slack using the Slack Events API. It listens for messages and events in a Slack workspace and responds based on predefined logic.
## Features
- Listens for messages in specific Slack channels.
- Responds to commands and keywords.
- Supports event-driven interactions using the Slack Events API.
- Easily extendable for additional functionality.
## Prerequisites
- Python 3.x
- Django
- A Slack workspace
- A Slack app with Events API enabled
## Setting Up Slack App
- Create a new Slack app from Slack API.
- Enable the Events API and set the request URL to your server.
- Subscribe to events like message.channels or message.im.
- Add the OAuth & Permissions scope chat:write and channels:history.
- Install the app to your workspace and copy the bot token.
## Usage
- Mention the bot in a Slack channel to trigger a response.
- Send direct messages to the bot for interactions.
- Extend the bot’s functionality by adding custom event handlers in Django.