You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+15-19Lines changed: 15 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
3
3
## Wechaty Log Monitor
4
4
5
-
This is a Wechaty plugin for log-related DevOps. Fully functional! Very Loose coupling! Pretty much pure (other than side effects in I.O.)!
5
+
This is a Wechaty plugin for log-related DevOps. Fully functional! Very Loose coupling! Pretty much pure (other than side effects in I.O.)! It allows you to receive log alerts, view log files, execute cmd, and perform DevOps such as _QR Rescue_ for your WeChaty on Wechat itself!
6
6
7
-
It allows you to receive log alerts, view log files, execute command lines, and do devops like "QR Rescue" for your WeChaty on WeChat!
7
+

8
8
9
-

9
+
[A Chinese write-up about this plugin is published on wechaty.js.org](https://wechaty.js.org/2020/08/09/wechaty-log-monitor/).
10
10
11
-
## Quick guide to implement your log operation:
11
+
## Quick guide to implementing your Wechaty log operation:
12
12
13
13
```typescript
14
14
import { Wechaty, FileBox } from'wechaty'
@@ -46,17 +46,13 @@ For examples see `src/qrRescue.ts` and `src/miscellaneous.ts`!
46
46
yarn add wechaty-log-monitor@latest
47
47
```
48
48
49
-
### 一、掉线给码(QR Rescue)
50
-
51
-
一个Wechaty掉线了,另一个Wechaty会发QR码给这个微信号来重新登陆~
52
-
53
-
这样掉线了就不用`ssh`到production服务器,然后`sudo su git`+`pm2 logs --lines 50`来进行扫码重登了。
49
+
### 1. qrResuce (aka 掉线给码)
54
50
55
51
Requirements:
56
52
57
-
-至少两个Wechaty bots(要部署到同个server)。
53
+
-At least two Wechaties. Must be deployed on the same production server.
58
54
59
-
-登陆的话因为要用到微信「扫一扫」功能,需要两部手机,或一个手机+把qr投影到一个屏幕上
55
+
-Two phones. Or a way to project the QR code onto a screen so you can scan it in your Wechat via the native camera.
0 commit comments