diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 11c87063..c15c677b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,7 +1,6 @@ name: Bug Report description: Found a Bug about JavaBotBlockAPI? Use this template to report it! labels: "Type: Bug (Unconfirmed)" -issue_body: false body: - type: markdown attributes: @@ -71,11 +70,9 @@ body: description: |- Put your code here. This code needs to be able to reproduce the bug consistently! - placeholder: |- + value: | ```java - public void error(){ - throw new Exception("ERROR"); - } + ``` render: "java" validations: diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index e11098c8..fb2a0d3b 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -1,7 +1,6 @@ name: Feature Request description: Suggest a new Feature for JavaBotBlockAPI labels: 'Type: Enhancement' -issue_body: false body: - type: markdown attributes: diff --git a/.github/workflows/auto_approve_pr.yml b/.github/workflows/auto_approve_pr.yml new file mode 100644 index 00000000..d9c5dc8d --- /dev/null +++ b/.github/workflows/auto_approve_pr.yml @@ -0,0 +1,17 @@ +name: Automatically approve Pull requests + +on: + pull_request: + types: + - opened + branches: + - master + +jobs: + auto-approve: + runs-on: ubuntu-latest + if: ${{ github.actor == 'Andre601' }} + steps: + - uses: hmarr/auto-approve-action@v2 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/generate_javadoc.yml b/.github/workflows/generate_javadoc.yml index 853031a0..37bd3abd 100644 --- a/.github/workflows/generate_javadoc.yml +++ b/.github/workflows/generate_javadoc.yml @@ -17,7 +17,8 @@ jobs: - name: Set up Java 11 uses: actions/setup-java@v2 with: - java-version: 1.11 + distribution: 'adopt' + java-version: '11.0.10+9' - name: Generate Javadoc run: ./gradlew javadoc - name: Push changes @@ -36,7 +37,8 @@ jobs: - name: Set up Java 11 uses: actions/setup-java@v2 with: - java-version: 1.11 + distribution: 'adopt' + java-version: '11.0.10+9' - name: Generate Jars run: ./gradlew build - name: Zip files diff --git a/README.md b/README.md index aab243c1..07f1dd94 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ The BotBlockAPI class contains a nested Builder class which allows a more stream ```java BotBlockAPI api = new BotBlockAPI.Builder() .addAuthToken("discordextremelist.xyz", "my_s3cr3t_t0k3n") - .addAuthToken(Site.BOTLIST_SPACE, "my_53cret_tok3n") + .addAuthToken(Site.DISCORDLIST_SPACE, "my_53cret_tok3n") .build(); ``` diff --git a/build.gradle b/build.gradle index a709ef51..120a3e19 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins{ id 'com.github.johnrengelman.shadow' version '5.2.0' } -def ver = new Version(major: 6, minor: 6, patch: 5) +def ver = new Version(major: 6, minor: 6, patch: 6) allprojects { apply plugin: 'maven-publish' diff --git a/core/src/main/java/org/botblock/javabotblockapi/core/Info.java b/core/src/main/java/org/botblock/javabotblockapi/core/Info.java index 242ddead..d9a1bde4 100644 --- a/core/src/main/java/org/botblock/javabotblockapi/core/Info.java +++ b/core/src/main/java/org/botblock/javabotblockapi/core/Info.java @@ -39,7 +39,7 @@ public class Info{ /** * Patch version of the Wrapper. */ - public static final int PATCH = 5; + public static final int PATCH = 6; /** * Full version in the format {@code major.minor.patch}. diff --git a/core/src/main/java/org/botblock/javabotblockapi/core/Site.java b/core/src/main/java/org/botblock/javabotblockapi/core/Site.java index 2ddffc77..ebd7002c 100644 --- a/core/src/main/java/org/botblock/javabotblockapi/core/Site.java +++ b/core/src/main/java/org/botblock/javabotblockapi/core/Site.java @@ -55,8 +55,13 @@ public class Site{ *
Supported methods: + *
Supported methods: - *
Supported methods: + *
The JSONObject may look like this:
- *
- * {
- * "id": "123456789012345678",
- * "username": "MyBot",
- * "discriminator": "1234",
- * "owners": [
- * "234567890123456789"
- * ],
- * "server_count": 100,
- * "invite":{@literal "https://discordapp.com/oauth2/authorize?client_id=123456789012345678&scope=bot"},
- * "prefix": "?",
- * "website": "",
- * "github": "",
- * "support": "",
- * "library": "JDA",
- * "list_data": {
- * "somebotlist.com": [
- * {"data": "Unique bot list data"},
- * 200
- * ],
- * "otherlist.org": [
- * {"data": "Unique bot list data"},
- * 404
- * ]
- * }
- * }
- *
- * Following Exceptions can be thrown from the HTTP request: *
The JSONObject may look like this:
- *
- * {
- * "id": "123456789012345678",
- * "username": "MyBot",
- * "discriminator": "1234",
- * "owners": [
- * "234567890123456789"
- * ],
- * "server_count": 100,
- * "invite":{@literal "https://discordapp.com/oauth2/authorize?client_id=123456789012345678&scope=bot"},
- * "prefix": "?",
- * "website": "",
- * "github": "",
- * "support": "",
- * "library": "JDA",
- * "list_data": {
- * "somebotlist.com": [
- * {"data": "Unique bot list data"},
- * 200
- * ],
- * "otherlist.org": [
- * {"data": "Unique bot list data"},
- * 404
- * ]
- * }
- * }
- *
- * Following Exceptions can be thrown from the CheckUtil: *