#How to launch a webpage from same working directory?
1 messages · Page 1 of 1 (latest)
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.
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
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
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
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
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
well yeah
fucking host the thing
or just don't and accept the fact that you're limited to the markdown discord provides
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
yeah, that's not possible.
ok thank you
which is what I said from the very beginning