grim/wasdead
Clone
Summary
Browse
Changes
Graph
Fix the help message for the help command
draft
2019-04-08, Gary Kramlich
c06bc2e462ed
Fix the help message for the help command
package
discord
import
(
"fmt"
"github.com/bwmarrin/discordgo"
"github.com/dustin/go-humanize"
)
type
commandUptime
struct
{}
func
(
cmd
*
commandUptime
)
Help
()
string
{
return
"the amount of time the bot has been running"
}
func
(
cmd
*
commandUptime
)
Run
(
args
[]
string
,
c
*
DiscordClient
,
m
*
discordgo
.
MessageCreate
)
(
interface
{},
error
)
{
return
fmt
.
Sprintf
(
"Started %s"
,
humanize
.
Time
(
c
.
started
)),
nil
}