Skip to content
/ defected-bot Public template

Defected Bot is a Discord.js v12 bot template which features a command & event handler, command cooldown, changeable prefix with MongoDB & more.

License

Notifications You must be signed in to change notification settings

patriksh/defected-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

defected-bot

Defected Bot is a Discord.js v12 bot template which features a command & event handler, command cooldown, changeable prefix with MongoDB & more.

Setup

  1. Rename config.sample.json to config.json.
  2. Edit it by putting in your information (bot token, MongoDB URI).
  3. npm install
  4. npm start app.js

Commands

  • say - Repeats the defined message.
  • botstats - Displays the bot stats.
  • ping - Displays the bot latency.
  • prefix - Changes bot's prefix.
  • pussy - Sends an image of a cat.

Command arguments

(module.exports)

  • name - Command name.
  • description - Command description for help.
  • usage - How to use the command (needed args).
  • aliases - Command aliases, more 'strings' that will trigger this same command.
  • permissions - Permissions user needs to have to execute the command, e.g. 'MANAGE_CHANNELS'.
  • botPermissions - Permissions bot needs to have to execute the command, e.g. 'EMBED_LINKS'.
  • nsfw - If set to true, command will work only in NSFW channels.
  • cooldown - Command cooldown in milliseconds, '0' to disable.
  • ownerOnly - If set to true, command will work only for owners, whose IDs are listed in config.json.

Inspired by

https://github.com/KSJaay/Alita

About

Defected Bot is a Discord.js v12 bot template which features a command & event handler, command cooldown, changeable prefix with MongoDB & more.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy