Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flioris/jva

Java wrapper for working with the VK Long Poll API.
https://github.com/flioris/jva

api api-wrapper asynchronous bot bot-api java jva long-poll long-polling okhttp3 rest rest-api synchronous vk

Last synced: 24 days ago
JSON representation

Java wrapper for working with the VK Long Poll API.

Awesome Lists containing this project

README

        

[![Release](https://img.shields.io/github/v/release/Flioris/JVA?label=Release)](https://github.com/Flioris/JVA/releases)
[![discord-shield](https://discord.com/api/guilds/1045660297236582462/widget.png)](https://discord.gg/AZSZ8nhtra)
[![docs-shield](https://img.shields.io/badge/Wiki-Docs-blue.svg)](https://flioris.github.io/JVA/)

# JVA (Java VK API)

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

```xml


jitpack.io
https://jitpack.io


com.github.Flioris
JVA
0.1.8-alpha

```

### Gradle

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

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

## 🚪️ Getting Started

Launch the bot and attach an event listener:

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

Your event listener will look something like this:

```java
public class MainListener extends EventListener {

@Override
public void onCommand(CommandEvent event) {
...
}

@Override
public void onMessage(MessageEvent event) {
...
}
}
```

More details in [Javadoc](https://flioris.github.io/JVA/).