提交 ca3285ea 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

rename session in example bots to profile

上级 01c43e7d
......@@ -27,7 +27,7 @@ const Wechaty = require('..')
const APIAI_API_KEY = '7217d7bce18c4bcfbe04ba7bdfaf9c08'
const brainApiAi = ApiAi(APIAI_API_KEY)
const bot = new Wechaty({ session: 'example-bot.wechaty.json' })
const bot = new Wechaty({ profile: 'example-bot.wechaty.json' })
console.log(`
Welcome to api.AI Wechaty Bot.
......
......@@ -26,7 +26,7 @@ Please wait... I'm trying to login in...
`
console.log(welcome)
const bot = new Wechaty({ session: 'example-bot.wechaty.json' })
const bot = new Wechaty({ profile: 'example-bot.wechaty.json' })
bot
.on('login' , user => log.info('Bot', `${user.name()} logined`))
......
const Wechaty = require('..')
const bot = new Wechaty({ session: 'example-bot.wechaty.json' })
const bot = new Wechaty({ profile: 'example-bot.wechaty.json' })
bot
.on('scan', ({url, code}) => {
......
const Wechaty = require('..')
const bot = new Wechaty(/* no session name here */)
const bot = new Wechaty(/* no profile here because roger bot is too noisy */)
bot
.on('scan', ({url, code}) => {
......
......@@ -28,7 +28,7 @@ const Wechaty = require('..')
const TULING123_API_KEY = '18f25157e0446df58ade098479f74b21'
const brain = new Tuling123(TULING123_API_KEY)
const bot = new Wechaty({ session: 'example-bot.wechaty.json' })
const bot = new Wechaty({ profile: 'example-bot.wechaty.json' })
console.log(`
Welcome to Tuling Wechaty Bot.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册