Giter Site home page Giter Site logo

whackdevelopment / discordbot-template-nodejs Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 1.0 49 KB

a discord bot template for nodejs - discord.js version - latest

Home Page: https://whackbot.com

License: GNU General Public License v3.0

JavaScript 100.00%
bot bot-template discord nodejs nodejs-discord-bot template

discordbot-template-nodejs's Introduction

NodeJS Discord Bot Template 👋

---

An open source discord.js bot template which is based on official discord.js guide to get started on making your very personal discord bot!

This template comes in with many in-built useful and flexible features, such as

Dynamic Command Handler:

  • My template comes in with a dynamic command handler! Using the command handler, you don't need to indulge in main bot files to create your very own command!
  • You can simply make command groups (categorized as folders) in the commands folder.
  • Your JavaScript commands goes inside respective category folders. A sample command is provided as ping command. You can use the same skeleton for all commands you want!

Dynamic Event Handler:

  • All events goes inside the events folder. You don't need to use client.on() in the main bot.js file to handle events.
  • Using simple skeleton code for events, you can make any amount of events in the events folder using the event handler.

Dynamic Trigger Handler:

  • Triggers occur when a specific "phrase" is said in a message content. For example, if you want your bot to react with ❤️ when someone say welcome in their message, you can do that with this trigger handler!
  • Trigger Handler also has the same skeleton structure as of command handler. The trigger handler is associated with the triggers folder. There are trigger categories, like reactions folder, in the trigger folder.
  • A sample trigger command is given in the hello.js trigger file.

Dynamic Slash Command Handler:

  • My template comes with a dynamic slash command handler with very easy to customize and make slash commands.
  • The commands, in the slashCommands folder, receive an CommandInteraction object. You can see the documentation of discord.js for all the properties and methods available.
  • IMPORTANT: In the template, we are sending the slash commands to discord to be registered only to 1 guild. That is because their are 2 types of slash commands, guild and global. Guild commands are restricted to 1 guild but whenever you update them, they take effect immediately, whereas global commands take upto 1 hour to take effect. So use guild commands in development and global commands for production.

Dynamic Buttons Interaction Handler:

  • This template comes with a dynamic button interaction handler to receive and process button interactions.
  • Buttons can be classified in two category folders.

Dynamic Modals Interaction Handler:

  • Easily handle incoming modal submittions using the template handler!
  • Modals can be categorized in different folders.

Dynamic Context Menu Handler:

  • All new addition to discord API is context menus! You can right click a user or message -> Apps to find these options!
  • This template will register all your context menu options and dynamically interact with them! Worth a try.

[NEW] Dynamic Autocomplete Interaction Request Handler:

  • Easily handle incoming autocomplete requests using the template handler!
  • Perfectly dynamic for all your needs!

Highly Customizable:

Using the template is so easy and fun, you would know. As the template does not rely on any external dependencies and written in javascript, it is highly customizable to any extend. There's no end to your creativity!

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

discordbot-template-nodejs's People

Contributors

lucifermorningstardev avatar

Stargazers

 avatar

Forkers

upbots-org

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.