Beispiel #1
0
        public override async Task DoWork(AbbybotCommandArgs a)
        {
            StringBuilder FavoriteCharacter = new StringBuilder(a.Message).Replace(Command, "");

            if (FavoriteCharacter.Length < 1)
            {
                var word = (await a.GetFCMentions()) ? activationwords.random() : deactivatewords.random();
                await a.Send($"your favorite character mentions modifier is {word}");

                return;
            }
            while (FavoriteCharacter[0] == ' ')
            {
                FavoriteCharacter.Remove(0, 1);
            }
            while (FavoriteCharacter[^ 1] == ' ')