Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

raudio-bot

This project is a Discord bot written in Python as a client for the Raudio server. At the moment, it just a proof of concept in order to be an example for one of many clients you could build Raudio.

Installation

Install the package, optionally in a virtual environment:

pip install raudio-bot

Create the appropriate configuration files. See Setting your token and Creating a bot configuration below.

Finally, run the bot:

python3 -m raudio_bot

Setting up a development environment

In order to develop for the Raudio bot, first you must obtain a token from Discord for authenticating your bot. You can do this by visiting the Discord Developer Portal and creating an application. From there you can generate a token for the bot.

Downloading the project

Clone the repository with the following:

$ git clone git@github.com:raudio-project/raudio-bot.git
$ cd raudio-bot
$ python3 -m venv venv             # Create a python virtual environment
$ source venv/bin/activate         # Activate the dev environment
$ pip3 install -r requirements.txt # Install dependencies for the project

Setting your token

Now, specify the token by creating a .env file inside of the raudio-bot folder.

echo "BOT_TOKEN=your_token_goes_here" >> .env

Creating a bot configuration

Third, you must create a configuration for the bot. Create a raudio_config.json with the following:

{
    "stream_url": "http://momo.campus.nd.edu:5000/stream",
    "authenticated": [
        
    ]
}

Currently, the stream_url field corresponds to the URL where the raudio server is set to. You may, of course, host your own, but feel free to use the hosted version. This URL is only available to University of Notre Dame students signed into the eduroam network, due to the university firewall.

Running the bot

Now you should be all set up! Simply run the following

$ python3 raudio

License

GPL-3.0

Release files for raudio-bot 0.1.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for raudio-bot 0.1.0rc1
File Size Uploaded
raudio-bot-0.1.0rc1.tar.gz 17.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for raudio-bot 0.1.0rc1
File Interpreter ABI Platform
raudio_bot-0.1.0rc1-py3-none-any.whl Python 3 none any Details

Total release size: 35.4 kB

Release files / raudio-bot-0.1.0rc1.tar.gz

Download URL raudio-bot-0.1.0rc1.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8896a45d9fc754525a9b44a098c60838968c22dd82dc6076d44d7f2a46dbd46f
BLAKE2b-256 checksum
How to use checksums
91d233b94bd408ba03a74305b4ec6098d19db3425850b8f6a6784add4c7bccc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

Release files / raudio_bot-0.1.0rc1-py3-none-any.whl

Download URL raudio_bot-0.1.0rc1-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09180c6ea5c1ac87bdcdbb5aa56ca49562d1b020266ffa8d66295a119aab7558
BLAKE2b-256 checksum
How to use checksums
36af59deb75017ce90f5dbd850963dec790f8c5c5a115fd07c1de2d85a3dfbc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.1.0rc1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page