Searches for music on Spotify and returns a link!
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let search = context.params.event.content.split(' ').splice(1).join('%20');
let result = `https://open.spotify.com/search/${search}`
let message = context.params.event.content;
if(message.startsWith(`;spotify`)) {
await lib.discord.channels['@0.0.6'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `https://open.spotify.com/search/${search}`,
});
}