#How to launch a webpage from same working directory?

1 messages · Page 1 of 1 (latest)

brittle nest
#

I have created webpages that show each of my bots commands and how to use them; what to expect when using them, and I want to link those webpages to a command to be able to launch when needed. How do I do that? path="./web_pages/member_support.html" thanks

hybrid brook
#

Link pages to a command? like, just display the "docs" site/page when a command is sent?
Include a button with a url to your docs website.

brittle nest
#

like they execute /command_help and it launches the webpage for them to view. The webpage isn't hosted anywhere. it's just a single page that is in the bots working directory

#

like the url be something like url = "https://localhost/command_help.html" in their webrowser to view the webpage

woven lance
#

I hope you do realize that localhost is your local device; you can't just show localhosted pages to a random user like that

#

you'll have to actually host them

#

not to mention the fact that you can't just open a webpage either way

brittle nest
#

yes I'm aware of that. There is a way to open a webpage without having to have it hosted. it's the equivalent to downloading the file, going into downloads, and clicking the .html file to open it. If I need to return it in an embed for the user to click, then I'm find with that

woven lance
#

There is a way to open a webpage without having to have it hosted. it's the equivalent to downloading the file, going into downloads, and clicking the .html file to open it.
Which is beyond horrible user experience, and (hopefully) nobody will just download random files like that

brittle nest
#

omg so can you help me or just tell me what I can't do

#

if there's abetter way then I'm all ears

woven lance
#

well yeah

#

fucking host the thing

#

or just don't and accept the fact that you're limited to the markdown discord provides

brittle nest
#

well I can't just

fucking host the thing
as I don't have it in with the website itself. If I need to use MarkDown, then I'm fine with that. Could have just said that 😂

#

I'm just trying to open a window to show all the commands instead of having to do an giant embed or multiple embed pages

hybrid brook
#

yeah, that's not possible.

brittle nest
#

ok thank you

woven lance
#

which is what I said from the very beginning