Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wechaty
wechaty
提交
ab40b16f
W
wechaty
项目概览
wechaty
/
wechaty
上一次同步 大约 3 年
通知
304
Star
10499
Fork
6
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
152
列表
看板
标记
里程碑
合并请求
1
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
wechaty
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
152
Issue
152
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ab40b16f
编写于
6月 30, 2018
作者:
Huan (李卓桓)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix some docs
上级
d89f77f4
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
1067 addition
and
74 deletion
+1067
-74
README.md
README.md
+2
-3
docs/index.md
docs/index.md
+1019
-69
scripts/generate-docs.sh
scripts/generate-docs.sh
+1
-1
src/accessory.ts
src/accessory.ts
+19
-0
src/user/room.ts
src/user/room.ts
+2
-1
src/wechaty.ts
src/wechaty.ts
+24
-0
未找到文件。
README.md
浏览文件 @
ab40b16f
...
...
@@ -47,7 +47,7 @@ Wechaty.instance() // Global Instance
.
start
()
```
> **Notice: Wechaty requires Node.js version >=
8.5
**
> **Notice: Wechaty requires Node.js version >=
10
**
This bot can log all messages to the console.
...
...
@@ -56,12 +56,11 @@ You can find more examples from [Wiki](https://github.com/chatie/wechaty/wiki/Ex
## GETTING STARTED
[
![node
](
https://img.shields.io/node/v/wechaty.svg?maxAge=604800
)
](https://nodejs.org/)
[
![Repo Size
](
https://reposs.herokuapp.com/?path=Chatie/wechaty
)
](https://github.com/chatie/wechaty)
### A Great Live Coding Tutorial
<div
align=
"center"
>
<a
target=
"_blank"
href=
"https://blog.chatie.io/g
uide/2017/01/01/getting-started-wechaty.html
"
><img
src=
"http://blog.chatie.io/download/2017/lijiarui-wechaty-quick-start-guide-video.jpg"
border=
0
width=
"60%"
></a>
<a
target=
"_blank"
href=
"https://blog.chatie.io/g
etting-started-wechaty/
"
><img
src=
"http://blog.chatie.io/download/2017/lijiarui-wechaty-quick-start-guide-video.jpg"
border=
0
width=
"60%"
></a>
</div>
The above 15 minute video tutorial is a good start point if you are new to Wechaty.
...
...
docs/index.md
浏览文件 @
ab40b16f
此差异已折叠。
点击以展开。
scripts/generate-docs.sh
浏览文件 @
ab40b16f
...
...
@@ -3,7 +3,7 @@ set -e
npm version
if
./scripts/development-release.ts
;
then
if
[
"
$1
"
!=
"dev"
]
&&
./scripts/development-release.ts
;
then
echo
"Current release is a development release, please only update the docs when there's a stable release."
exit
1
else
...
...
src/accessory.ts
浏览文件 @
ab40b16f
...
...
@@ -30,6 +30,9 @@ export abstract class Accessory extends EventEmitter {
private
static
_puppet
?
:
Puppet
private
static
_wechaty
?
:
Wechaty
/**
* @private
*/
public
static
set
puppet
(
puppet
:
Puppet
)
{
log
.
silly
(
'
Accessory
'
,
'
<%s> static set puppet = "%s"
'
,
this
.
name
,
...
...
@@ -42,6 +45,9 @@ export abstract class Accessory extends EventEmitter {
this
.
_puppet
=
puppet
}
/**
* @private
*/
public
static
get
puppet
():
Puppet
{
// log.silly('Accessory', '<%s> static get puppet()',
// this.name,
...
...
@@ -56,6 +62,9 @@ export abstract class Accessory extends EventEmitter {
)
}
/**
* @private
*/
public
static
set
wechaty
(
wechaty
:
Wechaty
)
{
log
.
silly
(
'
Accessory
'
,
'
<%s> static set wechaty = "%s"
'
,
this
.
name
,
...
...
@@ -67,6 +76,9 @@ export abstract class Accessory extends EventEmitter {
this
.
_wechaty
=
wechaty
}
/**
* @private
*/
public
static
get
wechaty
():
Wechaty
{
// log.silly('Accessory', '<%s> static get wechaty()',
// this.name,
...
...
@@ -90,6 +102,9 @@ export abstract class Accessory extends EventEmitter {
*/
private
_puppet
?
:
Puppet
/**
* @private
*/
public
set
puppet
(
puppet
:
Puppet
)
{
log
.
silly
(
'
Accessory
'
,
'
<%s> set puppet = "%s"
'
,
this
[
SYMBOL_NAME
]
||
this
,
...
...
@@ -102,6 +117,8 @@ export abstract class Accessory extends EventEmitter {
}
/**
* @private
*
* instance.puppet
*
* Needs to support different `puppet` between instances.
...
...
@@ -130,6 +147,8 @@ export abstract class Accessory extends EventEmitter {
}
/**
* @private
*
* instance.wechaty is for:
* Contact.wechaty
* FriendRequest.wechaty
...
...
src/user/room.ts
浏览文件 @
ab40b16f
...
...
@@ -221,7 +221,7 @@ export class Room extends Accessory implements Sayable {
}
/**
*
*
@private
*
* Instance Properties
*
...
...
@@ -792,6 +792,7 @@ export class Room extends Accessory implements Sayable {
/**
* Force reload data for Room
* @private
* @deprecated use sync() instead
* @returns {Promise<void>}
*/
...
...
src/wechaty.ts
浏览文件 @
ab40b16f
...
...
@@ -136,14 +136,33 @@ export class Wechaty extends Accessory implements Sayable {
*/
public
readonly
id
:
string
/**
* @private
*/
// tslint:disable-next-line:variable-name
public
readonly
Contact
:
typeof
Contact
/**
* @private
*/
// tslint:disable-next-line:variable-name
public
readonly
ContactSelf
:
typeof
ContactSelf
/**
* @private
*/
// tslint:disable-next-line:variable-name
public
readonly
Friendship
:
typeof
Friendship
/**
* @private
*/
// tslint:disable-next-line:variable-name
public
readonly
Message
:
typeof
Message
/**
* @private
*/
// tslint:disable-next-line:variable-name
public
readonly
Room
:
typeof
Room
...
...
@@ -491,6 +510,8 @@ export class Wechaty extends Accessory implements Sayable {
}
/**
* @private
*
* Init the Puppet
*/
private
initPuppetResolver
(
puppet
?:
PuppetName
|
Puppet
):
Puppet
{
...
...
@@ -523,6 +544,8 @@ export class Wechaty extends Accessory implements Sayable {
}
/**
* @private
*
* Plugin Version Range Check
*/
private
initPuppetSemverSatisfy
(
versionRange
:
string
)
{
...
...
@@ -719,6 +742,7 @@ export class Wechaty extends Accessory implements Sayable {
}
/**
* @private
* @deprecated use start() instead
*/
public
async
init
():
Promise
<
void
>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录