/Applications/Spotify.app/Contents/Resources/Spotify.sdef
# read-only
osascript -e 'tell application "Spotify" to player state' # stopped,playing,paused
osascript -e 'tell application "Spotify" to current track' # The current playing track.
osascript -e 'tell application "Spotify" to artwork url of current track' # Image data in TIFF format.
osascript -e 'tell application "Spotify" to artist of current track' # The artist of the track.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var findModule = (item) => Object.values(webpackJsonp.push([[],{['']:(_,e,r)=>{e.cache=r.c}}, [['']]]).cache).find(m=>m.exports&&m.exports.default&&m.exports.default[item]!==void 0).exports.default; | |
findModule('sendMessage').sendMessage = (sendMessage => async(id, message, ...params) => { | |
if (message['content'].startsWith("getinfo <:") || message['content'].startsWith("getinfo <a:")) { | |
let arr = [] | |
message.validNonShortcutEmojis.forEach(emoji => { | |
var emojiuse = message['content'].replace('getinfo ', '') | |
arr.push(` ${emojiuse}\n`) | |
arr.push(`Emoji \`${emoji.name}\` (${emoji.id})\n`) | |
arr.push(`Emoji Animated \`${emoji.animated}\` \n`) | |
arr.push(`Emoji Available \`${emoji.available}\` \n`) |