Skip to content

A simple open-source WebSocket library for building Discord bots, allowing real-time communication and easy event handling.

License

Notifications You must be signed in to change notification settings

i3raby/discord-library-opensource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Discord Library Opensource

an open-source library that enables real-time communication with the Discord API using WebSockets. Perfect for developers creating Discord bots, this library simplifies event management and allows for seamless updates and customizations to your projects.

Usage

// Get started by editing `bot/client.js`

const { Client } = require('../src/package');
const bot = new Client(process.env['DISCORD_BOT_TOKEN'], {
    intents: [
      'GUILDS'
    ]
})

bot.on('ready', async() => {
    console.log(`${bot.user.username}'s Online.`)
})

bot.on('messageCreate', Message => {
    if(Message.content === 'opensource') {
        Message.reply({ content: 'An opensource project is good 😁.' })
    }
})

bot.connect();

About

A simple open-source WebSocket library for building Discord bots, allowing real-time communication and easy event handling.

Topics

Resources

License

Stars

Watchers

Forks

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy