A simple spotify player for [Astolfo client] in lua with [zarscript2] and [Flask]
- 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?]
- 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
- 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
- You can rewrite the script for Moon client with Moon client scripting api
- You can rewrite the script for Rise client with Rise client scripting api
- @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
- 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
- [PyInstaller] to compile the file
- [UPX] to compress the executable
- [chat_bridge] original by malwarekat