mirror-nourybot-matrix/internal/commands/ping.go

15 lines
268 B
Go
Raw Normal View History

package commands
import (
"fmt"
"github.com/lyx0/nourybot-matrix/internal/common"
)
func Ping() (string, error) {
n := common.GetCommandsUsed()
2023-05-07 00:13:13 +02:00
up := common.GetUptime()
resp := fmt.Sprintf("Pong! Commands used: %v Last restart: %v", n, up)
return resp, nil
}