https://github.com/tsembp/wg-course-task-notifier-bot
A discord bot designed to notify the students of Wargaming's Backend SWE Course for when a new task is uploaded into the platform.
https://github.com/tsembp/wg-course-task-notifier-bot
discord-bot python scraper
Last synced: about 1 year ago
JSON representation
A discord bot designed to notify the students of Wargaming's Backend SWE Course for when a new task is uploaded into the platform.
- Host: GitHub
- URL: https://github.com/tsembp/wg-course-task-notifier-bot
- Owner: tsembp
- Created: 2025-04-05T17:49:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-07T15:44:38.000Z (over 1 year ago)
- Last Synced: 2025-04-09T21:12:40.732Z (over 1 year ago)
- Topics: discord-bot, python, scraper
- Language: Python
- Homepage:
- Size: 201 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ค Wargaming Course - New Task Notifier Discord Bot
A Discord bot that scrapes Wargaming's Backend SWE Course platform for new tasks and immediately notifies users in our Discord server.
The idea came to me after constantly having to check for updates manuallyโI wanted a solution that would help not just me, but also the 50 other course participants stay on top of new assignments effortlessly. Currently, the bot runs locally, and I'm planning to deploy it soon for 24/7 automated monitoring.
## Features
- ๐ **Automated Monitoring:** Checks for new course tasks every 10 minutes using Selenium web automation.
- ๐ **Real-Time Notifications:** Posts instant alerts in a designated Discord channel when new tasks are detected.
- ๐พ **Task Tracking:** Maintains a record of previously seen tasks to prevent duplicate notifications.
- ๐ค **Command Interface:** Enables users to retrieve current tasks or check for updates on demand using simple commands.
## Screenshots of usage
### Listing All Tasks

### New Task Notifications

### Manual Update Check

## Installation
1. Clone this repository:
```
git clone https://github.com/tsembp/WG-Course-Task-Notifier-Bot.git
cd WG-Course-Task-Notifier-Bot
```
2. Install required dependencies:
```
pip install -r requirements.txt
```
3. Set up your environment variables (see Configuration section)
## Configuration
Create a `.env` file in the project root with the following variables:
```
# Wargaming Board Platform Credentials
wg_username = "username"
wg_password = "password"
login_url = "url/login"
tasks_url = "url/tasks"
# Discord Bot Config Parameters
bot_token = "token"
bot_url = "url"
channel_id = "id"
permissions_int = "perms"
```
### Getting Discord Bot Token
1. Go to the [Discord Developer Portal](https://discord.com/developers/applications)
2. Create a new application
3. Navigate to the "Bot" tab and click "Add Bot"
4. Copy the token from the "Token" section
### Getting Channel ID
1. Enable Developer Mode in Discord (Settings > Advanced > Developer Mode)
2. Right-click on the channel you want to use and select "Copy ID"
## Usage
Run the bot:
```
python bot.py
```
The bot will automatically check for new tasks every 10 minutes and post notifications to the configured Discord channel.
## Commands
- `!tasks` - Displays all available tasks from the course platform
- `!updates` - Checks for new tasks
## Dependencies
- discord.py - Discord API wrapper
- selenium - Web automation
- python-dotenv - Environment variable management
## License
[MIT License](LICENSE)