All apis created for Coding Club IIT Jammu currently used in discord Server.
- Python 3.7
- Azure Serverless Functions
- Install Python.
- Clone this repository and open terminal, change directory to the repo.
- Run
python -m venv ./venv
to create virtual environment. - Run
venv\Scripts\activate
command to activate virtual environment. - Run
pip install -r reqirements.txt
command to install dependencies. - Create a local.settings file in the folder, containing
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"FUNCTIONS_WORKER_RUNTIME": "python",
"reddit" : <REDDIT_KEY>,
"DISCORD_CONTACT" : <DISCORD_WEBHOOK>
}
}
You can create a demo server and a bot application for testing purpose. Details here.
- Run
func start
.
If creating first function refer to Create a function in Azure that responds to HTTP requests