mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
change redundant name
This commit is contained in:
parent
828790c3e4
commit
df60bd50dd
|
@ -11,7 +11,7 @@ import (
|
|||
|
||||
func Ping(channel string, client *twitch.Client, uptime time.Time) {
|
||||
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)
|
||||
client.Say(channel, reply)
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"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
|
||||
func HumanizeTime(t time.Time) string {
|
||||
func Time(t time.Time) string {
|
||||
return humanize.Time(t)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue