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

Merge branch 'master' of github.com:wechaty/wechaty

......@@ -84,6 +84,7 @@
"pagepath",
"qrcode",
"removee",
"ruirui",
"thumbnailurl",
"wechat",
"weixin",
......
......@@ -417,7 +417,7 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
- [Java Wechaty](https://github.com/wechaty/java-wechaty) - Java WeChaty Conversational AI Chatbot SDK for Wechat Individual Accounts (Java)
- [Scala Wechaty](https://github.com/wechaty/scala-wechaty) - Scala WeChaty Conversational AI Chatbot SDK for WechatyIndividual Accounts (Scala)
## Author
## Authors
1. [Huan](https://github.com/huan) [(李卓桓)](http://linkedin.com/in/zixia), Tencent TVP of Chatbot
1. [Rui (李佳芮)](https://pre-angel.com/peoples/jiarui-li/)
......@@ -426,6 +426,6 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
## Copyright & License
- Code & Docs © 2016 Huan LI \<zixia@zixia.net\>
- Code & Docs © 2016 Huan, Rui, and Wechaty Contributors
- Code released under the Apache-2.0 License
- Docs released under Creative Commons
......@@ -25,11 +25,10 @@ import os from 'os'
import Raven from 'raven'
import readPkgUp from 'read-pkg-up'
import { log } from 'brolog'
import {
FileBox,
MemoryCard,
log,
} from 'wechaty-puppet'
import {
......@@ -76,12 +75,6 @@ Raven.context(function () {
})
*/
const logLevel = process.env.WECHATY_LOG
if (logLevel) {
log.level(logLevel.toLowerCase() as any)
log.silly('Config', 'WECHATY_LOG set level to %s', logLevel)
}
/**
* to handle unhandled exceptions
*/
......
......@@ -100,7 +100,7 @@ export class Contact extends Accessory implements Sayable {
}
if (this === Contact) {
throw new Error(
'The lgobal Contact class can not be used directly!'
'The global Contact class can not be used directly!'
+ 'See: https://github.com/wechaty/wechaty/issues/1217',
)
}
......@@ -203,7 +203,7 @@ export class Contact extends Accessory implements Sayable {
* const bot = new Wechaty()
* await bot.start()
* const contactList = await bot.Contact.findAll() // get the contact list of the bot
* const contactList = await bot.Contact.findAll({ name: 'ruirui' }) // find allof the contacts whose name is 'ruirui'
* const contactList = await bot.Contact.findAll({ name: 'ruirui' }) // find all of the contacts whose name is 'ruirui'
* const contactList = await bot.Contact.findAll({ alias: 'lijiarui' }) // find all of the contacts whose alias is 'lijiarui'
*/
public static async findAll<T extends typeof Contact> (
......@@ -294,13 +294,13 @@ export class Contact extends Accessory implements Sayable {
if (MyClass === Contact) {
throw new Error(
'Contact class can not be instanciated directly!'
'Contact class can not be instantiated directly!'
+ 'See: https://github.com/wechaty/wechaty/issues/1217',
)
}
if (!this.puppet) {
throw new Error('Contact class can not be instanciated without a puppet!')
throw new Error('Contact class can not be instantiated without a puppet!')
}
}
......@@ -562,7 +562,7 @@ export class Contact extends Accessory implements Sayable {
*/
/**
* @description
* Check if it's a offical account, should use {@link Contact#type} instead
* Check if it's a official account, should use {@link Contact#type} instead
* @deprecated
* @ignore
*/
......@@ -718,7 +718,7 @@ export class Contact extends Accessory implements Sayable {
}
/**
* Force reload data for Contact, Sync data from lowlevel API again.
* Force reload data for Contact, Sync data from low-level API again.
*
* @returns {Promise<this>}
* @example
......@@ -732,7 +732,7 @@ export class Contact extends Accessory implements Sayable {
* `ready()` is For FrameWork ONLY!
*
* Please not to use `ready()` at the user land.
* If you want to sync data, uyse `sync()` instead.
* If you want to sync data, use `sync()` instead.
*
* @ignore
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册