simplecord-bot
v1.0.3
Published
A simple library for Discord bots
Readme
SimpleCord 🚀
The simplest way to create Discord bots with a BDFD-style syntax. Built on top of discord.js.
📦 Installation
npm install simplecord-bot
Quick Start
const SimpleCord = require('simplecord-bot');
const bot = new SimpleCord('YOUR_DISCORD_TOKEN');
// Event when the bot is ready
bot.imReady((tag) => {
console.log(`✅ Logged in as ${tag}`);
});
// Simple text response
bot.trigger('!ping', 'Pong! 🏓');
// BDFD Style Embed
bot.trigger('!info', `
$title[My Awesome Bot]
$description[This embed was created easily!]
$color[#5865F2]
$footer[Powered by SimpleCord]
`);
// Send files or Raw Data
bot.sendAttachment('!file', 'Hello world!', 'note.txt', 'Here is your file:');
bot.connect();