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

scivity

v2.5.1

Published

Create your own premium bots and control them for free

Downloads

11

Readme

About

A library uses the Discord web hook to create premium bots with a name and image for each server without making real bots.

  • Beginner friendly
  • Easy to use
  • Ease of controlling bot information for each server
  • Ease of making premium commands
  • Easy to remove and add premium boots for each Server
  • 24 hour technical support
  • It's For Free

Installation

npm install scivity

Usage

const scivity = require("scivity")
const app = scivity.App()

Examples

events

// When the server takes premium
app.up("addPremiumServer", server => {
    console.log(`add ${server.id}`)
})

// When the server deletes Premium
app.up("removePremiumServer", server => {
    console.log(`remove ${server.id}`)
})

// When the name of the premium bot is changed
app.up("botNameChange", bot => {
    console.log(`change ${bot.username}`)
})

// When the avatar of the premium bot is changed
app.up("botAvatarChange", bot => {
    console.log(`change ${bot.avatar}`)
})

// When the bot is running
app.up("online", async bot => {
    bot.user.setActivity("Scivity Bot") // bot status change
    console.log(`Login With: ${bot.user.tag}`)

    // discord.js code 

    bot.on("message", message => {
        var check = app.check(message.guild.id) // Make sure that the server you are writing in has a premium
        if(!check) return
        if(!message.content.startsWith("!ping")) return
        const Embed1 = app.Embed() // Create Discord Embed
            .setTitle("Loading..")
            .setColor("YELLOW")
        const Embed2 = app.Embed() // Create Discord Embed
            .setTitle("Ping Pong")
            .setColor("BLUE")
        app.send(message.channel, {embeds:[Embed1]}).then(msg => { // Send a message from the server premium bot
            setTimeout(() => {
                app.edit(msg,{embeds: [Embed2]}) // Edit message
            },2000)
        })
    })


})

app.login("Bot Token") // Login with your bot token

methods

app.premium.guilds.array() // Get a list of all premium servers in the bot

app.premium.guilds.get("server-id") // Get server information

app.premium.guilds.add("server-id",'time-in-seconds') // Add premium server

app.premium.guilds.remove("server-id") // Remove server from premium

app.premium.guilds.get("server-id").bot.setName("bot-name") // Change bot name for a server

app.premium.guilds.get("server-id").bot.setAvatar("avatar-url") // Change bot avatar for a server

app.premium.guilds.get("server-id").bot.setEndTime('time-in-seconds') // Premium bot time change

app.check("server-id") // Ensure that the server has a premium

app.send(channel, {embeds: [embed], content: "message"}) // Send a message from the premium server bot

app.edit(message, {embeds: [edit_embed], content: "edit message"}) // Editing a message