mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-22 09:33:07 +00:00
38 lines
1.5 KiB
Markdown
38 lines
1.5 KiB
Markdown
# Discord Rich Presence for Plex
|
|
|
|
A Python script that displays your [Plex](https://www.plex.tv) status on [Discord](https://discordapp.com) using [Rich Presence](https://discordapp.com/developers/docs/rich-presence/how-to).
|
|
|
|
## Requirements
|
|
|
|
* [Python 3.6.4+](https://www.python.org/downloads)
|
|
* [plexapi](https://github.com/pkkid/python-plexapi)
|
|
* The script must be running on the same machine as the Discord client.
|
|
|
|
## Configuration
|
|
|
|
Add your configuration(s) into the `plexConfigs` list on line 24.
|
|
|
|
### Example
|
|
|
|
```python
|
|
plexConfigs = [
|
|
plexConfig(serverName = "ABC", username = "xyz", password = "0tYD4UIC4Tb8X0nt"),
|
|
plexConfig(serverName = "DEF", username = "pqr@pqr.pqr", token = "70iU3GZrI54S76Tn", listenForUser = "xyz")
|
|
]
|
|
```
|
|
|
|
### Valid Parameters
|
|
|
|
* `serverName` - Name of the Plex Media Server to connect to
|
|
* `username` - Username of the account the server is signed in as
|
|
* `password` - Password associated with the above account
|
|
* `token` - A [X-Plex-Token](https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token) associated with the above account, ignores `password` if set
|
|
* `listenForUser` - Your username, defaults to `username` if not set
|
|
|
|
### Other Variables
|
|
|
|
* Line 15: `extraLogging` - Set this to `True` if you want the program to output more information
|
|
|
|
## License
|
|
|
|
This project is licensed under the MIT License. See the [LICENSE](https://github.com/phin05/discord-rich-presence-plex/blob/master/LICENSE) file for details.
|