@devartsite/discordbot
v2.3.3
Published
<h1 align="center"> @devartsite/DiscordBot </h1> <p align="center"> <a href="https://nodei.co/npm/@devartsite/discordbot"><img src="https://nodei.co/npm-dl/@devartsite/discordbot.png?months=5&height=2" alt="npm"></a> <a href="https://nodei.co/npm/@d
Downloads
62
Maintainers
Readme
Installation
To install DiscordBot:
npm i @devartsite/discordbot
Basic example
const DiscordBot = require('@devartsite/discordbot')
const client = new DiscordBot({ DiscordBotOptions })
client.login(token)
- By default DiscordBot integrates a Help Module
options
ggid
- String (global guild id) Id of the developer’s guild (default "null
")gcid
- String (global channel id) Id of the developer’s channel on developer’s guild (default "null
")dev
- String Name of the main developer (default "Anonymous
")prefix
- String Character string to recognize a command of a message (default "&
")dbname
- String Name of mongo database (default "null
")customHelp
- Object object containing the title and custom description for the help commandtitle
- String Title help command (default "null
")description
- String Description help command (default "null
")
modulesPath
- String Your modules folder path (default "null
")useDefaultModule
- Boolean|Array Module selection enabled (default "['*']
")
Module implementation
DiscordBot-project
├── modules
│ ├── index.js
│ ├── commands.js
│ ├── methods.js
│ ├── responses.js
│ └── events.js
└── index.js
ToDo
- Client:
- ✓ Base discord.js
- ✓ MongoDb connection
- ✓ Initialisation module and start main script
- ✓ Message embed default data assignation
- Modules
- ✓ Check module existance
- ✓ Check module components
- ✓ Main script
- ✓ Commands
- ✓ Events
- ✓ Methods
- ✓ Responses
- ✓ Start main script