public static DiscordClient AddFritzBot(this DiscordClient client)
    {
        _Bot = new FritzBot();
        _Bot.Initialize(client);

        return(client);
    }
Example #2
0
        public void ShouldRegisterCommands()
        {
            // Arrange

            // Act
            var sut = new FritzBot();

            sut.Initialize(_Config, null, _LoggerFactory);

            // Assert
            Assert.NotEmpty(FritzBot._CommandRegistry);
        }
Example #3
0
        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());
        }