A bot to add some Animal Crossing: New Horizons goodness to your voice channel
TownTune plays the Animal Crossing: New Horizons song for the current hour in your Discord server's region
Have the bot join your voice channel and start playing music
Stop the music and have the bot disconnect from the voice channel
TownTune isn't publicly hosted, but you're welcome to set it up yourself for your personal use only.
The easiest way to run it is using the Docker image at turnervink/towntune-bot
.
That includes all of the MP3 files needed for the bot to function.
Once you've got the image run it with:
docker run -e BOT_TOKEN=<your discord bot token> -e ENV=<environment> turnervink/towntune-bot
BOT_TOKEN
should be your Discord bot token
ENV
should be development
if you want to see logs for working on the bot, and production
otherwise
I haven't been able to figure this out, there's some issue with loading the libopus.so
file
when I try to run the bot outside of Docker. If you want to give it a go you'll need to set up a few things:
- Install the Python dependencies
discord.py[voice]
pytz
- Provide the MP3 files for the bot to use (they're not committed to this repo)
- Put 24
.mp3
files in/audio
that are named0.mp3
through23.mp3
for the hour they should each be played - Put a
hour-chime.mp3
file in/audio
that will be played between hours when the song changes
- Put 24
- Set the environment variables
BOT_TOKEN
should be your Discord bot tokenENV
should bedevelopment
if you want to see logs for working on the bot, andproduction
otherwise