Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method in ContactSelf to update name and signature #1526

Merged
merged 31 commits into from Aug 6, 2018
Merged

Add method in ContactSelf to update name and signature #1526

merged 31 commits into from Aug 6, 2018

Conversation

windmemory
Copy link
Member

This change is a prototype. It is adding two new method to ContactSelf class.

  • setName to change the nick name of the bot
  • signature to change the signature of the bot

Will provide c9 playground link for working prototype in following comment

windmemory and others added 27 commits June 28, 2018 22:49
@windmemory
Copy link
Member Author

Here is the c9 playgound
This is the wechaty-puppet PR
This is the wechaty-puppet-padchat PR

Please let me know your thought.

Copy link
Member

@huan huan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please feel free to let me know what you think, thanks.

@@ -115,4 +115,21 @@ export class ContactSelf extends Contact {
return qrcodeData
}

public async setName (name: string): Promise<boolean> {
log.verbose('Contact-self', 'setName()')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Contact-self' -> 'ContactSelf'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do the change.

@huan
Copy link
Member

huan commented Aug 6, 2018

Two more things:

  1. Could you be able to use the latest version of c9 ide on amazon cloud? If you can, let's switch to the new Amazon cloud ide in the future with your own account for your convenience.
  2. Please study how to merge with the upstream/master and get rid of the unnecessary commits from your PR when you have time(no hurry)

@windmemory
Copy link
Member Author

  1. I would like to try the amazon c9, will try to use amazon c9 next time.

  2. I am also hate the long merge commits in the PR, but have no better idea of getting rid of that.. This is weird, I don't have these kind of commits on wehcaty-puppet's PR. Will do this when I got time.

Any other comments besides the Contact-self one with this PR ?

@huan huan merged commit 535c93f into wechaty:master Aug 6, 2018
@huan
Copy link
Member

huan commented Aug 6, 2018

Thank you very much for the new features!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants