Git Product home page Git Product logo

krushil1 / home-access-center-bot-with-discord-integration-v2.0 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 290 KB

This is a Discord BOT that fetches your grades from HAC and reports your grades to your discord server. I made this to save myself some time and help me from manually checking my grades by opening HAC. I used a Raspberry Pi to run the python program every three days. It's powered by Selenium and Dhooks. v2.0

License: MIT License

Python 100.00%
discord discord-bot discord-server grades hac

home-access-center-bot-with-discord-integration-v2.0's Introduction

Home Access Center BOT v2.0

A big thanks to https://github.com/Hedgy134117/ for helping me out and making this possible!

This is basically the same version of v1.0, except with new terminal output with colors and fixed minor errors!

Installation

  • Install Python3
  • Have Chrome, before installing the ChromeWebDriver, check your current Chrome browser's version number and then proceed to download the ChromeWebDriver with the matching version number to your Chrome brower from https://chromedriver.chromium.org/downloads
  • store the chromedriver.exe file in a folder that you won't delete from and make remember where you save it.
  • run the command pip install -r requirements.txt

Setup

  • enter your username and password in the credentials.py file
  • create a discord server dedicated for your grades to be dumped into
  • create a new webhook inside your discord server and copy it's URL
  • paste the webhook URL inside the webhook variable in the main.py file. It will the end of the code, read the comments for more help!!
  • paste the location of the chromedriver.exe file in the main.py file, read the comments for more help!!

Running the python script

  • Simply open up your terminal if you are on mac or command prompt if you are on windows
  • Switch to the directory where the python script is with the cd command
  • To run the program now, simply type python3 main.py
  • And now it should start the process of fetching your grades and dumping them to your discord, it might take up to a minute

Running it automatically

  • if you plan on running this bot automatically on Windows, use Task Scheduler. Its an pre-installed application to automatically run scripts like python
  • if you plan on running this bot automatically on MacOS, use Automator. Its an pre-installed application to automatically run scripts like python

Adding more classes

  • read the comments in the end of the code in main.py to add more classes!

You're all set and ready to run your bot! Feel free to open up a issue if something goes wrong or doesn't work, I will troubleshoot your issue!!

home-access-center-bot-with-discord-integration-v2.0's People

Contributors

krushil1 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.