예제 #1
0
        /// <inheritdoc />
        protected override HeartbeatData GetHeartbeatData()
        {
            var heartbeatData = new HeartbeatData
            {
                ServerCount  = this.ircClients.Count,
                UserCount    = this.GetIrcUserCount(),
                ChannelCount = this.serverData.Values.Sum(i => i.Channels.Count),
            };

            return(heartbeatData);
        }
예제 #2
0
        protected override HeartbeatData GetHeartbeatData()
        {
            // TODO: valid heartbeat data
            var heartbeatData = new HeartbeatData
            {
                ServerCount  = 1,
                UserCount    = 1,
                ChannelCount = 1,
            };

            return(heartbeatData);
        }
예제 #3
0
        /// <inheritdoc />
        protected override HeartbeatData GetHeartbeatData()
        {
            var heartbeatData = new HeartbeatData
            {
                ServerCount  = this.ircClients.Count,
                UserCount    = this.GetIrcUserCount(),
                ChannelCount = this.serverData.Values.Sum(i => i.Channels.Count),
            };

            // TODO: special case twitch until it becomes a first class type
            if (this.ircClients.ContainsKey("irc.chat.twitch.tv"))
            {
                heartbeatData.BotType = "Twitch";
            }

            return(heartbeatData);
        }