Wechaty is used in many ChatBot projects by thousands of developers. If you want to talk with other developers, just scan the following QR Code in WeChat with secret code scala wechaty, join our Wechaty Python Developers’ Home.
Scan now, because other Wechaty Python developers want to talk with you too! (secret code: scala wechaty)
The World’s Shortest Scala ChatBot: 9 lines of Code
We already have Wechaty in TypeScript, It will be not too hard to translate the TypeScript(TS) to Python(PY) because wechaty has only 3,000 lines of the TS code, they are well designed and de-coupled by the wechaty-puppet abstraction. So after we have translated those 3,000 lines of TypeScript code, we will almost be done.
As we have already a ecosystem of Wechaty in TypeScript, so we will not have to implement everything in Python, especially, in the Feb 2020, we have finished the @chatie/grpc service abstracting module with the wechaty-puppet-hostie implmentation.
The following diagram shows out that we can reuse almost everything in TypeScript, and what we need to do is only the block located at the top right of the diagram: Wechaty (Scala).
If you are interested in the translation and want to look at how it works, it will be a good start from reading and comparing those two Image class files in TypeScript and Scala at the same time.
Thanks for our community contributor @jcai Jun Tsai, who is a very experienced Scala developer, start from scratch three days ago (Jun 1) and finished the first version for ding-dong-bot.scala on two days ago, which only last 1 days for all the translation tasks!
One day
Only one day! This is the fastest record in the world for translating the TypeScript Wechaty to Multi-language Wechaty, Scala in this case. Cheers!
Related Projects
Wechaty - Conversatioanl AI Chatot SDK for Wechaty Individual Accounts (TypeScript)
Python Wechaty - Python WeChaty Conversational AI Chatbot SDK for Wechat Individual Accounts (Python)
Go Wechaty - Go WeChaty Conversational AI Chatbot SDK for Wechat Individual Accounts (Go)
Java Wechaty - Java WeChaty Conversational AI Chatbot SDK for Wechat Individual Accounts (Java)
Scala Wechaty - Scala WeChaty Conversational AI Chatbot SDK for WechatyIndividual Accounts (Scala)
Badge
[](https://github.com/wechaty/scala-wechaty)
scala-wechaty
Connecting Chatbots
Wechaty is a Conversatioanl AI RPA SDK for Wechat Individual Accounts that help you create a chatbot in 6 lines of Python.
Voice of the Developers
See more at Wiki:Voice Of Developer
Join Us
Wechaty is used in many ChatBot projects by thousands of developers. If you want to talk with other developers, just scan the following QR Code in WeChat with secret code scala wechaty, join our Wechaty Python Developers’ Home.
Scan now, because other Wechaty Python developers want to talk with you too! (secret code: scala wechaty)
The World’s Shortest Scala ChatBot: 9 lines of Code
Scala Wechaty Developing Plan
We already have Wechaty in TypeScript, It will be not too hard to translate the TypeScript(TS) to Python(PY) because wechaty has only 3,000 lines of the TS code, they are well designed and de-coupled by the wechaty-puppet abstraction. So after we have translated those 3,000 lines of TypeScript code, we will almost be done.
As we have already a ecosystem of Wechaty in TypeScript, so we will not have to implement everything in Python, especially, in the Feb 2020, we have finished the @chatie/grpc service abstracting module with the wechaty-puppet-hostie implmentation.
The following diagram shows out that we can reuse almost everything in TypeScript, and what we need to do is only the block located at the top right of the diagram:
Wechaty (Scala).Example: How to Translate TypeScript to Scala
There’s a 100 lines class named
Imagein charge of downloading the WeChat image to different sizes.It is a great example for demonstrating how do we translate the TypeScript to Scala in Wechaty Way:
Image Class Source Code
If you are interested in the translation and want to look at how it works, it will be a good start from reading and comparing those two
Imageclass files in TypeScript and Scala at the same time.To-do List
Wechaty Internal Modules
Wechaty External Modules
Usage
Scala Wechaty is very easy to use!
Requirements
Development
History
master
v0.4 (Jun 19, 2020)
Scala Wechaty BETA Released
Read more from our Multi-language Wechaty Beta Release event from our blog:
v0.0.1 (Jun 3, 2020)
Thanks for our community contributor @jcai Jun Tsai, who is a very experienced Scala developer, start from scratch three days ago (Jun 1) and finished the first version for ding-dong-bot.scala on two days ago, which only last 1 days for all the translation tasks!
One day
Only one day! This is the fastest record in the world for translating the TypeScript Wechaty to Multi-language Wechaty, Scala in this case. Cheers!
Related Projects
Badge
Contributors
Creator
@jcai Jun Tsai jcai@ganshane.com
Copyright & License