Simple, robust framework for creating discord bots for Dart language.
- Slash commands support
Supports and provides easy API for creating and handling slash commands - Buttons and dropdowns
- Autocomplete
- Context menus
Slash commands:
void main() {
final bot = NyxxFactory.createNyxxWebsocket("<TOKEN>", GatewayIntents.allUnprivileged)
..registerPlugin(Logging()) // Default logging plugin
..registerPlugin(CliIntegration()) // Cli integration for nyxx allows stopping application via SIGTERM and SIGKILl
..registerPlugin(IgnoreExceptions()) // Plugin that handles uncaught exceptions that may occur
..connect();
IInteractions.create(WebsocketInteractionBackend(bot))
..registerHandler("test", "This is test command", [], handler: (event) async {
await event.reply(MessageBuilder.content("This is example message result"));
})
..syncOnReady();
}
Nyxx examples can be found here.
Dartdoc documentation for latest stable version is hosted on pub
You can read docs and wiki articles for latest stable version on my website. This website also hosts docs for latest
dev changes to framework (dev
branch)
If you need assistance in developing bot using nyxx you can join official nyxx discord guild.
Discord API documentation features rich descriptions about all topics that nyxx covers.
The unofficial guild for Discord Bot developers. To get help with nyxx check #dart_nyxx
channel.
The dartdocs page will always have the documentation for the latest release.
- Hackzzila's for nyx.