Code Monkey home page Code Monkey logo

twitchtunes's Introduction

🎶 TwitchTunes

A Python Twitch bot that lets viewers add Spotify songs to your Spotify queue.

💻 Prerequisites

  1. Python
  2. A Twitch bot account
  3. A Spotify account (I think Premium is required, not sure.)

Usefull things to have before running setup.py

  1. Bot Token
  2. Twitch Application
    • Create a Chat Bot application
    • the OAuth redirect URL can just be http://localhost
  3. Spotify Application
    • Set the Website and Redirect URLs to http://localhost:8080

Setup

  1. Run the setup.py script.
  2. Follow all the instructions!

How to request songs

  1. !sr {song name}
    • You can also use a Spotify URL or URI
      • You can get a URI by searching a song on Spotify, then holding down the Ctrl key while right clicking on the song, and then selecting "Copy Spotify URI" from the Share menu.

💎 Other Commands:

  • Variables:

    • {user} - Twitch Username

    • {song} - Can be a song name, a Spotify URI, or a Spotify URL (for the blacklist commands, it can only be a URI or URL)

  • Commands:

    • !ping - Checks if the bot is online + shows what version

    • !blacklistuser {user} - Blacklists a user from using the bot

    • !unblacklistuser {user} - Unblacklists a user from using the bot

    • !blacklist {song} - Blacklists a song from being played

    • !unblacklist {song} - Unblacklists a song from being played

    • !np - Shows the current song

    • !songrequest {song} - Requests a song to be played

    • !roleadd {role/role id} - Adds a role to blacklist users from the bot

    • !roleremove {role/role id} - Removes a role to blacklist users from the bot

🙌 Code Contributors

matt/
matt

twitchtunes's People

Contributors

mmattbtw avatar dependabot[bot] avatar wynwxst avatar github-actions[bot] 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.