GithubHelp home page GithubHelp logo

kkkermit / discordbotv14-template Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 5.0 60 KB

Prefix & Slash command discord bot template

License: MIT License

JavaScript 100.00%
discord discord-bot discord-js djs djs-v14 prefix-commands slash-commands-handler bot slash-commands discordbot

discordbotv14-template's Introduction

SlashCommand & Prefix Handler

This package handler uses both slash commands and prefix command

  • It's a rework on Jackson's slash command handler and follows the same base structure as it and is based on it. All I have done is made improvements to it!

Node version -

  • Built using both node version 18.13.0. Some package may struggle to install on newer node versions. If so, you will need to install node version manager to switch between node versions. Guide found here.

Setting up -

  • Setting up is very easy to do, all you need to do is edit 2 files!
  1. Firstly run the command in your terminal npm i to install the necessary packages from the package.json file.

  2. Go into the .example.env file and remove the .example part so it just reads .env

  3. Fill out all sections in the new .env file.

  4. Head over to the config.js file found in the src folder.

  5. Edit the config.js file to your liking but make sure to keep the same naming conventions. Only change the parts in " "

  • Once you've done this, you should be ready to go, the bot should be fully functioning!

  • NOTE: For this, you will need to install an older version of mongoDB, 6.0.12. To install this run npm i [email protected]

Using commands -

  • Once you've set the bot up, there a few commands I've already added for you. You can see these commands by browsing through both the prefix and commands folders.

  • The default prefix for the bot is a ? unless you've changed it in the config.js file.

Whats the trigger folder? -

  • The trigger folder is a new thing I've added. This is built for handling js message.content.includes aspects.

  • For this, if you @ the bot, it will return a message with the current slash commands in the commands folder.

I'm getting errors -

  • If you are getting persistent errors in your code, try your best to work them out yourself, but if you get stuck, you can open a JavaScript help post here

  • Alternatively you can add me on discord here and DM me your issue and I can try my best to help, however, I'm very tight on time at the moment. You'd be best opening a help post!

If you like this repo, please be sure to give it a star ⭐

My GitHub - Kkkermit

discordbotv14-template's People

Contributors

kkkermit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.