A general purpose Discord bot made for the /r/hardstyle Discord.
It does:
A module is a class in the modules folder. It accepts the following methods:
constructor(config, client, bot) where config is the object directly from the config file, client is the Discord client, and bot is the RedditRadio object.onCmdXxxx(msg, ...) where Xxxx is a command name like .xxxx.onTick() is called every second.onMessage(msg) is called whenever a message is sent in any channel. Return false if the message can pass through to other commands and handlers, or true to stop that from happening.You can use Docker and a mounted volume to easily run Reddit Radio.
The Reddit Radio Docker image is publically available on Docker Hub and can be found here and are automatically built each time a change is made to the master branch.
config or similiar to keep your configuration inconfig.example.toml called config.toml and place it in your config folderdocker run -d --name reddit-radio -v $(pwd)/config:/app/config codecatt/reddit-radio:latestgit clone https://github.com/codecat/reddit-radio.gitdocker build . -t reddit-radioconfig or similiar to keep your configuration inconfig.example.toml called config.toml and place it in your config folderdocker run -d --name reddit-radio -v $(pwd)/config:/app/config reddit-radioNote: For development you could map your whole code directory as follows:
docker run -d --name reddit-radio -v $(pwd):/app reddit-radio
Content type
Image
Digest
sha256:3beae3c72…
Size
68.5 MB
Last updated
about 3 years ago
docker pull codecatt/reddit-radio