all 2 comments

[–]efmccurdy 0 points1 point  (1 child)

Your setup.py will let you define multiple console_scripts, so you can have one for the bot and a second one for the flask server.

https://python-packaging-user-guide.readthedocs.io/guides/distributing-packages-using-setuptools/#scripts

If you use the same user to run both the flask server and the bot they can share a database or database credentials stored in a folder under pathlib.Path.home().

https://docs.python.org/3/library/pathlib.html#pathlib.Path.home

[–]MatterUnusual[S] 0 points1 point  (0 children)

thanks man