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

tech-tip-cyber-test1

v1.0.9

Published

Making Your Discord.JS BOT Coding Easier With Lots Of Features!

Downloads

23

Readme

Tech Tip Cyber

Making Your Discord.JS BOT Coding Easier With Lots Of Features! We Have Made This Package To Make Your Coding Easy. You Can Check Out Our Tutorials Videos Of Discord.JS On YouTube And Join Our Discord Server For All Kind Of Help And HangOut.

Contents

Installation

npm install tech-tip-cyber

To Install Latest Version Use:

npm install tech-tip-cyber@latest

Usages

  • More To Come Soon™

Examples

Capitalize

const { Capitalize } = require('tech-tip-cyber') // Importing Package

module.exports = { // Change To Your Handler
    name: 'capital',
    description: 'Capitalize First Alphabet Of String',
    async execute(message, args) { // Change To Your Handler
        const text = `hey, How Are You?`
        if(!text) return message.reply('Provide Text') // If No Text is Provided

        const capitaled = await Capitalize({
            Capital: text
        });
        message.channel.send(capitaled);
    }
}

ChatBot

  • Using Command
const { chatBot } = require('tech-tip-cyber') // Importing Package

module.exports = { // Change To Your Handler
    name: 'chat-bot',
    description: 'Chat With BOT',
    async execute(message, args) { // Change To Your Handler
        const msg = args.join(' '); // For Text After `.chat-bot`
        if(!msg) return message.reply('Provide Text') // If No Text is Provided
        if(message.author.bot) return // If Bot Messages Then It Won't Reply
        if(message.channel.type === 'dm') return // If Message Is Sent In DMs Then It Won't Reply
        if(message.attachments.size > 0) return message.reply('I Can\`t read Images') // If Images Are Sent BOT Will Send This
        else {
            const reply = await chatBot({ Message: msg }); // Get The Message User Sent, Message: <msg>
            return message.channel.send(`> ${message}\n${reply}`); // Reply To User's Message
        }
    }
}

PreView

  • Always On ChatBot
const { chatBot } = require('tech-tip-cyber') // Importing Package

client.on('message', async message => {
    if(message.channel.id === '777919296595820564') { // Channel ID
    if(message.author.bot) return // If Bot Messages Then It Won't Reply
    if(message.channel.type === 'dm') return // If Message Is Sent In DMs Then It Won't Reply
    if(message.attachments.size > 0) return message.reply('I Can\`t read Images') // If Images Are Sent BOT Will Send This
    else {
        const reply = await chatBot({ Message: message }); // Get The Message User Sent, Message: <message>
        return message.channel.send(`> ${message}\n${reply}`); // Reply To User's Message
        }
    }
})

PreView

Fetch Message

Mostly Used In Ticket System: Transcript

Credits: reconlx

const { MessageAttachment } = require('discord.js') // Importing discord.js Package For Sending As Attachment
const { fetchMessage } = require('tech-tip-cyber') // Importing Package

module.exports = { // Change To Your Handler
    name: 'fetch-messages',
    description: 'Fetch Messages From A Channel',
    execute(message, args) { // Change To Your Handler
        
        fetchMessage(message, 10).then((data) => { // fetchMessage(message, <10>) It Will Fetch 10 Messages From Channel, Can Be Any Number Less Than 100
            const file = new MessageAttachment(data, "fetched.html"); // Making Attachment File
            message.channel.send(file); // Send As Attachment
        });
    }
}

PreView Download File And Open It PreView

IP Address

const { ipAddress } = require('tech-tip-cyber') // Importing Package


module.exports = { // Change To Your Handler
    name: 'ip',
    description: 'Get Random IP Address',
    execute(message, args) { // Change To Your Handler
        message.channel.send(ipAddress()) // OutPut: 250.52.169.98, 165.215.159.165, 94.246.4.97
    }
}

PreView

Random Email

  • WithOut Personalized Domain
const randomMail = require('tech-tip-cyber') // Importing Package

module.exports = { // Change To Your Handler
    name: 'email',
    description: 'Get Random Email',
    execute(message, args) { // Change To Your Handler
        message.channel.send(randomMail()) // OutPut: [email protected], [email protected], [email protected]
    }
}

PreView

  • With Personalized Domain
const randomMail = require('tech-tip-cyber') // Importing Package

module.exports = { // Change To Your Handler
    name: 'email',
    description: 'Get Random Email With Personalized Domain',
    execute(message, args) { // Change To Your Handler
        message.channel.send(randomMail({ domain: 'techtipcyber.com' })) // OutPut: [email protected], [email protected], [email protected]
    }
}

PreView

Random Name

const { randomName } = require('tech-tip-cyber') // Importing Package

module.exports = { // Change To Your Handler
    name: 'name',
    description: 'Get Random Name',
    execute(message, args) { // Change To Your Handler
        message.channel.send(randomName()) // OutPut: Kristen Ortiz, Cally Arias, Wallace Graves
    }
}

PreView

Random Number

const { randomName } = require('tech-tip-cyber') // Importing Package

module.exports = { // Change To Your Handler
    name: 'number',
    description: 'Get Random Number',
    execute(message, args) { // Change To Your Handler

        const number = await randomNumber({
            Minimum: 5, // Minimum Number
            Maximum: 45, // Maximum Number
        }) // Will Show OutPut From 5(Minimum) To 50(Minimum+Maximum)
        message.channel.send(number) // OutPut: 5, 49, 50, 17, 29
    }
}

Random PassWord

const { password } = require('tech-tip-cyber') // Importing Package

module.exports = { // Change To Your Handler
    name: 'pass',
    description: 'Get Random PassWord With Length Of PassWord',
    execute(message, args) { // Change To Your Handler
        message.channel.send(password(7)) // password(<7>) <7> Is Length Of PassWord // OutPut: Co1L5nE, fO8xkv5, XQJyapg
    }
}

PreView

YouTube Created Date

const { YTDate } = require('tech-tip-cyber') // Importing Package

module.exports = { // Change To Your Handler
    name: 'yt-date',
    description: 'Get YouTube Channel Created Date',
    execute(message, args) { // Change To Your Handler

    const name = args.join(' '); // Get The Channel Name, i.e: .yt-sub <Channel Name>

    YTDate({ YTChannel: name }).then(date => { // Getting Subscribers Of Channel
            message.channel.send(date) // Send Subscribers Count
        })
    }
}

PreView

YouTube Description

const { YTDescription } = require('tech-tip-cyber') // Importing Package

module.exports = { // Change To Your Handler
    name: 'yt-desc',
    description: 'Get YouTube Channel Description',
    execute(message, args) { // Change To Your Handler

    const name = args.join(' '); // Get The Channel Name, i.e: .yt-sub <Channel Name>

    YTDescription({ YTChannel: name }).then(desc => { // Getting Subscribers Of Channel
            message.channel.send(desc) // Send Subscribers Count
        })
    }
}

PreView

YouTube Subscribers

const { YTSub } = require('tech-tip-cyber') // Importing Package

module.exports = { // Change To Your Handler
    name: 'yt-sub',
    description: 'Get YouTube Channel Subscribers',
    execute(message, args) { // Change To Your Handler

    const name = args.join(' '); // Get The Channel Name, i.e: .yt-sub <Channel Name>

    YTSub({ YTChannel: name }).then(subs => { // Getting Subscribers Of Channel
            message.channel.send(subs) // Send Subscribers Count
        })
    }
}

PreView

YouTube ThumbNail

const { YTThumbNail } = require('tech-tip-cyber') // Importing Package

module.exports = { // Change To Your Handler
    name: 'yt-thumb',
    description: 'Get YouTube Channel ThumbNail',
    execute(message, args) { // Change To Your Handler

    const name = args.join(' '); // Get The Channel Name, i.e: .yt-sub <Channel Name>

    YTThumbNail({ YTChannel: name }).then(thumb => { // Getting Subscribers Of Channel
            message.channel.send(thumb) // Send Subscribers Count
        })
    }
}

PreView

YouTube Videos

const { YTVideo } = require('tech-tip-cyber') // Importing Package

module.exports = { // Change To Your Handler
    name: 'yt-vid',
    description: 'Get YouTube Channel Total Videos',
    execute(message, args) { // Change To Your Handler

    const name = args.join(' '); // Get The Channel Name, i.e: .yt-sub <Channel Name>

    YTVideo({ YTChannel: name }).then(vid => { // Getting Subscribers Of Channel
            message.channel.send(vid) // Send Subscribers Count
        })
    }
}

PreView

YouTube Views

const { YTView } = require('tech-tip-cyber') // Importing Package

module.exports = { // Change To Your Handler
    name: 'yt-view',
    description: 'Get YouTube Channel Total Views',
    execute(message, args) { // Change To Your Handler

    const name = args.join(' '); // Get The Channel Name, i.e: .yt-sub <Channel Name>

    YTView({ YTChannel: name }).then(view => { // Getting Subscribers Of Channel
            message.channel.send(view) // Send Subscribers Count
        })
    }
}

PreView