Skip to content

The easiest JavaScript/TypeScript Discord bot framework.

License

Notifications You must be signed in to change notification settings

Ecstarjs/Ecstar

Repository files navigation

image

Ecstar

npm version discord.js version Gitpod Ready-to-Code

📃Introduction

Ecstar is the easiest framework for Discord.js.

📖Document

ecstar.js.org

📥Installation

Install Ecstar

npm install ecstar

yarn add ecstar

💬Usage

*You can also use plain JavaScript, but TypeScript is recommended.

// src/index.ts
import { Client } from 'ecstar';

new Client({ prefix: '!' }).login(/* token */);

// src/commands/ping.ts
import { command } from 'ecstar';

export default command(() => ({
  name: 'ping', // Name of the command
  run({ message, send }) {
    /* We will implement as usual. */
    message.channel.send('pong!');
    /* There is a more convenient way. */
    send('pong!');
  },
}));

Run it, and it's done!

image

See more examples , document

🎫License

👀Author

About

The easiest JavaScript/TypeScript Discord bot framework.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages