I am trying to make a discord.py bot. As part of my bot I put a question to some of my users asking if they would like to see a webpage with about 60% saying yes they would. I am moderately experienced with python and using Flask however I was wondering if there would be a way to bundle up my bot and webpage into one folder and run that from my host (similar to heroku but not) I was thinking it would be something like a separate file named webpage with all the different route to html files and then an import webpage file in the main bot.py file. The two questions I have are:
- Would this work (if not how could I do it / do it better)
- Would this work on the host, I don't think it will because of the html files but I'm unsure which Is why I'm asking here!
Thanks for your time, I really appreciate it!
Aucun commentaire:
Enregistrer un commentaire