Skip to content

Commit 63516a8

Browse files
committed
ConfigFile should have a default
1 parent a96c7f2 commit 63516a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DiscordBot.cs

+4
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ public void InitAndRun(string[] args)
182182
ConfigFile = FDSUtility.ReadFile(CONFIG_FILE);
183183
}
184184
}
185+
else
186+
{
187+
ConfigFile = new();
188+
}
185189
Cache = new DiscordMessageCache(this, ConfigFile?.GetInt("discord_cache_size") ?? ClientConfig.CacheSize);
186190
Console.WriteLine("Loading Discord...");
187191
DiscordSocketConfig config = new()

0 commit comments

Comments
 (0)