Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace env variable WECHATY_PUPPET_HOSTIE_TOKEN with WECHATY_PUPPET_… #33

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ make install
### Run

```sh
export WECHATY_PUPPET_HOSTIE_TOKEN=your_token_at_here
export WECHATY_PUPPET_SERVICE_TOKEN=your_token_at_here

make bot
```
Expand Down
6 changes: 3 additions & 3 deletions examples/src/main/java/io/github/wechaty/DingDongBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ public class DingDongBot {

public static void main(String[] args) throws Exception {

final String token = System.getenv("WECHATY_PUPPET_HOSTIE_TOKEN");
final String token = System.getenv("WECHATY_PUPPET_SERVICE_TOKEN");

if (StringUtils.isBlank(token)) {

System.out.println("Error: WECHATY_PUPPET_HOSTIE_TOKEN is not found in the environment variables");
System.out.println("Error: WECHATY_PUPPET_SERVICE_TOKEN is not found in the environment variables");
System.out.println("You need a TOKEN to run the Java Wechaty. Please goto our README for details");
System.out.println("https://github.com/wechaty/java-wechaty-getting-started/#wechaty_puppet_hostie_token");
System.out.println("https://github.com/wechaty/java-wechaty-getting-started/#run");

throw new Exception("need a token");
}
Expand Down