Move Console Messages to the Express Server
In the provided Repl, the code connects to a Discord Bot to log every message in a designated Discord channel, and allows users to talk from the bot into the Discord server.
What I would like to do, however, is have the messages relay to the Express server (./server.js), and allow the user to type there, rather than in the console. Is this possible? And, if so, how would I go about doing this? I am relatively new to node.js, so any advice is welcome.
Hey there! Yeah, you could use socket.io and make a listener for when user clicks enter and then use a specific channel to write everything in
@RohilPatel When running the repl (without errors, but I have intentionally added one), the file "server.js" creates its own webpage of sorts. That's where I wish to store everything (and have the user input).
ok.. @NotDotu
@RohilPatel Hmm?
could u explain this better? @NotDotu
@RohilPatel I'm trying to have the person use the console not have to open discord at all
then use a readline thing and make it push to the discord client
just have the function write to a channel
@NotDotu
When it comes to hosting, most of the business is very familiar with shared hosting and VPS hosting. Both hosting solutions are the most popular, but for large business sites this solution is not suitable because large websites require a lot of resources that must be allocated on the server, see https://hostkey.com/ for details.
For large websites with high traffic, dedicated server hosting is the best option not only based on a personal server, but considering other important features that prove that dedicated hosting is the best option for this kind of business.