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

clean url from chatie/wechaty to wechaty/wechaty

上级 f35d85b3
因为 它太大了无法显示 source diff 。你可以改为 查看blob
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
Thank you for your time on Wechaty. Thank you for your time on Wechaty.
## How to [contribute](https://github.com/chatie/wechaty/blob/master/CONTRIBUTING.md) ## How to [contribute](https://github.com/wechaty/wechaty/blob/master/CONTRIBUTING.md)
* Write a blog about Wechaty * Write a blog about Wechaty
* Create a tutorial for Wechaty * Create a tutorial for Wechaty
* Help expand the [wiki](https://github.com/Chatie/wechaty/wiki) * Help expand the [wiki](https://github.com/wechaty/wechaty/wiki)
* Answer questions on the [issue](https://github.com/Chatie/wechaty/issues) * Answer questions on the [issue](https://github.com/wechaty/wechaty/issues)
* Review [pull requests](https://github.com/Chatie/wechaty/pulls) * Review [pull requests](https://github.com/wechaty/wechaty/pulls)
* Start [hacking on Wechaty](https://github.com/chatie/wechaty/blob/master/CONTRIBUTING.md) * Start [hacking on Wechaty](https://github.com/wechaty/wechaty/blob/master/CONTRIBUTING.md)
### Why contribute ### Why contribute
...@@ -46,18 +46,18 @@ Contact rui@chatie.io to learn more ...@@ -46,18 +46,18 @@ Contact rui@chatie.io to learn more
Contribute by marketing: Add **Powered by Wechaty** Badge to your Project Homepage: Contribute by marketing: Add **Powered by Wechaty** Badge to your Project Homepage:
[![Powered by Wechaty](https://img.shields.io/badge/Powered%20By-Wechaty-green.svg)](https://github.com/Chatie/wechaty) [![Powered by Wechaty](https://img.shields.io/badge/Powered%20By-Wechaty-green.svg)](https://github.com/wechaty/wechaty)
### Markdown ### Markdown
```markdown ```markdown
[![Powered by Wechaty](https://img.shields.io/badge/Powered%20By-Wechaty-green.svg)](https://github.com/Chatie/wechaty) [![Powered by Wechaty](https://img.shields.io/badge/Powered%20By-Wechaty-green.svg)](https://github.com/wechaty/wechaty)
``` ```
### Html ### Html
```html ```html
<a href="https://github.com/Chatie/wechaty" target="_blank"> <a href="https://github.com/wechaty/wechaty" target="_blank">
<img src="https://img.shields.io/badge/Powered%20By-Wechaty-green.svg" alt="Powered by Wechaty" border="0"> <img src="https://img.shields.io/badge/Powered%20By-Wechaty-green.svg" alt="Powered by Wechaty" border="0">
</a> </a>
``` ```
......
...@@ -93,11 +93,11 @@ LABEL org.label-schema.license="Apache-2.0" \ ...@@ -93,11 +93,11 @@ LABEL org.label-schema.license="Apache-2.0" \
org.label-schema.schema-version="$(wechaty-version)" \ org.label-schema.schema-version="$(wechaty-version)" \
org.label-schema.name="Wechaty" \ org.label-schema.name="Wechaty" \
org.label-schema.description="Wechat for Bot" \ org.label-schema.description="Wechat for Bot" \
org.label-schema.usage="https://github.com/chatie/wechaty/wiki/Docker" \ org.label-schema.usage="https://github.com/wechaty/wechaty/wiki/Docker" \
org.label-schema.url="https://www.chatie.io" \ org.label-schema.url="https://www.chatie.io" \
org.label-schema.vendor="Chatie" \ org.label-schema.vendor="Chatie" \
org.label-schema.vcs-ref="$SOURCE_COMMIT" \ org.label-schema.vcs-ref="$SOURCE_COMMIT" \
org.label-schema.vcs-url="https://github.com/chatie/wechaty" \ org.label-schema.vcs-url="https://github.com/wechaty/wechaty" \
org.label-schema.docker.cmd="docker run -ti --rm zixia/wechaty <code.js>" \ org.label-schema.docker.cmd="docker run -ti --rm zixia/wechaty <code.js>" \
org.label-schema.docker.cmd.test="docker run -ti --rm zixia/wechaty test" \ org.label-schema.docker.cmd.test="docker run -ti --rm zixia/wechaty test" \
org.label-schema.docker.cmd.help="docker run -ti --rm zixia/wechaty help" \ org.label-schema.docker.cmd.help="docker run -ti --rm zixia/wechaty help" \
......
# #
# Wechaty Docker # Wechaty Docker
# https://github.com/chatie/wechaty # https://github.com/wechaty/wechaty
# #
# FROM alpine # FROM alpine
# #
...@@ -72,11 +72,11 @@ LABEL org.label-schema.license="ISC" \ ...@@ -72,11 +72,11 @@ LABEL org.label-schema.license="ISC" \
org.label-schema.schema-version="$(wechaty-version)" \ org.label-schema.schema-version="$(wechaty-version)" \
org.label-schema.name="Wechaty" \ org.label-schema.name="Wechaty" \
org.label-schema.description="Wechat for Bot" \ org.label-schema.description="Wechat for Bot" \
org.label-schema.usage="https://github.com/Chatie/wechaty/wiki/Docker" \ org.label-schema.usage="https://github.com/wechaty/wechaty/wiki/Docker" \
org.label-schema.url="https://www.chatie.io" \ org.label-schema.url="https://www.chatie.io" \
org.label-schema.vendor="AKA Mobi" \ org.label-schema.vendor="AKA Mobi" \
org.label-schema.vcs-ref="$SOURCE_COMMIT" \ org.label-schema.vcs-ref="$SOURCE_COMMIT" \
org.label-schema.vcs-url="https://github.com/Chatie/wechaty" \ org.label-schema.vcs-url="https://github.com/wechaty/wechaty" \
org.label-schema.docker.cmd="docker run -ti --rm zixia/wechaty <code.js>" \ org.label-schema.docker.cmd="docker run -ti --rm zixia/wechaty <code.js>" \
org.label-schema.docker.cmd.test="docker run -ti --rm zixia/wechaty test" \ org.label-schema.docker.cmd.test="docker run -ti --rm zixia/wechaty test" \
org.label-schema.docker.cmd.help="docker run -ti --rm zixia/wechaty help" \ org.label-schema.docker.cmd.help="docker run -ti --rm zixia/wechaty help" \
......
{ {
"name": "wechaty", "name": "wechaty",
"description": "Wechat for Bot. Get your Heroku cloud bot by deploy me", "description": "Wechat for Bot. Get your Heroku cloud bot by deploy me",
"repository": "https://github.com/chatie/wechaty", "repository": "https://github.com/wechaty/wechaty",
"logo": "https://raw.githubusercontent.com/chatie/wechaty/master/image/wechaty-icon.png", "logo": "https://raw.githubusercontent.com/chatie/wechaty/master/image/wechaty-icon.png",
"keywords": ["wechaty", "wechat", "bot", "chatbot", "framework", "cloudbot"], "keywords": ["wechaty", "wechat", "bot", "chatbot", "framework", "cloudbot"],
"env": { "env": {
......
#!/usr/bin/env node #!/usr/bin/env node
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# Wechaty - Connect ChatBots # Wechaty - Connect ChatBots
# #
# https://github.com/Chatie/wechaty # https://github.com/wechaty/wechaty
# #
set -e set -e
...@@ -44,7 +44,7 @@ function wechaty::errorBotNotFound() { ...@@ -44,7 +44,7 @@ function wechaty::errorBotNotFound() {
extensions hidden by default). extensions hidden by default).
if you still have issue, please have a look at if you still have issue, please have a look at
https://github.com/chatie/wechaty/issues/66 https://github.com/wechaty/wechaty/issues/66
and do a search in issues, that might be help. and do a search in issues, that might be help.
TROUBLESHOOTING TROUBLESHOOTING
...@@ -110,7 +110,7 @@ function wechaty::diagnose() { ...@@ -110,7 +110,7 @@ function wechaty::diagnose() {
echo _____________________________________________________________ echo _____________________________________________________________
echo '####### please paste all the above diagnose messages #######' echo '####### please paste all the above diagnose messages #######'
echo echo
echo 'Wechaty Issue https://github.com/chatie/wechaty/issues' echo 'Wechaty Issue https://github.com/wechaty/wechaty/issues'
echo echo
wechaty::pressEnterToContinue wechaty::pressEnterToContinue
...@@ -138,7 +138,7 @@ function wechaty::runBot() { ...@@ -138,7 +138,7 @@ function wechaty::runBot() {
# yarn < /dev/null || return $? # yarn will close stdin??? cause `read` command fail after yarn # yarn < /dev/null || return $? # yarn will close stdin??? cause `read` command fail after yarn
# #
# Issue https://github.com/Chatie/wechaty/issues/1478 # Issue https://github.com/wechaty/wechaty/issues/1478
# As a conclusion: we should better not to link the local node_modules to the Docker global. # As a conclusion: we should better not to link the local node_modules to the Docker global.
# #
# wechaty::linkBotNodeModules # wechaty::linkBotNodeModules
...@@ -192,7 +192,7 @@ function wechaty::runBot() { ...@@ -192,7 +192,7 @@ function wechaty::runBot() {
return "$ret" return "$ret"
} }
# Issue https://github.com/Chatie/wechaty/issues/1478 # Issue https://github.com/wechaty/wechaty/issues/1478
# To Be Tested: # To Be Tested:
function wechaty::linkBotNodeModules() { function wechaty::linkBotNodeModules() {
for localModule in /bot/node_modules/*; do for localModule in /bot/node_modules/*; do
...@@ -240,7 +240,7 @@ function wechaty::help() { ...@@ -240,7 +240,7 @@ function wechaty::help() {
test Run Unit Test test Run Unit Test
Learn more at: Learn more at:
https://github.com/chatie/wechaty/wiki/Docker https://github.com/wechaty/wechaty/wiki/Docker
......
#!/usr/bin/env node #!/usr/bin/env node
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
#!/usr/bin/env node #!/usr/bin/env node
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
此差异已折叠。
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
The Wechaty Official Example List Directory has been move to: The Wechaty Official Example List Directory has been move to:
<https://github.com/Chatie/wechaty-getting-started/tree/master/examples> <https://github.com/wechaty/wechaty-getting-started/tree/master/examples>
Please use [wechaty-getting-started](https://github.com/Chatie/wechaty-getting-started) repository as the starter template for your project because it can work out-of-the-box with lots of examples. Please use [wechaty-getting-started](https://github.com/wechaty/wechaty-getting-started) repository as the starter template for your project because it can work out-of-the-box with lots of examples.
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
...@@ -164,7 +164,7 @@ const welcome = ` ...@@ -164,7 +164,7 @@ const welcome = `
| |___/ | |___/
=============== Powered by Wechaty =============== =============== Powered by Wechaty ===============
-------- https://github.com/chatie/wechaty -------- -------- https://github.com/wechaty/wechaty --------
Version: ${bot.version(true)} Version: ${bot.version(true)}
I'm a bot, my superpower is talk in Wechat. I'm a bot, my superpower is talk in Wechat.
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/chatie/wechaty.git" "url": "git+https://github.com/wechaty/wechaty.git"
}, },
"bin": { "bin": {
"wechaty-doctor": "dist/bin/doctor.js", "wechaty-doctor": "dist/bin/doctor.js",
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"bugs": { "bugs": {
"url": "https://github.com/chatie/wechaty/issues" "url": "https://github.com/wechaty/wechaty/issues"
}, },
"homepage": "https://chatie.io/wechaty/", "homepage": "https://chatie.io/wechaty/",
"engines": { "engines": {
......
...@@ -18,7 +18,7 @@ if [ $# -eq 0 ]; then ...@@ -18,7 +18,7 @@ if [ $# -eq 0 ]; then
echo echo
else else
message="${2:-WARNING: this version(odd number) is coming from a developing branch which means it is very possible UNSTABLE. Please use the latest version with even number if you are in production. You can know more about the Wechaty version numbering design at https://github.com/chatie/wechaty/issues/905}" message="${2:-WARNING: this version(odd number) is coming from a developing branch which means it is very possible UNSTABLE. Please use the latest version with even number if you are in production. You can know more about the Wechaty version numbering design at https://github.com/wechaty/wechaty/issues/905}"
npm deprecate "wechaty@$1" "$message" npm deprecate "wechaty@$1" "$message"
......
#!/usr/bin/env ts-node #!/usr/bin/env ts-node
/** /**
* https://github.com/Chatie/wechaty/issues/1084 * https://github.com/wechaty/wechaty/issues/1084
* WebDriver / Puppeteer sometimes will fail(i.e. timeout) with no reason. * WebDriver / Puppeteer sometimes will fail(i.e. timeout) with no reason.
* That will cause the unit tests fail randomly. * That will cause the unit tests fail randomly.
* So we need to retry again when unit tests fail, * So we need to retry again when unit tests fail,
......
...@@ -7,7 +7,7 @@ const contributeMap: { ...@@ -7,7 +7,7 @@ const contributeMap: {
} = {} } = {}
function parseLine (line: string): string[] | null { function parseLine (line: string): string[] | null {
// [\#264](https://github.com/Chatie/wechaty/pull/264) ([lijiarui](https://github.com/lijiarui)) // [\#264](https://github.com/wechaty/wechaty/pull/264) ([lijiarui](https://github.com/lijiarui))
// const regex = /(\[\\#\d+\]\([^\)]+\))\s+(\(\[[^]]+\]\([^)]+\)))/i // const regex = /(\[\\#\d+\]\([^\)]+\))\s+(\(\[[^]]+\]\([^)]+\)))/i
const regex = /(\[\\#\d+\])(\([^)]+\))\s+\((\[[^\]]+\]\([^)]+\))/ const regex = /(\[\\#\d+\])(\([^)]+\))\s+\((\[[^\]]+\]\([^)]+\))/
const matches = regex.exec(line) const matches = regex.exec(line)
...@@ -16,7 +16,7 @@ function parseLine (line: string): string[] | null { ...@@ -16,7 +16,7 @@ function parseLine (line: string): string[] | null {
} }
// console.info('match!') // console.info('match!')
// console.info(matches[1]) // [\#264] // console.info(matches[1]) // [\#264]
// console.info(matches[2]) // (https://github.com/Chatie/wechaty/pull/264) // console.info(matches[2]) // (https://github.com/wechaty/wechaty/pull/264)
// console.info(matches[3]) // ([lijiarui](https://github.com/lijiarui) // console.info(matches[3]) // ([lijiarui](https://github.com/lijiarui)
return matches return matches
} }
......
...@@ -16,7 +16,7 @@ import { promisify } from 'util' ...@@ -16,7 +16,7 @@ import { promisify } from 'util'
import * as globCallback from 'glob' import * as globCallback from 'glob'
const LICENSE = `/** const LICENSE = `/**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
#!/usr/bin/env ts-node #!/usr/bin/env ts-node
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
...@@ -62,7 +62,7 @@ export abstract class Accessory extends EventEmitter { ...@@ -62,7 +62,7 @@ export abstract class Accessory extends EventEmitter {
'static puppet not found for ', 'static puppet not found for ',
this.name, this.name,
', ', ', ',
'please see issue #1217: https://github.com/Chatie/wechaty/issues/1217', 'please see issue #1217: https://github.com/wechaty/wechaty/issues/1217',
].join('')) ].join(''))
} }
......
#!/usr/bin/env ts-node #!/usr/bin/env ts-node
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
#!/usr/bin/env ts-node #!/usr/bin/env ts-node
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
#!/usr/bin/env ts-node #!/usr/bin/env ts-node
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
#!/usr/bin/env ts-node #!/usr/bin/env ts-node
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
#!/usr/bin/env ts-node #!/usr/bin/env ts-node
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
...@@ -50,7 +50,7 @@ export class PuppetManager { ...@@ -50,7 +50,7 @@ export class PuppetManager {
* For example: PuppetA allow `constructor()` but PuppetB requires `constructor(options)` * For example: PuppetA allow `constructor()` but PuppetB requires `constructor(options)`
* *
* SOLUTION: we enforce all the PuppetImplenmentation to have `options` and should not allow default parameter. * SOLUTION: we enforce all the PuppetImplenmentation to have `options` and should not allow default parameter.
* Issue: https://github.com/Chatie/wechaty-puppet/issues/2 * Issue: https://github.com/wechaty/wechaty-puppet/issues/2
*/ */
puppetInstance = new MyPuppet(options.puppetOptions) puppetInstance = new MyPuppet(options.puppetOptions)
} }
...@@ -68,7 +68,7 @@ export class PuppetManager { ...@@ -68,7 +68,7 @@ export class PuppetManager {
// TODO(huan): remove the unnecessary switch // TODO(huan): remove the unnecessary switch
switch (puppetName) { switch (puppetName) {
// case 'padchat': // case 'padchat':
// // issue #1496 https://github.com/Chatie/wechaty/issues/1496 // // issue #1496 https://github.com/wechaty/wechaty/issues/1496
// // compatible old settings for padchat // // compatible old settings for padchat
// puppetName = 'wechaty-puppet-padchat' // puppetName = 'wechaty-puppet-padchat'
// break // break
...@@ -88,7 +88,7 @@ export class PuppetManager { ...@@ -88,7 +88,7 @@ export class PuppetManager {
'', '',
'puppet npm module not supported: "' + puppetName + '"', 'puppet npm module not supported: "' + puppetName + '"',
'learn more about supported Wechaty Puppet from our directory at', 'learn more about supported Wechaty Puppet from our directory at',
'<https://github.com/Chatie/wechaty-puppet/wiki/Directory>', '<https://github.com/wechaty/wechaty-puppet/wiki/Directory>',
'', '',
].join('\n') ].join('\n')
) )
......
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
#!/usr/bin/env ts-node #!/usr/bin/env ts-node
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
...@@ -47,10 +47,10 @@ export const POOL = Symbol('pool') ...@@ -47,10 +47,10 @@ export const POOL = Symbol('pool')
/** /**
* All wechat contacts(friend) will be encapsulated as a Contact. * All wechat contacts(friend) will be encapsulated as a Contact.
* [Examples/Contact-Bot]{@link https://github.com/Chatie/wechaty/blob/1523c5e02be46ebe2cc172a744b2fbe53351540e/examples/contact-bot.ts} * [Examples/Contact-Bot]{@link https://github.com/wechaty/wechaty/blob/1523c5e02be46ebe2cc172a744b2fbe53351540e/examples/contact-bot.ts}
* *
* @property {string} id - Get Contact id. * @property {string} id - Get Contact id.
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
*/ */
export class Contact extends Accessory implements Sayable { export class Contact extends Accessory implements Sayable {
...@@ -67,7 +67,7 @@ export class Contact extends Accessory implements Sayable { ...@@ -67,7 +67,7 @@ export class Contact extends Accessory implements Sayable {
if (this === Contact) { if (this === Contact) {
throw new Error( throw new Error(
'The global Contact class can not be used directly!' 'The global Contact class can not be used directly!'
+ 'See: https://github.com/Chatie/wechaty/issues/1217', + 'See: https://github.com/wechaty/wechaty/issues/1217',
) )
} }
this[POOL] = newPool this[POOL] = newPool
...@@ -79,7 +79,7 @@ export class Contact extends Accessory implements Sayable { ...@@ -79,7 +79,7 @@ export class Contact extends Accessory implements Sayable {
* *
* Get Contact by id * Get Contact by id
* > Tips: * > Tips:
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* *
* @static * @static
* @param {string} id * @param {string} id
...@@ -100,7 +100,7 @@ export class Contact extends Accessory implements Sayable { ...@@ -100,7 +100,7 @@ export class Contact extends Accessory implements Sayable {
if (this === Contact) { if (this === Contact) {
throw new Error( throw new Error(
'The lgobal Contact class can not be used directly!' 'The lgobal Contact class can not be used directly!'
+ 'See: https://github.com/Chatie/wechaty/issues/1217', + 'See: https://github.com/wechaty/wechaty/issues/1217',
) )
} }
if (this.pool === Contact.pool) { if (this.pool === Contact.pool) {
...@@ -126,7 +126,7 @@ export class Contact extends Accessory implements Sayable { ...@@ -126,7 +126,7 @@ export class Contact extends Accessory implements Sayable {
* @typedef ContactQueryFilter * @typedef ContactQueryFilter
* @property {string} name - The name-string set by user-self, should be called name * @property {string} name - The name-string set by user-self, should be called name
* @property {string} alias - The name-string set by bot for others, should be called alias * @property {string} alias - The name-string set by bot for others, should be called alias
* [More Detail]{@link https://github.com/Chatie/wechaty/issues/365} * [More Detail]{@link https://github.com/wechaty/wechaty/issues/365}
*/ */
/** /**
...@@ -166,8 +166,8 @@ export class Contact extends Accessory implements Sayable { ...@@ -166,8 +166,8 @@ export class Contact extends Accessory implements Sayable {
for (n = 0; n < contactList.length; n++) { for (n = 0; n < contactList.length; n++) {
const contact = contactList[n] const contact = contactList[n]
// use puppet.contactValidate() to confirm double confirm that this contactId is valid. // use puppet.contactValidate() to confirm double confirm that this contactId is valid.
// https://github.com/lijiarui/wechaty-puppet-padchat/issues/64 // https://github.com/wechaty/wechaty-puppet-padchat/issues/64
// https://github.com/Chatie/wechaty/issues/1345 // https://github.com/wechaty/wechaty/issues/1345
const valid = await this.puppet.contactValidate(contact.id) const valid = await this.puppet.contactValidate(contact.id)
if (valid) { if (valid) {
log.verbose('Contact', 'find() confirm contact[#%d] with id=%d is valid result, return it.', log.verbose('Contact', 'find() confirm contact[#%d] with id=%d is valid result, return it.',
...@@ -274,7 +274,7 @@ export class Contact extends Accessory implements Sayable { ...@@ -274,7 +274,7 @@ export class Contact extends Accessory implements Sayable {
if (MyClass === Contact) { if (MyClass === Contact) {
throw new Error( throw new Error(
'Contact class can not be instanciated directly!' 'Contact class can not be instanciated directly!'
+ 'See: https://github.com/Chatie/wechaty/issues/1217', + 'See: https://github.com/wechaty/wechaty/issues/1217',
) )
} }
...@@ -307,7 +307,7 @@ export class Contact extends Accessory implements Sayable { ...@@ -307,7 +307,7 @@ export class Contact extends Accessory implements Sayable {
/** /**
* > Tips: * > Tips:
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* *
* @param {(string | Contact | FileBox | UrlLink | MiniProgram)} something * @param {(string | Contact | FileBox | UrlLink | MiniProgram)} something
* send text, Contact, or file to contact. </br> * send text, Contact, or file to contact. </br>
...@@ -344,7 +344,7 @@ export class Contact extends Accessory implements Sayable { ...@@ -344,7 +344,7 @@ export class Contact extends Accessory implements Sayable {
* description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love', * description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love',
* thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4', * thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4',
* title : 'Welcome to Wechaty', * title : 'Welcome to Wechaty',
* url : 'https://github.com/chatie/wechaty', * url : 'https://github.com/wechaty/wechaty',
* }) * })
* await contact.say(urlLink) * await contact.say(urlLink)
* const msg = await contact.say(urlLink) // only supported by puppet-padplus * const msg = await contact.say(urlLink) // only supported by puppet-padplus
...@@ -512,7 +512,7 @@ export class Contact extends Accessory implements Sayable { ...@@ -512,7 +512,7 @@ export class Contact extends Accessory implements Sayable {
* Check if contact is friend * Check if contact is friend
* *
* > Tips: * > Tips:
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* *
* @returns {boolean | null} * @returns {boolean | null}
* *
......
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
...@@ -52,7 +52,7 @@ import { ...@@ -52,7 +52,7 @@ import {
* 2. receive request(in friend event) * 2. receive request(in friend event)
* 3. confirmation friendship(friend event) * 3. confirmation friendship(friend event)
* *
* [Examples/Friend-Bot]{@link https://github.com/Chatie/wechaty/blob/1523c5e02be46ebe2cc172a744b2fbe53351540e/examples/friend-bot.ts} * [Examples/Friend-Bot]{@link https://github.com/wechaty/wechaty/blob/1523c5e02be46ebe2cc172a744b2fbe53351540e/examples/friend-bot.ts}
*/ */
export class Friendship extends Accessory implements Acceptable { export class Friendship extends Accessory implements Acceptable {
...@@ -138,7 +138,7 @@ export class Friendship extends Accessory implements Acceptable { ...@@ -138,7 +138,7 @@ export class Friendship extends Accessory implements Acceptable {
const MyClass = instanceToClass(this, Friendship) const MyClass = instanceToClass(this, Friendship)
if (MyClass === Friendship) { if (MyClass === Friendship) {
throw new Error('Friendship class can not be instanciated directly! See: https://github.com/Chatie/wechaty/issues/1217') throw new Error('Friendship class can not be instanciated directly! See: https://github.com/wechaty/wechaty/issues/1217')
} }
if (!this.puppet) { if (!this.puppet) {
......
#!/usr/bin/env ts-node #!/usr/bin/env ts-node
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
...@@ -69,7 +69,7 @@ export interface MessageUserQueryFilter { ...@@ -69,7 +69,7 @@ export interface MessageUserQueryFilter {
/** /**
* All wechat messages will be encapsulated as a Message. * All wechat messages will be encapsulated as a Message.
* *
* [Examples/Ding-Dong-Bot]{@link https://github.com/Chatie/wechaty/blob/1523c5e02be46ebe2cc172a744b2fbe53351540e/examples/ding-dong-bot.ts} * [Examples/Ding-Dong-Bot]{@link https://github.com/wechaty/wechaty/blob/1523c5e02be46ebe2cc172a744b2fbe53351540e/examples/ding-dong-bot.ts}
*/ */
export class Message extends Accessory implements Sayable { export class Message extends Accessory implements Sayable {
...@@ -212,7 +212,7 @@ export class Message extends Accessory implements Sayable { ...@@ -212,7 +212,7 @@ export class Message extends Accessory implements Sayable {
const MyClass = instanceToClass(this, Message) const MyClass = instanceToClass(this, Message)
if (MyClass === Message) { if (MyClass === Message) {
throw new Error('Message class can not be instanciated directly! See: https://github.com/Chatie/wechaty/issues/1217') throw new Error('Message class can not be instanciated directly! See: https://github.com/wechaty/wechaty/issues/1217')
} }
if (!this.puppet) { if (!this.puppet) {
...@@ -436,9 +436,9 @@ export class Message extends Accessory implements Sayable { ...@@ -436,9 +436,9 @@ export class Message extends Accessory implements Sayable {
/** /**
* Reply a Text or Media File message to the sender. * Reply a Text or Media File message to the sender.
* > Tips: * > Tips:
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* *
* @see {@link https://github.com/Chatie/wechaty/blob/1523c5e02be46ebe2cc172a744b2fbe53351540e/examples/ding-dong-bot.ts|Examples/ding-dong-bot} * @see {@link https://github.com/wechaty/wechaty/blob/1523c5e02be46ebe2cc172a744b2fbe53351540e/examples/ding-dong-bot.ts|Examples/ding-dong-bot}
* @param {(string | Contact | FileBox | UrlLink | MiniProgram)} textOrContactOrFile * @param {(string | Contact | FileBox | UrlLink | MiniProgram)} textOrContactOrFile
* send text, Contact, or file to bot. </br> * send text, Contact, or file to bot. </br>
* You can use {@link https://www.npmjs.com/package/file-box|FileBox} to send file * You can use {@link https://www.npmjs.com/package/file-box|FileBox} to send file
...@@ -486,7 +486,7 @@ export class Message extends Accessory implements Sayable { ...@@ -486,7 +486,7 @@ export class Message extends Accessory implements Sayable {
* description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love', * description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love',
* thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4', * thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4',
* title : 'Welcome to Wechaty', * title : 'Welcome to Wechaty',
* url : 'https://github.com/chatie/wechaty', * url : 'https://github.com/wechaty/wechaty',
* }) * })
* await msg.say(linkPayload) * await msg.say(linkPayload)
* const message = await msg.say(linkPayload) // only supported by puppet-padplus * const message = await msg.say(linkPayload) // only supported by puppet-padplus
...@@ -926,7 +926,7 @@ export class Message extends Accessory implements Sayable { ...@@ -926,7 +926,7 @@ export class Message extends Accessory implements Sayable {
/** /**
* Extract the Media File from the Message, and put it into the FileBox. * Extract the Media File from the Message, and put it into the FileBox.
* > Tips: * > Tips:
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* *
* @returns {Promise<FileBox>} * @returns {Promise<FileBox>}
* *
...@@ -947,7 +947,7 @@ export class Message extends Accessory implements Sayable { ...@@ -947,7 +947,7 @@ export class Message extends Accessory implements Sayable {
* Get Share Card of the Message * Get Share Card of the Message
* Extract the Contact Card from the Message, and encapsulate it into Contact class * Extract the Contact Card from the Message, and encapsulate it into Contact class
* > Tips: * > Tips:
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* @returns {Promise<Contact>} * @returns {Promise<Contact>}
*/ */
public async toContact (): Promise<Contact> { public async toContact (): Promise<Contact> {
......
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
...@@ -64,7 +64,7 @@ export class RoomInvitation extends Accessory implements Acceptable { ...@@ -64,7 +64,7 @@ export class RoomInvitation extends Accessory implements Acceptable {
const MyClass = instanceToClass(this, RoomInvitation) const MyClass = instanceToClass(this, RoomInvitation)
if (MyClass === RoomInvitation) { if (MyClass === RoomInvitation) {
throw new Error('RoomInvitation class can not be instanciated directly! See: https://github.com/Chatie/wechaty/issues/1217') throw new Error('RoomInvitation class can not be instanciated directly! See: https://github.com/wechaty/wechaty/issues/1217')
} }
if (!this.puppet) { if (!this.puppet) {
......
#!/usr/bin/env ts-node #!/usr/bin/env ts-node
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
...@@ -64,7 +64,7 @@ export type RoomEventName = keyof typeof ROOM_EVENT_DICT ...@@ -64,7 +64,7 @@ export type RoomEventName = keyof typeof ROOM_EVENT_DICT
/** /**
* All wechat rooms(groups) will be encapsulated as a Room. * All wechat rooms(groups) will be encapsulated as a Room.
* *
* [Examples/Room-Bot]{@link https://github.com/Chatie/wechaty/blob/1523c5e02be46ebe2cc172a744b2fbe53351540e/examples/room-bot.ts} * [Examples/Room-Bot]{@link https://github.com/wechaty/wechaty/blob/1523c5e02be46ebe2cc172a744b2fbe53351540e/examples/room-bot.ts}
* *
*/ */
export class Room extends Accessory implements Sayable { export class Room extends Accessory implements Sayable {
...@@ -202,8 +202,8 @@ export class Room extends Accessory implements Sayable { ...@@ -202,8 +202,8 @@ export class Room extends Accessory implements Sayable {
for (n = 0; n < roomList.length; n++) { for (n = 0; n < roomList.length; n++) {
const room = roomList[n] const room = roomList[n]
// use puppet.roomValidate() to confirm double confirm that this roomId is valid. // use puppet.roomValidate() to confirm double confirm that this roomId is valid.
// https://github.com/lijiarui/wechaty-puppet-padchat/issues/64 // https://github.com/wechaty/wechaty-puppet-padchat/issues/64
// https://github.com/Chatie/wechaty/issues/1345 // https://github.com/wechaty/wechaty/issues/1345
const valid = await this.puppet.roomValidate(room.id) const valid = await this.puppet.roomValidate(room.id)
if (valid) { if (valid) {
log.verbose('Room', 'find() confirm room[#%d] with id=%d is valid result, return it.', log.verbose('Room', 'find() confirm room[#%d] with id=%d is valid result, return it.',
...@@ -231,7 +231,7 @@ export class Room extends Accessory implements Sayable { ...@@ -231,7 +231,7 @@ export class Room extends Accessory implements Sayable {
* but for other solutions besides web, * but for other solutions besides web,
* we can get unique and permanent topic id. * we can get unique and permanent topic id.
* *
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* @static * @static
* @param {string} id * @param {string} id
* @returns {Room} * @returns {Room}
...@@ -272,7 +272,7 @@ export class Room extends Accessory implements Sayable { ...@@ -272,7 +272,7 @@ export class Room extends Accessory implements Sayable {
/** /**
* @hideconstructor * @hideconstructor
* @property {string} id - Room id. * @property {string} id - Room id.
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
*/ */
constructor ( constructor (
public readonly id: string, public readonly id: string,
...@@ -284,7 +284,7 @@ export class Room extends Accessory implements Sayable { ...@@ -284,7 +284,7 @@ export class Room extends Accessory implements Sayable {
const MyClass = instanceToClass(this, Room) const MyClass = instanceToClass(this, Room)
if (MyClass === Room) { if (MyClass === Room) {
throw new Error('Room class can not be instanciated directly! See: https://github.com/Chatie/wechaty/issues/1217') throw new Error('Room class can not be instanciated directly! See: https://github.com/wechaty/wechaty/issues/1217')
} }
if (!this.puppet) { if (!this.puppet) {
...@@ -391,7 +391,7 @@ export class Room extends Accessory implements Sayable { ...@@ -391,7 +391,7 @@ export class Room extends Accessory implements Sayable {
/** /**
* Send message inside Room, if set [replyTo], wechaty will mention the contact as well. * Send message inside Room, if set [replyTo], wechaty will mention the contact as well.
* > Tips: * > Tips:
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* *
* @param {(string | Contact | FileBox)} textOrContactOrFileOrUrlOrMini - Send `text` or `media file` inside Room. <br> * @param {(string | Contact | FileBox)} textOrContactOrFileOrUrlOrMini - Send `text` or `media file` inside Room. <br>
* You can use {@link https://www.npmjs.com/package/file-box|FileBox} to send file * You can use {@link https://www.npmjs.com/package/file-box|FileBox} to send file
...@@ -439,7 +439,7 @@ export class Room extends Accessory implements Sayable { ...@@ -439,7 +439,7 @@ export class Room extends Accessory implements Sayable {
* description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love', * description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love',
* thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4', * thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4',
* title : 'Welcome to Wechaty', * title : 'Welcome to Wechaty',
* url : 'https://github.com/chatie/wechaty', * url : 'https://github.com/wechaty/wechaty',
* }) * })
* await room.say(urlLink) * await room.say(urlLink)
* const msg = await room.say(urlLink) // only supported by puppet-padplus * const msg = await room.say(urlLink) // only supported by puppet-padplus
...@@ -690,9 +690,9 @@ export class Room extends Accessory implements Sayable { ...@@ -690,9 +690,9 @@ export class Room extends Accessory implements Sayable {
* Add contact in a room * Add contact in a room
* *
* > Tips: * > Tips:
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* > * >
* > see {@link https://github.com/Chatie/wechaty/issues/1441|Web version of WeChat closed group interface} * > see {@link https://github.com/wechaty/wechaty/issues/1441|Web version of WeChat closed group interface}
* *
* @param {Contact} contact * @param {Contact} contact
* @returns {Promise<void>} * @returns {Promise<void>}
...@@ -720,9 +720,9 @@ export class Room extends Accessory implements Sayable { ...@@ -720,9 +720,9 @@ export class Room extends Accessory implements Sayable {
* It works only when the bot is the owner of the room * It works only when the bot is the owner of the room
* *
* > Tips: * > Tips:
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* > * >
* > see {@link https://github.com/Chatie/wechaty/issues/1441|Web version of WeChat closed group interface} * > see {@link https://github.com/wechaty/wechaty/issues/1441|Web version of WeChat closed group interface}
* *
* @param {Contact} contact * @param {Contact} contact
* @returns {Promise<void>} * @returns {Promise<void>}
...@@ -764,7 +764,7 @@ export class Room extends Accessory implements Sayable { ...@@ -764,7 +764,7 @@ export class Room extends Accessory implements Sayable {
* Bot quit the room itself * Bot quit the room itself
* *
* > Tips: * > Tips:
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* *
* @returns {Promise<void>} * @returns {Promise<void>}
* @example * @example
...@@ -852,7 +852,7 @@ export class Room extends Accessory implements Sayable { ...@@ -852,7 +852,7 @@ export class Room extends Accessory implements Sayable {
* SET/GET announce from the room * SET/GET announce from the room
* > Tips: It only works when bot is the owner of the room. * > Tips: It only works when bot is the owner of the room.
* > * >
* > This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * > This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* *
* @param {string} [text] If set this para, it will change room announce. * @param {string} [text] If set this para, it will change room announce.
* @returns {(Promise<void | string>)} * @returns {(Promise<void | string>)}
...@@ -888,7 +888,7 @@ export class Room extends Accessory implements Sayable { ...@@ -888,7 +888,7 @@ export class Room extends Accessory implements Sayable {
/** /**
* Get QR Code Value of the Room from the room, which can be used as scan and join the room. * Get QR Code Value of the Room from the room, which can be used as scan and join the room.
* > Tips: * > Tips:
* 1. This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * 1. This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* 2. The return should be the QR Code Data, instead of the QR Code Image. (the data should be less than 8KB. See: https://stackoverflow.com/a/12764370/1123955 ) * 2. The return should be the QR Code Data, instead of the QR Code Image. (the data should be less than 8KB. See: https://stackoverflow.com/a/12764370/1123955 )
* @returns {Promise<string>} * @returns {Promise<string>}
*/ */
...@@ -979,7 +979,7 @@ export class Room extends Accessory implements Sayable { ...@@ -979,7 +979,7 @@ export class Room extends Accessory implements Sayable {
* @property {string} name -Find the contact by wechat name in a room, equal to `Contact.name()`. * @property {string} name -Find the contact by wechat name in a room, equal to `Contact.name()`.
* @property {string} roomAlias -Find the contact by alias set by the bot for others in a room. * @property {string} roomAlias -Find the contact by alias set by the bot for others in a room.
* @property {string} contactAlias -Find the contact by alias set by the contact out of a room, equal to `Contact.alias()`. * @property {string} contactAlias -Find the contact by alias set by the contact out of a room, equal to `Contact.alias()`.
* [More Detail]{@link https://github.com/Chatie/wechaty/issues/365} * [More Detail]{@link https://github.com/wechaty/wechaty/issues/365}
*/ */
/** /**
...@@ -1105,7 +1105,7 @@ export class Room extends Accessory implements Sayable { ...@@ -1105,7 +1105,7 @@ export class Room extends Accessory implements Sayable {
/** /**
* Get room's owner from the room. * Get room's owner from the room.
* > Tips: * > Tips:
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* @returns {(Contact | null)} * @returns {(Contact | null)}
* @example * @example
* const owner = room.owner() * const owner = room.owner()
......
#!/usr/bin/env ts-node #!/usr/bin/env ts-node
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
...@@ -120,12 +120,12 @@ const PUPPET_MEMORY_NAME = 'puppet' ...@@ -120,12 +120,12 @@ const PUPPET_MEMORY_NAME = 'puppet'
* *
* A `Bot` is a wechat client depends on which puppet you use. * A `Bot` is a wechat client depends on which puppet you use.
* It may equals * It may equals
* - web-wechat, when you use: [puppet-puppeteer](https://github.com/chatie/wechaty-puppet-puppeteer)/[puppet-wechat4u](https://github.com/chatie/wechaty-puppet-wechat4u) * - web-wechat, when you use: [puppet-puppeteer](https://github.com/wechaty/wechaty-puppet-puppeteer)/[puppet-wechat4u](https://github.com/wechaty/wechaty-puppet-wechat4u)
* - ipad-wechat, when you use: [puppet-padchat](https://github.com/lijiarui/wechaty-puppet-padchat) * - ipad-wechat, when you use: [puppet-padchat](https://github.com/wechaty/wechaty-puppet-padchat)
* - ios-wechat, when you use: puppet-ioscat * - ios-wechat, when you use: puppet-ioscat
* *
* See more: * See more:
* - [What is a Puppet in Wechaty](https://github.com/Chatie/wechaty-getting-started/wiki/FAQ-EN#31-what-is-a-puppet-in-wechaty) * - [What is a Puppet in Wechaty](https://github.com/wechaty/wechaty-getting-started/wiki/FAQ-EN#31-what-is-a-puppet-in-wechaty)
* *
* > If you want to know how to send message, see [Message](#Message) <br> * > If you want to know how to send message, see [Message](#Message) <br>
* > If you want to know how to get contact, see [Contact](#Contact) * > If you want to know how to get contact, see [Contact](#Contact)
...@@ -198,11 +198,11 @@ export class Wechaty extends Accessory implements Sayable { ...@@ -198,11 +198,11 @@ export class Wechaty extends Accessory implements Sayable {
} }
/** /**
* The term [Puppet](https://github.com/Chatie/wechaty/wiki/Puppet) in Wechaty is an Abstract Class for implementing protocol plugins. * The term [Puppet](https://github.com/wechaty/wechaty/wiki/Puppet) in Wechaty is an Abstract Class for implementing protocol plugins.
* The plugins are the component that helps Wechaty to control the Wechat(that's the reason we call it puppet). * The plugins are the component that helps Wechaty to control the Wechat(that's the reason we call it puppet).
* The plugins are named XXXPuppet, for example: * The plugins are named XXXPuppet, for example:
* - [PuppetPuppeteer](https://github.com/Chatie/wechaty-puppet-puppeteer): * - [PuppetPuppeteer](https://github.com/wechaty/wechaty-puppet-puppeteer):
* - [PuppetPadchat](https://github.com/lijiarui/wechaty-puppet-padchat) * - [PuppetPadchat](https://github.com/wechaty/wechaty-puppet-padchat)
* *
* @typedef PuppetModuleName * @typedef PuppetModuleName
* @property {string} PUPPET_DEFAULT * @property {string} PUPPET_DEFAULT
...@@ -387,7 +387,7 @@ export class Wechaty extends Accessory implements Sayable { ...@@ -387,7 +387,7 @@ export class Wechaty extends Accessory implements Sayable {
* @param {WechatyEventFunction} listener - Depends on the WechatyEvent * @param {WechatyEventFunction} listener - Depends on the WechatyEvent
* *
* @return {Wechaty} - this for chaining, * @return {Wechaty} - this for chaining,
* see advanced {@link https://github.com/Chatie/wechaty-getting-started/wiki/FAQ-EN#36-why-wechatyonevent-listener-return-wechaty|chaining usage} * see advanced {@link https://github.com/wechaty/wechaty-getting-started/wiki/FAQ-EN#36-why-wechatyonevent-listener-return-wechaty|chaining usage}
* *
* @desc * @desc
* When the bot get message, it will emit the following Event. * When the bot get message, it will emit the following Event.
...@@ -997,7 +997,7 @@ export class Wechaty extends Accessory implements Sayable { ...@@ -997,7 +997,7 @@ export class Wechaty extends Accessory implements Sayable {
/** /**
* Send message to userSelf, in other words, bot send message to itself. * Send message to userSelf, in other words, bot send message to itself.
* > Tips: * > Tips:
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table) * This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
* *
* @param {(string | Contact | FileBox | UrlLink | MiniProgram)} something * @param {(string | Contact | FileBox | UrlLink | MiniProgram)} something
* send text, Contact, or file to bot. </br> * send text, Contact, or file to bot. </br>
...@@ -1032,7 +1032,7 @@ export class Wechaty extends Accessory implements Sayable { ...@@ -1032,7 +1032,7 @@ export class Wechaty extends Accessory implements Sayable {
* description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love', * description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love',
* thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4', * thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4',
* title : 'Welcome to Wechaty', * title : 'Welcome to Wechaty',
* url : 'https://github.com/chatie/wechaty', * url : 'https://github.com/wechaty/wechaty',
* }) * })
* await bot.say(linkPayload) * await bot.say(linkPayload)
* *
......
#!/usr/bin/env ts-node #!/usr/bin/env ts-node
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
...@@ -19,4 +19,4 @@ ...@@ -19,4 +19,4 @@
import fs = require('fs') import fs = require('fs')
fs.statSync('/') fs.statSync('/')
console.log('OK') console.info('OK')
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
...@@ -19,4 +19,4 @@ ...@@ -19,4 +19,4 @@
import { Wechaty } from 'wechaty' import { Wechaty } from 'wechaty'
const bot = Wechaty.instance() const bot = Wechaty.instance()
console.log(bot.version()) console.info(bot.version())
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
*/ */
let i = 3 let i = 3
i = "should set to string because it's type is number" i = "should set to string because it's type is number"
console.log(i) console.info(i)
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
...@@ -19,4 +19,4 @@ ...@@ -19,4 +19,4 @@
import { NotExist } from 'not-exist-at-all-fdsafasdfafsad' import { NotExist } from 'not-exist-at-all-fdsafasdfafsad'
const ne = new NotExist() const ne = new NotExist()
console.log(ne) // should not run to here console.info(ne) // should not run to here
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
#!/usr/bin/env ts-node #!/usr/bin/env ts-node
/** /**
* Wechaty - https://github.com/chatie/wechaty * Wechaty - https://github.com/wechaty/wechaty
* *
* @copyright 2016-2018 Huan LI <zixia@zixia.net> * @copyright 2016-2018 Huan LI <zixia@zixia.net>
* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册