Skip to content

Flioris/JVA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release discord-shield docs-shield

Java VK API (abandoned)

An open source Java wrapper for working with the VK Long Poll API. Provides the ability to work with VK methods and its events for group bots.

⬇️ Installation

Maven

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.github.Flioris</groupId>
        <artifactId>JVA</artifactId>
        <version>0.1.10-alpha</version>
    </dependency>
</dependencies>

Gradle

repositories {
    mavenCentral()
    maven {
        url = uri("https://jitpack.io")
    }
}

dependencies {
    implementation("com.github.Flioris:JVA:0.1.10-alpha")
}

🚪️ Getting Started

Launch the bot and attach an event listener:

public static void main(String[] args) {
    jva = new JVA(token, groupId);
    jva.setListeners(new MainListener());
}

Your event listener will look something like this:

public class MainListener extends EventListener {
    
    @Override
    public void onCommand(CommandEvent event) {
        ...
    }
    
    @Override
    public void onMessage(MessageEvent event) {
        ...
    }
}

More details in Javadoc.