Skip to content
This repository was archived by the owner on Nov 24, 2022. It is now read-only.

Commit 2b6bcd1

Browse files
Merge pull request #49 from InfinityGhost/dependency-injection-rewrite
Dependency injection rewrite
2 parents 0646c60 + 518fbd7 commit 2b6bcd1

32 files changed

Lines changed: 730 additions & 428 deletions
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using System.Threading.Tasks;
2+
3+
namespace TabletBot.Common
4+
{
5+
public interface IAsyncInitialize
6+
{
7+
Task InitializeAsync();
8+
}
9+
}

TabletBot.Common/Settings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public sealed class Settings
2222
public string GitHubToken { set; get; } = null;
2323
public string CommandPrefix { set; get; } = "!";
2424
public uint GitHubIssueRefLimit { set; get; } = 3;
25+
public uint SpamThreshold { set; get; } = 3;
2526

2627
public LogLevel LogLevel { set; get; } = LogLevel.Debug;
2728

TabletBot.Discord/Bot.Commands.cs

Lines changed: 0 additions & 134 deletions
This file was deleted.

0 commit comments

Comments
 (0)