This commit is contained in:
Huan LI (李卓桓)
2020-08-29 22:34:18 +08:00
10 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -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: `)
+1 -1
View File
@@ -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('')
@@ -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()
+1 -1
View File
@@ -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('')
+1 -1
View File
@@ -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('')
@@ -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('')
@@ -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('')
@@ -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('')
@@ -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('')
+2 -2
View File
@@ -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": {
@@ -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": {