{"id":28445088,"url":"https://github.com/wechaty/scala-wechaty-getting-started","last_synced_at":"2025-07-02T06:04:01.682Z","repository":{"id":48336467,"uuid":"268841039","full_name":"wechaty/scala-wechaty-getting-started","owner":"wechaty","description":"Scalar Wechaty Starter Project Template that Works Out-of-the-Box","archived":false,"fork":false,"pushed_at":"2021-07-31T17:27:29.000Z","size":93,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-06T10:11:36.668Z","etag":null,"topics":["getting-started","scala","wechaty"],"latest_commit_sha":null,"homepage":"https://gitpod.io/#https://github.com/wechaty/scala-wechaty-getting-started","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wechaty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-02T15:39:17.000Z","updated_at":"2020-06-23T03:56:00.000Z","dependencies_parsed_at":"2022-08-26T03:43:18.628Z","dependency_job_id":null,"html_url":"https://github.com/wechaty/scala-wechaty-getting-started","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/wechaty/scala-wechaty-getting-started","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechaty%2Fscala-wechaty-getting-started","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechaty%2Fscala-wechaty-getting-started/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechaty%2Fscala-wechaty-getting-started/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechaty%2Fscala-wechaty-getting-started/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wechaty","download_url":"https://codeload.github.com/wechaty/scala-wechaty-getting-started/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechaty%2Fscala-wechaty-getting-started/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262663141,"owners_count":23345006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["getting-started","scala","wechaty"],"created_at":"2025-06-06T10:11:18.912Z","updated_at":"2025-07-02T06:04:01.658Z","avatar_url":"https://github.com/wechaty.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scala-wechaty-getting-started\n\n![Scala Wechaty](https://wechaty.github.io/scala-wechaty-getting-started/images/scala-wechaty.png)\n\n[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/wechaty/scala-wechaty-getting-started)\n[![Wechaty in Scala](https://img.shields.io/badge/Wechaty-Scala-890)](https://github.com/wechaty/scala-wechaty)\n\nScala Wechaty Starter Project Template that Works Out-of-the-Box\n\n## Connecting Chatbots\n\n[![Powered by Wechaty](https://img.shields.io/badge/Powered%20By-Wechaty-brightgreen.svg)](https://github.com/Wechaty/wechaty)\n\nWechaty is a RPA SDK for Wechat **Individual** Account that can help you create a chatbot in 6 lines of Scala.\n\n## Requirements\n\n1. Scala\n\n## Quick Start\n\n1. Clone scala-wechaty-getting-started repository\n\n   ```shell\n   git clone https://github.com/wechaty/scala-wechaty-getting-started\n   cd scala-wechaty-getting-started\n   ```\n\n2. Install Dependencies\n\n   ```shell\n   make install\n   ```\n\n3. Set token for your bot\n\n    ```sh\n    # it must be hostie token\n    export WECHATY_PUPPET=wechaty-puppet-hostie\n    export WECHATY_PUPPET_HOSTIE_TOKEN=your_token_at_here\n    ```\n\n4. Run the bot\n\n   ```shell\n   make bot\n   # or\n   scala examples/ding-dong-bot.scala\n   ```\n\n## The World's Shortest Scala ChatBot: 6 lines of Code\n\n```scala\npackage wechaty\n\nobject DingDongBot {\n  def main(args: Array[String]): Unit = {\n    Wechaty.instance()\n      .onScan(payload     =\u003e { println(\"Scan QR Code to login: %s\\nhttps://api.qrserver.com/v1/create-qr-code/?data=%s\\n\".format(payload.status, payload.qrcode)) })\n      .onLogin(payload    =\u003e { println(\"User %s logined\\n\".format(payload.id)) })\n      .onMessage(message  =\u003e { println(message) })\n      .start()\n    Thread.currentThread().join()\n  }\n}\n```\n\n## Wechaty Getting Started in Multiple Languages\n\n- [TypeScript Wechaty Getting Started](https://github.com/wechaty/wechaty-getting-started)\n- [Python Wechaty Getting Started](https://github.com/wechaty/python-wechaty-getting-started)\n- [Java Wechaty Getting Started](https://github.com/wechaty/java-wechaty-getting-started)\n- [Go Wechaty Getting Started](https://github.com/wechaty/go-wechaty-getting-started)\n- [Scala Wechaty Getting Started](https://github.com/wechaty/scala-wechaty-getting-started)\n\n\n## Badge\n\n[![Wechaty in Scala](https://img.shields.io/badge/Wechaty-Scala-890)](https://github.com/wechaty/scala-wechaty)\n\n```md\n[![Wechaty in Scala](https://img.shields.io/badge/Wechaty-Scala-890)](https://github.com/wechaty/scala-wechaty)\n```\n\n## Maintainers\n\n[@wechaty/scala](https://github.com/orgs/wechaty/teams/scala/members)\n\n## Copyright \u0026 License\n\n- Code \u0026 Docs © 2020 Wechaty Contributors \u003chttps://github.com/wechaty\u003e\n- Code released under the Apache-2.0 License\n- Docs released under Creative Commons\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwechaty%2Fscala-wechaty-getting-started","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwechaty%2Fscala-wechaty-getting-started","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwechaty%2Fscala-wechaty-getting-started/lists"}