How to use:
For using moodleNotifier,
You need to have Moodle Token, for generating Moodle token you can use generatetoken.py file to generate the moodle token.
Command : python3 generatetoken.py
You have to input your username and password in the terminal and then it will print your moodle token in the terminal itself. Just copy and use while registering on website.


Write the moodle username and password in the letsloginyourself.py and the code will generate moodle token.
        Open the Web Browser and go to https://moodlenotifier.herokuapp.com and register for the moodleNotifier.




To Run on the Local Machines with Source Code:




Using moodleNotifier is very simple. You need to have installed the dependencies for running the server locally in your machine.


To install python3 on ubuntu, run the following command in your terminal.


    sudo apt-get install python3


To install Django on ubuntu, run the following command in your terminal.


    pip3 install django


And install the requirements as mentioned in requirements.txt




One needs to git clone the project. After that open terminal in moodlenotifier of the project directory and run following commands.




    python3 manage.py makemigrations
    python3 manage.py migrate
    python3 manage.py runserver


To access the application open the web browser and go to "localhost:8000"


To  Run from the herokuapp Server:


The moodleNotifier app is hosted on the heroku Server.
To run it. Open web browser and goto https://moodlenotifier.herokuapp.com/
And then register yourself by clicking on register button and adding the details as required.




To chat with the bot : 
Register with us at the website.
Add +1 (415) 523-8886 to your contacts.
Send first message : join enemy-pig
Just send Hi to the bot and it will send you information on what kind of questions to ask the bot.

NOTE:
You can't test the bot as you need to have a twilio account for that and add the server link/sms in the twilio whatsapp settings.
