Giter VIP home page Giter VIP logo

discord.js-bot-framework's Introduction

Archived

This repo has been archived, don't use this. It's outdated, opinionated and overall not my best work as this was my first JavaScript project. I don't think this will be much help to anyone, but would you part ways with your (first) baby? ๐Ÿ˜ญ


JDB

discord.js-bot-framework

License: MIT

This is a framework build on top of discord.js for quickly and easily creating powerful Discord bots. You don't need much Javascript experience to get started on a project using this framework, if you want to quickly add new commands, check out this guide to adding new commands. Still not sure where to start? Come join my Discord Server, where I'll try and answer all the questions you have.

With Message Content Access becoming a privileged intent I thought I'd build a framework where you're pretty much ready to go after installing it. This framework doesn't even listen to the message/messageCreate event. On every restart the framework will check for any changes in your Slash Command data and automatically update it accordingly.

Zero to none experience with Javascript? Check out this page where you can follow along step-by-step to create your own Discord bot using this framework.


Includes

  • Command handler (scroll further down to see all the information)
  • Event/listener handler
  • Permission handler
  • Slash Commands
  • Buttons
  • Select Menus

Commands

Complete Notes
โœ… Built-in Slash Commands Message Content Access is becoming a privileged intent and that's why this framework makes full use of interactions (slash commands, buttons and select menus) instead of message content. In fact, we don't even listen to the messageCreate event.
โœ… Automatically update Slash commands This framework will check for any changes to your Slash Command data and update it accordingly.
โœ… Different types of slash commands Configure your command to be global, test server only or server specific. Allowing you to test properly, release the command to specific servers and finally make it available globally.
โœ… Required and optional commands Configure whether or not your command is a required command or optional. Required commands can't be disabled by individual servers, optional commands can.
โœ… Throttling Configure command cooldowns for all your commands! Allow infinite usages for a command that barely does anything, and restrict resource-heavy commands to 1 usage in 120 seconds. (That's just an example, you can literally do anything.)
โœ… Permission Configure a required permission level for your commands. Also configure any additional required Discord Permissions for the client/bot and the member calling the command. Very useful for moderation functionality.
โœ… Global disable & enable Found a major bug in one of your commands? Disable it in your slash configuration export and the Slash Command will automatically be disabled, be it global, test server or server specific commands.
โœ… NSFW channel restrictions Configure whether or not your command is SFW and automatically restrict it to NSFW channels if it's not.
Incomplete Notes
โŒ› Add support for DM commands At the time of writing this, Slash Commands can be called in a bots DM channel. I'd like to add full support for DM Slash Commands.

Media

The help command - Select a command for detailed information

DHC

The help command is fully modular, it will automatically apply more Select Menus based on the amount of commands

MHC

A powerful eval command, with appropriate protection to protect it from the wrong hands

EVAL

discord.js-bot-framework's People

Contributors

codacy-badger avatar code-factor avatar dependabot[bot] avatar mirasaki avatar

Stargazers

 avatar  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.