diff --git a/ExportAssiatantLog.csproj b/ExportAssistantLog.csproj
similarity index 90%
rename from ExportAssiatantLog.csproj
rename to ExportAssistantLog.csproj
index 61ad872..f7c065e 100644
--- a/ExportAssiatantLog.csproj
+++ b/ExportAssistantLog.csproj
@@ -5,7 +5,6 @@
net8.0
enable
enable
- true
true
diff --git a/ExportAssiatantLog.csproj.user b/ExportAssistantLog.csproj.user
similarity index 74%
rename from ExportAssiatantLog.csproj.user
rename to ExportAssistantLog.csproj.user
index 8a59a8a..0976d52 100644
--- a/ExportAssiatantLog.csproj.user
+++ b/ExportAssistantLog.csproj.user
@@ -1,6 +1,6 @@
- <_LastSelectedProfileId>D:\CS\ExportAssistantLog\Properties\PublishProfiles\FolderProfile.pubxml
+ <_LastSelectedProfileId>D:\CS\ExportAssiatantLog\Properties\PublishProfiles\FolderProfile.pubxml
-
+
\ No newline at end of file
diff --git a/ExportAssiatantLog.sln b/ExportAssistantLog.sln
similarity index 100%
rename from ExportAssiatantLog.sln
rename to ExportAssistantLog.sln
diff --git a/Program.cs b/Program.cs
index cb08df6..919c70a 100644
--- a/Program.cs
+++ b/Program.cs
@@ -14,9 +14,21 @@ namespace ExportAssistantLog
var localAppDataPath = Environment.GetEnvironmentVariable("LOCALAPPDATA");
var dbPath = Path.Combine(localAppDataPath, "ShadowBot", "users", "Assistant", "assistant.db3");
- var downloadPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads");
-
- var dateString = DateTime.UtcNow.ToString("yyyy-MM-dd");
+ if (Path.Exists(dbPath))
+ {
+ Console.WriteLine(dbPath);
+ }
+ else
+ {
+ Console.WriteLine("Assistant database not found.");
+ Console.ReadLine();
+ return;
+ }
+
+
+ var downloadPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads");
+
+ var dateString = DateTime.UtcNow.ToString("yyyy-MM-dd");
var filename = $"{dateString}-assistant-job-logs.csv";
var exportPath = Path.Combine(downloadPath, filename);
diff --git a/Properties/PublishProfiles/FolderProfile.pubxml.user b/Properties/PublishProfiles/FolderProfile.pubxml.user
index af1321b..60b6898 100644
--- a/Properties/PublishProfiles/FolderProfile.pubxml.user
+++ b/Properties/PublishProfiles/FolderProfile.pubxml.user
@@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
- False|2023-09-04T16:57:21.6374168Z;False|2023-09-05T00:54:21.0789671+08:00;False|2023-09-05T00:54:02.1221891+08:00;
+ True|2023-09-05T00:21:14.7925312Z;True|2023-09-05T08:16:50.9267952+08:00;True|2023-09-05T08:15:22.6055510+08:00;False|2023-09-05T08:15:00.9244327+08:00;True|2023-09-05T08:12:27.2966524+08:00;True|2023-09-05T08:10:57.2615975+08:00;False|2023-09-05T08:07:53.6637265+08:00;False|2023-09-05T08:07:45.2808930+08:00;
\ No newline at end of file