From 19970530b24a6e0721c325b93988144e1c331db0 Mon Sep 17 00:00:00 2001 From: Faiz Ahmed <32914211+Sleepingpirates@users.noreply.github.com> Date: Mon, 26 Jul 2021 12:52:33 -0400 Subject: [PATCH 1/2] updated --- README.md | 47 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 6eab485..29fb543 100644 --- a/README.md +++ b/README.md @@ -15,19 +15,34 @@ Invitarr is a chatbot that invites discord users to plex. You can also automate - Fully configurable via a web portal Commands: + ``` --plexadd +.plexinvite This command is used to add an email to plex --plexrm +.plexremove This command is used to remove an email from plex --db ls +.dbls This command is used to list Invitarrs database --db add <@user> +.dbadd <@user> This command is used to add exsisting users email and discord id to the DB. --db rm +.dbrm This command is used to remove a record from the Db. Use -db ls to determine record position. ex: -db rm 1 ``` +# Setup + +**1. Enter discord bot token in bot.env** + +**2. Install requirements** + +``` +pip3 install -r requirements.txt +``` +**3. Start the bot** +``` +python3 Run.py +``` + # Docker Setup & Start 1. First pull the image @@ -36,7 +51,20 @@ docker pull piratify/invitarr:latest ``` 2. Make the container ``` -docker run -d --restart unless-stopped --name invitarr -v /path to config:/app/app/config -p 80:80 piratify/invitarr:latest +docker run -d --restart unless-stopped --name invitarr -v /path to config:/app/app/config -e "token=YOUR_DISCORD_TOKEN_HERE" piratify/invitarr:latest +``` + +# After bot has started + +Setup Commands: + +``` +.setupplex +This command is used to setup plex login. +.roleadd <@role> +These role(s) will be used as the role(s) to automatically invite user to plex +.setuplibs +This command is used to setup plex libraries. Default is set to all. ``` Refer to the [Wiki](https://github.com/Sleepingpirates/Invitarr/wiki) for detailed steps. @@ -44,10 +72,3 @@ Refer to the [Wiki](https://github.com/Sleepingpirates/Invitarr/wiki) for detail **Enable Intents else bot will not Dm users after they get the role.** https://discordpy.readthedocs.io/en/latest/intents.html#privileged-intents - -**Default login** - -``` -User: admin -Pass: admin -``` From 4138c545c9085e14639f6b9f1eaaa1c51542d5ed Mon Sep 17 00:00:00 2001 From: Faiz Ahmed <32914211+Sleepingpirates@users.noreply.github.com> Date: Mon, 26 Jul 2021 13:08:46 -0400 Subject: [PATCH 2/2] Update requirements.txt --- requirements.txt | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/requirements.txt b/requirements.txt index d630205..1a9299c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,27 +1,4 @@ -aiohttp -async-timeout==3.0.1 -attrs==19.3.0 -bcrypt==3.1.7 -certifi==2020.4.5.2 -cffi==1.14.0 -chardet==3.0.4 -click==7.1.2 discord.py -idna==2.9 -idna-ssl==1.1.0 -itsdangerous==1.1.0 -Jinja2 -MarkupSafe==1.1.1 -multidict==4.7.6 plex.py==0.9.0 PlexAPI==4.0.0 -pycparser==2.20 -python-dotenv==0.13.0 -requests==2.23.0 -six==1.15.0 -typing-extensions==3.7.4.2 -urllib3 -websockets -WTForms==2.3.1 -yarl==1.4.2 -texttable \ No newline at end of file +texttable