npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

techii

v2.2.2

Published

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

Downloads

75

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

  1. To get a token, you must create an application. To create an application, go to the discord developer portal.
  2. Click "create new", and name it the name you want to name your bot. (You can always change it later).
  3. Go to the "bot" tab and click "create a bot". Confirm using "Yes, do it".
  4. Now, go to the oAuth2 tab and click the "bot" parameter, then click the permissions you need for the bot.
  5. Copy the link and invite the bot to your server.
  6. 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.