/discord-bot

Official Bot for C4GT - please verify the https and URL before registering.

Primary LanguagePython

C4GT Discord Bot

Running the Bot locally

  1. Clone the repository onto your local system
  2. [Optional+Recommended] Set up a python virtual environment and activate it before installing dependencies. A Python venv is an independent collection of python packages and is used for creating replicable dev environments and preventing versioning conflicts.
  3. Use the pip install -r requirements.txt command to install all dependencies.
  4. Add the requisite .env file in the repository root.
  5. Run the bot using python3 main.py or python main.py command in the terminal.

Reference

how to build a simple discord bot discord.py

Features

  • Allow tagging a discordId to a githubId so that contributions can be managed. Everyone coming to the server will be required to register themselves on the bot. Ask every contributor to connect their Github to Discord. The bot will take this publicly available info and add it to the database.
  • Seeing the list of projects and their quick links. Should allow for navigation to projects.
    • Documentation links
    • Repositories
    • Learning path
    • Gitpod setup links
    • View the deployed link for master branch
    • Link to github unclaimed issues
  • Commands to do the following
    • Seeing the summary of proposals submitted by contributors
    • Listing contributions by profile
  • Share a summary of contributions at the end of the day to each individual channel project wise
    • Total PR Raised by Contributors (not mentors)
    • Total PRs Merged by Contributors (not mentors)
    • Top 5 contributors
    • Contributions for the day (Issues list)
  • Draft proposals
    • Share with mentors
    • Allow mentors ping contributors when the proposal is reviewed (not sure how this can be accomplished)
    • Dashboard to show all proposals a mentors needs to review
  • Final proposals
    • Submission

Registration Steps (WIP)

Step 1

Connect your Github with Discord.

Step 2

Got to this URL to register yourself. This URL allows the discord bot to get

  • email
  • identity
  • connections (githubId) This registeres a token with us that we can use to check your GithubId that was connected in step 1.