Skip to content

Commit

Permalink
Category work, icons, about page
Browse files Browse the repository at this point in the history
  • Loading branch information
winglessraven committed May 29, 2024
1 parent 1069f16 commit 857805b
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions DiscordBotPlugin/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace DiscordBotPlugin
{
public class Settings : SettingStore
{
[Description("Discord Bot")]
[SettingsGroupName("Discord Bot:smart_toy")]
[Description("Discord Bot:smart_toy")]
[SettingsGroupName("Discord Bot")]
[Serializable]
public class DiscordBotSettings : SettingSectionStore
{
Expand Down Expand Up @@ -95,12 +95,12 @@ public class DiscordBotSettings : SettingSectionStore
[WebSetting("Display Online Player List", "Display online player list in the info panel - if not compatible with the server nothing will show", false, Subcategory: "Server Info:page_info:2")]
public bool ShowOnlinePlayers = false;

[WebSetting("Change Displayed Status", "Replace the default AMP status with your own - key is the AMP value, value is the replacement - possible values listed on the [Wiki](https://github.com/winglessraven/AMP-Discord-Bot/wiki/Changing-Application-State-Values-to-Custom-Text)", false, Subcategory: "Misc:more_vert:7")]
public Dictionary<string, string> ChangeStatus = new Dictionary<string, string>();

[WebSetting("Online Server Bot Presence Text", "Change the presence text when application is running, use {OnlinePlayers} and {MaximumPlayers} as variables", false, Subcategory: "Misc:more_vert:7")]
public string OnlineBotPresence = "";

[WebSetting("Change Displayed Status", "Replace the default AMP status with your own - key is the AMP value, value is the replacement - possible values listed on the [Wiki](https://github.com/winglessraven/AMP-Discord-Bot/wiki/Changing-Application-State-Values-to-Custom-Text)", false, Subcategory: "Misc:more_vert:7")]
public Dictionary<string, string> ChangeStatus = new Dictionary<string, string>();

public Dictionary<string, TimeSpan> PlayTime = new Dictionary<string, TimeSpan>();

[WebSetting("Display Playtime Leaderboard", "Display the playtime leaderboard on the info panel - top 5 are shown", false, Subcategory: "Server Info:page_info:2")]
Expand Down Expand Up @@ -145,8 +145,8 @@ public class DiscordBotSettings : SettingSectionStore

public DiscordBotSettings MainSettings = new DiscordBotSettings();

[Description("Discord Bot")]
[SettingsGroupName("Discord Bot:smart_toy")]
[Description("Discord Bot:smart_toy")]
[SettingsGroupName("Discord Bot")]
[Serializable]
public class DiscordBotColoursSettings : SettingSectionStore
{
Expand Down Expand Up @@ -186,8 +186,8 @@ public class DiscordBotColoursSettings : SettingSectionStore

public DiscordBotColoursSettings ColourSettings = new DiscordBotColoursSettings();

[Description("Discord Bot")]
[SettingsGroupName("Discord Bot:smart_toy")]
[Description("Discord Bot:smart_toy")]
[SettingsGroupName("Discord Bot")]
[Serializable]
public class DiscordBotGameSpecificSettings : SettingSectionStore
{
Expand All @@ -196,5 +196,22 @@ public class DiscordBotGameSpecificSettings : SettingSectionStore
}

public DiscordBotGameSpecificSettings GameSpecificSettings = new DiscordBotGameSpecificSettings();

[Description("Discord Bot:smart_toy")]
[SettingsGroupName("Discord Bot")]
[Serializable]
public class DiscordBotAboutSettings : SettingSectionStore
{
[WebSetting("Support", "For support, or to submit issues and feature requests visit the [GitHub](https://github.com/winglessraven/AMP-Discord-Bot) page.", false, Subcategory: "About:info:8")]
public int? AboutMessage = null;

[WebSetting("Donations", "If you appreciate my work, donations are gratefully received! Visit my [Sponsor](https://github.com/sponsors/winglessraven) page.", false, Subcategory: "About:info:8")]
public int? DonationsMessage = null;

[WebSetting("AMP Discord Bot", "Created by winglessraven", false, Subcategory: "About:info:8")]
public int? AMPDiscordBot = null;
}

public DiscordBotAboutSettings AboutSettings = new DiscordBotAboutSettings();
}
}

0 comments on commit 857805b

Please sign in to comment.