Little Discord Bot that I use to play radio streams and other random stuff.
The bot uses an addon structure. Addons can be enable and disabled in the config file. New addons can be added using the interfaces.
Currently it is mainly used to play online radion stations contained in cfg/radio.xml
Additionally it has cleverbot support. More features to come.
Have a request? create an issue and maybe I can quickly implement it.
Command | Function |
---|---|
!shrug | ¯_(ツ)_/¯ |
!bot | Connects to the predefined channel |
!RADIOSHORT | Plays the radio station as defined in the config file. |
= | Talks to a cleverbot |
!list | lists all commands available |
Each station has to be created according to the following example code:
<!-- Питер FM -->
<station name="Питер FM">
<command>piterfm</command>
<streamURL>
http://icecast.piktv.cdnvideo.ru/piterfm
</streamURL>
<nowPlayingURL>http://www.radiopiterfm.ru/login/div_musicblock.php</nowPlayingURL>
<nowPlayingRE><![CDATA[;"><strong>(.*)<\/strong> — (.*) <span>(\d*:\d*)<\/span>
]]>
</nowPlayingRE>
</station>
Usage:
- Install ffmpeg (http://ffmpeg.org/)
- Install discordpy (
pip3 install -r requirements.txt
) - ./run
Ctrl+c to stop bot script