fluxer_api
fluxer_api is a community made Dart package for making bots for fluxer.app with the Dart programming language. This package also includes support for using Fluxer.app's webhooks.
Installation
Before using, make sure you are using Dart v3.3 or newer in order to use this package.
Method 1: Install via git
Add the following to your pubspec.yaml file
dependencies:
fluxer_api:
git: https://codeberg.org/fluxer_api/fluxer_api.git
# Your other dependencies here
Method 2: Install via pub.dev
Add the following to your pubspec.yaml file
dependencies:
fluxer_api: ^0.1.0
# Your other dependencies here
Usage
Here is a basic example of using the package to make a simple ping pong bot.
import 'package:fluxer_api/fluxer_api.dart';
void main() async {
final bot = FluxerClient(
token: '',
commandPrefix: '!',
);
bot.onMessage((message) async {
print('onMessage: ${message.authorId} sent ${message.content}');
if (message.content.trim().toLowerCase() == 'ping') {
await bot.sendMessage(message.channelId, 'Pong! 🏓');
}
});
await bot.connect();
}
You can refer to the example directory on the Codeberg repo for more examples on using this package.
If you need help with this package, you can join the fluxer_api Fluxer server
Release Dates:
- V0.1.0: June 3rd, 2026
- Started on: June 2nd, 2026