TrizlyBear / fleabot

Discord bot for the band Red Hot Chili Peppers written in JS, with some API calls to Genius to pull the bands songs and lyrics in JSON.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FLEABOT

A Discord bot dedicated to the Red Hot Chili Peppers band.

trivia

Fleabot is a Discord bot dedicated to the chili peppers. You can give it commands to guess lyrics (pulled from a JSON with the band's lyrics in 278 songs, pulled from genius.com, guess what year some images were taken from (pulled from a JSON with getty images URL's), and pass down the stratocaster.

It's written in DiscordJS with some Python to pull lyrics from genius.com. It has command handling for the different commands which include:

  • /trivia (handles the 278 lyrics songs with sections).
  • /images (with 69 images).
  • /passdown for passing down a Stratocaster.

Features

Pull posts from the RHCP subreddit

subreddit

- Pulls posts from the /r/RedHotChiliPeppers subreddit every minute in embed format to a specific channel.

Pull posts from official Twitter accounts

twitter

  • Thanks to DiscordTwitterBot for the guide and code.
  • Pulls tweets the moment they are posted to a discord channel.

/trivia

trivia

  • Used python to pull 278 songs from Genius.com (with album artwork URL, lyrics, URL and title and other things)
  • Each song has sections (verse 1, chorus, etc...) so it pulls only a section for the embed message so you can have more than 2000 unique lyrics trivia.

/images

images

  • Pulled from a manually-picked JSON file from getty images from the band, initially with 69 images.
  • Contains URL, year, title, photographers and people.

/passdown

trivia

  • passes down a stratocaster.

Installation | How to use the Bot

1. Install NodeJS

2. Download this repo and unzip it | or git clone it.

3. Open CMD and Install all of the packages with npm install

4. Make sure you put down the credentials clientId, guildId and the token, along with twitter keys and channel ID's keys in a config.json file. More info here.

5. Add the bot in Discord Developer dashboard.

6. start the bot with node fleabot.js

About

Discord bot for the band Red Hot Chili Peppers written in JS, with some API calls to Genius to pull the bands songs and lyrics in JSON.


Languages

Language:TypeScript 99.0%Language:Dockerfile 0.8%Language:Shell 0.1%