wechaty / java-wechaty-getting-started

Java Wechaty Starter Project Template that Works Out-of-the-Box

Home Page:https://gitpod.io/#https://github.com/wechaty/java-wechaty-getting-started

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

java-wechaty-getting-started Java Version Java CI with Maven

Java Wechaty

Java Wechaty Starter Project Template that Works Out-of-the-Box

Gitpod Ready-to-Code Wechaty in Java

Connecting Chatbots

Powered by Wechaty Java Version

Wechaty is a RPA SDK for Wechat Individual Account that can help you create a chatbot in 6 lines of Java.

The World's Shortest Java ChatBot: 6 lines of Code

class Bot{
  public static void main(String args[]){
    Wechaty bot = Wechaty.instance()
      .onScan((qrcode, statusScanStatus, data) -> System.out.println(QrcodeUtils.getQr(qrcode)))
      .onLogin(user -> System.out.println("User logined :" + user))
      .onMessage(message -> System.out.println("Message:" + message))
      .start(true);
  }
}

Usage

Install

# Install Maven
apt install maven

make install

Run

export WECHATY_PUPPET_SERVICE_TOKEN=your_token_at_here

make bot

Wechaty Getting Started in Multiple Languages

Badge

Wechaty in Java

[![Wechaty in Java](https://img.shields.io/badge/Wechaty-Java-blue)](https://github.com/wechaty/java-wechaty)

Maintainers

@wechaty/java

Copyright & License

  • Code & Docs © 2020 Wechaty Contributors https://github.com/wechaty
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons

About

Java Wechaty Starter Project Template that Works Out-of-the-Box

https://gitpod.io/#https://github.com/wechaty/java-wechaty-getting-started

License:Apache License 2.0


Languages

Language:Makefile 58.1%Language:Dockerfile 41.9%