nyxx_commander 2.0.0-rc.9 copy "nyxx_commander: ^2.0.0-rc.9" to clipboard
nyxx_commander: ^2.0.0-rc.9 copied to clipboard

discontinuedreplaced by: nyxx_commands
outdated

Nyxx Commander Module. Discord library for Dart. Simple, robust framework for creating discord bots for Dart language.

example/example.dart

import "package:nyxx/nyxx.dart";
import "package:nyxx_commander/commander.dart";

void main() {
  // Start bot
  final bot = Nyxx("TOKEN", GatewayIntents.allUnprivileged);

  // Start commander with prefix `!`
  Commander(bot, prefix: "!")
    ..registerCommand("ping", (context, message) { // register command ping that will answer pong
      context.reply(MessageBuilder.content("Pong"));
    });
}
6
likes
0
pub points
35%
popularity

Publisher

verified publisherl7ssha.xyz

Nyxx Commander Module. Discord library for Dart. Simple, robust framework for creating discord bots for Dart language.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

http, logging, nyxx

More

Packages that depend on nyxx_commander