https://github.com/bubycloudr/discord-simple.js
Simplified yet still as powerful version of discord.js for faster bot development
https://github.com/bubycloudr/discord-simple.js
bot discord npm package
Last synced: about 1 year ago
JSON representation
Simplified yet still as powerful version of discord.js for faster bot development
- Host: GitHub
- URL: https://github.com/bubycloudr/discord-simple.js
- Owner: bubycloudr
- License: mit
- Created: 2022-01-18T15:34:58.000Z (about 4 years ago)
- Default Branch: prod
- Last Pushed: 2022-02-02T14:47:00.000Z (about 4 years ago)
- Last Synced: 2025-02-18T01:16:53.550Z (about 1 year ago)
- Topics: bot, discord, npm, package
- Language: TypeScript
- Homepage: https://npmjs.com/discord-simple.js
- Size: 1.56 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README

Simplified yet still as powerful version of discord.js
for faster bot development. 🤖
## Usage
First of all, you need to install this package. You can do so
using npm:
```
npm install discord-simple.js
```
or using yarn:
```
yarn add discord-simple.js
```
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');
}
};
```
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.
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.