Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit 45552d4

Browse files
authored
Merge pull request #13 from danni-cool/dev
feat: 🎸 login事件也增加通知
2 parents b5f1082 + cb56a4e commit 45552d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/route/loginCheck.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ module.exports = function registerLoginCheck({ app, bot }) {
1414
.on('login', user => {
1515
message = user + 'is already login'
1616
success = true
17+
sendMsg2RecvdApi(new TextMsg({
18+
text: JSON.stringify({ event: 'login', user }),
19+
isSystemEvent: true
20+
}))
1721
})
1822
.on('logout', user => {
1923
message = ''

0 commit comments

Comments
 (0)