EnelGy Posted June 6, 2021 Report Posted June 6, 2021 Hey, could someone tell me, how should I communicate with steam bot through laravel/vue.js ? Also where should I store the bots folder ? (I guess it should be somewhere outside the laravel project for better security and dont know how would I turn on the bot, but not sure, correct me if I am wrong) For instance when a user clicks some button, I want to create trade-offer (where my bot gives to the user some item) - bots folder is probably outside the laravel (not in laravel project, but somewhere in the server) - i can call some function or ajax request from the click, but dont know what exactly should I do, how to commuicate with the bot Quote
Dr. McKay Posted June 7, 2021 Report Posted June 7, 2021 The easiest way I've found is to set up an HTTP server in your bot and call it using HTTP on localhost. Quote
EnelGy Posted June 13, 2021 Author Report Posted June 13, 2021 (edited) So the bot should be outside the laravel project and to communicate with it I need to install http and express to the bots file ? To be sure, Do I do something like this ? (This http request is in laravel) (port: 3000 is the bots http port) Http::post('http://localhost:3000/send', [ tradelink: tradelink, items: (some ids of items) ]); Then my bot get this and use posted array to create the trade offer ? I feel like this is so complicated and not very secure Edited June 13, 2021 by EnelGy Quote
Dr. McKay Posted June 13, 2021 Report Posted June 13, 2021 Yeah, that would work. You shouldn't need to worry about security as long as the bot's web server is only listening on localhost. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.