Options
All
  • Public
  • Public/Protected
  • All
Menu

better-revolt-js

Better Revolt.JS NPM version

Overview

An alternative library to the official revolt.js with good design in mind.

Features

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.

Generated using TypeDoc