Skip to content

Commit

Permalink
[Bot -> Core] Remove redundant code in entry point.
Browse files Browse the repository at this point in the history
AnalogFeelings committed Apr 13, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent c1a78ba commit 894b253
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Source/SammBot.Bot/EntryPoint.cs
Original file line number Diff line number Diff line change
@@ -92,24 +92,6 @@ private async Task MainAsync()
}
#endif

string logsDirectory = Path.Combine(SettingsManager.Instance.BotDataDirectory, "Logs");

if (!Directory.Exists(logsDirectory))
{
await _matchaLogger.LogAsync(LogSeverity.Warning, "Logs directory did not exist. Creating...");

try
{
Directory.CreateDirectory(logsDirectory);

await _matchaLogger.LogAsync(LogSeverity.Success, "Created Logs directory successfully.");
}
catch (Exception)
{
// Ignored
}
}

await _matchaLogger.LogAsync(LogSeverity.Information, "Creating Discord client...");

DiscordSocketConfig socketConfig = new DiscordSocketConfig()

0 comments on commit 894b253

Please sign in to comment.