chore: send script version when ready

This commit is contained in:
2026-09-18 06:50:41 +08:00
parent 9792e49123
commit d9e627cc5f
6 changed files with 8 additions and 4 deletions
+1
View File
@@ -159,6 +159,7 @@ function connect() {
type: "event",
event: "ready",
data: {
version: __VERSION__,
authenticated: WPP.conn.isAuthenticated(),
deviceId: consts.DEVICE_ID,
deviceName: consts.DEVICE_NAME,
+1
View File
@@ -1,3 +1,4 @@
declare const __VERSION__: string;
declare const __WS_URL__: string;
type SendMessageOptions = {