Skip to content

Commit 9b42628

Browse files
authored
Merge pull request #254 from botblock/feature/add-new-lists
Add 5 new Sites
2 parents 75bf747 + 3fc5abf commit 9b42628

File tree

3 files changed

+73
-3
lines changed

3 files changed

+73
-3
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins{
77
id 'com.github.johnrengelman.shadow' version '5.2.0'
88
}
99

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

1212
allprojects {
1313
apply plugin: 'maven-publish'

core/src/main/java/org/botblock/javabotblockapi/core/Info.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class Info{
3939
/**
4040
* Patch version of the Wrapper.
4141
*/
42-
public static final int PATCH = 1;
42+
public static final int PATCH = 2;
4343

4444
/**
4545
* Full version in the format {@code major.minor.patch}.

core/src/main/java/org/botblock/javabotblockapi/core/Site.java

+71-1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@ public class Site{
8080
*/
8181
public static final Site BOATSPACE_XYZ = new Site("boatspace.xyz", HttpMethod.GET, HttpMethod.POST);
8282

83+
/**
84+
* <a href="https://botlist.me" target="_blank">botlist.me</a>
85+
*
86+
* <p>Supported methods:
87+
* <ul>
88+
* <li>GET</li>
89+
* <li>POST</li>
90+
* </ul>
91+
*
92+
* @since 6.7.2
93+
*/
94+
public static final Site BOTLIST_ME = new Site("botlist.me", HttpMethod.GET, HttpMethod.POST);
95+
8396
/**
8497
* <a href="https://bots.discordlabs.org" target="_blank">bots.discordlabs.org</a>
8598
*
@@ -245,6 +258,19 @@ public class Site{
245258
*/
246259
public static final Site INFINITYBOTLIST_XYZ = new Site("infinitybotlist.xyz", HttpMethod.GET, HttpMethod.POST);
247260

261+
/**
262+
* <a href="https://motiondevelopment.top" target="_blank">motiondevelopment.top</a>
263+
*
264+
* <p>Supported methods:
265+
* <ul>
266+
* <li>GET</li>
267+
* <li>POST</li>
268+
* </ul>
269+
*
270+
* @since 6.7.2
271+
*/
272+
public static final Site MOTIONDEVELOPMENT_TOP = new Site("motiondevelopment.top", HttpMethod.GET, HttpMethod.POST);
273+
248274
/**
249275
* <a href ="https://paradisebots.net" target="_blank">paradisebots.net</a>
250276
*
@@ -258,6 +284,19 @@ public class Site{
258284
*/
259285
public static final Site PARADISEBOTS_NET = new Site("paradisebots.net", HttpMethod.GET, HttpMethod.POST);
260286

287+
/**
288+
* <a href="https://radarbotdirectory.xyz" target="_blank">radarbotdirectory.xyz</a>
289+
*
290+
* <p>Supported methods:
291+
* <ul>
292+
* <li>GET</li>
293+
* <li>POST</li>
294+
* </ul>
295+
*
296+
* @since 6.7.2
297+
*/
298+
public static final Site RADARBOTDIRECTORY_XYZ = new Site("radarbotdirectory.xyz", HttpMethod.GET, HttpMethod.POST);
299+
261300
/**
262301
* <a href="https://space-bot-list.xyz" target="_blank">space-bot-list.xyz</a>
263302
*
@@ -269,6 +308,18 @@ public class Site{
269308
*/
270309
public static final Site SPACE_BOT_LIST_XYZ = new Site("space-bot-list.xyz", HttpMethod.GET, HttpMethod.POST);
271310

311+
/**
312+
* <a href="https://stellarbotlist.com" target="_blank">stellarbotlist.com</a>
313+
*
314+
* <p>Supported methods:
315+
* <ul>
316+
* <li>GET</li>
317+
* </ul>
318+
*
319+
* @since 6.7.2
320+
*/
321+
public static final Site STELLARBOTLIST_COM = new Site("stellarbotlist.com", HttpMethod.GET);
322+
272323
/**
273324
* <a href="https://topcord.xyz" target="_blank">topcord.xyz</a>
274325
*
@@ -280,6 +331,19 @@ public class Site{
280331
*/
281332
public static final Site TOPCORD_XYZ = new Site("topcord.xyz", HttpMethod.GET, HttpMethod.POST);
282333

334+
/**
335+
* <a href="https://vcodes.xyz" target="_blank">vcodes.xyz</a>
336+
*
337+
* <p>Supported methods:
338+
* <ul>
339+
* <li>GET</li>
340+
* <li>POST</li>
341+
* </ul>
342+
*
343+
* @since 6.7.2
344+
*/
345+
public static final Site VCODES_XYZ = new Site("vcodes.xyz", HttpMethod.GET, HttpMethod.POST);
346+
283347
/**
284348
* <a href="https://voidbots.net" target="_blank">voidbots.net</a>
285349
*
@@ -328,7 +392,7 @@ private Site(String name){
328392

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

421+
/**
422+
* Nested enum for the Http-methods supported by the bot lists.
423+
*
424+
* <p>Depending on what Http-Methods a bot list supports can its corresponding entry be used for the GET methods,
425+
* POST methods or both.
426+
*/
357427
public enum HttpMethod{
358428
/**
359429
* Bot list supports GET requests.

0 commit comments

Comments
 (0)