A fun Slack bot built with Bolt for JavaScript that adds useful tools and mini-games to your Slack workspace.
- 📖
/ps-help— List all commands - 🏓
/ps-ping— Measure bot latency - 🎲
/ps-random [max]— Generate a random number - π
/ps-pi— Display the value of Pi - 🪙
/ps-coinflip— Flip a coin - 📊
/ps-coinflip-stats— View coin flip statistics - 🍪
/ps-cookie— Click a cookie button - 📈
/ps-cookie-stats— View total cookie clicks
Clone the repository:
git clone https://github.com/PrajwaI/SlackBot.git
cd SlackBotInstall dependencies:
npm installCreate a .env file:
SLACK_BOT_TOKEN=your_bot_token
SLACK_APP_TOKEN=your_app_tokenStart the bot:
node index.js- Node.js
- Slack Bolt for JavaScript
- Socket Mode
- dotenv
.
├── index.js
├── package.json
├── package-lock.json
└── .env (not committed)
- 🎮 Trivia game
- 📝 Daily standups
- 📅 Reminders
- ☁️ Weather lookup
- 🎵 Music commands
- 💾 Persistent statistics database
MIT License
