-
Notifications
You must be signed in to change notification settings - Fork 34
Filling out settings
Enable Intents else bot will not Dm users after they get the role.
https://discordpy.readthedocs.io/en/latest/intents.html#privileged-intents
Paste the discord bot token into ''.
Example: Discord_bot_token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
Follow this guide on how to get that. Note: When inviting the bot to your discord server make sure it has “Administrator” permission.
Paste in the role id. Since this is an Int do not use ''.
Example: roleID = XXXXXXXXXXXXXXX
This is the role that will trigger the bot to get the email from the user and invite them to Plex Note: Bot only works when someone is given this role and won't message the user if they already have this role.
- Enable developer mode in your discord app (Discord settings -> Appearance -> Enable developer mode)
- Click on a user that has the role you want.
- Right click on the role and select "Copy ID"
Enter your plex username into the Apostrophes ''.
This is just your plex username.
Enter your plex Password into the Apostrophes ''.
This is just your plex passowrd.
Enter your plex server name into the Apostrophes ''.
Go to your plex settings -> your server settings -> general -> Friendly name. Copy and paste it here.
Enter your plex libraries into the python list.
Example: ["in here","in here","in here"]
Do the same as step 5 but for the names of the libraries you want that user to have access to. By clicking manage library -> edit -> and copying the name.
Lastly copy ID of a channel.
This is for logging purposes. The bot will send a message here with the email address that gets added to plex.
You will also be able to use command -plexadd email
in this channel to add emails manually.