Jessecar96 / SteamBot

Automated bot software for interacting with Steam Trade
http://scrap.tf
MIT License
1.33k stars 910 forks source link

Bot Array #144

Closed tkphoto closed 11 years ago

tkphoto commented 11 years ago

Bots: An array of dictionaries containing information about each individual bot you will be running. You can run multiple bots at the same time by having multiple elements in the Bots array. Each entry in the Bots array consists of the following values:

What is the layout in the settings.json for running multiple bots properly? Any attempt in listing more than one makes the bot crash. It only takes a slight error in the settings to crash the bot.

coffman34 commented 11 years ago

Here's how it should be laid out:

{
    "Bots":[
       {
            "Bot1": "info"
        },
        {
            "Bot2": "info"
        }
    ]
}

Also keep in mind, that you cannot use the same log file for all bots, so bot 1 config file should be TestBot1.log bot 2 SHOULD NOT BE TestBot1.log

teliosdev commented 11 years ago

It only takes a slight error in the settings to crash the bot

This is implying that other applications take errors in their settings files as-is?

coffman34 commented 11 years ago

I have a feeling this is more due to the log file more than anything. We should add something to the read me that says that you cannot use the same log file any of the bots.

tkphoto commented 11 years ago

Yes that seems to have been the main problem.. The read me file would benefit from explaining the layout / independant log

coffman34 commented 11 years ago

Actually, do you even read the exceptions the bot throws when it crashes? You would be wise to, and attempt to find out the reason it's crashing. The exception that is thrown when the bot crashes due to the log file error states it's an I/O error. Now, with some minimal deductive reasoning skills, you can find the problem. We're not here to code your bot for you, we're here to challenge ourselves.