All Projects → wechaty → Wechaty Getting Started

wechaty / Wechaty Getting Started

Licence: apache-2.0
A Starter Project Template for Wechaty works out-of-the-box

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Wechaty Getting Started

Mojo Weixin
使用Perl语言(不会没关系)编写的个人账号微信/weixin/wechat客户端框架(非GUI),可通过插件提供基于HTTP协议的api接口供其他语言或系统调用
Stars: ✭ 1,181 (+257.88%)
Mutual labels:  bot, chatbot, wechat
Sactive Bot
😈 An extensible chat bot framework. sactive-bot is an evolution of the open source hubot project. - https://www.shipengqi.top/sactive-bot .
Stars: ✭ 212 (-35.76%)
Mutual labels:  bot, chatbot, wechat
Messaging Apis
Messaging APIs for multi-platform
Stars: ✭ 1,754 (+431.52%)
Mutual labels:  bot, chatbot, wechat
Everydaywechat
微信助手:1.每日定时给好友(女友)发送定制消息。2.机器人自动回复好友。3.群助手功能(例如:查询垃圾分类、天气、日历、电影实时票房、快递物流、PM2.5等)
Stars: ✭ 8,688 (+2532.73%)
Mutual labels:  bot, chatbot, wechat
Magento Chatbot
Magento Chatbot Integration with Telegram, Messenger, Whatsapp, WeChat, Skype and wit.ai.
Stars: ✭ 149 (-54.85%)
Mutual labels:  bot, chatbot, wechat
Clause
🏇 聊天机器人,自然语言理解,语义理解
Stars: ✭ 323 (-2.12%)
Mutual labels:  bot, chatbot
Rasa core
Rasa Core is now part of the Rasa repo: An open source machine learning framework to automate text-and voice-based conversations
Stars: ✭ 2,302 (+597.58%)
Mutual labels:  bot, chatbot
Chatapi Wechat
Java版本微信聊天接口,使用网页微信API,让你能够开发自己的微信聊天机器人
Stars: ✭ 207 (-37.27%)
Mutual labels:  bot, wechat
Urban Bot
🤖 The universal chatbot library based on React. Write once, launch Telegram, Facebook, Slack, ... every messenger with chatbots
Stars: ✭ 223 (-32.42%)
Mutual labels:  bot, chatbot
Red Discordbot
A multi-function Discord bot
Stars: ✭ 2,855 (+765.15%)
Mutual labels:  bot, chatbot
Picqbotx
基于 CQHTTP 插件的 Java QQ 机器人类库
Stars: ✭ 218 (-33.94%)
Mutual labels:  bot, chatbot
Rasatalk
A chatbot framework for Rasa NLU
Stars: ✭ 225 (-31.82%)
Mutual labels:  bot, chatbot
Venom
Venom is the most complete javascript library for Whatsapp, 100% Open Source.
Stars: ✭ 3,457 (+947.58%)
Mutual labels:  bot, chatbot
Delbot
It understands your voice commands, searches news and knowledge sources, and summarizes and reads out content to you.
Stars: ✭ 191 (-42.12%)
Mutual labels:  bot, chatbot
Miraiandroid
QQ机器人 /(实验性)在Android上运行Mirai-console,支持插件
Stars: ✭ 188 (-43.03%)
Mutual labels:  bot, chatbot
Wechataddgrouphelper
微信加群助手
Stars: ✭ 218 (-33.94%)
Mutual labels:  bot, wechat
Micromsg Bot
微信表情机器人
Stars: ✭ 230 (-30.3%)
Mutual labels:  bot, wechat
Gpt2bot
Your new Telegram buddy powered by transformers
Stars: ✭ 228 (-30.91%)
Mutual labels:  bot, chatbot
Sapconversationalai
✨ 🤖 🤖 Build your own conversational bot on our Collaborative Bot Platform! 🤖🤖 ✨
Stars: ✭ 247 (-25.15%)
Mutual labels:  bot, chatbot
Dialogflow Web V2
Dialogflow Web Integration. Rich Components, Actions on Google and more
Stars: ✭ 307 (-6.97%)
Mutual labels:  bot, chatbot

Wechaty Getting Started Powered by Wechaty

Node.js CI Node.js v12 TypeScript

Wechaty is a Conversatioanl RPA SDK for Chatbot Makers. It's well designed with an easy to use API, supports all OSs including Linux, OSX, Win32, Docker, and lots of IMs including WeChat, WeCom, Whatsapp, Lark, Gitter, etc.

As a developer, you can use Wechaty to easily build your bot, effectively manage message sending/receiving, room creating/inviting, contact friendship, and delightful add artificial intelligence between users and your bot.

This repository should work out-of-the-box, and is the best start point for Wechaty beginners.

If you have any questions, please join our Gitter at https://gitter.im/wechaty/wechaty

TL;DR

The fatest way to getting started with Wechaty is to use a Cloud IDE.

If you have no idea about anything, then you should try Gitpod first.

Gitpod ❤️ Wechaty

GitPod Ready-to-Code

Use Gitpod to run our Wechaty Getting Started ding-dong BOT instantly inside your browser!

Learn more about Gitpod ❤️ Wechaty

Google Cloud Shell

Open in Cloud Shell

Generated via open-in-cloud-shell

The Google Cloud Shell should open our tutorial in the right panel for you, please follow it to finish the tutorials.

Features

  1. Works out-of-the-box under Linux/Mac/Windows.
  2. Supports all puppets like Web, Pad, Windows, and Mac.
  3. Reply a dong message when it received a ding.

Requirements

  1. Node.js v12+
  2. Wechaty Puppet Service TOKEN (if you want to use RPA protocols other than Web)

Getting Started

1 Install Node.js (>=12)

If you have not installed Node.js(or version is below 10),You need to install the latest version of Node.js first by following the links below:

Instal Node.js for other platforms can be found at https://nodejs.org/en/download/package-manager/

2 Clone this Repository

git clone https://github.com/wechaty/wechaty-getting-started.git
cd wechaty-getting-started

3 Install Dependencies

npm install

Troubleshooting

  1. You might want to use taobao registry mirror for NPM:

    npm --registry=https://registry.npm.taobao.org install
    
  2. You mignt need windows-build-tool if you are using windows:

    npm install windows-build-tool
    

4 Run the Bot

You can use export to set environment variables in Linux, and use set in Windows.

Linux

export WECHATY_LOG=verbose
export WECHATY_PUPPET=wechaty-puppet-wechat
npm start
# the above is equals to the below command:
# npx ts-node examples/ding-dong-bot.ts

Windows

set WECHATY_LOG=verbose
set WECHATY_PUPPET=wechaty-puppet-wechat
npm start
# the above is equals to the below command:
# npx ts-node examples/ding-dong-bot.ts

You are all set!

Working with Different Puppets

In our getting started example, the ding-dong BOT is using wechaty-puppet-wechat4u when WECHATY_PUPPET is not set, which is just for newcomer's convenience.

By default, the Wechaty will use the Puppet Service for logging in your bot. You can use other Puppet Provider like Whatsapp Web protocol(wechaty-puppet-whatsapp).

If you want to use a Wechaty Puppet Provider for different protocols, then you need to specified a puppet service provider name (the same as its NPM name) by setting the WECHATY_PUPPET environment variable.

Thanks for the great contributions from our great community, there are many Wechaty Puppets can be used by Wechaty, which helps us to use protocols like Web, Pad, Mac, and Windows.

Wechaty Puppets

Protocol NPM
Puppet Service wechaty-puppet-service
Whatsapp Web wechaty-puppet-whatsapp
WeChat Web wechaty-puppet-wechat
WeChat Pad wechaty-puppet-padlocal

Visit our website for learning more about Wechaty Puppet Service Providers

For example, if you want to use the padlocal puppet, you should set WECHATY_PUPPET=wechaty-puppet-padlocal before you run npm start.

You also need a TOKEN for the wechaty-puppet-padlocal, and set it to the WECHATY_PUPPET_PADLOCAL_TOKEN environment variable. Apply the PadLocal TOKEN from here

Linux / macOS

export WECHATY_PUPPET=wechaty-puppet-padlocal
export WECHATY_PUPPET_PADLOCAL_TOKEN='puppet_padlocal_your-token-here'
npm start

Windows

set WECHATY_PUPPET=wechaty-puppet-padlocal
set WECHATY_PUPPET_PADLOCAL_TOKEN='puppet_padlocal_your-token-here'
npm start

Learn more about how to install under windows from this blog post.

Advanced

1 Wechaty Tutorial

Above is a 10 minute video tutorial(a little outdated, it's running under v0.14 or older versions of Wechaty), which is a good way to start if you are new to Wechaty.

2 More Examples

Note: Please make sure you can run npm start with this repository first before you go furture with more examples!

API REFERENCE

  1. GitBook: https://wechaty.js.org/api

SEE ALSO

1 Docker Wechaty Getting Started

Docker

https://github.com/Chatie/docker-wechaty-getting-started

2 Heroku Wechaty Getting Started

Heroku

https://github.com/Chatie/heroku-wechaty-getting-started

3 Wechaty Home

https://wechaty.github.io

FAQ

1. I can not login with my Wechat account

WeChat account that registered after 2017 will not be able to login via Web API. Learn more at https://github.com/Chatie/wechaty/issues/872

Solution: Wechaty support protocols other than Web API, such as pad. Learn more at https://github.com/Chatie/wechaty/issues/1296

2. What is a Puppet in Wechaty

The term 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 PuppetXXX, like PuppetWeChat is using the google puppeteer to control the WeChat Web API via a chrome browser, PuppetPadchat is using the WebSocket protocol to connect with a Protocol Server for controlling the iPad Wechat program. More detail you could go Puppet in wiki.

Learn more about Wechaty Puppet from our documentation at Wechaty Puppet

Wechaty Getting Started in Multiple Languages

Wechaty in Python Wechaty in Go Wechaty in Java Wechaty in Scala Wechaty in PHP Wechaty in .NET(C#)

History

master

v0.8 (Feb 20, 2021)

Open in Cloud Shell

Using Google Cloud Shell for easy getting started!

v0.6 (Feb 11, 2021)

GitPod Ready-to-Code

Using Gitpod for easy getting started!

v0.0.1 (Jan 12, 2017)

Init version

Contributors

contributor contributor contributor contributor contributor contributor contributor contributor

Maintainers

@wechaty/contributors

Copyright & License

  • Code & Docs © 2018-now Huan and Wechaty Contributors
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].