Skip to content

Commit

Permalink
修改入群欢迎插件bug
Browse files Browse the repository at this point in the history
  • Loading branch information
huoxue1 committed Jul 1, 2021
1 parent ec5a401 commit a8d5cac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"enable_reply_tome": true,
"welcome": [
{
"groupId": 123456,
"group_id": 972264701,
"message": "欢迎来到该群"
}
]
Expand Down
5 changes: 5 additions & 0 deletions plugins/groupWelcome/welcome.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
// Package groupWelcome /**
package groupWelcome

import "github.com/3343780376/leafBot"

// WelcomeInit
/**
* @Description:
*/
func WelcomeInit() {
leafBot.OnNotice(leafBot.NoticeTypeApi.GroupIncrease).SetWeight(10).SetPluginName("入群欢迎").AddHandle(func(event leafBot.Event, bot *leafBot.Bot) {
for _, s := range leafBot.DefaultConfig.Plugins.Welcome {
Expand Down

0 comments on commit a8d5cac

Please sign in to comment.