mirror of
https://github.com/lyx0/nourybot-matrix.git
synced 2024-11-13 19:49:54 +01:00
14 lines
268 B
Go
14 lines
268 B
Go
package commands
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/lyx0/nourybot-matrix/internal/common"
|
|
)
|
|
|
|
func Ping() (string, error) {
|
|
n := common.GetCommandsUsed()
|
|
up := common.GetUptime()
|
|
resp := fmt.Sprintf("Pong! Commands used: %v Last restart: %v", n, up)
|
|
return resp, nil
|
|
}
|