# discord-simple.js

> A simplified yet as powerful version of discord.js for faster bot development.

Latest version **1.12.12** (published 2022-02-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install discord-simple.js
pnpm add discord-simple.js
yarn add discord-simple.js
bun add discord-simple.js
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.12.12 |
| Published | 2022-02-02 |
| First published | 2022-01-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 90.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | TerThesz |
| Maintainers | terthesz |
| Keywords | discord, simple, bot, node, simple, discordjs, discordapp |

## Links

- npm: https://www.npmjs.com/package/discord-simple.js
- Repository: https://github.com/TerThesz/discord-simple.js
- Homepage: https://github.com/TerThesz/discord-simple.js#readme
- Issues: https://github.com/TerThesz/discord-simple.js/issues
- npm.io page: https://npm.io/package/discord-simple.js

## Dependencies (8)

- [fs](https://npm.io/package/fs.md) ^0.0.1-security
- [glob](https://npm.io/package/glob.md) ^7.2.0
- [path](https://npm.io/package/path.md) ^0.12.7
- [discord.js](https://npm.io/package/discord.js.md) ^13.6.0
- [@types/glob](https://npm.io/package/@types/glob.md) ^7.2.0
- [@discordjs/rest](https://npm.io/package/@discordjs/rest.md) ^0.2.0-canary.0
- [discord-api-types](https://npm.io/package/discord-api-types.md) ^0.26.1
- [@discordjs/builders](https://npm.io/package/@discordjs/builders.md) ^0.11.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.12.12 (latest) — 2022-02-02
- 1.12.10 — 2022-02-02
- 1.12.9 — 2022-02-02
- 1.12.8 — 2022-02-02
- 1.12.7 — 2022-02-02
- 1.12.6 — 2022-02-02
- 1.12.5 — 2022-02-02
- 1.12.3 — 2022-02-02
- 1.12.2 — 2022-01-31
- 1.12.1 — 2022-01-31
- 1.12.0 — 2022-01-31
- 1.11.0 — 2022-01-30
- 1.10.0 — 2022-01-30
- 1.9.3 — 2022-01-28
- 1.9.2 — 2022-01-27
- … 46 more at https://npm.io/package/discord-simple.js/versions

## README

<p align="center">
  <img width="50%" height="50%"  src="https://raw.githubusercontent.com/terthesz/discord-simple.js/dev/.github/images/package-logo-with-text.png" />

  <p align="center">Simplified yet still as powerful version of discord.js<br/> for faster bot development. 🤖</p>

  <hr/>
</p>

<div align="right">
  <img src="https://img.shields.io/github/workflow/status/terthesz/discord-simple.js/%F0%9F%9A%80%20publish?label=publish&style=flat-square" />
  <img src="https://img.shields.io/npm/v/discord-simple.js?label=discord-simple.js&style=flat-square" />
  <img src="https://img.shields.io/snyk/vulnerabilities/npm/discord-simple.js?style=flat-square" />
</div>

## Usage

First of all, you need to install this package. You can do so

using npm: <br/>

```
npm install discord-simple.js
```

or using yarn: <br/>

```
yarn add discord-simple.js
```

<br/>

other instructions can be found in the [documentation (coming soon)](https://google.com)

## Example

Here is an example of how to make a simple bot using this package:

###### src/index.js

```javascript
const { SimpleClient } = require('discord-simple.js');

const client = new SimpleClient('token', 'client_id').load_commands();

// you can add your code here as you would in discord.js

client.login();
```

###### src/commands/ping.js

```javascript
const { SimpleCommand } = require('discord-simple.js');

module.exports = class PingCommand extends SimpleCommand {
  name = 'ping';
  description = 'Ping command';

  async execute(interaction, client) {
    interaction.reply('🏓 pong');
  }
};
```

<br/>

As you might have noticed, this library is not efficient for simple bots like this. However, it introduces a great advantage when making a bigger and/or more complex bot.

## About

I made this package to help other developers (but mainly myself) to make discord bots faster without the need to copy and paste or google code all the time.

<br/>

This package:

- uses the [discord.js](https://discord.js.org/) v13 library made by Discord.
- has a full support for TypeScript.
- is still in development. More changes will be made in the near future.

<br/>

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