-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix upgrade building task crash when choosing the building to build - add force sleep setting (now when changing proxy bot have to sleep based on the setting instead of 15 mins, untick will make the bot sleep about 15mins between 2 proxy) - optimize sleep task - fix bot don't know there is level 10 available to build resource bonus building (credit to Lasseroenn) If you like my work, you can donate to me through [ko-fi.com/vinaghost](https://ko-fi.com/vinaghost)
- Loading branch information
Showing
16 changed files
with
322 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,8 @@ namespace MainCore.Errors | |
{ | ||
public class Skip : Error | ||
{ | ||
public Skip(string message) : base(message) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
MainCore/Migrations/202302101011_SleepWhenChangingProxy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using FluentMigrator; | ||
|
||
namespace MainCore.Migrations | ||
{ | ||
[Migration(202302101011)] | ||
public class SleepWhenChangingProxy : Migration | ||
{ | ||
public override void Down() | ||
{ | ||
Execute.Sql("ALTER TABLE 'AccountsSettings' DROP COLUMN 'IsSleepBetweenProxyChanging';"); | ||
} | ||
|
||
public override void Up() | ||
{ | ||
Alter.Table("AccountsSettings") | ||
.AddColumn("IsSleepBetweenProxyChanging").AsBoolean().WithDefaultValue(false); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.