Skip to content

Commit

Permalink
230330
Browse files Browse the repository at this point in the history
  • Loading branch information
Tynab committed Mar 29, 2023
1 parent 2bcd7e3 commit d5140f5
Show file tree
Hide file tree
Showing 16 changed files with 252 additions and 116 deletions.
2 changes: 1 addition & 1 deletion Loginside FYAN Bot GUI/Loginside FYAN Bot GUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.4.0.0</ApplicationVersion>
<ApplicationVersion>2.0.0.0</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions Loginside FYAN Bot GUI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.0.0")]
[assembly: AssemblyFileVersion("1.4.0.0")]
[assembly: AssemblyVersion("8.8.8.8")]
[assembly: AssemblyFileVersion("2.0.0.0")]
[assembly: NeutralResourcesLanguage("vi")]
4 changes: 2 additions & 2 deletions Loginside FYAN Bot GUI/Script/Constant.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using System.Drawing;
using System.Media;
using static Loginside_FYAN_Bot_GUI.Properties.Resources;
using static System.AppDomain;
using static System.Drawing.Color;
using static System.Environment;
using static System.IO.Directory;

namespace Loginside_FYAN_Bot_GUI.Script;

internal static class Constant
{
// path
internal static readonly string CONFIG_ADR = $@"{GetParent(CurrentDomain?.BaseDirectory)}\{serv_name}.exe.config";
internal static readonly string CONFIG_ADR = $@"{GetParent(CurrentDirectory)}\{serv_name}.exe.config";

// sound
internal static readonly SoundPlayer SND_BACK = new(sBack);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.4.0.0</ApplicationVersion>
<ApplicationVersion>2.0.0.0</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions Loginside FYAN Bot Service/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.0.0")]
[assembly: AssemblyFileVersion("1.4.0.0")]
[assembly: AssemblyVersion("2.2.2.2")]
[assembly: AssemblyFileVersion("2.0.0.0")]
[assembly: NeutralResourcesLanguage("vi")]
10 changes: 5 additions & 5 deletions Loginside FYAN Bot Service/Script/Constant.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using static System.AppDomain;
using static System.Environment;
using static System.Environment.SpecialFolder;
using static System.TimeSpan;

namespace Loginside_FYAN_Bot_Service.Script;
Expand All @@ -8,10 +9,9 @@ internal static class Constant
{
// path
internal const string BOT_NAME = "Fyan Bot";
internal const string BRV_ADR = @"C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe";
internal static readonly string BASE_PATH = CurrentDomain.BaseDirectory;
internal static readonly string LOG_PATH = $@"{BASE_PATH}\log";
internal static readonly string CR_DRV_ADR = $@"{BASE_PATH}\chromedriver.exe";
internal static readonly string BRV_ADR = $@"{GetFolderPath(ProgramFiles)}\BraveSoftware\Brave-Browser\Application\brave.exe";
internal static readonly string LOG_PATH = $@"{CurrentDirectory}\log";
internal static readonly string CR_DRV_ADR = $@"{CurrentDirectory}\chromedriver.exe";

// other
internal const int SHDW_BOT_CNT = 5;
Expand Down
4 changes: 2 additions & 2 deletions Loginside FYAN Bot Service/Script/Model/CbBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected internal override void ShdwBotChk()
{
BinaryLocation = BRV_ADR
};
using IWebDriver drv = new ChromeDriver(BASE_PATH, opts);
using IWebDriver drv = new ChromeDriver(CurrentDirectory, opts);
ShdwChkIO(Name, drv, acctIns);
}
catch (Exception ex)
Expand Down Expand Up @@ -87,7 +87,7 @@ protected internal override bool ShdwBotPwd()
{
BinaryLocation = BRV_ADR
};
using IWebDriver drv = new ChromeDriver(BASE_PATH, opts);
using IWebDriver drv = new ChromeDriver(CurrentDirectory, opts);
ShdwChgPwd(Name, drv, acctIns);
return true;
}
Expand Down
Loading

0 comments on commit d5140f5

Please sign in to comment.