示例#1
0
        public bool StartVote(string name)
        {
            if (!_votingManager.IsValidVote(name))
            {
                return(false);
            }

            var options = _votingManager.StartVote(name);

            _twitchClient.SendMessage(_channel, string.Format(_locale["on_new_vote"], name));

            foreach (var option in options.Split(new[] { Environment.NewLine }, StringSplitOptions.None))
            {
                _twitchClient.SendMessage(_channel, option);
            }

            return(true);
        }