New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

techii

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

techii

Quickly create and start a discord bot with this easy-to-use CLI!

latest
npmnpm
Version
2.2.2
Version published
Maintainers
1
Created
Source

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!

TIP: Watch Mr. Techy on YouTube for tutorials on using this CLI/command handler.

Keywords

CLI

FAQs

Package last updated on 15 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts