Skip to content

Commit

Permalink
apply my suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Istador committed Oct 14, 2024
1 parent 99bb016 commit ac5acd1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions Server/DiscordBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,6 @@ private void OnLoadSettings()
Settings.DiscordTable oldSettings = localSettings;
localSettings = Settings.Instance.Discord;

if (localSettings.CommandChannel == null)
logger.Warn("You probably should set your CommandChannel in settings.json");
if (localSettings.AdminChannel == null)
logger.Warn("You probably should set your AdminChannel in settings.json");

if (oldSettings.Token != localSettings.Token || oldSettings.AdminChannel != localSettings.AdminChannel || oldSettings.CommandChannel != localSettings.CommandChannel)
{
//start over fresh (there might be a more intelligent way to do this without restarting the bot if only the log/command channel changed, but I'm lazy.
Expand Down
2 changes: 1 addition & 1 deletion Server/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class FlipTable {
}

public class DiscordTable {
public bool Enabled { get; set; } = true;
public bool Enabled { get; set; } = false;
public string? Token { get; set; }
public string Prefix { get; set; } = "$";
public string? CommandChannel { get; set; }
Expand Down

0 comments on commit ac5acd1

Please sign in to comment.