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

rename bot session name to example-bot.wechaty.json

上级 5b903d27
......@@ -15,7 +15,7 @@ const co = require('co')
const ApiAi = require('apiai')
const EventEmitter2 = require('eventemitter2')
const Wechaty = require('../src/wechaty')
const Wechaty = require('..')
//log.level = 'verbose'
// log.level = 'silly'
......@@ -27,7 +27,7 @@ const Wechaty = require('../src/wechaty')
const APIAI_API_KEY = '7217d7bce18c4bcfbe04ba7bdfaf9c08'
const brainApiAi = ApiAi(APIAI_API_KEY)
const bot = new Wechaty({head: false})
const bot = new Wechaty({ session: 'example-bot.wechaty.json' })
console.log(`
Welcome to api.AI Wechaty Bot.
......
const log = require('npmlog')
const Wechaty = require('../src/wechaty')
const Wechaty = require('..')
const welcome = `
| __ __ _ _
......@@ -26,7 +26,7 @@ Please wait... I'm trying to login in...
`
console.log(welcome)
const bot = new Wechaty({ session: 'example.wechaty.json' })
const bot = new Wechaty({ session: 'example-bot.wechaty.json' })
bot
.on('login' , user => log.info('Bot', `${user.name()} logined`))
......
const Wechaty = require('..')
const bot = new Wechaty({ session: 'example.wechaty.json' })
const bot = new Wechaty({ session: 'example-bot.wechaty.json' })
bot
.on('scan', ({url, code}) => {
......
......@@ -15,7 +15,7 @@ const co = require('co')
const Tuling123 = require('tuling123-client')
const EventEmitter2 = require('eventemitter2')
const Wechaty = require('../src/wechaty')
const Wechaty = require('..')
//log.level = 'verbose'
// log.level = 'silly'
......@@ -28,7 +28,7 @@ const Wechaty = require('../src/wechaty')
const TULING123_API_KEY = '18f25157e0446df58ade098479f74b21'
const brain = new Tuling123(TULING123_API_KEY)
const bot = new Wechaty({head: false})
const bot = new Wechaty({ session: '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.
先完成此消息的编辑!
想要评论请 注册