Study Bot is a Discord bot designed to help you and your community stay productive. It provides Pomodoro study sessions, session tracking, and scheduled tasks — making it ideal for study servers, accountability groups, and productivity enthusiasts.
- ⏳ Pomodoro Timers – Start, pause, and resume study sessions
- 💾 Session Persistence – Restores active sessions on restart
- 📅 Scheduled Jobs – Weekly summary/notification using
node-cron - 📊 SQLite Database – Stores session history & active sessions
- 🔐 Role-based Permissions – Admin-only commands for bot management
- ⚡ Slash Commands with Discord’s latest API
-
Clone the repository
git clone https://github.com/your-username/study-bot.git cd study-bot -
Install dependencies
npm install
-
Set up environment variables Create a
.envfile in the root folder:DISCORD_TOKEN=your_discord_bot_token CLIENT_ID=your_discord_app_client_id GUILD_ID=your_discord_server_id # optional (for development) OWNER_ID=your_discord_user_id ADMIN_ROLE_ID=your_admin_role_id
-
Run the bot
node index.js
index.js # Main bot logic
.env.example # Example environment variables
package.json # Dependencies and scripts
schema_reset.sql # Reset script for database
data/ # SQLite database files (auto-created)
(Add screenshots of your bot running, Pomodoro timers, and sample commands)
Contributions are welcome!
- Fork the project
- Create a feature branch (
git checkout -b feature/your-feature) - Commit changes (
git commit -m "Add feature") - Push to branch (
git push origin feature/your-feature) - Open a Pull Request
This project is licensed under the MIT License – see the LICENSE file for details.
- ✅ Add leaderboards for study sessions
- ✅ Implement reminders/alerts for break times
- ✅ Add web dashboard for session statistics
- ✅ Multi-guild support with custom settings