CSGOShop icon indicating copy to clipboard operation
CSGOShop copied to clipboard

[tips] Connect bots to web

Open ElPresidentePro opened this issue 10 years ago • 3 comments

ElPresidentePro avatar Oct 16 '14 16:10 ElPresidentePro

I got the site functional but I'm not quite sure how the bots interact with the site. I went through some of the bot's code and it seems some of the webside files are not provided?

For example:

string PostGetMessages() { Bot.log.Info("Submitting /api/messages/..."); var postUrl = "http://staging.csgoshop.com/api/messages/"; var data = new System.Collections.Specialized.NameValueCollection(); data.Add("key", Bot.CSGOShopAPIKey); postUrl += "?sig=" + Bot.CreateSHA256(Bot.CSGOShopAPIKey, Bot.CSGOShopAPIKey);
return SteamWeb.Fetch(postUrl, "POST", data, null, false, "http://staging.csgoshop.com"); }

ElPresidentePro avatar Oct 16 '14 16:10 ElPresidentePro

This bot is full with bugs, maybe not secure anymore. So you need to change a lot.

WortelSoep avatar Nov 09 '14 08:11 WortelSoep

@kingdom200 I'm looking for someone to work you would like to help?

ElPresidentePro avatar Nov 09 '14 17:11 ElPresidentePro