Skip to content

Commit

Permalink
make dingdong reply more beautiful (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
lijiarui authored and huan committed May 17, 2017
1 parent 5cdb3bb commit 7a18e08
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions example/ding-dong-bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,13 @@ bot
m.say('dong')
log.info('Bot', 'REPLY: dong')

m.say(`Join Wechaty Developers' Community
Wechaty is used in many ChatBot projects by hundreds of developers.
If you want to talk with other developers, just scan the following QR Code in WeChat with secret code: wechaty,
you can join our Wechaty Developers' Home at once.
`.replace(/ /, ' '),
)
const joinWechaty = `Join Wechaty Developers' Community\n\n` +
`Wechaty is used in many ChatBot projects by hundreds of developers.\n\n` +
`If you want to talk with other developers, just scan the following QR Code in WeChat with secret code: wechaty,\n\n` +
`you can join our Wechaty Developers' Home at once`
m.say(joinWechaty)
m.say(new MediaMessage(__dirname + '/../image/BotQrcode.png'))
m.say('Scan now, because other Wechaty developers want to talk with you too! (secret code: wechaty)')
m.say('Scan now, because other Wechaty developers want to talk with you too!\n\n (secret code: wechaty)')
log.info('Bot', 'REPLY: Image')
}
} catch (e) {
Expand Down

0 comments on commit 7a18e08

Please sign in to comment.