[REQ] Bot logs over hosted website possible? #313
-
|
I was thinking, is it possible to show logs on website (live) ? Like here hosted the bot and made a web page, so easily visiting there to check bot running logs! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
|
Yup it is possible. There are many free servers u can use. I have a server and i run the bot there. It is 24/7 running without stopping. |
Beta Was this translation helpful? Give feedback.
-
|
how about if there are updates with the bot? |
Beta Was this translation helpful? Give feedback.
-
I have made local logging code, how you get that from your machine onto your website is up to you, the admin @masterking32 doesnt want local logging though so be quick before he closes your discussion xD Information about local logging is in #301 |
Beta Was this translation helpful? Give feedback.
Create a Flask Application:
Flask is a lightweight web framework for Python that can help you create a web server to display your script's output.
Run Your Script and Capture Output:
Use Python's
subprocessmodule to run your script and capture its output.Display the Output on a Webpage:
Use Flask to serve the captured output on a public webpage.
Here's an example:
Install Flask:
Create a Flask Application: