Giter Site home page Giter Site logo

groupme-lyricsbot's Introduction

GroupMe-LyricsBot

A GroupMe bot that returns the lyrics of songs

Requirements

A GroupMe and Genius account is required in order to run the bot.

In addition, you need to install GroupyAPI and LyricsGenius.

pip install GroupyAPI
pip install lyricsgenius

Starting the bot

Creating the bot

Go to https://dev.groupme.com/bots and create a bot in your respective group chat.

Editing the variables

Next, you must first edit the variables in main.py

After editing the variables, just run main.py and you're all set!

Using the bot

!lyrics {name}, {artist}

Simply replace the fields with your song name and artist and the bot will send the songs lyrics.

The bot sends a single message for each verse, so longer songs can be quite spammy, so please be cautious.

Understanding error messages

ERROR: No Song Found for {name},{artist}
Format is '!lyrics [name], [artist]'

The Genius API could not find a song that matched the song's description so recheck the spelling of the song's name and artist, then try again.

Error with song

The Genius API found the song, but the LyricsBot could not output the lyrics for a certain reason. The reason behind this error can be quite broad, but a common reason is that the verse of the song is too long for the GroupMe character limit.

If you get this suggestion, the best option is to choose another song.

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.