Repository navigation
added tutorial for qr-code-terminal plugin - #969
Conversation
|
Tag #891 |
proudofsimin
left a comment
There was a problem hiding this comment.
Hi, could you explain more about this plugin at the beginning? Is it the users (developers) or customers will scan the QR code? What will the developers receive when someone scan the QR code? And what will it show on phone after scanning the QR code?
| npm i wechaty-plugin-contrib | ||
| ``` | ||
|
|
||
| ## 2. Integrating the plugin |
There was a problem hiding this comment.
remove the v-ing form. Use imperative sentence.
| bot.start() | ||
| ``` | ||
|
|
||
| ## 3. Running the bot |
There was a problem hiding this comment.
remove the v-ing form. Use imperative sentence.
Hii simin, I think for better explanation I can provide a conclusion at end reffering to ding dong bot because there we have used this plugin. On scanning that qr code users can connect to whatsapp and wechat. What do you think or is their any better way to do this ? |
proudofsimin
left a comment
There was a problem hiding this comment.
Hi @shraddhavp,
Let me clear up. So in here, you use the plugin to generate a QR code first, and then you are required to use the events (are they called events?) to define the function for it. Am I right? I agree with your suggestion that mentioning a real example really helps me/user to clear it up. Thank you.
|
Hii @proudofsimin |
yeah, you get it right. I have made the changes now. You can review it. |
Thanks for the modification and adding the starter bot. Could you put the "create the starter bot" in step one like #963 ? Thank you. P.s. sorry for linking the wrong name... |
proudofsimin
left a comment
There was a problem hiding this comment.
Since it's only minor modification left, approve first.
I have added this step |
|
|
||
| ### 1. Create a starter bot | ||
|
|
||
| Follow the instructions on the **Starter Bot** page to create the foundation of a Wechaty bot. |
There was a problem hiding this comment.
I think we should add a starter bot link here for Starter Bot
There was a problem hiding this comment.
Yeah, I will add the link here. Started Bot will be under examples/basic/. We have this section in the upcoming weeks in our proposal. So once the starter bot is added and merged we can provide the link here.
There was a problem hiding this comment.
I think you could file a new issue for this. Once you create a new issue, I will ignore this part.
|
|
||
| Now, you are done with the integration of `QR code terminal plugin` with your bot. For running the bot you have to **export/set** an environment variable with the type of puppet to use and then run the bot. | ||
|
|
||
| #### Linux/macOS |
There was a problem hiding this comment.
I think we should unify the style here, you did a good job at #888 , it looks like this:
You can use code like this:
<Tabs
groupId="operating-systems"
defaultValue="linux"
values={[
{ label: 'Linux', value: 'linux', },
{ label: 'macOS', value: 'mac', },
{ label: 'Windows', value: 'windows', },
]
}>
<TabItem value="linux">
| You can use this `QR code terminal` plugin for building the bots where you have to connect to a device. You can refer to [Ding Dong bot](../getting-started/hard-way.mdx). In ding dong bot you have to scan the generated QR code to connect to **Whatsapp/Wechat**. | ||
|
|
||
| ## References | ||
|
|
There was a problem hiding this comment.
Add video link reference here: https://www.youtube.com/watch?v=tfGZXoe_aA4
| ## References | ||
|
|
||
| * [GitHub repository of Wechaty Plugin Contrib](https://github.com/wechaty/wechaty-plugin-contrib) | ||
|
|
|
@lijiarui I have made the suggested changes except for the starter bot link which I'll add later when the starter bot is created and merged. |
|
Good job! After you file a new issue for this and link to this PR, I will approve this PR. |

Added tutorial for
QR code terminal plugin.