Skip to content

Commit 2c9b40d

Browse files
authored
Merge pull request #33 from Charles-Wu-Chen/support_WECHATY_PUPPET_SERVICE_TOKEN
replace env variable WECHATY_PUPPET_HOSTIE_TOKEN with WECHATY_PUPPET_…
2 parents 63f9fe4 + 05182fa commit 2c9b40d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ make install
4242
### Run
4343

4444
```sh
45-
export WECHATY_PUPPET_HOSTIE_TOKEN=your_token_at_here
45+
export WECHATY_PUPPET_SERVICE_TOKEN=your_token_at_here
4646

4747
make bot
4848
```

examples/src/main/java/io/github/wechaty/DingDongBot.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ public class DingDongBot {
1212

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

15-
final String token = System.getenv("WECHATY_PUPPET_HOSTIE_TOKEN");
15+
final String token = System.getenv("WECHATY_PUPPET_SERVICE_TOKEN");
1616

1717
if (StringUtils.isBlank(token)) {
1818

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

2323
throw new Exception("need a token");
2424
}

0 commit comments

Comments
 (0)