A simple way to make your discord bot with bluelight.js Docs: https://docs.faystarnext.studio/bluelight/home
- Low Memory Usage
- Custom Cache System
- Fast Connect to Gateway
It's a raw connect gateway discord.
- Discord Developer Portal: https://discord.com/developers/applications
- Install the package
npm install bluelight.js | yarn add bluelight.js
- Create a new file and paste the following code
import { Client } from "bluelight.js"
const client = new Client({
intents: 1, // Intents: discord.com/developers/docs/topics/gateway#gateway-intents | https://discord-intents-calculator.vercel.app/
token: "YOUR_BOT_TOKEN" // Your bot token
})
client.login(); // Connect to gateway