update modules, dockerfile and container. fix and change things that … #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…are handled differently now (mainly discords 'intents' system)
Hey there @jarulsamy, i found your project and realised it wasn't working anymore(as mentioned in #39 ), but it inspired me to do a nodejs Plex-Discord-Bot.
As a thank you, i wanted to fix your bot since you don't have time currently. So here it is. i updated everything to a newer state (i think discord does not allow the old stuff to work anymore ... you need those intents), if you have some time please have a look if this is okay for you.
in detail:
python modules are updated, i tested this on python3.12 but i left in a little check because of asyncio/async_timeout
Dockerfile now uses the python3.12-slim instead of python3.7-slim
and a slightly modified startup sequence.
greetings
Tommy
P.S.: To the users: if you are , like me, not a fan of docker you can also use this locally, you need (inside the Plex-Bot directory):
python3 -m venv env
source env/bin/activate
(env) pip install --upgrade pip setuptools wheel
(env) pip install -r requirements.txt
(env) python -m PlexBot
if you want out ... simply type
(env) deactivate
on linux you can also make a systemd service for it, the most important bit is
ExecStart=/path/to/env/bin/python -m PlexBot