Compare commits

...
2 Commits
Author SHA1 Message Date
Dustin Pianalto dddcc8c316 Update format on listplayers output
CI / build (push) Has been cancelled
2021-02-24 14:10:55 -09:00
Dustin Pianalto 5a384305b0 Add initial listplayers
CI / build (push) Has been cancelled
2021-02-24 14:06:18 -09:00
+3 -3
View File
@@ -12,9 +12,9 @@ import (
)
var ListplayersCommand = &disgoman.Command{
Name: "request",
Name: "listplayers",
Aliases: nil,
Description: "Submit a request for the guild staff",
Description: "List the players currently connected to a ARK server.",
OwnerOnly: false,
Hidden: false,
RequiredPermissions: 0,
@@ -98,6 +98,6 @@ func listplayers(ctx disgoman.Context, server geeksbot.Server) {
}
}
_, _ = ctx.Session.ChannelMessageEdit(ctx.Channel.ID, msg.ID,
fmt.Sprintf("**%s:**\n%s", server.Name, strings.Join(players, "\n")),
fmt.Sprintf("**%s:**%s", server.Name, strings.Join(players, "\n")),
)
}