Closed tkphoto closed 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
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?
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.
Yes that seems to have been the main problem.. The read me file would benefit from explaining the layout / independant log
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.
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.