jarulsamy / Plex-Bot

A Plex discord music bot.
GNU General Public License v3.0
23 stars 13 forks source link

update modules, dockerfile and container. fix and change things that … #40

Open tommywienert opened 1 month ago

tommywienert commented 1 month ago

…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

tommywienert commented 3 weeks ago

Hey @jarulsamy , are you still with us? 🤔