GithubHelp home page GithubHelp logo

harsh098 / ru-hacks-2022-submission Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 31 KB

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 .

Home Page: https://devpost.com/software/organ4health

Python 100.00%
accessibility discord-bot e-governance healthcare nextcord-py python sql sustainability

ru-hacks-2022-submission's Introduction

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

ru-hacks-2022-submission's People

Contributors

chalory avatar harsh098 avatar kevinpham-bme-prog avatar

Watchers

 avatar

Forkers

chalory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.