Skip to content

Filling out settings

Sleepingpirates edited this page Nov 23, 2020 · 6 revisions

Filling out settings in Invitarr.py

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.

  1. Enable developer mode in your discord app (Discord settings -> Appearance -> Enable developer mode)
  2. Click on a user that has the role you want.
  3. Right click on the role and select "Copy ID"

copyid

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.

Here is what my settings look like:

Settings

Clone this wiki locally