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

asiudgasidashdoashdgdf

v3.0.0

Published

An effective and easy-to-use package for making, "pages" in discord.js for Discord bots.

Downloads

1

Readme

❔ About

❔ About DiscordEasyPages

An effective and easy-to-use package for making discord.js pages for Discord bots. Built using discord.js v13. However, DiscordEasyPages should work on older versions. Each page supplied must be a message embed. Inspired by Discord-pagnation.

Demo DiscordEasyPages in action!

📋 Information

❕ Required Programs and Dependencies

This package REQUIRES node.js. Without it, this package cannot run nor download. You'll also need the package Discord.js. When done, run npm install discordeasypages in your terminal. If you need help, view the example below.

❗ Example

Need help using my package? Simple! You must get your discord bot token for this to work.

// Librarys //
const Discord = require("discord.js")
const DiscordEasyPages = require("discordeasypages")

// Bot //
const Bot = new Discord.Client({
  partials: ["MESSAGE", "CHANNEL", "REACTION"],

  presence: {
    activity: {
      name: `Example bot for the package DiscordEasyPages!`,
      type: "PLAYING"
    },
    status: "online"
  }
})

const Prefix = "^"

// Code //
Bot.on("message", (message) => {
    if (message.author.bot){
        return
    }

    if (!message.content.startsWith(Prefix)){
        return
    }

    const Arguments = message.content
        .slice(Prefix.length)
        .trim()
        .split(/ +/g)
    const command = Arguments.shift()

    if (command.toLowerCase() == "page"){
        const Embed = new Discord.MessageEmbed()
            .setTitle("Page 1")
            .setDescription("Welcome to page 1!")

        const Embed2 = new Discord.MessageEmbed()
            .setTitle("Page 2")
            .setDescription("Welcome to page 2!")

        DiscordEasyPages(message, [Embed, Embed2], ["⬅", "➡"])
    }
})

console.log("---------- Logging into Bot ----------") 
Bot.login("YourBotTokenFromDiscordDeveloperHubGoesHere")

⁉ Support

If you acquire help, we ask that you join KingCh1ll's Discord Server & open a ticket. If you don't have discord, you may open up a discussion!