dartcord_core 0.1.1 copy "dartcord_core: ^0.1.1" to clipboard
dartcord_core: ^0.1.1 copied to clipboard

Dartcord makes it easy to create discord bots using the Dart programming language

example/README.md

Dartcord examples #

⚠️ PLEASE NOTE

More examples are coming soon

Hello command #

import 'package:dartcord_core/dartcord_core.dart';

const String token = "token";

void onMessage(Message message) async {
  if (message.author.bot) return;

  if (message.content == "!hello") {
    return await message.reply("Hello!");
  }
}

void main() async {
  Client c = Client();

  c.onReady((User user) {
    print("${user.username} is online!");
  });
  c.onMessage(onMessage);

  c.login(token);
}
9
likes
0
points
54
downloads

Publisher

verified publishersjensen.dev

Weekly Downloads

Dartcord makes it easy to create discord bots using the Dart programming language

Homepage

License

unknown (license)

Dependencies

http, web_socket_channel

More

Packages that depend on dartcord_core