Repository
Current version released
3 years ago
Revolt.io
Overview
A JS/TS library to interact with Revolt API
Features
- Built with TypeScript
- Object-oriented
- Lightweight (revolt.io *3 pkg > revolt.js 12* pkg)
- Voice Support (work in progress..)
- Deno Support
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!')
}
})
Links
License
Refer to the LICENSE file.