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

#40 convert bin/*.ts to typescript

上级 4cbadbf6
#!/usr/bin/env node
const {
import {
IoClient
, Config
, log
} = require('../')
, log
} from '../'
const welcome = `
| __ __ _ _
......@@ -36,10 +36,7 @@ if (!token) {
console.log(welcome)
log.info('Client', 'Starting for WECHATY_TOKEN: %s', token)
const client = new IoClient({
token
, log
})
const client = new IoClient(token, log)
client.init()
.catch(onError.bind(client))
......
#!/usr/bin/env node
const { Wechaty } = require('..')
import { Wechaty } from '../'
const w = new Wechaty()
const w = Wechaty.instance()
console.log(w.version())
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册