npm install
config/keys.js
file, replacing the placeholders.config/plex.js
file and replace the placeholders with your Plex Server information
http://[PMS_IP_Address]:32400/?X-Plex-Token=YourTokenGoesHere
into your address bar of a web browser. Copy everything between the quotes for the parameter "machineIdentifier" and paste it into the "machineId" property in config/plex.js
https://discordapp.com/api/oauth2/authorize?client_id=[CLIENT_ID]&scope=bot&permissions=1
where [CLIENT_ID] is the Discord App Client IDindex.js
is located) and in your console, type node index.js
If I am missing any steps, feel free to reach out or open an issue/bug in the Issues for this repository.
!plexTest
: a test to see make sure your Plex server is connected properly!clearqueue
: clears all songs in queue!nextpage
: get next page of songs if desired song is not listed!pause
: pauses current song if one is playing!play <song title or artist>
: bot will join voice channel and play song if one song available. if more than one, bot will return a list to choose from!playsong <song number>
: plays a song from the generated song list!removesong <song queue number>
: removes song by index from the song queue!resume
: resumes song if previously paused!skip
: skips the current song if one is playing and plays the next song in queue if it exists!stop
: stops song if one is playing!viewqueue
: displays current song queueUpdate the config\keys.js
file with your information:
module.exports = {
'clientId' : 'DISCORD_CLIENT_ID',
'clientSecret' : 'DISCORD_CLIENT_SECRET',
'username' : 'DISCORD_BOT_USERNAME',
'botToken' : 'DISCORD_BOT_TOKEN',
};
And update the config\plex.js
file with your Plex information:
module.exports= {
'hostname' : 'PLEX_LOCAL_IP',
'port' : 'PLEX_LOCAL_PORT'
'username' : 'PLEX_USERNAME',
'password' : 'PLEX_PASSWORD',
'token' : 'PLEX_TOKEN',
'machineId' : 'PLEX_MACHINEID',
'managedUser' : 'PLEX_MANAGED_USERNAME',
'options' : {
'identifier': 'APP_IDENTIFIER',
'product' : 'APP_PRODUCT_NAME',
'version' : 'APP_VERSION_NUMBER',
'deviceName': 'APP_DEVICE_NAME',
'platform' : 'Discord',
'device' : 'Discord'
}
};
If you see any bugs or have any suggestions, use the issue tracker. Thanks!
return api.query({ uri: '/', extraHeaders: { 'X-TEST-HEADER': 'X-TEST-HEADER-VAL' } }).then(result => {
expect(result).to.be.an('object');
nockServer.done();
});
!play
when another song is playing