Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add room-bot test code #1338

Merged
merged 6 commits into from
Jun 15, 2018
Merged

add room-bot test code #1338

merged 6 commits into from
Jun 15, 2018

Conversation

lijiarui
Copy link
Member

@lijiarui lijiarui commented Jun 14, 2018

It makes testing room-bot.ts more convenient.

test function list: wechaty/wechaty-puppet-padchat#63

@lijiarui lijiarui changed the title add bot log add room-bot test code Jun 14, 2018
log.info('Bot', 'onMessage: sender has already in dingRoom')
from.say('no need to ding again, because you are already in ding room')
dingRoom.say('no need to ding again, because you are already in ding room', from)
from.say(`I found you have joined in room ${topic}!`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add '"' around all variable values.

-            from.say(`I found you have joined in room ${topic}!`)
+            from.say(`I found you have joined in room "${topic}!"`)

log.info('Bot', 'onMessage: sender has already in dingRoom')
from.say('no need to ding again, because you are already in ding room')
dingRoom.say('no need to ding again, because you are already in ding room', from)
from.say(`I found you have joined in room "${topic}"!`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll not merge this PR unless you are not as "too smart" as right now...

@huan huan merged commit 3a0d4bb into wechaty:master Jun 15, 2018
@lijiarui lijiarui deleted the add-room-bot-example branch July 30, 2018 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants