-
Notifications
You must be signed in to change notification settings - Fork 207
Hosting
Hosting/serving the app is where things can become a bit tricky for users new to python. It is hard to provide a detailed tutorial, as hosting is out of the scope of this project. However, here are a few resources that can help get you started!
https://flask.palletsprojects.com/en/2.2.x/deploying/
Essentially, you are just looking to have the app run on a computer (virtual machine) that will be up 24/7.
You can use your personal PC and it isn't the worst idea in the world for a project of this size. However, I would highly recommend using a free service called Ngrok. This will allow you to tunnel traffic from your computer to the internet. Otherwise, you would have to open ports which can be a headache and a security risk.
Below is a general idea of what one would need to do.
- Set up Ngrok (Getting started with Ngrok)
- Use the command
python3 tvwb.py start
to start the TVWB service. - Tunnel port 5000 (
ngrok http 5000
) - Send your webhooks to the Ngrok URL (keep in mind the /webhook endpoint)
Sorry for the lack of details regarding this part. The scope of hosting can be dependent on too many things to count. However, I would gladly accept any recommendations/documentation to expand on this part!
For support getting the bot up and running, please use Discussions and hopefully someone can help :)
There's also a new discord! https://discord.gg/wrjuSaZCFh
I'm also available for quick questions on Twitter and available for consulting for more serious inquiries.