https://github.com/dhruv-joshi15/slack-chatops-bot
A Python + Flask Slack bot that simulates ChatOps commands like /deploy and /status.
https://github.com/dhruv-joshi15/slack-chatops-bot
automation chatops devops flask slack slack-bot
Last synced: about 1 month ago
JSON representation
A Python + Flask Slack bot that simulates ChatOps commands like /deploy and /status.
- Host: GitHub
- URL: https://github.com/dhruv-joshi15/slack-chatops-bot
- Owner: dhruv-joshi15
- Created: 2025-04-08T17:10:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-08T17:50:11.000Z (about 1 year ago)
- Last Synced: 2025-04-08T18:38:41.870Z (about 1 year ago)
- Topics: automation, chatops, devops, flask, slack, slack-bot
- Language: Python
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slack ChatOps Bot
A simple Python + Flask Slack bot that listens to `/deploy` and `/status` commands and responds with simulated DevOps automation messages.
## Commands
- `/status` – Returns a fake "all-systems-go" message.
- `/deploy` – Simulates a deployment trigger.
## Setup Instructions
1. Clone the repo and install dependencies:
```bash
pip install -r requirements.txt
```
2. Create a `.env` file from the template:
```env
SLACK_VERIFICATION_TOKEN=your-token-here
```
3. Run the bot:
```bash
python app.py
```
4. Use a tool like [ngrok](https://ngrok.com/) to expose your local Flask server and set it as your Slack command URL.
## Example Usage
Send `/status` or `/deploy` in Slack and receive a simulated bot response.
✅ Built by Dhruv Joshi