Skip to content

Commit

Permalink
Fix /server reply message
Browse files Browse the repository at this point in the history
  • Loading branch information
motoki317 committed Apr 24, 2024
1 parent a2e21fd commit e2ed0d9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,18 @@ func (sc *ServerRestartCommand) Execute(ctx *Context) error {
return ctx.ReplySuccess(fmt.Sprintf(
":white_check_mark: Command execution was successful.\nlog: `%sexec-log server %s %s %d` %s",
config.Prefix,
sc.server.Name, "restart", ctx.P.EventTime.Unix(),
sc.server.Name,
"restart",
ctx.P.EventTime.Unix(),
cite(ctx.P.Message.ID)))
}
return ctx.ReplyFailure(fmt.Sprintf(
":x: Incorrect status code was received from ConoHa API. Status code: `%s`\nPlease check the execution log. `%sexec-log server %s %s %d` %s",
resp.Status,
config.Prefix,
resp.Status, sc.server.Name, "restart", ctx.P.EventTime.Unix(),
sc.server.Name,
"restart",
ctx.P.EventTime.Unix(),
cite(ctx.P.Message.ID)))
}

Expand Down

0 comments on commit e2ed0d9

Please sign in to comment.