Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.53 KB

README.md

File metadata and controls

37 lines (24 loc) · 1.53 KB

ROSbot

A Discord bot for generating Spotify playlists and retrieving Spotify user statistics.

Setup

First, you need to get a Discord bot token from here.
You need to get a Client ID and Client Secret tokens from here.

Next, make sure that nothing is running on http://localhost:PORT/. To run the bot use the following command:

go run . -t DISCORD_BOT_TOKEN -port PORT

You can omit the port, as the default is 8888.

The following message should appear on the command prompt if the bot is set up correctly:

Log: ROSbot is up.

Commands

ROSbot supports the following commands:

Command Description Arguments Image
!help print a list of all commands Help command
!log-in ID={client_id} SECRET={client_secret} print a link for Spotify authorisation client_id - the Client ID from Spotify client_secret - the Client Secret from Spotify
!say-hi greet the user
!get-stats {type} {time} get the Spotify statistics of the user {type} - artist / track {time} - last month / last 6 months / all time Artist statistics Track statistics
!create-playlist {mood} create a Spotify playlist according to a given mood {mood} - happy / sad / relaxed / party / focused / romantic / holiday / travel / motivated / sleepy Playlist