Skip to content

Commit 125b3c0

Browse files
committed
clean
1 parent a90e2ba commit 125b3c0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## Python Wechaty Examples Directory
1+
# Python Wechaty Examples Directory
22

3-
### Structure Rules
3+
## Structure Rules
44

55
Please follow the same directory structure from our [TS wechaty-getting-started](https://github.com/wechaty/wechaty-getting-started/tree/master/examples), because we believe that is the best practice for the newcomers who can get to started most easily.
66

@@ -9,4 +9,4 @@ Put your example bot into one of the following directories (the one you believe
99
1. `basic/`
1010
1. `advanced/`
1111
1. `professional/`
12-
1. `hird-party/`
12+
1. `third-party/`

examples/ding-dong-bot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ async def on_message(msg: Message):
3232
"""
3333
Message Handler for the Bot
3434
"""
35-
from_contact = msg.talker()
36-
text = msg.text()
37-
if text == 'ding':
35+
if msg.text() == 'ding':
3836
await msg.say('dong')
3937

4038
file_box = FileBox.from_url(
@@ -63,5 +61,7 @@ async def main():
6361
bot.on('message', on_message)
6462
await bot.start()
6563

64+
print('[Python Wechaty] Ding Dong Bot started.')
65+
6666

6767
asyncio.run(main())

0 commit comments

Comments
 (0)