An API wrapper for BotiCord API written in Java

Overview

boticord.js

Online

BotiCordJava

An API wrapper for https://boticord.top/ written in Java by @megoRU

Maven

https://jitpack.io/#megoRU/boticordjava

<repositories>
 <repository>
	<id>jitpack.ioid>
	<url>https://jitpack.iourl>
 repository>
repositories>

<dependency>
	<groupId>com.github.megoRUgroupId>
	<artifactId>boticordjavaartifactId>
	<version>v2.6version>
dependency>

Examples

Get All Comments by bot ID

public static void main(String[] args) {

    BotiCordAPI api = new BotiCordAPIImpl("YOUR_TOKEN", "BOT_ID");
    Comments[] comments = api.getBotComments();

    for (int i = 0; i < comments.length; i++) {
    System.out.println(comments[i].getText());
    System.out.println(comments[i].getUserId());
   }
}

Update Stats

public static void main(String[] args) {

    BotiCordAPI api = new BotiCordAPIImpl("YOUR_TOKEN", "BOT_ID");

    int servers = ...; // the server count
    int shards = ...; // shards count
    int users = ...; // the amount of users

    api.setStats(servers, shards, users);
}    

Links

You might also like...

A mitigation for CVE-2021-44228 (log4shell) that works by patching the vulnerability at runtime. (Works with any vulnerable java software, tested with java 6 and newer)

Log4jPatcher A Java Agent based mitigation for Log4j2 JNDI exploits. This agent employs 2 patches: Disabling all Lookup conversions (on supported Log4

Dec 16, 2022

Java binding to the Networking and Cryptography (NaCl) library with the awesomeness of libsodium

kalium - Java binding to the Networking and Cryptography (NaCl) library A Java binding to Networking and Cryptography library by Daniel J. Bernstein.

Oct 5, 2022

A small and easy-to-use one-time password generator library for Java according to RFC 4226 (HOTP) and RFC 6238 (TOTP).

OTP-Java A small and easy-to-use one-time password generator for Java according to RFC 4226 (HOTP) and RFC 6238 (TOTP). Table of Contents Features Ins

Dec 30, 2022

Security engine for Java (authentication, authorization, multi frameworks): OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...

Security engine for Java (authentication, authorization, multi frameworks): OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...

pac4j is an easy and powerful security engine for Java to authenticate users, get their profiles and manage authorizations in order to secure web appl

Dec 30, 2022

Bouncy Castle Java Distribution (Mirror)

The Bouncy Castle Crypto Package For Java The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms, it was developed by t

Dec 30, 2022

An authorization library that supports access control models like ACL, RBAC, ABAC in Java

An authorization library that supports access control models like ACL, RBAC, ABAC in Java

jCasbin News: still worry about how to write the correct jCasbin policy? Casbin online editor is coming to help! Try it at: http://casbin.org/editor/

Dec 30, 2022

PicketLink is a security framework for securing Java EE applications.

PicketLink http://picketlink.org Java EE Application Security Identity Management Federation Social REST Security Standard-based Security This reposit

Feb 21, 2022

OACC (Object ACcess Control) is an advanced Java Application Security Framework

OACC Java Application Security Framework What is OACC? OACC - pronounced [oak] - is a fully featured API to both enforce and manage your application's

Nov 24, 2022

okta-auth-java

okta-auth-java

Okta Java Authentication SDK Release status Need help? Getting started Usage guide Configuration reference Building the SDK Contributing The Okta Auth

Sep 30, 2022
Comments
  • Сделать поддержку WebSocket

    Сделать поддержку WebSocket

    1. Сделать обработку этих сообщений:
    • [x] new_bot_bump
    • [x] new_server_bump
    • [x] test_webhook_message
    • [x] new_bot_comment
    • [x] edit_bot_comment
    • [x] delete_bot_comment
    • [x] new_server_comment
    • [x] edit_server_comment
    • [x] delete_server_comment
    1. Дубликаты
    • [x] Убрать дубликаты
    1. Документация
    • [x] Сделать документацию
    enhancement New feature 
    opened by megoRU 0
  • java.net.ConnectException & java.lang.NullPointerException

    java.net.ConnectException & java.lang.NullPointerException

    Возможно из-за того что API boticord не был доступен.

    java.net.ConnectException
            at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:551)
            at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:119)
            at org.boticordjava.api.impl.BotiCordAPIImpl.execute(BotiCordAPIImpl.java:163)
            at org.boticordjava.api.impl.BotiCordAPIImpl.post(BotiCordAPIImpl.java:157)
            at org.boticordjava.api.impl.BotiCordAPIImpl.setStats(BotiCordAPIImpl.java:55)
            at main.config.BotStartConfig.topGGAndStatcord(BotStartConfig.java:384)
            at jdk.internal.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
            at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.base/java.lang.reflect.Method.invoke(Method.java:564)
            at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
            at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
            at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
            at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
            at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
            at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
            at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
            at java.base/java.lang.Thread.run(Thread.java:832)
    Caused by: java.net.ConnectException
            at java.net.http/jdk.internal.net.http.common.Utils.toConnectException(Utils.java:1028)
            at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:179)
            at java.net.http/jdk.internal.net.http.AsyncSSLConnection.connectAsync(AsyncSSLConnection.java:56)
            at java.net.http/jdk.internal.net.http.Http2Connection.createAsync(Http2Connection.java:369)
            at java.net.http/jdk.internal.net.http.Http2ClientImpl.getConnectionFor(Http2ClientImpl.java:128)
            at java.net.http/jdk.internal.net.http.ExchangeImpl.get(ExchangeImpl.java:93)
            at java.net.http/jdk.internal.net.http.Exchange.establishExchange(Exchange.java:306)
            at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl0(Exchange.java:438)
            at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl(Exchange.java:343)
            at java.net.http/jdk.internal.net.http.Exchange.responseAsync(Exchange.java:335)
            at java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:347)
            at java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsyncImpl$7(MultiExchange.java:388)
            at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:930)
            at java.base/java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:946)
            at java.base/java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2330)
            at java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:378)
            at java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsync0$2(MultiExchange.java:293)
            at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1146)
            at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
            at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1769)
            at java.net.http/jdk.internal.net.http.HttpClientImpl$DelegatingExecutor.execute(HttpClientImpl.java:155)
            at java.base/java.util.concurrent.CompletableFuture.completeAsync(CompletableFuture.java:2663)
            at java.net.http/jdk.internal.net.http.MultiExchange.responseAsync(MultiExchange.java:246)
            at java.net.http/jdk.internal.net.http.HttpClientImpl.sendAsync(HttpClientImpl.java:631)
            at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:530)
            ... 16 more
    Caused by: java.nio.channels.UnresolvedAddressException
            at java.base/sun.nio.ch.Net.checkAddress(Net.java:149)
            at java.base/sun.nio.ch.Net.checkAddress(Net.java:157)
            at java.base/sun.nio.ch.SocketChannelImpl.checkRemote(SocketChannelImpl.java:753)
            at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:774)
            at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$0(PlainHttpConnection.java:165)
            at java.base/java.security.AccessController.doPrivileged(AccessController.java:554)
            at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:167)
            ... 39 more
    java.lang.NullPointerException: Cannot invoke "java.net.http.HttpResponse.body()" because "response" is null
            at org.boticordjava.api.io.DefaultResponseTransformer.transform(DefaultResponseTransformer.java:18)
            at org.boticordjava.api.impl.BotiCordAPIImpl.execute(BotiCordAPIImpl.java:172)
            at org.boticordjava.api.impl.BotiCordAPIImpl.post(BotiCordAPIImpl.java:157)
            at org.boticordjava.api.impl.BotiCordAPIImpl.setStats(BotiCordAPIImpl.java:55)
            at main.config.BotStartConfig.topGGAndStatcord(BotStartConfig.java:384)
            at jdk.internal.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
            at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.base/java.lang.reflect.Method.invoke(Method.java:564)
            at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
            at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
            at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
            at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
            at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
            at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
            at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
            at java.base/java.lang.Thread.run(Thread.java:832)
    
    
    bug 
    opened by megoRU 0
  • Expected BEGIN_ARRAY but was BEGIN_OBJECT

    Expected BEGIN_ARRAY but was BEGIN_OBJECT

    https://github.com/boticord/boticordjava/blob/5187da799c047e49dfcceb8f866c7ae5a384ced8/src/main/java/org/boticordjava/api/entity/servers/serverinfo/ServerInformation.java#L14-L17

    Самый прикол что по идеи должен работать String[] потому что прилетает массив, но... По какой то причине GSON не может распарсить...

    help wanted 
    opened by megoRU 0
  • The server responded with code: 429, message: Rate limit exceeded, retry in 2 seconds

    The server responded with code: 429, message: Rate limit exceeded, retry in 2 seconds

    The server responded with code: 429, message: Rate limit exceeded, retry in 2 seconds
            at org.boticordjava.api.impl.BotiCordAPIImpl.execute(BotiCordAPIImpl.java:333)
            at org.boticordjava.api.impl.BotiCordAPIImpl.post(BotiCordAPIImpl.java:302)
            at org.boticordjava.api.impl.BotiCordAPIImpl.setStats(BotiCordAPIImpl.java:88)
            at main.config.BotStartConfig.topGGAndStatcord(BotStartConfig.java:241)
            at jdk.internal.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
            at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.base/java.lang.reflect.Method.invoke(Method.java:564)
            at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
            at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
            at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
            at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
            at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
            at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
            at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
            at java.base/java.lang.Thread.run(Thread.java:832)
    
    opened by megoRU 1
Releases(v4.1)
Owner
BotiCord
Магия Discord в одном месте
BotiCord
OAUTHScan is a Burp Suite Extension written in Java with the aim to provide some automatic security checks

OAUTHScan is a Burp Suite Extension written in Java with the aim to provide some automatic security checks, which could be useful during penetration testing on applications implementing OAUTHv2 and OpenID standards.

Maurizio S 163 Nov 29, 2022
Amazon Selling Partner JAVA SDK SP API

amazon-sp-api amazon sp api java sdk 背景: 亚马逊(amazon)在2020年10月推出了新的替代mws的api方案,称为Selling Partner API(SP-API)。sp-api在修改原mws的接口方式的基础上引入了aws的IAM权限管理,增加了开发

penghp 93 Nov 20, 2022
A library for bypassing all of Java's security mechanisms, visibility checks, and encapsulation measures via the JNI API

Narcissus: thwart strong encapsulation in JDK 16+ Narcissus is a JNI native code library that provides a small subset of the Java reflection API, whil

ToolFactory 29 Nov 3, 2022
A Twitter-API library JAVA

Tweety A Twitter-API library for JAVA. Code for Authorization (Oauth 1) can be found here :Authorization This api conta

Rohit Kumar 2 Apr 26, 2022
Simple API for using Java Reflection

Reflector По поводу багов или идей для данного репозитория можно писать в Discord или ВК(обратная связь) Обратная связь Discord: UnLegit#6190 ВКонтакт

null 1 Jan 25, 2022
Fluent builders with typesafe API for the JCA

Security Builders This library implements a set of "fluent" API builders for the java.security classes, and provides more typesafe, intuitive API to a

Terse Systems 44 Sep 13, 2022
Toloka has a powerful open API, it allows you to integrate an on-demand workforce directly into your processes, and to build scalable and fully automated human-in-the-loop ML pipelines.

Toloka Java SDK Documentation Website | API Documentation | Platform Designed by engineers for engineers, Toloka lets you integrate an on-demand workf

Toloka 10 Apr 27, 2022
Library to easily configure API Key authentication in (parts of) your Spring Boot Application

42 API Key Authentication A library to easily configure API Key authentication in (parts of) your Spring Boot Application. Features Easily configure A

null 2 Dec 8, 2021
Java JWT: JSON Web Token for Java and Android

Java JWT: JSON Web Token for Java and Android JJWT aims to be the easiest to use and understand library for creating and verifying JSON Web Tokens (JW

null 8.8k Dec 30, 2022
Java Project based on Java and Encryption using Cryptography algorithms

Symmetric-Encryption-Cryptography-in-Java Java Project based on Java and Encryption using Cryptography algorithms Project Aim Develop Java program to

Muhammad Asad 6 Feb 3, 2022