-
-
Notifications
You must be signed in to change notification settings - Fork 13
Configuration
There have been adding setting, to change core actions
All the posibal setting to set, can be seen in lib/Settings.js
.
The way you set a setting is to override the proppert in the Settings.js
in the main.js
Example of part the main.js
:
const settings = require('./lib/Settings');
const core = require('./lib/Core');
settings.AuthFieldNameUsername = "username";
settings.AuthFieldNamePassword = "password";
settings.Logging.SaveLogMode = settings.Enums.Logging.Mode.All;
settings.Logging.SaveLogType = settings.Enums.Logging.type.SplitFile;
settings.RunningMode.Mode = settings.Enums.RunningMode.Cluster;
settings.RunningMode.ClusterSize = 4;
var modules = [];
modules.push('testing/test');
If the defuult naming of fields naming in the config.js
, Then you are able to just tell the project, to use some other. insted of chaning each account in the file.
Current default naming, ( see lib/Settings.js
for all )
AuthFieldNameUsername = "steam_user",
AuthFieldNamePassword = "steam_pass",
AuthFieldNamesharedSecret = "sharedSecret",
AuthFieldNameFamilyViewPIN = "PIN",
AuthFieldNameMailAuth = "mailAuth",
AuthFieldNameSteamApiKey = "steamApiKey",
AuthFieldSpecialAccountText = "specialAccountText",
Then just override the once you need, in the main.js
like:
settings.AuthFieldNameUsername = "username";
settings.AuthFieldNamePassword = "password";
Default the project is running settings.RunningMode.Mode
in Enums.RunningMode.Single
, this means that it will run one account, and once it is all done, it will move on to the next account.
There is 3 mode that can be used
Enums.RunningMode.Single,
Enums.RunningMode.Cluster,
Enums.RunningMode.All
- Single -> run one account at the time
- Cluster -> run a fixed amount of account at once.
- All -> run all account at once.
When using cluser, you set the size in the setting settings.RunningMode.ClusterSize
Example:
settings.RunningMode.Mode = settings.Enums.RunningMode.Cluster;
settings.RunningMode.ClusterSize = 4;
be carful to run to many account at once. as when using Cluster
or All
. as it will login to all the account at once. and if you have to many active account at once. it will just disconnect. and then the project, can get into a stage where it will not connect to it, and just get stuck. See Stats.md
, here you can see a test made when running in Cluster
, whit a bigger amount
Default the project, will just do the request when ask for one. ( settings.Request.UseQueue
is false
)
What this means, is if you eks run in cluster mode, ( see Running Mode ) that it will do all account at once, and all the request async for all the account.
This can give problems if the cluster size is to big. Example when doing the module queue
, as this module will load 12 page at once, for all the account running in that cluster. so if the cluster is 15, then you will end up maing 15 * 12 = 180 request when in a few seconds. And here problem can start comming, where steam CAN black list your ip for some time.
This is where you can use the build in Queue System. By having settings.Request.UseQueue
as true
.
It will take all request, that is be made, across all running account. And move into a queue, that will run 1 request at the time. This will ensure that if you are doing the Queue module, that even if 15 account is running i will only do 1 each second. It will make the project take long, as it have to wait for each one to finish, before doing the next. But it will ensure that steam will not be spammed.
Once UseQueue
is true
, extra setting can be used:
- settings.Request.Mode -> is use to set time between each request
-
-
Enums.Request.MinTimeBetweenRequest
-> will subtract requested time, to ensure that we min get this time between each request
-
-
-
Enums.Request.FullWait
-> will wait the time, not mather how long the request did take.
-
- settings.Request.Time -> the milliseconds it shoud wait.
Example:
settings.Request.UseQueue = true; // use queue
settings.Request.Mode = settings.Enums.Request.MinTimeBetweenRequest; // ensure that we at least use 1,5 sec in each request made.
settings.Request.Time = 1500; // set time used in Request.Mode
commming soon
- Chance profile settings
- Chance setting on the general edit page (Edit Profile)
- Chance mini profile
- Chance profile theme
- Chance profile favorite badge
- Chance profile favorite group
- Clear profile name alias
- Chance profile image