{{define "cp_status"}} {{$botOwner := .IsBotOwner}} {{template "cp_head" .}} {{template "cp_alerts" .}} {{if not .BotRunning}}

Bot is currently not running

{{else}} {{if $botOwner}}
{{end}} {{range $i, $v := .Shards}}
Shard: {{$i}}
{{if eq .ConnStatus 0}} Connection Status: Disconnected {{else if eq .ConnStatus 1}} Connection Status: Connecting {{else if eq .ConnStatus 2}} Connection Status: Identifying {{else if eq .ConnStatus 3}} Connection Status: Resuming {{else if eq .ConnStatus 4}} Connection Status: Ready {{end}}
Total Events: {{.TotalEvents}}
Events/s: {{.EventsPerSecond}}
Heartbeat Send: {{formatTime .LastHeartbeatSend.UTC "02 15:04:05"}}
Heartbeat Ack: {{formatTime .LastHeartbeatAck "02 15:04:05"}}
{{if $botOwner}}
{{end}}
{{end}}{{end}} {{template "cp_footer" .}} {{end}}