1.0.2 • Published 2 years ago

better-revolt-js v1.0.2

Weekly downloads
-
License
Apache-2
Repository
github
Last release
2 years ago

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.

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.2-beta

2 years ago

0.1.1-beta

3 years ago

0.1.0-beta

3 years ago

0.0.6-alpha

3 years ago

0.0.8-alpha

3 years ago

0.0.4-alpha

3 years ago

0.0.3-alpha

3 years ago