Task Patrol Bot is a Discord bot designed to automate the verification process for activities or challenges that require participants to post their daily progress, such as "30 Days of Code." It helps keep track of participants' daily contributions and identifies users who are eligible for prizes based on their consistent activity.
- Features
- Getting Started
- Commands
- Database Setup
- Scheduled Reminders
- Exporting Data
- Contributing
- License
- Automated daily progress tracking.
- Calculation of daily streaks for participants.
- Identification of eligible participants based on activity.
- Scheduled reminders for daily submissions.
- Exporting data to Excel and PDF formats.
- User-friendly and interactive Discord bot.
Before setting up Task Patrol Bot, you'll need:
- Node.js
- MongoDB
- Discord Bot Token
- Discord Server
-
Clone the repository:
git clone https://github.com/SxxAq/Discord-bot-automation.git
-
Install dependencies:
cd Discord-bot-automation npm install
-
Create a
.env
file in the project directory and add your Discord bot token & MongoDB connection string:TOKEN=your_discord_bot_token MONGODB_URI=your_mongodb_connection_string
-
Start the bot:
node src/index.js
Task Patrol Bot supports the following commands:
!about
: Display information about the bot.!help
: Show a list of available commands and their descriptions.!submit [link]
: Submit your daily progress.!resubmit [link]
: Resubmit your progress for today.!streak
: Display your current streak.!export
: Export a record of all participants.!export-eligible-xlsx
: Export a list of eligible participants in XLSX format.!export-eligible
: Export a list of eligible participants in PDF format.!testreminder
: Manually trigger the daily progress reminder.
Task Patrol Bot uses MongoDB for database storage. The schema includes user information, submission format, streak, eligibility, and last submission date.
The bot schedules daily reminders at 6:00 PM (GMT+5:30) to remind participants to submit their daily progress.
You can export data in XLSX and PDF formats using the !export
and !export-eligible-xlsx
/ !export-eligible
commands, respectively.
Contributions to Task Patrol Bot are welcome! If you have suggestions or want to contribute to the development, feel free to create issues and pull requests.
This project is open source and available under the MIT License.