コード例 #1
0
        private string BuildSlurMessage(string message, User randomUser, User targetUser)
        {
            message = message.Replace(SlurUserMention, _userService.Mention(targetUser));
            message = message.Replace(RandomUserMention, _userService.Mention(randomUser));

            if (message.Contains(Fatty))
            {
                var fat = _slurRepository.GetFat().ToString();
                message = message.Replace(Fatty, fat);
                _slurRepository.IncrementFat();
            }

            return(message);
        }
コード例 #2
0
ファイル: SlursCommands.cs プロジェクト: GabFillit/Doug-1
        private string BuildSlurMessage(string message, string randomUserid, string targetUserId)
        {
            message = message.Replace(SlurUserMention, Utils.UserMention(targetUserId));
            message = message.Replace(RandomUserMention, Utils.UserMention(randomUserid));

            if (message.Contains(Fatty))
            {
                var fat = _slurRepository.GetFat().ToString();
                message = message.Replace(Fatty, fat);
                _slurRepository.IncrementFat();
            }

            return(message);
        }