Skip to content

Commit

Permalink
feat: self private message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrs4s committed Mar 24, 2021
1 parent 372ad1e commit 03c3af1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coolq/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func NewQQBot(cli *client.QQClient, conf *global.JSONConfig) *CQBot {
bot.Client.OnPrivateMessage(bot.privateMessageEvent)
bot.Client.OnGroupMessage(bot.groupMessageEvent)
if conf.EnableSelfMessage {
bot.Client.OnSelfPrivateMessage(bot.privateMessageEvent)
bot.Client.OnSelfGroupMessage(bot.groupMessageEvent)
}
bot.Client.OnTempMessage(bot.tempMessageEvent)
Expand Down

0 comments on commit 03c3af1

Please sign in to comment.