better-revolt-js
v1.0.2
Published
A NodeJS Revolt library
Downloads
15
Maintainers
Readme
Better Revolt.JS
Overview
An alternative library to the official revolt.js with good design in mind.
Features
- Built with TypeScript
- Object-oriented
- Lightweight (better-revolt.js *4 pkg > revolt.js 12* pkg)
- Voice Support (work in progress..)
- Deno Support (work in progress...)
Installation
Node.js v16.x or newer is required.
$ npm i better-revolt-js
Usage
import { Client } from 'better-revolt-js'
const client = new Client()
// Login with bot account
client.login('revolt-token-here')
// Self bot
// client.login('revolt-token-here', 'user')
client.on('ready', () => {
console.log('Connected')
console.log(client.user.username)
})
client.on('message', msg => {
if (msg.content === '!ping') {
msg.reply('Pong!')
}
})
Links
License
Refer to the LICENSE file.