Yurba.js / yurba.js
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.jsExample 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();Links
Contributing
Want to help make yurba.js better?
- Found a bug? Open an issue.
- Have an idea? Start a discussion.
- Want to contribute code? Fork the repository and submit a pull request.
Please make sure to follow our coding style and test your changes before submitting.
Getting Help
Need assistance?
- Check the documentation first.
- Ask questions in our Chat.
- Browse existing issues and discussions.
Client
Other
default
Renames and re-exports Client