# djs-fm

> DiscordJS File Manager

Latest version **1.9.1** (published 2023-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install djs-fm
pnpm add djs-fm
yarn add djs-fm
bun add djs-fm
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.9.1 |
| Published | 2023-09-03 |
| First published | 2023-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | fidilen.com |
| Maintainers | fidilen |

## Links

- npm: https://www.npmjs.com/package/djs-fm
- npm.io page: https://npm.io/package/djs-fm

## Recent versions

- 1.9.1 (latest) — 2023-09-03
- 1.9.0 — 2023-09-03
- 1.8.0 — 2023-09-03
- 1.7.0 — 2023-09-03
- 1.6.0 — 2023-08-26
- 1.5.0 — 2023-06-24
- 1.4.0 — 2023-05-23
- 1.3.0 — 2023-05-20
- 1.2.0 — 2023-05-07
- 1.1.0 — 2023-04-12
- 1.0.4 — 2023-03-18
- 1.0.3 — 2023-03-16
- 1.0.2 — 2023-03-13
- 1.0.1 — 2023-03-12
- 1.0.0 — 2023-03-12

## README

# djs-fm
DiscordJS File Manager

## Preview
```js
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](https://fidilen.com/discord).

---
_Source: https://npm.io/package/djs-fm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
