Skip to content

Add 5 new Sites #254

New issue

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

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

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jul 21, 2021
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 build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins{
id 'com.github.johnrengelman.shadow' version '5.2.0'
}

def ver = new Version(major: 6, minor: 7, patch: 1)
def ver = new Version(major: 6, minor: 7, patch: 2)

allprojects {
apply plugin: 'maven-publish'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class Info{
/**
* Patch version of the Wrapper.
*/
public static final int PATCH = 1;
public static final int PATCH = 2;

/**
* Full version in the format {@code major.minor.patch}.
Expand Down
72 changes: 71 additions & 1 deletion core/src/main/java/org/botblock/javabotblockapi/core/Site.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,19 @@ public class Site{
*/
public static final Site BOATSPACE_XYZ = new Site("boatspace.xyz", HttpMethod.GET, HttpMethod.POST);

/**
* <a href="https://botlist.me" target="_blank">botlist.me</a>
*
* <p>Supported methods:
* <ul>
* <li>GET</li>
* <li>POST</li>
* </ul>
*
* @since 6.7.2
*/
public static final Site BOTLIST_ME = new Site("botlist.me", HttpMethod.GET, HttpMethod.POST);

/**
* <a href="https://bots.discordlabs.org" target="_blank">bots.discordlabs.org</a>
*
Expand Down Expand Up @@ -245,6 +258,19 @@ public class Site{
*/
public static final Site INFINITYBOTLIST_XYZ = new Site("infinitybotlist.xyz", HttpMethod.GET, HttpMethod.POST);

/**
* <a href="https://motiondevelopment.top" target="_blank">motiondevelopment.top</a>
*
* <p>Supported methods:
* <ul>
* <li>GET</li>
* <li>POST</li>
* </ul>
*
* @since 6.7.2
*/
public static final Site MOTIONDEVELOPMENT_TOP = new Site("motiondevelopment.top", HttpMethod.GET, HttpMethod.POST);

/**
* <a href ="https://paradisebots.net" target="_blank">paradisebots.net</a>
*
Expand All @@ -258,6 +284,19 @@ public class Site{
*/
public static final Site PARADISEBOTS_NET = new Site("paradisebots.net", HttpMethod.GET, HttpMethod.POST);

/**
* <a href="https://radarbotdirectory.xyz" target="_blank">radarbotdirectory.xyz</a>
*
* <p>Supported methods:
* <ul>
* <li>GET</li>
* <li>POST</li>
* </ul>
*
* @since 6.7.2
*/
public static final Site RADARBOTDIRECTORY_XYZ = new Site("radarbotdirectory.xyz", HttpMethod.GET, HttpMethod.POST);

/**
* <a href="https://space-bot-list.xyz" target="_blank">space-bot-list.xyz</a>
*
Expand All @@ -269,6 +308,18 @@ public class Site{
*/
public static final Site SPACE_BOT_LIST_XYZ = new Site("space-bot-list.xyz", HttpMethod.GET, HttpMethod.POST);

/**
* <a href="https://stellarbotlist.com" target="_blank">stellarbotlist.com</a>
*
* <p>Supported methods:
* <ul>
* <li>GET</li>
* </ul>
*
* @since 6.7.2
*/
public static final Site STELLARBOTLIST_COM = new Site("stellarbotlist.com", HttpMethod.GET);

/**
* <a href="https://topcord.xyz" target="_blank">topcord.xyz</a>
*
Expand All @@ -280,6 +331,19 @@ public class Site{
*/
public static final Site TOPCORD_XYZ = new Site("topcord.xyz", HttpMethod.GET, HttpMethod.POST);

/**
* <a href="https://vcodes.xyz" target="_blank">vcodes.xyz</a>
*
* <p>Supported methods:
* <ul>
* <li>GET</li>
* <li>POST</li>
* </ul>
*
* @since 6.7.2
*/
public static final Site VCODES_XYZ = new Site("vcodes.xyz", HttpMethod.GET, HttpMethod.POST);

/**
* <a href="https://voidbots.net" target="_blank">voidbots.net</a>
*
Expand Down Expand Up @@ -328,7 +392,7 @@ private Site(String name){

/**
* The name used by the BotBlock API to identify the site.
* <br>The name usually is just the domain of the site without the http(s):// in front of it.
* <br>The name usually represents the domain of the bot list without the https in front of it.
*
* @return The name of the site used for the BotBlock API.
*/
Expand All @@ -354,6 +418,12 @@ public boolean supportsPost(){
return !methods.isEmpty() && methods.contains(HttpMethod.POST);
}

/**
* Nested enum for the Http-methods supported by the bot lists.
*
* <p>Depending on what Http-Methods a bot list supports can its corresponding entry be used for the GET methods,
* POST methods or both.
*/
public enum HttpMethod{
/**
* Bot list supports GET requests.
Expand Down