
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Discofy allows control of Spotify playback through Discord API, offering features like play/pause, track skipping, volume control, and device management.
Wanna control Spotify playback API but you don't want to pay for a Spotify Premium? No problem!
Discofy
is a Python library that allows you to control Spotify playback for free, without a premium subscription — just by using your Discord account.
To install Discofy, simply use pip:
pip install discofy
client.play_track("spotify:track:PASTE_TRACK_ID")
client.set_volume(10)
# Sets volume to 10%client.add_to_playback_queue("spotify:track:PASTE_TRACK_ID")
Basic Python script to control Spotify playback with Discofy:
from discofy import Discofy
# Set your Discord token
discord_token = "PASTE_YOUR_TOKEN_HERE"
client = Discofy(discord_token)
# Set volume to 10%
client.set_volume(10)
# Pause playback
client.pause_track()
# Print info about the currently playing track
print(client.get_current_track())
# Shows if something is being played
if judeify.is_playing():
print("Something is being played")
else:
print("Nothing is being played!")
Discofy is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
For more details, visit: https://creativecommons.org/licenses/by-sa/4.0/
FAQs
Discofy allows control of Spotify playback through Discord API, offering features like play/pause, track skipping, volume control, and device management.
We found that discofy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.