Build Fluxer Bots
with Fluxer4J
A modern Java 17+ SDK with 150+ REST endpoints, real-time gateway events, a powerful command framework, voice support, and async-first design.
150+ REST Endpoints
Full coverage of messages, channels, guilds, users, roles, invites, webhooks, and more — all async with CompletableFuture.
Real-Time Gateway
WebSocket gateway with 60+ typed event listeners, automatic heartbeat, reconnection, and session resumption.
Command Framework
Annotation-based commands with automatic parsing, aliases, preconditions, permissions, and module organization.
Rich Embeds
Fluent EmbedBuilder with titles, descriptions, fields, images, footers, timestamps, and validation.
Voice Support
Join voice channels, stream audio via UDP or LiveKit WebRTC, and handle playback events.
Rate Limiting
Built-in sliding-window rate limiter keeps your bot within API limits automatically.
Up and Running in Minutes
import fluxer4j.Fluxer4JBot;
import fluxer4j.FluxerConfig;
Fluxer4JBot bot = Fluxer4JBot.builder("Bot YOUR_TOKEN")
.config(FluxerConfig.builder()
.reconnectAttemptDelay(2)
.enableRateLimiting(true)
.build())
.commandPrefix('!')
.addCommandModule(BasicCommands.class)
.build();
bot.onMessageCreate(msg ->
System.out.println(msg.getAuthor().getUsername() + ": " + msg.getContent())
);
bot.start().join();
Requirements
| Requirement | Version |
|---|---|
| Java (JDK) | 17 or later |
| Build Tool | Maven 3.6+ or Gradle 7+ |
Dependencies
| Library | Version | Purpose |
|---|---|---|
| Jackson | 2.15.3 | JSON serialization |
| Java-WebSocket | 1.5.4 | Gateway WebSocket client |
| SLF4J | 2.0.9 | Logging abstraction |
| Logback | 1.4.11 | Default logging (optional) |
| WebRTC Java | 0.14.0 | LiveKit voice support |