I have nodejs steambot built with steam user, steam trade, steamcommunity and steam-tradeoffer-manager etc...
var username = "bot";
var password = "123456";
var steamguard = "";
var Steam = require('steam');
var SteamUser = require("steam-user");
var user = new SteamUser();
var SteamTrade = require("steam-trade");
var steamTrade = new SteamTrade();
user.logOn({
accountName: username,
password: password,
})
user.on("loggedOn", function(){
console.log(username + " is succesfully logged in");
user.setPersona(1);
})
user.on("webSession", function(sessionID, cookies){
console.log("Web session created with id " + sessionID);
steamTrade.setCookie(cookies);
});
I know how to manage trade offers but what I need to know is how do I interact between my website and my bot.
How do I send command from my website to my bot to make a tradeoffer?
Example:
website.php
$("button").click(function{
//MAKE TRADE
})
Just check that you have a button in your php as the following:
Include jquery (either download or use a cdn repository)
And then implement document ready at the end of your page