
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
geomusic-api
Advanced tools
The Official Geo Music API is here!
Note: This is a Beta!
npm i geomusic-api
First Request an API Key by DMing TheRealGeoDash#0295 on Discord
const geomusicapi = require('geomusic-api')
//Import the Module. Then in a ASYNC Function
/*
Using getQueue()
Usage getQueue("myapikey-asdklakldasklaskaldkslkdakd", myJSON)
The JSON must have these Details
myJSON = {
"user": "User ID from Discord",
"guild": "Guild ID from Discord"
}
*/
let myJSON = {
"user": "123456789012345678",
"guild": "123456789012345678",
}
const apimsg = await geomusicapi.getQueue("myapikey-dalskdalsdkasldkalsdkasldkalsdk", myJSON)
const msg = JSON.stringify(apimsg)
//Do something with the apimsg or msg* variable
* You do not need to use this unless you really need to
const geomusicapi = require('geomusic-api')
// Usages:
// You will need a Auth Token to make any requests
let authToken = "mytokenforapirequestshere"
// Each Function will need to be in a Asynchronous.
async function demonstration() {
// Get a Queue
let queue = await geomusicapi.getQueue(authToken, {
user: "123456789012345678",
guild: "123456789012345678"
}) // Returns Array of Tracks or null or Error
// Get the Current Playing Music
let playing = geomusicapi.getPlaying(authToken, {
user: "123456789012345678",
guild: "123456789012345678"
}) // Returns Track Info or null or Error
// Get Lyrics to a Song
let lyrics = geomusicapi.getLyrics(authToken, {
track: "Never Gonna Give You Up"
}) // Returns Lyrics or empty object
// Play a Song in a User's VC
geomusicapi.playTrack(authToken, {
user: "123456789012345678",
guild: "123456789012345678",
track: "Never Gonna Give You Up"
}) // Returns Object with Success Boolean with Track Name or Error
// Pause a Song in a User's VC
geomusicapi.pauseTrack(authToken, {
user: "123456789012345678",
guild: "123456789012345678"
}) // Returns Object with Success Boolean
// Resume a Song in a User's VC
geomusicapi.resumeTrack(authToken, {
user: "123456789012345678",
guild: "123456789012345678"
}) // Returns Object with Success Boolean
// Skip a Song in a User's VC
geomusicapi.skipTrack(authToken, {
user: "123456789012345678",
guild: "123456789012345678"
}) // Returns Object with Success Boolean
// Set Player Volume in a User's VC
geomusicapi.setVolume(authToken, {
user: "123456789012345678",
guild: "123456789012345678",
volume: "100"
}) // Returns Object with Success Boolean or Error
}
FAQs
Geo Music API for Node JS
The npm package geomusic-api receives a total of 0 weekly downloads. As such, geomusic-api popularity was classified as not popular.
We found that geomusic-api demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.