change redundant name

This commit is contained in:
lyx0 2021-10-16 17:59:30 +02:00
parent 828790c3e4
commit df60bd50dd
2 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ import (
func Ping(channel string, client *twitch.Client, uptime time.Time) { func Ping(channel string, client *twitch.Client, uptime time.Time) {
commandCount := fmt.Sprint(utils.GetCommandsUsed()) commandCount := fmt.Sprint(utils.GetCommandsUsed())
botUptime := humanize.HumanizeTime(uptime) botUptime := humanize.Time(uptime)
reply := fmt.Sprintf("Pong! :) Commands used: %v, Last restart: %v", commandCount, botUptime) reply := fmt.Sprintf("Pong! :) Commands used: %v, Last restart: %v", commandCount, botUptime)
client.Say(channel, reply) client.Say(channel, reply)

View file

@ -6,8 +6,8 @@ import (
"github.com/dustin/go-humanize" "github.com/dustin/go-humanize"
) )
// HumanizeTime returns a more human readable // Time returns a more human readable
// time as a string for a given time.Time // time as a string for a given time.Time
func HumanizeTime(t time.Time) string { func Time(t time.Time) string {
return humanize.Time(t) return humanize.Time(t)
} }