better-revolt-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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.

Package Sidebar

Install

npm i better-revolt-js

Weekly Downloads

0

Version

1.0.2

License

Apache-2

Unpacked Size

177 kB

Total Files

140

Last publish

Collaborators

  • themaestroo