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

clean url from chatie/wechaty to wechaty/wechaty

上级 f35d85b3
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -2,14 +2,14 @@
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
* Create a tutorial for Wechaty
* Help expand the [wiki](https://github.com/Chatie/wechaty/wiki)
* Answer questions on the [issue](https://github.com/Chatie/wechaty/issues)
* Review [pull requests](https://github.com/Chatie/wechaty/pulls)
* Start [hacking on Wechaty](https://github.com/chatie/wechaty/blob/master/CONTRIBUTING.md)
* Help expand the [wiki](https://github.com/wechaty/wechaty/wiki)
* Answer questions on the [issue](https://github.com/wechaty/wechaty/issues)
* Review [pull requests](https://github.com/wechaty/wechaty/pulls)
* Start [hacking on Wechaty](https://github.com/wechaty/wechaty/blob/master/CONTRIBUTING.md)
### Why contribute
......@@ -46,18 +46,18 @@ Contact rui@chatie.io to learn more
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
[![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
<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">
</a>
```
......
......@@ -93,11 +93,11 @@ LABEL org.label-schema.license="Apache-2.0" \
org.label-schema.schema-version="$(wechaty-version)" \
org.label-schema.name="Wechaty" \
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.vendor="Chatie" \
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.test="docker run -ti --rm zixia/wechaty test" \
org.label-schema.docker.cmd.help="docker run -ti --rm zixia/wechaty help" \
......
#
# Wechaty Docker
# https://github.com/chatie/wechaty
# https://github.com/wechaty/wechaty
#
# FROM alpine
#
......@@ -72,11 +72,11 @@ LABEL org.label-schema.license="ISC" \
org.label-schema.schema-version="$(wechaty-version)" \
org.label-schema.name="Wechaty" \
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.vendor="AKA Mobi" \
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.test="docker run -ti --rm zixia/wechaty test" \
org.label-schema.docker.cmd.help="docker run -ti --rm zixia/wechaty help" \
......
{
"name": "wechaty",
"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",
"keywords": ["wechaty", "wechat", "bot", "chatbot", "framework", "cloudbot"],
"env": {
......
#!/usr/bin/env node
/**
* Wechaty - https://github.com/chatie/wechaty
* Wechaty - https://github.com/wechaty/wechaty
*
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
*
......
......@@ -2,7 +2,7 @@
#
# Wechaty - Connect ChatBots
#
# https://github.com/Chatie/wechaty
# https://github.com/wechaty/wechaty
#
set -e
......@@ -44,7 +44,7 @@ function wechaty::errorBotNotFound() {
extensions hidden by default).
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.
TROUBLESHOOTING
......@@ -110,7 +110,7 @@ function wechaty::diagnose() {
echo _____________________________________________________________
echo '####### please paste all the above diagnose messages #######'
echo
echo 'Wechaty Issue https://github.com/chatie/wechaty/issues'
echo 'Wechaty Issue https://github.com/wechaty/wechaty/issues'
echo
wechaty::pressEnterToContinue
......@@ -138,7 +138,7 @@ function wechaty::runBot() {
# 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.
#
# wechaty::linkBotNodeModules
......@@ -192,7 +192,7 @@ function wechaty::runBot() {
return "$ret"
}
# Issue https://github.com/Chatie/wechaty/issues/1478
# Issue https://github.com/wechaty/wechaty/issues/1478
# To Be Tested:
function wechaty::linkBotNodeModules() {
for localModule in /bot/node_modules/*; do
......@@ -240,7 +240,7 @@ function wechaty::help() {
test Run Unit Test
Learn more at:
https://github.com/chatie/wechaty/wiki/Docker
https://github.com/wechaty/wechaty/wiki/Docker
......
#!/usr/bin/env node
/**
* Wechaty - https://github.com/chatie/wechaty
* Wechaty - https://github.com/wechaty/wechaty
*
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
*
......
#!/usr/bin/env node
/**
* Wechaty - https://github.com/chatie/wechaty
* Wechaty - https://github.com/wechaty/wechaty
*
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
*
......
此差异已折叠。
......@@ -2,6 +2,6 @@
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>
*
......@@ -164,7 +164,7 @@ const welcome = `
| |___/
=============== Powered by Wechaty ===============
-------- https://github.com/chatie/wechaty --------
-------- https://github.com/wechaty/wechaty --------
Version: ${bot.version(true)}
I'm a bot, my superpower is talk in Wechat.
......
......@@ -43,7 +43,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/chatie/wechaty.git"
"url": "git+https://github.com/wechaty/wechaty.git"
},
"bin": {
"wechaty-doctor": "dist/bin/doctor.js",
......@@ -72,7 +72,7 @@
},
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/chatie/wechaty/issues"
"url": "https://github.com/wechaty/wechaty/issues"
},
"homepage": "https://chatie.io/wechaty/",
"engines": {
......
......@@ -18,7 +18,7 @@ if [ $# -eq 0 ]; then
echo
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"
......
#!/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.
* That will cause the unit tests fail randomly.
* So we need to retry again when unit tests fail,
......
......@@ -7,7 +7,7 @@ const contributeMap: {
} = {}
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+\((\[[^\]]+\]\([^)]+\))/
const matches = regex.exec(line)
......@@ -16,7 +16,7 @@ function parseLine (line: string): string[] | null {
}
// console.info('match!')
// 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)
return matches
}
......
......@@ -16,7 +16,7 @@ import { promisify } from 'util'
import * as globCallback from 'glob'
const LICENSE = `/**
* Wechaty - https://github.com/chatie/wechaty
* Wechaty - https://github.com/wechaty/wechaty
*
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
*
......
#!/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>
*
......
......@@ -62,7 +62,7 @@ export abstract class Accessory extends EventEmitter {
'static puppet not found for ',
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(''))
}
......
#!/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>
*
......
/**
* Wechaty - https://github.com/chatie/wechaty
* Wechaty - https://github.com/wechaty/wechaty
*
* @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>
*
......
#!/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>
*
......
#!/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>
*
......
#!/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>
*
......
/**
* Wechaty - https://github.com/chatie/wechaty
* Wechaty - https://github.com/wechaty/wechaty
*
* @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>
*
......
#!/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>
*
......
......@@ -50,7 +50,7 @@ export class PuppetManager {
* 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.
* Issue: https://github.com/Chatie/wechaty-puppet/issues/2
* Issue: https://github.com/wechaty/wechaty-puppet/issues/2
*/
puppetInstance = new MyPuppet(options.puppetOptions)
}
......@@ -68,7 +68,7 @@ export class PuppetManager {
// TODO(huan): remove the unnecessary switch
switch (puppetName) {
// 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
// puppetName = 'wechaty-puppet-padchat'
// break
......@@ -88,7 +88,7 @@ export class PuppetManager {
'',
'puppet npm module not supported: "' + puppetName + '"',
'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')
)
......
/**
* Wechaty - https://github.com/chatie/wechaty
* Wechaty - https://github.com/wechaty/wechaty
*
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
*
......
#!/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>
*
......
/**
* Wechaty - https://github.com/chatie/wechaty
* Wechaty - https://github.com/wechaty/wechaty
*
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
*
......@@ -47,10 +47,10 @@ export const POOL = Symbol('pool')
/**
* 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.
* 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 {
......@@ -67,7 +67,7 @@ export class Contact extends Accessory implements Sayable {
if (this === Contact) {
throw new Error(
'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
......@@ -79,7 +79,7 @@ export class Contact extends Accessory implements Sayable {
*
* Get Contact by id
* > 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
* @param {string} id
......@@ -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!'
+ 'See: https://github.com/Chatie/wechaty/issues/1217',
+ 'See: https://github.com/wechaty/wechaty/issues/1217',
)
}
if (this.pool === Contact.pool) {
......@@ -126,7 +126,7 @@ export class Contact extends Accessory implements Sayable {
* @typedef ContactQueryFilter
* @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
* [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 {
for (n = 0; n < contactList.length; n++) {
const contact = contactList[n]
// use puppet.contactValidate() to confirm double confirm that this contactId is valid.
// https://github.com/lijiarui/wechaty-puppet-padchat/issues/64
// https://github.com/Chatie/wechaty/issues/1345
// https://github.com/wechaty/wechaty-puppet-padchat/issues/64
// https://github.com/wechaty/wechaty/issues/1345
const valid = await this.puppet.contactValidate(contact.id)
if (valid) {
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 {
if (MyClass === Contact) {
throw new Error(
'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 {
/**
* > 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
* send text, Contact, or file to contact. </br>
......@@ -344,7 +344,7 @@ export class Contact extends Accessory implements Sayable {
* description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love',
* thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4',
* title : 'Welcome to Wechaty',
* url : 'https://github.com/chatie/wechaty',
* url : 'https://github.com/wechaty/wechaty',
* })
* await contact.say(urlLink)
* const msg = await contact.say(urlLink) // only supported by puppet-padplus
......@@ -512,7 +512,7 @@ export class Contact extends Accessory implements Sayable {
* Check if contact is friend
*
* > 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}
*
......
/**
* Wechaty - https://github.com/chatie/wechaty
* Wechaty - https://github.com/wechaty/wechaty
*
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
*
......@@ -52,7 +52,7 @@ import {
* 2. receive request(in 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 {
......@@ -138,7 +138,7 @@ export class Friendship extends Accessory implements Acceptable {
const MyClass = instanceToClass(this, 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) {
......
#!/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>
*
......
/**
* Wechaty - https://github.com/chatie/wechaty
* Wechaty - https://github.com/wechaty/wechaty
*
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
*
......@@ -69,7 +69,7 @@ export interface MessageUserQueryFilter {
/**
* 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 {
......@@ -212,7 +212,7 @@ export class Message extends Accessory implements Sayable {
const MyClass = instanceToClass(this, 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) {
......@@ -436,9 +436,9 @@ export class Message extends Accessory implements Sayable {
/**
* Reply a Text or Media File message to the sender.
* > 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
* send text, Contact, or file to bot. </br>
* 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 {
* description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love',
* thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4',
* title : 'Welcome to Wechaty',
* url : 'https://github.com/chatie/wechaty',
* url : 'https://github.com/wechaty/wechaty',
* })
* await msg.say(linkPayload)
* const message = await msg.say(linkPayload) // only supported by puppet-padplus
......@@ -926,7 +926,7 @@ export class Message extends Accessory implements Sayable {
/**
* Extract the Media File from the Message, and put it into the FileBox.
* > 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>}
*
......@@ -947,7 +947,7 @@ export class Message extends Accessory implements Sayable {
* Get Share Card of the Message
* Extract the Contact Card from the Message, and encapsulate it into Contact class
* > 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>}
*/
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>
*
......@@ -64,7 +64,7 @@ export class RoomInvitation extends Accessory implements Acceptable {
const MyClass = instanceToClass(this, 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) {
......
#!/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>
*
......
/**
* Wechaty - https://github.com/chatie/wechaty
* Wechaty - https://github.com/wechaty/wechaty
*
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
*
......@@ -64,7 +64,7 @@ export type RoomEventName = keyof typeof ROOM_EVENT_DICT
/**
* 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 {
......@@ -202,8 +202,8 @@ export class Room extends Accessory implements Sayable {
for (n = 0; n < roomList.length; n++) {
const room = roomList[n]
// use puppet.roomValidate() to confirm double confirm that this roomId is valid.
// https://github.com/lijiarui/wechaty-puppet-padchat/issues/64
// https://github.com/Chatie/wechaty/issues/1345
// https://github.com/wechaty/wechaty-puppet-padchat/issues/64
// https://github.com/wechaty/wechaty/issues/1345
const valid = await this.puppet.roomValidate(room.id)
if (valid) {
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 {
* but for other solutions besides web,
* 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
* @param {string} id
* @returns {Room}
......@@ -272,7 +272,7 @@ export class Room extends Accessory implements Sayable {
/**
* @hideconstructor
* @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 (
public readonly id: string,
......@@ -284,7 +284,7 @@ export class Room extends Accessory implements Sayable {
const MyClass = instanceToClass(this, 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) {
......@@ -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.
* > 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>
* 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 {
* description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love',
* thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4',
* title : 'Welcome to Wechaty',
* url : 'https://github.com/chatie/wechaty',
* url : 'https://github.com/wechaty/wechaty',
* })
* await room.say(urlLink)
* const msg = await room.say(urlLink) // only supported by puppet-padplus
......@@ -690,9 +690,9 @@ export class Room extends Accessory implements Sayable {
* Add contact in a room
*
* > 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
* @returns {Promise<void>}
......@@ -720,9 +720,9 @@ export class Room extends Accessory implements Sayable {
* It works only when the bot is the owner of the room
*
* > 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
* @returns {Promise<void>}
......@@ -764,7 +764,7 @@ export class Room extends Accessory implements Sayable {
* Bot quit the room itself
*
* > 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>}
* @example
......@@ -852,7 +852,7 @@ export class Room extends Accessory implements Sayable {
* SET/GET announce from 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.
* @returns {(Promise<void | string>)}
......@@ -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.
* > 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 )
* @returns {Promise<string>}
*/
......@@ -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} 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()`.
* [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 {
/**
* Get room's owner from the room.
* > 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)}
* @example
* const owner = room.owner()
......
#!/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>
*
......
/**
* Wechaty - https://github.com/chatie/wechaty
* Wechaty - https://github.com/wechaty/wechaty
*
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
*
......@@ -120,12 +120,12 @@ const PUPPET_MEMORY_NAME = 'puppet'
*
* A `Bot` is a wechat client depends on which puppet you use.
* 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)
* - ipad-wechat, when you use: [puppet-padchat](https://github.com/lijiarui/wechaty-puppet-padchat)
* - 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/wechaty/wechaty-puppet-padchat)
* - ios-wechat, when you use: puppet-ioscat
*
* 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 get contact, see [Contact](#Contact)
......@@ -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 named XXXPuppet, for example:
* - [PuppetPuppeteer](https://github.com/Chatie/wechaty-puppet-puppeteer):
* - [PuppetPadchat](https://github.com/lijiarui/wechaty-puppet-padchat)
* - [PuppetPuppeteer](https://github.com/wechaty/wechaty-puppet-puppeteer):
* - [PuppetPadchat](https://github.com/wechaty/wechaty-puppet-padchat)
*
* @typedef PuppetModuleName
* @property {string} PUPPET_DEFAULT
......@@ -387,7 +387,7 @@ export class Wechaty extends Accessory implements Sayable {
* @param {WechatyEventFunction} listener - Depends on the WechatyEvent
*
* @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
* When the bot get message, it will emit the following Event.
......@@ -997,7 +997,7 @@ export class Wechaty extends Accessory implements Sayable {
/**
* Send message to userSelf, in other words, bot send message to itself.
* > 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
* send text, Contact, or file to bot. </br>
......@@ -1032,7 +1032,7 @@ export class Wechaty extends Accessory implements Sayable {
* description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love',
* thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4',
* title : 'Welcome to Wechaty',
* url : 'https://github.com/chatie/wechaty',
* url : 'https://github.com/wechaty/wechaty',
* })
* await bot.say(linkPayload)
*
......
#!/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>
*
......
/**
* Wechaty - https://github.com/chatie/wechaty
* Wechaty - https://github.com/wechaty/wechaty
*
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
*
......@@ -19,4 +19,4 @@
import fs = require('fs')
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>
*
......@@ -19,4 +19,4 @@
import { Wechaty } from 'wechaty'
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>
*
......@@ -18,4 +18,4 @@
*/
let i = 3
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>
*
......@@ -19,4 +19,4 @@
import { NotExist } from 'not-exist-at-all-fdsafasdfafsad'
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>
*
......
#!/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>
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册