Use Discord to manage your Plex Media Server
Commands:
add-friend
invite a plex user to your plex media server
Some features won't work if Dobby is not installed on your Plex Media Server
- Install the latest Go compiler
- clone this project
- run
go mod init
in project folder - run
go build -o dobby
- run
./dobby
To get a discord token go to https://discordapp.com/developers/applications/me
- click
New App
- fill out required information
- click save
- click on the side tab that says
Bot
- copy
https://discordapp.com/api/oauth2/authorize?client_id=<client-id>&scope=bot&permissions=10240
and change theclient-id
to your client id in the Discord developer portal - go to url
- authorize bot to access your discord server
- go back to
https://discordapp.com/developers/applications/me
- copy
token
and put insecrets.toml
Your secrets.toml
should look like this:
discordToken="abc123"
plexToken="abc123"
Work In Progress
This bot will respond to the trigger word dobby
We need to link Dobby to our Plex Media Server
On first run Dobby will give you a Plex PIN to authorize. So you will need go to plex.tv/link
and link Dobby to your server
Work In Progress...
Build a binary with versioning
go build -i -v -ldflags="-X main.version=$(git describe --always --long --dirty)" -o shart