Giter VIP home page Giter VIP logo

towntune-bot's Introduction

TownTune Bot for Discord

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

Commands

@TownTune start

Have the bot join your voice channel and start playing music

@TownTune stop

Stop the music and have the bot disconnect from the voice channel

Setup

TownTune isn't publicly hosted, but you're welcome to set it up yourself for your personal use only.

Run with Docker

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

Run without Docker

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 named 0.mp3 through 23.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
  • Set the environment variables
    • 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

towntune-bot's People

Contributors

turnervink avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.