From 1b947403d92c2601ad2e83fae9e7f0971563c08f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Huan=20LI=20=28=E6=9D=8E=E5=8D=93=E6=A1=93=29?= Date: Sat, 15 Aug 2020 18:36:20 +0800 Subject: [PATCH 1/5] use wechaty.js.org/qrcode/ to replace wechaty.github.io/qrcode/ --- examples/advanced/room-say-cli.js | 2 +- examples/basic/ding-dong-bot.js | 2 +- examples/basic/the-worlds-shortest-chatbot-code-in-6-lines.js | 2 +- examples/ding-dong-bot.js | 2 +- examples/ding-dong-bot.ts | 2 +- examples/professional/hot-import-bot/listeners/on-scan.js | 2 +- examples/third-parties/gitpod/ding-dong-bot.ts | 2 +- examples/third-parties/maodou/maodou-classes-bot.js | 2 +- examples/third-parties/xiaoli/xiaoli-news-bot.js | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/advanced/room-say-cli.js b/examples/advanced/room-say-cli.js index 716b9ee..e4e8deb 100644 --- a/examples/advanced/room-say-cli.js +++ b/examples/advanced/room-say-cli.js @@ -36,7 +36,7 @@ async function main () { // Generate a QR Code online via // http://goqr.me/api/doc/create-qr-code/ const qrcodeImageUrl = [ - 'https://wechaty.github.io/qrcode/', + 'https://wechaty.js.org.qrcode/', encodeURIComponent(qrcode), ].join('') console.log(`[${status}] ${qrcodeImageUrl}\nScan QR Code above to log in: `) diff --git a/examples/basic/ding-dong-bot.js b/examples/basic/ding-dong-bot.js index 1642178..d59414a 100644 --- a/examples/basic/ding-dong-bot.js +++ b/examples/basic/ding-dong-bot.js @@ -76,7 +76,7 @@ function onScan (qrcode, status) { // Generate a QR Code online via // http://goqr.me/api/doc/create-qr-code/ const qrcodeImageUrl = [ - 'https://wechaty.github.io/qrcode/', + 'https://wechaty.js.org.qrcode/', encodeURIComponent(qrcode), ].join('') diff --git a/examples/basic/the-worlds-shortest-chatbot-code-in-6-lines.js b/examples/basic/the-worlds-shortest-chatbot-code-in-6-lines.js index b641a09..2587bc1 100644 --- a/examples/basic/the-worlds-shortest-chatbot-code-in-6-lines.js +++ b/examples/basic/the-worlds-shortest-chatbot-code-in-6-lines.js @@ -19,7 +19,7 @@ const { Wechaty } = require('wechaty') Wechaty.instance() // Singleton -.on('scan', (qrcode, status) => console.log(`Scan QR Code to login: ${status}\nhttps://wechaty.github.io/qrcode/${encodeURIComponent(qrcode)}`)) +.on('scan', (qrcode, status) => console.log(`Scan QR Code to login: ${status}\nhttps://wechaty.js.org.qrcode/${encodeURIComponent(qrcode)}`)) .on('login', user => console.log(`User ${user} logined`)) .on('message', message => console.log(`Message: ${message}`)) .start() diff --git a/examples/ding-dong-bot.js b/examples/ding-dong-bot.js index 23d0370..91082db 100644 --- a/examples/ding-dong-bot.js +++ b/examples/ding-dong-bot.js @@ -18,7 +18,7 @@ function onScan (qrcode, status) { require('qrcode-terminal').generate(qrcode, { small: true }) // show qrcode on console const qrcodeImageUrl = [ - 'https://wechaty.github.io/qrcode/', + 'https://wechaty.js.org.qrcode/', encodeURIComponent(qrcode), ].join('') diff --git a/examples/ding-dong-bot.ts b/examples/ding-dong-bot.ts index 0174bf1..8d57d6f 100644 --- a/examples/ding-dong-bot.ts +++ b/examples/ding-dong-bot.ts @@ -20,7 +20,7 @@ function onScan (qrcode: string, status: ScanStatus) { generate(qrcode, { small: true }) // show qrcode on console const qrcodeImageUrl = [ - 'https://wechaty.github.io/qrcode/', + 'https://wechaty.js.org.qrcode/', encodeURIComponent(qrcode), ].join('') diff --git a/examples/professional/hot-import-bot/listeners/on-scan.js b/examples/professional/hot-import-bot/listeners/on-scan.js index 1e810e5..17c8bcb 100644 --- a/examples/professional/hot-import-bot/listeners/on-scan.js +++ b/examples/professional/hot-import-bot/listeners/on-scan.js @@ -20,7 +20,7 @@ async function onScan (qrcode, status) { require('qrcode-terminal').generate(qrcode, {small: true}) const qrcodeImageUrl = [ - 'https://wechaty.github.io/qrcode/', + 'https://wechaty.js.org.qrcode/', encodeURIComponent(qrcode), ].join('') diff --git a/examples/third-parties/gitpod/ding-dong-bot.ts b/examples/third-parties/gitpod/ding-dong-bot.ts index e51318a..2a2e026 100644 --- a/examples/third-parties/gitpod/ding-dong-bot.ts +++ b/examples/third-parties/gitpod/ding-dong-bot.ts @@ -17,7 +17,7 @@ function onScan (qrcode: string, status: ScanStatus) { generate(qrcode, { small: true }) // show qrcode on console const qrcodeImageUrl = [ - 'https://wechaty.github.io/qrcode/', + 'https://wechaty.js.org.qrcode/', encodeURIComponent(qrcode), ].join('') diff --git a/examples/third-parties/maodou/maodou-classes-bot.js b/examples/third-parties/maodou/maodou-classes-bot.js index ade22ac..8e70a63 100644 --- a/examples/third-parties/maodou/maodou-classes-bot.js +++ b/examples/third-parties/maodou/maodou-classes-bot.js @@ -67,7 +67,7 @@ function onScan(qrcode, status) { // Generate a QR Code online via // http://goqr.me/api/doc/create-qr-code/ const qrcodeImageUrl = [ - 'https://wechaty.github.io/qrcode/', + 'https://wechaty.js.org.qrcode/', encodeURIComponent(qrcode), ].join('') diff --git a/examples/third-parties/xiaoli/xiaoli-news-bot.js b/examples/third-parties/xiaoli/xiaoli-news-bot.js index 6515aad..d778b0b 100644 --- a/examples/third-parties/xiaoli/xiaoli-news-bot.js +++ b/examples/third-parties/xiaoli/xiaoli-news-bot.js @@ -64,7 +64,7 @@ function onScan(qrcode, status) { // Generate a QR Code online via // http://goqr.me/api/doc/create-qr-code/ const qrcodeImageUrl = [ - 'https://wechaty.github.io/qrcode/', + 'https://wechaty.js.org.qrcode/', encodeURIComponent(qrcode), ].join('') From 2bf1224515f7cf50203c1b5ffba050c6cb9f5dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Huan=20LI=20=28=E6=9D=8E=E5=8D=93=E6=A1=93=29?= Date: Sat, 15 Aug 2020 18:36:33 +0800 Subject: [PATCH 2/5] 0.4.57 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 281e0d6..fbc7d80 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wechaty-getting-started", - "version": "0.4.56", + "version": "0.4.57", "description": "Wechaty is a Conversational SDK for Chatbot Makers", "main": "examples/ding-dong-bot.js", "engines": { From a3af90f4f556ad208688fe4fefae07a2a42c46f9 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2020 12:08:58 +0800 Subject: [PATCH 3/5] Bump wechaty from 0.46.4 to 0.48.5 (#140) Bumps [wechaty](https://github.com/wechaty/wechaty) from 0.46.4 to 0.48.5. - [Release notes](https://github.com/wechaty/wechaty/releases) - [Changelog](https://github.com/wechaty/wechaty/blob/master/CHANGELOG.md) - [Commits](https://github.com/wechaty/wechaty/commits) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fbc7d80..0d4ec71 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "dependencies": { "cross-env": "^7.0.2", "qrcode-terminal": "^0.12.0", - "wechaty": "^0.46.2", + "wechaty": "^0.48.5", "wechaty-plugin-contrib": "^0.14.2" }, "devDependencies": { From d244057167011ea99f9486c5fe9e1f887bda74fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Huan=20LI=20=28=E6=9D=8E=E5=8D=93=E6=A1=93=29?= Date: Sat, 29 Aug 2020 14:35:08 +0800 Subject: [PATCH 4/5] fix qrcode url --- examples/advanced/room-say-cli.js | 2 +- examples/basic/ding-dong-bot.js | 2 +- examples/basic/the-worlds-shortest-chatbot-code-in-6-lines.js | 2 +- examples/ding-dong-bot.js | 2 +- examples/ding-dong-bot.ts | 2 +- examples/professional/hot-import-bot/listeners/on-scan.js | 2 +- examples/third-parties/gitpod/ding-dong-bot.ts | 2 +- examples/third-parties/maodou/maodou-classes-bot.js | 2 +- examples/third-parties/xiaoli/xiaoli-news-bot.js | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/advanced/room-say-cli.js b/examples/advanced/room-say-cli.js index e4e8deb..f4830dc 100644 --- a/examples/advanced/room-say-cli.js +++ b/examples/advanced/room-say-cli.js @@ -36,7 +36,7 @@ async function main () { // Generate a QR Code online via // http://goqr.me/api/doc/create-qr-code/ const qrcodeImageUrl = [ - 'https://wechaty.js.org.qrcode/', + 'https://wechaty.js.org/qrcode/', encodeURIComponent(qrcode), ].join('') console.log(`[${status}] ${qrcodeImageUrl}\nScan QR Code above to log in: `) diff --git a/examples/basic/ding-dong-bot.js b/examples/basic/ding-dong-bot.js index d59414a..f8e4e91 100644 --- a/examples/basic/ding-dong-bot.js +++ b/examples/basic/ding-dong-bot.js @@ -76,7 +76,7 @@ function onScan (qrcode, status) { // Generate a QR Code online via // http://goqr.me/api/doc/create-qr-code/ const qrcodeImageUrl = [ - 'https://wechaty.js.org.qrcode/', + 'https://wechaty.js.org/qrcode/', encodeURIComponent(qrcode), ].join('') diff --git a/examples/basic/the-worlds-shortest-chatbot-code-in-6-lines.js b/examples/basic/the-worlds-shortest-chatbot-code-in-6-lines.js index 2587bc1..c3f80a6 100644 --- a/examples/basic/the-worlds-shortest-chatbot-code-in-6-lines.js +++ b/examples/basic/the-worlds-shortest-chatbot-code-in-6-lines.js @@ -19,7 +19,7 @@ const { Wechaty } = require('wechaty') Wechaty.instance() // Singleton -.on('scan', (qrcode, status) => console.log(`Scan QR Code to login: ${status}\nhttps://wechaty.js.org.qrcode/${encodeURIComponent(qrcode)}`)) +.on('scan', (qrcode, status) => console.log(`Scan QR Code to login: ${status}\nhttps://wechaty.js.org/qrcode/${encodeURIComponent(qrcode)}`)) .on('login', user => console.log(`User ${user} logined`)) .on('message', message => console.log(`Message: ${message}`)) .start() diff --git a/examples/ding-dong-bot.js b/examples/ding-dong-bot.js index 91082db..b89cf3b 100644 --- a/examples/ding-dong-bot.js +++ b/examples/ding-dong-bot.js @@ -18,7 +18,7 @@ function onScan (qrcode, status) { require('qrcode-terminal').generate(qrcode, { small: true }) // show qrcode on console const qrcodeImageUrl = [ - 'https://wechaty.js.org.qrcode/', + 'https://wechaty.js.org/qrcode/', encodeURIComponent(qrcode), ].join('') diff --git a/examples/ding-dong-bot.ts b/examples/ding-dong-bot.ts index 8d57d6f..d4f5983 100644 --- a/examples/ding-dong-bot.ts +++ b/examples/ding-dong-bot.ts @@ -20,7 +20,7 @@ function onScan (qrcode: string, status: ScanStatus) { generate(qrcode, { small: true }) // show qrcode on console const qrcodeImageUrl = [ - 'https://wechaty.js.org.qrcode/', + 'https://wechaty.js.org/qrcode/', encodeURIComponent(qrcode), ].join('') diff --git a/examples/professional/hot-import-bot/listeners/on-scan.js b/examples/professional/hot-import-bot/listeners/on-scan.js index 17c8bcb..dd32a2a 100644 --- a/examples/professional/hot-import-bot/listeners/on-scan.js +++ b/examples/professional/hot-import-bot/listeners/on-scan.js @@ -20,7 +20,7 @@ async function onScan (qrcode, status) { require('qrcode-terminal').generate(qrcode, {small: true}) const qrcodeImageUrl = [ - 'https://wechaty.js.org.qrcode/', + 'https://wechaty.js.org/qrcode/', encodeURIComponent(qrcode), ].join('') diff --git a/examples/third-parties/gitpod/ding-dong-bot.ts b/examples/third-parties/gitpod/ding-dong-bot.ts index 2a2e026..c9bddc4 100644 --- a/examples/third-parties/gitpod/ding-dong-bot.ts +++ b/examples/third-parties/gitpod/ding-dong-bot.ts @@ -17,7 +17,7 @@ function onScan (qrcode: string, status: ScanStatus) { generate(qrcode, { small: true }) // show qrcode on console const qrcodeImageUrl = [ - 'https://wechaty.js.org.qrcode/', + 'https://wechaty.js.org/qrcode/', encodeURIComponent(qrcode), ].join('') diff --git a/examples/third-parties/maodou/maodou-classes-bot.js b/examples/third-parties/maodou/maodou-classes-bot.js index 8e70a63..93aa9a8 100644 --- a/examples/third-parties/maodou/maodou-classes-bot.js +++ b/examples/third-parties/maodou/maodou-classes-bot.js @@ -67,7 +67,7 @@ function onScan(qrcode, status) { // Generate a QR Code online via // http://goqr.me/api/doc/create-qr-code/ const qrcodeImageUrl = [ - 'https://wechaty.js.org.qrcode/', + 'https://wechaty.js.org/qrcode/', encodeURIComponent(qrcode), ].join('') diff --git a/examples/third-parties/xiaoli/xiaoli-news-bot.js b/examples/third-parties/xiaoli/xiaoli-news-bot.js index d778b0b..ee61711 100644 --- a/examples/third-parties/xiaoli/xiaoli-news-bot.js +++ b/examples/third-parties/xiaoli/xiaoli-news-bot.js @@ -64,7 +64,7 @@ function onScan(qrcode, status) { // Generate a QR Code online via // http://goqr.me/api/doc/create-qr-code/ const qrcodeImageUrl = [ - 'https://wechaty.js.org.qrcode/', + 'https://wechaty.js.org/qrcode/', encodeURIComponent(qrcode), ].join('') From f43d63356dcf8a30fa355f5a00b2c29a6c9fd517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Huan=20LI=20=28=E6=9D=8E=E5=8D=93=E6=A1=93=29?= Date: Sat, 29 Aug 2020 14:35:16 +0800 Subject: [PATCH 5/5] 0.4.58 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0d4ec71..9f29b63 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wechaty-getting-started", - "version": "0.4.57", + "version": "0.4.58", "description": "Wechaty is a Conversational SDK for Chatbot Makers", "main": "examples/ding-dong-bot.js", "engines": {