dartcord_core 0.1.1 dartcord_core: ^0.1.1 copied to clipboard
Dartcord makes it easy to create discord bots using the Dart programming language
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);
}