1.9.1 • Published 8 months ago

djs-fm v1.9.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

djs-fm

DiscordJS File Manager

Preview

require("dotenv").config();
const { Client, GatewayIntentBits, REST, Routes, Events, Partials } = require("discord.js");
const { CommandBuilder, Handler } = require('djs-fm');

const client = new Client({
  intents: [
    GatewayIntentBits.Guilds,
    GatewayIntentBits.GuildMessages,
    GatewayIntentBits.MessageContent,
    GatewayIntentBits.GuildMessageReactions
  ],
	partials: [Partials.Message, Partials.Channel, Partials.Reaction], // For Reaction events
});

const commandBuiler = new CommandBuilder(process.env.DISCORD_BOT_TOKEN, process.env.CLIENT_ID, REST, Routes);
const handler = new Handler('/config/handlers.json');

commandBuiler.build('/config/commands.json');

client.on('ready', () => {
  console.log("Ready: " + client.user.username);
});

client.on(Events.InteractionCreate, async (interaction) => {
  await handler.interaction(interaction, client);
});

client.on(Events.MessageCreate, async (event) => {
  await handler.prefix(event, client);
});

client.on(Events.MessageReactionAdd, async (reaction, user) => {
  await handler.reactionAdd(reaction, user, client);
});

client.login(process.env['DISCORD_BOT_TOKEN']);

Interested?

Contact the developer via Discord.

1.9.1

8 months ago

1.9.0

8 months ago

1.8.0

8 months ago

1.7.0

8 months ago

1.6.0

9 months ago

1.5.0

11 months ago

1.4.0

12 months ago

1.3.0

12 months ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago