Skip to content

Appolon24800/AstolfoSpotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Astolfo spotify player

A simple spotify player for [Astolfo client] in lua with [zarscript2] and [Flask]

How to use?:

  • Download the file backend.exe, you can probably rewrite it for Linux / MacOS but Astolfo client only support windows.
  • Run it and open the .env file
  • Now, for the configuration of .env, check this [How to setup the spotify application?]

I don't want to use the compiled version:

  • If you don't want to use the compiled build, you can still use the source.
  • For that, you need to install python and pip
  • After that, open the CMD (window + R and type cmd.exe)
  • You will have to execute some commands now:
    • pip install flask[async]
    • pip install dotenv_python
    • pip install spotipy

And now that the backend is running?:

  • Install the "Spotify.lua" script and put it here: C:\Users\<Username>\AppData\Roaming\astolfo\scripts\
  • Reload the scripts and enable it.
  • If the backend is running, you installed and enabled the script but nothing is appening you need to enable unsafe functions:
  • In the chat send this message: .scripts unsafe

I want to use this script on another client:

Commands:

  • @pause (soon)
  • @skip (soon)
  • @trackurl --> send the spotify url of the song in the chat
  • @artisturl --> send the spotify url of the artist in the chat
  • @song --> send I am listening to "track" by "artistsName"
  • @artist --> send the artist name in the chat
  • @track --> send the song name in the chat

How to setup the spotify application?:

  • You will need to create a spotify application [here]
  • Login into your spotify account and click "Create an app"
  • Set "Redirect URI" to "http://localhost:3000/callback/"
  • Save everything and copy the Client ID
  • Click on "View client secret" and now you can copy the Client Secret
  • REMEMBER THAT anyone that have access to this file can skip, pause and have access to your name / email address so keep it private qz5k6lbu

I used:

Some photos

2 1 3 4