public static DiscordClient AddFritzBot(this DiscordClient client) { _Bot = new FritzBot(); _Bot.Initialize(client); return(client); }
public void ShouldRegisterCommands() { // Arrange // Act var sut = new FritzBot(); sut.Initialize(_Config, null, _LoggerFactory); // Assert Assert.NotEmpty(FritzBot._CommandRegistry); }
public void ShouldConfigureCooldown() { // arrange // act var sut = new FritzBot(); sut.Initialize(_Config, null, _LoggerFactory); // assert Assert.Equal(_Config[FritzBot.CONFIGURATION_ROOT + ":CooldownTime"], sut.CooldownTime.ToString()); }