Skip to content
This repository was archived by the owner on May 16, 2026. It is now read-only.

Latest commit

 

History

49 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Introduction Intro

Beniocord.js

A powerful JavaScript library for building Beniocord bots with ease.

npm version npm downloads GitHub stars GitHub issues Join Beniocord Better Stack Badge


About

Beniocord.js is a powerful Node.js module that allows you to easily interact with the Beniocord API. It provides an intuitive and modern approach to bot development.

Installation

Install via NPM:

npm install beniocord.js

Quick Example

const Beniocord = require("beniocord.js");
const client = new Beniocord({ token: 'YOUR_BOT_TOKEN' });

client.on("ready", () => {
  console.log("🤖 Bot connected!");
});

client.on("messageCreate", async (msg) => {
  if (msg.author?.id === client.user?.id) return;
  if (!msg.content.startsWith('!')) return;

  const comando = msg.content.slice('!'.length).split(' ')[0];
  const args = msg.content.slice(comando.length + '!'.length + 1).trim().split(' ');

  if (comando === "ping") {
    const msgTimestamp = Date.now() - Date.parse(msg.createdAt);
    const sent = await msg.channel.send("🏓 Pinging...");
    const editTimestamp = Date.now() - Date.parse(sent.createdAt);

    await sent.edit(
        `🏓 **Pong!**\n` +
        `📨 **Message → Bot:** ${msgTimestamp}ms\n` +
        `✏️ **Send → Edit:** ${editTimestamp}ms`
    );
  }
});

client.login();

Useful Links

About

beniocord.js - A module for creating Beniocord bots

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages