Skip to content

Commit 2bfbae7

Browse files
committed
update 0.1.3
support plugins!
1 parent 5ad43bf commit 2bfbae7

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,19 @@ class Bot{
6161
}
6262
```
6363

64+
if use plugins
65+
```java
66+
class Bot{
67+
public static void main(String args[]){
68+
Wechaty bot = Wechaty.instance()
69+
.use(
70+
WechatyPlugins.ScanPlugin(),
71+
WechatyPlugins.DingDongPlugin(null))
72+
.start(true);
73+
}
74+
}
75+
```
76+
6477
## Development
6578

6679
To be writen:

examples/src/main/java/io/github/wechaty/example/MainWithPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class MainWithPlugin {
77

88
public static void main(String[] args) {
99

10-
Wechaty bot = Wechaty.instance("your-token")
10+
Wechaty bot = Wechaty.instance("your_token")
1111
.use(WechatyPlugins.ScanPlugin(), WechatyPlugins.DingDongPlugin(null))
1212
.start(true);
1313

0 commit comments

Comments
 (0)