Skip to content

brdchen/lofi.me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lofi.me

Copyright Bradford Chen 2018

avatar

About

Lofi.me is a Discord bot meant for lofi lovers to play and discover lofi. It will play an endless amount of calming and relaxing lofi for you to study to.

Read >> Why lofi?

Setup

In order to setup lofi.me to run correctly, you first need to install node.js. After, install the following packages with the following lines in Command Prompt / Terminal:

Discord API Wrapper

npm install discord.js

Logging

npm install winston

Streaming

npm install ffmpeg-binaries
npm install node-opus

YouTube Data and Streaming

npm install ytdl-core
npm install youtube-api-v3-search

Next, you are going to want to setup a Discord bot by going to https://discordapp.com/developers/applications and set up a new application and a bot. There are plenty of guides out there on how to get started. I recommend starting with this one.

Once your bot is setup, you want to go into the auth.json file and copy your Discord Client ID to the token field.

In order to query YouTube, you're also going to need a Google Cloud API Key. You can get one by setting up a new project in the Google Cloud at https://console.cloud.google.com. Once you have your project just create a new credential and you'll have an API Key ready to use. Just copy that over to the ytkey field in auth.json and your bot will now be ready to stream music!

Note: Never expose your Google API Key or your Discord client ID for security purposes.

Usage

You can call lofi.me by starting commands with an exclamation mark: '!ping'

Calls Function
!ping Pong!
!greet Greets the user
!rolldice Rolls a fair 6 sided die
!stream Joins your current voice channel and streams lofi music
!songoftheday Returns a YouTube link to the song of the day
!recommendme Returns a YouTube link of a random recommended song

Plans

  • Add song of the day feature with Youtube link
  • Add support for listening to endless lofi in channel
    • No direct integration with spotify, but can listen to YouTube
    • Integrate with YouTube API or grab mp3 from YouTube and play it
    • Add Volume and Play/Pause Control
    • SoundCloud integration...?
  • Add additional fun features
    • Recommend a random lofi song
    • Link personal lofi playlist?
    • Allow users to create their own music playlists

About

A Discord bot for streaming and discovering lofi music

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors