Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/flioris/jva
- Owner: Flioris
- License: gpl-3.0
- Created: 2024-11-26T15:31:24.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-16T06:00:24.000Z (26 days ago)
- Last Synced: 2024-12-16T06:27:22.971Z (26 days ago)
- Topics: api, api-wrapper, asynchronous, bot, bot-api, java, jva, long-poll, long-polling, okhttp3, rest, rest-api, synchronous, vk
- Language: Java
- Homepage:
- Size: 250 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/).