Skip to content

Commit

Permalink
[Library -> Attributes] Remove unused attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogFeelings committed May 25, 2024
1 parent ca24aa9 commit 0b15496
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 75 deletions.
29 changes: 0 additions & 29 deletions Source/SammBot.Library/Attributes/RequiresReboot.cs

This file was deleted.

30 changes: 0 additions & 30 deletions Source/SammBot.Library/Attributes/SensitiveSetting.cs

This file was deleted.

17 changes: 1 addition & 16 deletions Source/SammBot.Library/Models/Data/BotConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#endregion

using SammBot.Library.Attributes;

namespace SammBot.Library.Models.Data;

public class BotConfig
Expand All @@ -36,32 +34,19 @@ public class BotConfig
public string ShipBarEndFull { get; set; } = string.Empty;

// Behavior
[RequiresReboot] public int MessageCacheSize { get; set; } = 2000;
public int MessageCacheSize { get; set; } = 2000;
public int TagDistance { get; set; } = 3;
public bool OnlyOwnerMode { get; set; } = false;
public bool RotatingStatus { get; set; } = false;
public bool WaitForDebugger { get; set; } = false;
public string TwitchUrl { get; set; } = "https://www.twitch.tv/coreaesthetics";
public string CommandLogFormat { get; set; } = "Executing command \"{0}\". Channel: #{1}. User: @{2}.";

[RequiresReboot]
[SensitiveSetting]
public string HttpUserAgent { get; set; } = "Placeholder User Agent (.NET Application)";

// API Tokens
[RequiresReboot]
[SensitiveSetting]
public string BotToken { get; set; } = string.Empty;

[RequiresReboot]
[SensitiveSetting]
public string CatKey { get; set; } = string.Empty;

[RequiresReboot]
[SensitiveSetting]
public string DogKey { get; set; } = string.Empty;

[RequiresReboot]
[SensitiveSetting]
public string OpenWeatherKey { get; set; } = string.Empty;
}

0 comments on commit 0b15496

Please sign in to comment.