An open API service indexing awesome lists of open source software.

https://github.com/aweirddev/radio

The infamous Discord radio Bot from the @bloop-tw server.
https://github.com/aweirddev/radio

Last synced: about 1 year ago
JSON representation

The infamous Discord radio Bot from the @bloop-tw server.

Awesome Lists containing this project

README

          

# radio

The infamous Python Discord radio bot.

## Installation

1. Environment variables: Contain `TOKEN`. To do that, simply run:

```shell
export TOKEN=bot-token
```

2. Configuring Replit Database: Contains Replit database key `vc`, used for re-joining voice channels. To initialize:

```shell
python3 -c "import replit;replit.db['vc']={}"
```

3. Installing ffmpeg, opus and yt-dlp: Use `replit-ffmpeg` to install them:

```shell
pip install replit-ffmpeg && replit-ffmpeg
```

4. Install `py-cord`:

```shell
pip install py-cord
```

5. Run the bot:

```shell
python3 main.py
```

> [!WARNING]
> Take a look at line 27 of `main.py`. If you're using `replit-ffmpeg` to install, change the path to `'opus/libopus.so'` in the `discord.opus.load_opus` block.