Skip to content

Commit 68f383b

Browse files
committed
Update all deps to latest & fix dep version problem (#41)
1 parent 6fc1067 commit 68f383b

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

examples/ding-dong-bot.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
FileBox,
2222
Message,
2323
Wechaty,
24+
ScanStatus,
2425
)
2526

2627

@@ -39,11 +40,16 @@ async def on_message(msg: Message):
3940
await msg.say(file_box)
4041

4142

42-
async def on_scan(qrcode: str, status: int, data):
43+
async def on_scan(
44+
qrcode: str,
45+
status: ScanStatus,
46+
_data,
47+
):
4348
"""
4449
Scan Handler for the Bot
4550
"""
46-
print('Status: ' + status + ', View QR Code Online: https://wechaty.js.org/qrcode/' + qrcode)
51+
print('Status: ' + str(status))
52+
print('View QR Code Online: https://wechaty.js.org/qrcode/' + qrcode)
4753

4854

4955
async def on_login(user: Contact):

requirements.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
wechaty~=0.6
2-
wechaty-puppet-service~=0.5.0dev
1+
wechaty~=0.7dev13

0 commit comments

Comments
 (0)