Revolt.io NPM version

Overview

A JS/TS library to interact with Revolt API

Features

Usage

import { Client } from 'https://deno.land/x/revoltio/index.ts'

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!')
    }
})

License

Refer to the LICENSE file.