TejasLamba2006 / uptime-downtime-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slash-Command Hanlder

Discord.js Slash-Command Handlder

Can I use this handler in my bot?

Sure you can! You can remove credits if you want!

For People making a youtube video on it

There should be a line in your video description

Credits to visa2code - https://youtube.com/@visa2code
His discord server - https://discord.gg/rainbow-studios-free-codes-869916537610448897

Any video not following this will be taken down!

Setup this sweet handler

  • Step 1
    Create a .env file with this template
TOKEN=secret

Fore replit users
click here

  • Step 2
    Fill ./botconfig/config.js file with this template
module.exports = {
  "token": process.env.TOKEN,
  "dbType": "", //quick.db OR MONGO
  "MONGOtype": "", //quickmongo OR MONGOOSE
  "MongoURL": "", //if dbType = MONGO, this is required else skip
  "loadSlashsGlobal": true,
  "dirSetup": [{
    "Folder": "Info", "CmdName": "info",
    "CmdDescription": "Grant specific Information about something!"
  }]
}

Tip: How to get a mongodb URL?

  • Step 3 Now te final step. Run npm install and it will install all necessary packages. At last run npm run start or node .

    And your bot should be up and running!
    For Emojis Click here

Problems? or cant host it?

You can ask help in my support server by clicking here

Contributing

Steps to contribute:

Contirbute

That's it Thanks for contributing!

License

DBAD License

Support

For support join our discord support server.

Authors

About

License:Other


Languages

Language:JavaScript 99.9%Language:Nix 0.1%