Skip to content

Yurba.js / yurba.js


yurba.js logo


npm versionnpm downloadsLast commitcontributorsnpm last update

About

The powerful and flexible library for creating bots and automating work with the Yurba API.

Install

Node.js 20 or newer is required.

sh
npm install yurba.js
yarn add yurba.js
pnpm add yurba.js
bun add yurba.js

Example usage

- ES modules example
js
import { Client } from "yurba.js";

const client = new Client('TOKEN');

client.registerCommand('hi', { name: 'string' }, (message, args) => {
    message.reply(`Hello, ${args.name}!`);
});

client.on('ready', () => {
    console.log('Ready!');
});

client.init();
- CommonJS example
js
const { Client } = require("yurba.js");

const client = new Client('TOKEN');

client.registerCommand('hi', { name: 'string' }, (message, args) => {
    message.reply(`Hello, ${args.name}!`);
});

client.on('ready', () => {
    console.log('Ready!');
});

client.init();

Contributing

Want to help make yurba.js better?

Please make sure to follow our coding style and test your changes before submitting.

Getting Help

Need assistance?

Client

Other

default

Renames and re-exports Client