/// <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); }
protected override HeartbeatData GetHeartbeatData() { // TODO: valid heartbeat data var heartbeatData = new HeartbeatData { ServerCount = 1, UserCount = 1, ChannelCount = 1, }; return(heartbeatData); }
/// <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); }