JustArchiNET / ArchiSteamFarm

C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
Apache License 2.0
11.09k stars 1.04k forks source link

Check config before restart #3007

Closed Rudokhvist closed 12 months ago

Rudokhvist commented 12 months ago

Checklist

Enhancement purpose

When user edits ASF or bot config manually, they can make some syntax error. In case of ASF config it will make whole asf not boot, in case of bot it will make one bot inoperable. We can help to prevent this to some extent.

Solution

When asf detects config edit, it should do a parsing of this config to a dummy object, if everything works fine - restart ASF or reboot bot, if something is wrong - show error in log and keep working on pre-loaded config.

Why currently available solutions are not sufficient?

It's just an extra little fail-safe for users convenience.

Can you help us with this enhancement idea?

Somehow, I can test and offer feedback, but can't code

Additional info

I understand this is very low priority, since users are already discouraged from editing configs manually. But decided to open issue as a reminder - maybe me or some other contributor will make a PR in spare time.

JustArchi commented 12 months ago

It makes sense to me, I'll try to see what can be done about it.