diff --git a/pkg/commands/ping.go b/pkg/commands/ping.go new file mode 100644 index 0000000..2844bcd --- /dev/null +++ b/pkg/commands/ping.go @@ -0,0 +1,14 @@ +package commands + +import ( + "fmt" + + "github.com/lyx0/nourybot/cmd/bot" +) + +func Ping(target string, nb *bot.Bot) { + + reply := fmt.Sprintf("Pong! :) Last restart: %v", nb.Uptime) + + nb.Send(target, reply) +}