rdl.js

1.0.2 • Public • Published

Rovel Discord List SDK for Node.js - RDL.js

Using sdk for your discord bots has never been easier! 👀


Using with Discord.js

const { Client: DiscordClient } = require("discord.js");
const { Client: RDLClient } = require("rdl.js")

const client = new DiscordClient();
const RDL = new RDLClient();

client.once("ready", () => {
    console.log("Discord client is ready!");
});

// Event emitted after login is successful.
RDL.once("ready", () => {
    // Bot data will be available from RDL.bot
    console.log(`RDL Logged in as ${RDL.bot.tag}`);
})

// Example - post server stats when bot joins a guild
client.on("guildCreate", (guild) => {
    RDL.bot.postServers(client.guilds.cache.size);
});

// Example - webhook server using express
let express = require("express");
let app = express();
app.use("/api", RDL.webhooks());

client.login("Your Discord Bot Token");
RDL.login("Your RDL bot token")
    .catch(e => console.error("Error Occurred! " + e));

/rdl.js/

    Package Sidebar

    Install

    npm i rdl.js

    Weekly Downloads

    5

    Version

    1.0.2

    License

    AGPL-3.0-or-later

    Unpacked Size

    44.9 kB

    Total Files

    12

    Last publish

    Collaborators

    • sayantan300