Skip to content

Commit

Permalink
1. Fix README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
megoRU committed Dec 4, 2022
1 parent 6cdbd76 commit 662ac9c
Showing 1 changed file with 32 additions and 28 deletions.
60 changes: 32 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ https://jitpack.io/#megoRU/boticordjava
<dependency>
<groupId>com.github.megoRU</groupId>
<artifactId>boticordjava</artifactId>
<version>v3.7</version>
<version>v4.0</version>
</dependency>

```
Expand All @@ -38,40 +38,44 @@ https://jitpack.io/#megoRU/boticordjava
### Get All Comments by bot ID

```java
public static void main(String[]args){
BotiCordAPI api=new BotiCordAPI.Builder()
.tokenEnum(TokenEnum.BOT)
.token("319bbc0e-0743-4d9c-872b-e547d5e8fd0d")
.build();

try{
Comments[]comments=api.getBotComments("808277484524011531");

for(int i=0;i<comments.length;i++){
System.out.println(comments[i].getText());
}
}catch(UnsuccessfulHttpException e){
System.out.println(e.getMessage());
}
public class Main {
public static void main(String[] args) {
BotiCordAPI api = new BotiCordAPI.Builder()
.tokenEnum(TokenEnum.BOT)
.token("319bbc0e-0743-4d9c-872b-e547d5e8fd0d")
.build();

try {
Comments[] comments = api.getBotComments("808277484524011531");

for (int i = 0; i < comments.length; i++) {
System.out.println(comments[i].getText());
}
} catch (UnsuccessfulHttpException e) {
System.out.println(e.getMessage());
}
}
}
```

### Update Stats

```java
public static void main(String[]args){
BotiCordAPI api=new BotiCordAPI.Builder()
.tokenEnum(TokenEnum.BOT)
.token("319bbc0e-0743-4d9c-872b-e547d5e8fd0d")
.build();

try{
Result result=api.setStats(500,1,2000);
System.out.println(result);
}catch(UnsuccessfulHttpException e){
System.out.println(e.getMessage());
}
public class Main {
public static void main(String[] args) {
BotiCordAPI api = new BotiCordAPI.Builder()
.tokenEnum(TokenEnum.BOT)
.token("319bbc0e-0743-4d9c-872b-e547d5e8fd0d")
.build();

try {
Result result = api.setStats(500, 1, 2000);
System.out.println(result);
} catch (UnsuccessfulHttpException e) {
System.out.println(e.getMessage());
}
}
}
```

### WebHooks
Expand Down

0 comments on commit 662ac9c

Please sign in to comment.