Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anon-exploiter/vubot
A script to post Quizzes, GDBs, and Assignments in Discord channel via WebHooks to alert the assignee.
https://github.com/anon-exploiter/vubot
alert discord-server heroku quizzes virtual-university virtual-university-of-pakistan vu vubot vulms webhooks
Last synced: 6 days ago
JSON representation
A script to post Quizzes, GDBs, and Assignments in Discord channel via WebHooks to alert the assignee.
- Host: GitHub
- URL: https://github.com/anon-exploiter/vubot
- Owner: Anon-Exploiter
- License: apache-2.0
- Created: 2021-02-09T10:28:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-29T09:04:33.000Z (over 2 years ago)
- Last Synced: 2025-01-18T09:29:05.064Z (9 days ago)
- Topics: alert, discord-server, heroku, quizzes, virtual-university, virtual-university-of-pakistan, vu, vubot, vulms, webhooks
- Language: Python
- Homepage:
- Size: 11.5 MB
- Stars: 7
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VUBot
A script to post `Quizzes`, `GDBs`, and `Assignments` in Discord channel via WebHooks to alert the assignee.
### Features
- Fetching Student's assigned `GDBs`, `Quizzes` and `Assignments`
- From (v1.2), we get any **pending challans'** as well! 😄
- Posting all that stuff in a `Discord channel`### How it works?
The script utilizies `Web Applications` source from VULMS. First it authenticates the user with his `studentId` and `studentPassword` and then creates and maintains a `session`. Utilizing that `session`, it accesses the **ActivityCalendar.aspx** file and gets the `JSON` containing the all data related to assigned stuff.
### How to use?
Add the following `environmental variables` according to your credentials and then execute the `script`.
```bash
export USERNAME=bcXXXXXXXX
export PASSWORD=XXXXXXXXXXX
export WEBHOOK_URL=https://discord.com/api/webhooks/XXXXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx
``````bash
python3 vu.py
```Alternatively, you can hard-code the **credentials** in the `creds.sh` file, `source` it, and execute the script.
```bash
source creds.sh
python3 vu.py
```### Output