molecube
v1.0.0
Published
A command line application to help with generating discord.js bots.
Downloads
1
Readme
About The Project
molecube is a simple Command Line Application written in NodeJS. It helps you generate discord.js bots. Again, this is a discord bot generator, not a bot itself. Its configuration is saved in molecube.json.
molecube offers you:
- Creating a project in discord.js
- A command handler
- A event handler
- Easly generate events with its documentation links
- Easly generate commands
- Conection to a database
- Simplicity
Full Changelog: https://github.com/raining-codes/molecube/commits/Release
Getting Started
Installing molecube is pretty easy and straightforward.
Installation
To use with yarn do:
yarn global add molecube
To use with npm do:
npm install -g molecube
Usage
Making a new bot
To make a new discord bot using molecube, open terminal in your preffered location and type molecube new
. This will ask you a couple of questions, These questions are:
- Bot name
- Your preffered language
- Your package manager
- Your bots token
- Your MongoDB Database URI (If you don't have a database just skip this)
After you've answered these questions, molecube will create a new folder and create a simple ping slash command.
Generating events or commands
To add your own custom commands and events, you need to follow these instructions.
- Open terminal in a molecube project directory.
- Run
molecube gen
, this will ask you to generate a event or command. - Select your option and press enter.
If you selected event, theres gonna be list of all events and you can create multiple events at once. Your generated event files are gonna be located in src/events.
If you selected command, it will ask for command name and description. Command file will be located in src/commands
For more examples, please refer to the Documentation
License
Distributed under the MIT License.
Contact
Your Name - George Tskitishvili
Project Link: https://github.com/raining-codes/molecube