techii
v2.2.2
Published
Quickly create and start a discord bot with this easy-to-use CLI!
Downloads
75
Maintainers
Readme
Techii CLI
Table of contents
- Installation
- Usage
- Getting a token
- What is a prefix?
Installation
In your terminal, run npm i techii
.
Getting a token
- To get a token, you must create an application. To create an application, go to the discord developer portal.
- Click "create new", and name it the name you want to name your bot. (You can always change it later).
- Go to the "bot" tab and click "create a bot". Confirm using "Yes, do it".
- Now, go to the oAuth2 tab and click the "bot" parameter, then click the permissions you need for the bot.
- Copy the link and invite the bot to your server.
- Now go back to the "bot" tab and click "copy" on the token.
There you go!
What is a prefix
- A prefix is the character that comes before the command. For example, in
)help
, the)
character is the prefix. Another example is-help
, where the prefix is-
.
Usage
To use the techii package, run npx techii
in your terminal. Select "New Project". This will prompt you to enter your token (see getting a token) and your prefix (see what is a prefix?).
Press enter, and it will install the discord.js
and fs
modules, and create a command and event handler.
Making new commands
To make new commands, run npx techii
in your terminal.
This time, select "Generate Command/Event". Select "Command".
If you are coding your own command, select "Make your own".
If you want to select from a range of auto-generated commands, select "Pre-generated".
If you are making your own, enter the command category and command name.
There you go! Now go inside the 'commands' folder, go inside the folder of your category, and select the file that says '[cmd name].js'.
Now enter your code in the run
function!
Making new events
To make new events, run npx techii
in your terminal.
This time, select "Generate Command/Event". Select "Event".
Enter the event usage, such as mod-logs.
Then select the event you are using.
There you go! Now go inside the 'events' folder, go inside the folder of your event, and select the file that says '[usage].js'.
Now enter your code in the module.exports = (bot) => {}
function!