Giter Club home page Giter Club logo

discord_deploy's Introduction

First of all, thank you guys for installing !

A CLI to deploy slash guild commands easily.

TypeScript Support is Experimental.

Before Start

  • "BOT_TOKEN", "GUILD_ID" and "CLIENT_ID" env variables are required;
  • "commands" directory must exists anywhere in your project.
  • GUILD_TEST_ID should exists in test mode, otherwise GUILD_ID will be used.

If you are using Discord.js, each command must export an object with have 'data' property, witch contains the instance of command builder. in case of eris.js, you can pass an object containing some properties. see the examples below:

Example (Discord.js):

// commands/example01.js
module.exports = {
  data: new SlashCommmandBuilder(),
  ...
};
 // commands/example01.mjs
 export default {
   data: new SlashCommmandBuilder(),
   ...
 };

Eris.js:

// commands/example01.js
module.exports = {
  name: 'command-name', // required field,
  description: 'command-description' // required field,
  ...
};
 // commands/example01.mjs
 export default {
    name: 'command-name',
    description: 'command-description',
    ...
 };

Why ?

Simple:

With one command, you are done to deploy slash commands easily. Supports TypeScript Command Files with the power of esbuild

Tiny:

Just 3.49KB.

Supports CommonJS and ESM files.

Faster:

Uses streams and dynamic imports to support large files on demand.

Install

 npm install discord_deploy@latest

Usage

  Usage:
    $ discord_deploy <command> [options]

    Commands:
      deploy
      clear   clear esbuild cache.

    For more info, run any command with the `--help` flag:
      $ discord_deploy deploy --help
      $ discord_deploy clear --help

    Options:
      -h, --help     Display this message
      -v, --version  Display version number

discord_deploy's People

Contributors

dependabot[bot] avatar felipee-monteiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ipankys

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.