我有使用steam user、steam trade、 steamcommunity 和 steam-tradeoffer-manager 等构建的 nodejs steambot ...
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);
});
我知道如何管理交易报价,但我需要知道的是如何在我的网站和我的机器人之间进行交互。
如何从我的网站向我的机器人发送命令以进行交易?
示例:
website.php
$("button").click(function{
//MAKE TRADE
})