Skip to content

The discord bot for our Coding Club IIT Jammu discord(development server) written in Python

Notifications You must be signed in to change notification settings

coding-club-iit-jammu/Ava

Repository files navigation

Ava

The discord bot for our Coding Club IIT Jammu discord(development server) written in Python

Build status Python 3.6

Technology stack

  • Python 3.7
  • Database : Azure Cosmos DB
  • Database API - MongoDB API
  • Deploy: Azure Pipelines
  • Server: Azure Virtual Machine

Instructions to Run locally and contribute

  1. Install Python.
  2. Clone this repository and open terminal, change directory to the repo.
  3. Run python -m venv ./venv to create virtual environment.
  4. Run venv\Scripts\activate command to activate virtual environment.
  5. Run pip install -r reqirements.txt command to install dependencies.
  6. Create a .env file in the folder, containing
DISCORD_TOKEN = <token>
SERVER = <server_id>
MONGODB = <mongodb_uri>
DEBUG = "True"
DEPARTMENT_CHANNEL = <department_selection_channel_id>
LOG_CHANNEL = <log_channel_id>
DEPARTMENT_MESSAGE = <department_selection_message>
SENDGRID_API_KEY = <sendgrid_key_optional_with_DEBUG>
  1. For using Google OAuth 2.0 to verify users.
    • Register a project on Google Cloud Platform
    • Goto API & Services dashboard.
    • Configure Consent Screen. userinfo.email scope is required to run this application.
    • Create a new Credential (Oauth Client ID). Select application type Desktop app.
    • Download client_secret.json file and place it at the project root.

You can create a demo server and a bot application for testing purpose. Details here.

  1. Push the changes in a separate branch and create a pull request. After the PR is merged, it will be automatically deployed to Azure VM via Azure Pipelines.

About

The discord bot for our Coding Club IIT Jammu discord(development server) written in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •