A package that extends discord.js's client and focuses on additional utility, quality of life and organisation.
- Slash Command Manager
- Client Event Manager
- Quick To Develop
Indigo Client uses discord.js v14 and be installed with the command:
npm i https://github.com/Littie6amer/Indigo-Client discord.js@^14.3.0
This is where indigo will auto load any events or commands your bot might have.
import { Client } from "indigo-client"
import { IntentsBitField } from "discord.js"
const client = new Client({
intents: [
IntentsBitField.Flags.MessageContent,
IntentsBitField.Flags.GuildMessages,
IntentsBitField.Flags.Guilds
], // Bot Intents
eventFolders: ["events"], // The event folder
commandFolders: ["commands"] // The command folder
mobileStatus: false // Mobile icon status
})
client.login("BOT TOKEN")
const { Client } = require("indigo-client")
const { IntentsBitField } = require("discord.js")
const client = new Client({
intents: [
IntentsBitField.Flags.MessageContent,
IntentsBitField.Flags.GuildMessages,
IntentsBitField.Flags.Guilds
], // Bot Intents
eventFolders: ["events"], // The event folder
commandFolders: ["commands"] // The command folder
mobileStatus: false // Mobile icon status
})
client.login("BOT TOKEN")
Make a new file in your event folder and paste the following
import { Client, ClientEventBase } from "indigo-client"
export default class ClientEvent extends ClientEventBase {
constructor (client: Client) {
super(client, {
name: "EVENT NAME"
})
}
execute () {
console.log(`The event ${this.name} was emitted.`)
}
}
Object.defineProperty(exports, "__esModule", { value: true });
const { ClientEventBase } = require("indigo-client")
class ClientEvent extends ClientEventBase {
constructor (client) {
super(client, {
name: "ready"
})
}
execute () {
console.log(`The event ${this.name} was emitted.`)
}
}
exports.default = ClientEvent