diff --git a/example/ding-dong-bot.ts b/example/ding-dong-bot.ts index c55d525d0a4bcdfaa6021b17f0896f81af5e5968..f7a4d4f3a6fc79cac689dc642e66ccaebca24836 100644 --- a/example/ding-dong-bot.ts +++ b/example/ding-dong-bot.ts @@ -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) { diff --git a/package.json b/package.json index b1020b195befa7e9d5e56daa719b062fe70998fb..957a7dbc3bee7a6872d5e45eadb7406daed3df9f 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "node": ">= 6.9.0" }, "dependencies": { - "@types/selenium-webdriver": "3.0.3", + "@types/selenium-webdriver": "3.0.4", "@types/socket.io": "1.4.29", "bl": "1.2.1", "body-parser": "1.17.1", @@ -128,7 +128,7 @@ "@types/mime": "0.0.29", "@types/node": "7.0.18", "@types/request": "0.0.43", - "@types/sinon": "2.2.1", + "@types/sinon": "2.2.2", "@types/ws": "0.0.41", "apiai": "4.0.2", "ava": "0.18.2",