1.12.12 • Published 2 years ago

discord-simple.js v1.12.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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)

Example

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

src/index.js
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
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 v13 library made by Discord.
  • has a full support for TypeScript.
  • is still in development. More changes will be made in the near future.
1.12.12

2 years ago

1.12.10

2 years ago

1.12.9

2 years ago

1.12.8

2 years ago

1.12.7

2 years ago

1.12.6

2 years ago

1.12.5

2 years ago

1.12.3

2 years ago

1.12.2

2 years ago

1.12.1

2 years ago

1.12.0

2 years ago

1.11.0

2 years ago

1.10.0

2 years ago

1.9.3

2 years ago

1.9.2

2 years ago

1.8.18

2 years ago

1.8.17

2 years ago

1.8.16

2 years ago

1.8.13

2 years ago

1.8.12

2 years ago

1.8.11

2 years ago

1.8.10

2 years ago

1.8.8

2 years ago

1.8.6

2 years ago

1.8.3

2 years ago

1.8.2

2 years ago

1.8.1

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.3

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.11

2 years ago

1.3.10

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.6

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago