mirror of
https://github.com/wechaty/getting-started.git
synced 2026-10-26 03:39:32 +08:00
merge
This commit is contained in:
@@ -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: `)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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('')
|
||||
|
||||
|
||||
@@ -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
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user