-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into shraddhavp-patch-3
- Loading branch information
Showing
5 changed files
with
51 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,28 +6,47 @@ sidebar_label: Scala | |
|
||
[![Scala Wechaty](https://img.shields.io/badge/Wechaty-Scala-890)](https://github.com/wechaty/scala-wechaty) | ||
|
||
- GitHub Repo <https://github.com/wechaty/scala-wechaty> | ||
- Getting Started Template Repo <https://github.com/wechaty/scala-wechaty-getting-started> | ||
Scala Wechaty is a Scala programming client derived from the Wechaty ecosystem. Scala's static types help avoid bugs in complex applications, hence Scala wechaty is very easy to use, implement and is also very efficient. You can find more information on Scala-Wechaty [here](https://github.com/wechaty/scala-wechaty-getting-started). The [General Architecture Diagram](https://wechaty.js.org/docs/polyglot/diy/) illustrates how the Scala-Wechaty can be implemented on the already existing TypeScript Wechaty ecosystem. | ||
|
||
## Features of Scala-Wechaty | ||
|
||
* Stable interaction with back-end gRPC, continuous and stable operation. | ||
* The front end implements some functions of `Contact` and `Message`. | ||
|
||
## Getting Started | ||
|
||
Template Repo: <https://github.com/wechaty/scala-wechaty-getting-started> | ||
Run the below command for starting the Scala-Wechaty bot. | ||
|
||
```sh | ||
git clone [email protected]:wechaty/scala-wechaty-getting-started.git | ||
cd scala-wechaty-getting-started | ||
make install | ||
make bot | ||
export WECHATY_PUPPET=wechaty-puppet-hostie | ||
export WECHATY_PUPPET_HOSTIE_TOKEN=your_token_at_here | ||
make bot # or | ||
scala examples/ding-dong-bot.scala | ||
``` | ||
|
||
## Blogs | ||
## Translation of TypeScript to Scala | ||
|
||
There is a hundred (100) lines class named `Image` in charge of downloading the WeChat image to different sizes. Below are the links to the Image class for both TypeScript and Scala for a better understanding of the code and the translation. | ||
|
||
* [TypeScript](https://github.com/wechaty/wechaty/blob/master/src/user/image.ts) | ||
* [Scala](https://github.com/wechaty/scala-wechaty/blob/master/wechaty/src/main/scala/wechaty/user/Image.scala) | ||
|
||
Read blogs with the `scala` tag at <https://wechaty.js.org/tags.html#scala> | ||
## Blogs and links | ||
|
||
Do checkout the blogs and Github links to get more details about the Scala-Wechaty. | ||
|
||
* [Blogs](https://wechaty.js.org/tags.html#scala) | ||
* [GitHub Repo for Scala](https://github.com/wechaty/scala-wechaty) | ||
|
||
## History | ||
|
||
- [Scala Wechaty, @jcai, Jul 2, 2020](https://github.com/wechaty/scala-wechaty) | ||
For more information on the Scala-Wechaty releases and its history the below link can be visited. | ||
|
||
* [Scala Wechaty, @jcai, Jul 2, 2020](https://github.com/wechaty/scala-wechaty) | ||
|
||
## Maintainers | ||
|
||
- [@jcai](https://wechaty.js.org/contributors/jcai) | ||
* [@jcai](https://wechaty.js.org/contributors/jcai) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters