Skip to content

Commit

Permalink
Beta41 (#144)
Browse files Browse the repository at this point in the history
* beta41

* api add

* api add
  • Loading branch information
Hoshinonyaruko authored Nov 19, 2023
1 parent c309a23 commit 3671de9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions handlers/get_guild_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ func init() {
func getGuildList(client callapi.Client, api openapi.OpenAPI, apiv2 openapi.OpenAPI, message callapi.ActionMessage) {
var response GuildListResponse

// 初始化 response.Data 为一个空数组
response.Data = []GuildData{}

// 创建一个 GuildPager 实例,设置 limit 为 10
pager := dto.GuildPager{Limit: "50", After: "0"} // 默认从0开始,取50个

Expand Down
2 changes: 1 addition & 1 deletion sys/restart_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func NewRestarter() *UnixRestarter {
func (r *UnixRestarter) Restart(executableName string) error {
scriptContent := "#!/bin/sh\n" +
"sleep 1\n" + // Sleep for a bit to allow the main application to exit
"sh -c '" + executableName + "'\n"
"." + executableName + "\n"

scriptName := "restart.sh"
if err := os.WriteFile(scriptName, []byte(scriptContent), 0755); err != nil {
Expand Down

0 comments on commit 3671de9

Please sign in to comment.