Skip to content

Commit

Permalink
Merge pull request #13 from danni-cool/dev
Browse files Browse the repository at this point in the history
feat: 🎸 login事件也增加通知
  • Loading branch information
danni-cool authored Oct 8, 2023
2 parents b5f1082 + cb56a4e commit 45552d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/route/loginCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ module.exports = function registerLoginCheck({ app, bot }) {
.on('login', user => {
message = user + 'is already login'
success = true
sendMsg2RecvdApi(new TextMsg({
text: JSON.stringify({ event: 'login', user }),
isSystemEvent: true
}))
})
.on('logout', user => {
message = ''
Expand Down

0 comments on commit 45552d4

Please sign in to comment.