Skip to content

A discord bot that provides data about availability of organ transplants and donation centers. This bot was submitted as a hackathon project for RUHacks 2022 .

Notifications You must be signed in to change notification settings

harsh098/ru-hacks-2022-submission

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ru-hacks-2022-submission - Organs4Health

The purpose of our bot is to develop a database that stores data of organ donors including blood donors, where our users can access this information and enter their personal health constitutions, once the arguments are entered into the bot, it will filter out the data according the arguments, and thus providing a potential candidate. Our developers had used nextcord library to communicate with the Discord API and aiosqlite3 to asynchronously access our mock database. This is just a prototype for a potential product pitch at RUHacks 2022 hackathon.

Getting Started - Dependencies

Nextcord

Python 3.8 or higher is required

SQLite3 must be installed

To install the library without full voice support, you can just run the following command:

    # Linux/macOS
    python3 -m pip install -U nextcord

    # Windows
    py -3 -m pip install -U nextcord

Otherwise to get voice support you should run the following command:

    # Linux/macOS
    python3 -m pip install -U "nextcord[voice]"

    # Windows
    py -3 -m pip install -U nextcord[voice]

To install additional packages for speedup, run the following command:

    # Linux/macOS
    python3 -m pip install -U "nextcord[speed]"

    # Windows
    py -3 -m pip install -U nextcord[speed]

To install the development version, do the following:

    $ git clone https://github.com/nextcord/nextcord/
    $ cd nextcord
    $ python3 -m pip install -U .[voice]

aiosqlite is compatible with Python 3.6 and newer. You can install it from PyPI:

    $ pip install aiosqlite3

pysqlite3 installation

    $ pip install pysqlite3

Running the bot

You can directly use this link to add the bot to your server or set it up manually on your system

Step 1 :- Clone the git repo

  $ git clone https://github.com/harsh098/ru-hacks-2022-submission/

Step 2 :- Add environment variables

Create your Discord Application and generate API_KEY using Discord Developer Portal.Make sure you generate an OAuth link and add the bot to your server.
Now execute the following commands

  # Linux/macOS
    DISCORD_API_KEY = "put your API_KEY here"
    export DISCORD_API_KEY
  # Windows
    setx DISCORD_API_KEY "put your API_KEY here"
    

Step 3 :- Running the Bot

Run the bot.py file

About

A discord bot that provides data about availability of organ transplants and donation centers. This bot was submitted as a hackathon project for RUHacks 2022 .

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages