GithubHelp home page GithubHelp logo

isabella232 / commando Goto Github PK

View Code? Open in Web Editor NEW

This project forked from discordjs/commando

0.0 0.0 0.0 2.13 MB

Official command framework for discord.js

License: Apache License 2.0

JavaScript 99.11% Shell 0.47% TypeScript 0.42%

commando's Introduction

Commando

Discord Downloads Version Dependency status Build status

About

Commando is the official command framework for discord.js. It is flexible, fully object-oriented, easy to use, and makes it trivial to create your own powerful commands. Additionally, it makes full use of ES2017's async/await functionality for clear, concise code that is simple to write and easy to comprehend.

Features

  • Plain command names and aliases
  • Regular expression triggers
  • Robust parsing of arguments (with "quoted strings" support)
  • Sophisticated argument system (optional)
    • Automatic prompting for arguments that aren't provided
    • Type system with rules, automatic validation, and parsing to usable values
      • Basic types (string, integer, float, boolean)
      • Discord objects (user, member, role, channel, message)
      • User-defined custom types
      • Union types
    • Automatic re-prompting of invalid arguments
    • Optional arguments with default values
    • Infinite arguments (arguments that accept as many values as provided)
  • Multiple responses to commands
  • Command editing (user edits their message that triggered the command, and the bot's response updates with it)
  • Command reloading, as well as loading/unloading
  • Command throttling/cooldowns

Installation

Node 12.0.0 or newer is required.
npm install discord.js@12 discord.js-commando

Documentation

View the docs here.
See the discord.js documentation as well.

commando's People

Contributors

gawdl3y avatar dragonfire535 avatar icrawl avatar favna avatar brandonbothell avatar ruintd avatar spaceeec avatar dukeofsussex avatar jonahsnider avatar dlom avatar develogix avatar doctah avatar notsugden avatar sontrinh avatar sirdeadlystrike avatar magnushjensen avatar mitorisia avatar nick-abbott avatar oliverbalfour avatar qanazoga avatar lahlidahlia avatar weeco avatar evaera avatar geekahedron avatar geisterfurz007 avatar izexi avatar lze3 avatar nearbyplayer avatar jakeweary avatar yuta0801 avatar

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.