Skip to content

riffy-team/riffy-spotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Spotify Plugin for Riffy Client.

Installation

npm install riffy-spotify

Documentation

Usage

const { Riffy } = require("riffy")
const { Spotify } = require("riffy-spotify")

const spotify = new Spotify({
    clientId: "XxxxXxxxXxxxX", // https://developer.spotify.com/
    clientSecret: "XxxxXxxxXxxxX"
});

client.riffy = new Riffy(client, nodes, {
    send: (payload) => {
        const guild = client.guilds.cache.get(payload.d.guild_id);
        if (guild) guild.shard.send(payload);
    },
    defaultSearchPlatform: "ytmsearch",
    restVersion: "v3",
    plugins: [spotify]
});

Conclusion

If you have any questions, feel free to join our discord server.

License

This project is licensed under the MIT License