Skip to content

Commit 209511c

Browse files
committed
use wechaty.js.org/qrcode/ to replace wechaty.github.io/qrcode/
1 parent 76254ab commit 209511c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ from wechaty import Wechaty
5959
import asyncio
6060
async def main():
6161
bot = Wechaty()
62-
bot.on('scan', lambda status, qrcode, data: print('Scan QR Code to login: {}\nhttps://wechaty.github.io/qrcode/{}'.format(status, qrcode)))
63-
bot.on('login', lambda user: print('User {} logined'.format(user)))
62+
bot.on('scan', lambda status, qrcode, data: print('Scan QR Code to login: {}\nhttps://wechaty.wechaty.js/qrcode/{}'.format(status, qrcode)))
63+
bot.on('login', lambda user: print('User {} logged in'.format(user)))
6464
bot.on('message', lambda message: print('Message: {}'.format(message)))
6565
await bot.start()
6666
asyncio.run(main())

examples/ding-dong-bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def on_scan(qrcode: str, status: int):
4343
"""
4444
Scan Handler for the Bot
4545
"""
46-
print('Status: ' + status + ', View QR Code Online: https://wechaty.github.io/qrcode/' + qrcode)
46+
print('Status: ' + status + ', View QR Code Online: https://wechaty.js.org/qrcode/' + qrcode)
4747

4848

4949
async def on_login(user: Contact):

0 commit comments

Comments
 (0)