-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
188 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
using System.ComponentModel; | ||
using DiscordLab.Bot.API.Features; | ||
using DiscordLab.Bot.API.Interfaces; | ||
using Exiled.API.Interfaces; | ||
|
||
namespace DiscordLab.AdvancedLogging | ||
{ | ||
public class Config : IConfig | ||
public class Config : IConfig, IDLConfig | ||
{ | ||
[Description(DescriptionConstants.IsEnabled)] | ||
public bool IsEnabled { get; set; } = true; | ||
[Description(DescriptionConstants.Debug)] | ||
public bool Debug { get; set; } = false; | ||
[Description(DescriptionConstants.GuildId)] | ||
public ulong GuildId { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace DiscordLab.Bot.API.Features | ||
{ | ||
public class DescriptionConstants | ||
{ | ||
public const string GuildId = "The guild ID where this module will be used. If not set (value = 0), it will use the default guild ID."; | ||
public const string IsEnabled = "Whether the module is enabled or not."; | ||
public const string Debug = "Whether the module is in debug mode or not."; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.ComponentModel; | ||
|
||
namespace DiscordLab.Bot.API.Interfaces | ||
{ | ||
|
||
public interface IDLConfig | ||
{ | ||
public ulong GuildId { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
using Exiled.API.Interfaces; | ||
using System.ComponentModel; | ||
using DiscordLab.Bot.API.Features; | ||
using DiscordLab.Bot.API.Interfaces; | ||
using Exiled.API.Interfaces; | ||
|
||
namespace DiscordLab.Moderation | ||
{ | ||
public class Config : IConfig | ||
public class Config : IConfig, IDLConfig | ||
{ | ||
[Description(DescriptionConstants.IsEnabled)] | ||
public bool IsEnabled { get; set; } = true; | ||
[Description(DescriptionConstants.Debug)] | ||
public bool Debug { get; set; } = false; | ||
|
||
[Description(DescriptionConstants.GuildId)] | ||
public ulong GuildId { get; set; } | ||
} | ||
} |
Oops, something went wrong.