Discord bot for RPG Game Masters
List of available commands: wushu
-
/r initiative
to roll 1D20 for initiative -
/r <atk> <def>
to roll D6 for attack and D6 for defense -
/r quick
to roll a quick success test -
!sing
to invite the bot in your current vocal channel, and start streaming fromconfig.iceCastUrl
in your config/base.json
You will need to install icecast + darkice (Linux) or butt (Windows) to stream audio from your computer to the bot.
Rename config/base.demo.json
to config/base.json
First, you need a way to diffuse audio with icecast
sudo apt-get install icecast2
Edit icecast config /etc/icecast2/icecast.xml
and set user/password
<authentication>
<!-- Sources log in with username 'source' -->
<source-password>your-password</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>your-password</relay-password>
<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>password</admin-password>
</authentication>
Restart icecast2 with new config
sudo /etc/init.d/icecast2 stop && sudo /etc/init.d/icecast2 start
sudo apt-get install darkice
You can edit the darkice config file in config/darkice.cfg
to suit you icecast config
Launch DarkIce to redirect your local audio to the stream server
darkice -c /path/to/darkice.cfg
If you go to icecast admin page you should see thebard.ogg mountpoint ready to play
Fill the config/base.json
iceCastUrl section to match your server setup
Go to Discord developers portal and create a new application.
Copy the CLIENT ID to your config/base.json
file
Click on it, and go to the bot tab to create the bot
Check the bot token and click to reveal
Copy the secret token to your config/base.json
file