Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Has anyone figured out how to get the bots running? #5

Closed
EternityX opened this issue Sep 9, 2014 · 4 comments
Closed

Has anyone figured out how to get the bots running? #5

EternityX opened this issue Sep 9, 2014 · 4 comments

Comments

@EternityX
Copy link

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");
        }

If I've missed something, please tell me.

@carlesnunez
Copy link

do you know how the routes work?

Do you know that you need to put the running routes into that line in csgoshop.class?
$redirect_endpoints = ['admin', 'preregister', 'banned', 'account/terms','account/inventory', 'account/settings', 'account/login', 'account/logout', 'account/listings', 'account/wallet', 'account/orders/active', 'account/orders', 'data/inventory', 'request', 'browse', 'support', 'help', 'affiliates', 'staff', 'bots', 'featured', 'notifications'];

@EternityX
Copy link
Author

I did not know that.
Thank you very much :)

@jamie-0-1
Copy link

You don't have to put the routes in the redirect endpoints... the only things that go in there are routes that avoid the redirect for not logged in etc

@ElPresidentePro
Copy link

eternityX add me steam pls http://steamcommunity.com/id/73214214549367/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants