@sheweny/cli
v2.2.3
Published
Cli for sheweny framework
Downloads
51
Readme
Sheweny CLI
This module is a CLI (Command Line Interface) for create discord bots with Sheweny framework.
Guide : Click here
Getting started ✨
Prerequisites 👀
Node.js 16.6.0 or newer is required.
Installation 🎈
For creating a discord bot project with the Sheweny framework, sheweny's command line interface will make your life easier. To use it is very simple, you just need to have npm (or yarn), and to install the module.
Install with npm
npm install -g @sheweny/cli
Install with yarn
yarn global add @sheweny/cli
Once the command line interface is installed, you can go to the next section to learn more about the different commands.
Usage 💡
Informations 📖
The command line interface has several prefixes which are sheweny
and shw
, so for the following commands, you can use one of the 2 prefixes.
The help command is also at your disposal if you are too lazy to come to the guide.
sheweny --help
Create command ⛏️
To create a project, you just need to run the following command.
sheweny create [project_name]
Then you will have a series of questions that will allow you to refine the result of your project creation and to have a bot start that meets your expectations. Depending on what you have answered, you will have access from the start, the creation of the project has commands, events, or interactions.
For more information, you can run the help command: sheweny --help create
Add command 🔥
To add a template in your project with the sheweny framework, you just need to run the following command.
sheweny add
You have several types of template addition depending on what you want to add
- command
- event
- button
- selectmenu
- inhibitor
After choosing the type of addition, you can answer the questions that are offered to once again refine the result of adding a template.
For more information, you can run the help command: sheweny --help add
.
Init command 🏁
This command is used to initialize the Command Line Interface (CLI) with an existing project .
Version command 📈
This command return the version of the CLI (not the framework).
After having done all this, you can of course edit the project code as you wish with an editor, using the rest of the Guide or with the Documentation.
Common errors ☢️
Execution Policy 🔴
If you have an error :
File cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details
Changed script execution parameter. On an administrator powershell, you can do this by running the following command:
Set-ExecutionPolicy Unrestricted
Contributions/Licence 🌍
This project has an MIT license. And you are welcome to contribute.
Need help 👍
If you have question or need help, open issue or join support server.