Skip to content

scottoss/bronycord.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bronycord.js

A Node.js wrapper for interfacing with bronycord API.

Installing

npm i bronycord.js

Example Usage

import { Client } from 'bronycord.js'

const client = new Client()

// Login with bot account
client.login(process.env.TOKEN)

// Self bot
// client.login({
//    type: 'user', // user or bot
//    token: process.env.TOKEN
// })


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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published