No description
modules | ||
.dockerignore | ||
.gitignore | ||
cmdsplit.js | ||
config.example.toml | ||
docker-compose.yml | ||
Dockerfile | ||
index.js | ||
LICENSE | ||
package.json | ||
Radio.js | ||
README.md | ||
RedditRadio.js | ||
Startup.js |
Radiobot
Radio Bot based on codecat/reddit-radio
Features
- Live radio re-streaming to voice channels (using multiple bot users), automatically turned on/off when someone joins/leaves the bound channel.
- Other cool things.
Modules
A module is a class in the modules
folder. It accepts the following methods:
constructor(config, client, bot)
whereconfig
is the object directly from the config file,client
is the Discord client, andbot
is theRedditRadio
object.onCmdXxxx(msg, ...)
whereXxxx
is a command name like.xxxx
.onTick()
is called every second.onMessage(msg)
is called whenever a message is sent in any channel. Returnfalse
if the message can pass through to other commands and handlers, ortrue
to stop that from happening.
Running using Docker from the repo
- Clone this repo
git clone https://github.com/codecat/reddit-radio.git
- Install dependancies
sudo apt install docker-compose
- Create a folder called
config
or similiar to keep your configuration in - Make a copy of
config.example.toml
calledconfig.toml
and place it in yourconfig
folder - Edit the config file
- Build and execute using docker-compose:
docker-compose up -d --build --remove-orphans
- Monitor execution with
docker-compose logs --follow --tail 100