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

@azurystudio/dbl-azury

v1.0.5

Published

Integrate with Azury Botlist

Downloads

12

Readme

Installation

If you have trouble with the installation, please feel free to visit our discord.

  • npm i @azurystudio/dbl-azury

Welcome to the fresh and new Azury DBL!

We have lots of things updated in this version for simplicity and the sake of easiness!
There will be update logs at the bottom of the page! Check it out!

How to use this NPM Package

You may be a new user of this package and you just added your bot to Azury DBL! Well just in luck, we have a tutorial for most features!

My server count is N/A. How do i resolve that?

Ans:

const azury = require("@azurystudio/dbl-azury");
// Not your discord token, your DBL bot token, go on the edit page of your bot and copy and paste it!
const dbl = new azury("TOKEN-HERE", client);
// Your Token is most usable when approved!

client.on(Events.ClientReady, async () => {
  dbl.activate("servercount"); //Don't worry its not cap sensitive! You just need to get the letters correct!
 // Note! You can also add a additional message like dbl.activate("servercount", "posted successfully!");

I want to make a certain feature of my bot vote only? How can i do this?

Ans:

let hasVote = await dbl.activate("hasvoted", "userId"); //Its not CAP Sensitive but always check your spelling!
  if(hasVote === true) {
    console.log("Voted")
  } else {
    console.log("Vote please.")
  }

How do i access my vote count?

Ans:


dbl.activate("searchbot", "your-bot-id").then((json) => {

console.log(json.votes)
	
})
Output:
Int which has the votes

How do i search for a server or a user?

Ans:


// SearchUser

let user = await dbl.activate("searchuser", "user-id") // This user-id must have logged in before in the website or it will show an error

console.log(user);

// SearchServer

let server = await dbl.activate("searchserver", "server-id") // This is for servers that are available on the servers page or it will show an error.


console.log(server);

How do i view any of the announcements on a bot?

Ans:

let latestann = await dbl.activate("viewannouncements", "bot-id-of-your-choice") /* optional: page number. await dbl.activate(viewannouncements", "bot-id-of-your-choice", page-number) Must be a Int! 
1 announcement is shown per page and sort style is by the latest announcement to the earliest announcement made. */

console.log(latestann);

All in One:

const azury = require("@azurystudio/dbl-azury");
const dbl = new azury("TOKEN-HERE", client);

client.on("ready", async () => {
  dbl.activate("servercount");
  console.log("Server count posted")
  
  let hasVote = await dbl.activate("hasvoted", "userId");
  if(hasVote === true) {
    console.log("Voted")
  } else {
    console.log("Vote please.")
  }
  
  
  let search = await dbl.activate("searchbot", "bot-id")
  console.log(search)
  

  /* SearchResults
  {
    avatar: '',
    botID: '',
    username: '',
    discrim: '',
    shortDesc: '',
    prefix: '? [changable]',
    votes: Int,
    ownerID: '',
    owner: '',
    coowners: [ '' ],
    tags: [ 'Moderation', 'NSFW', 'Music' ],
    longDesc: longDesc,
    certificate: 'Certified'
  }
  */

 
// SearchUser

let user = await dbl.activate("searchuser", "user-id") // This user-id must have logged in before in the website or it will show an error

console.log(user);

// SearchServer

let server = await dbl.activate("searchserver", "server-id") // This is for servers that are available on the servers page or it will show an error.


console.log(server);

let latestann = await dbl.activate("viewannouncements", "bot-id-of-your-choice") /* optional: page number. await dbl.activate(viewannouncements", "bot-id-of-your-choice", page-number) Must be a Int! 
1 announcement is shown per page and sort style is by the latest announcement to the earliest announcement made. */

console.log(latestann);


});

Try it out yourself and see the results! How to install on top!

Change Logs

1.0.5

Readme improvements, you may use continue using 1.0.4 unless deprecated.

1.0.4

One feature added to activate viewannouncements

Example

dbl.activate("viewannouncements", "bot-id-of-your-choice") /* optional: page number.
dbl.activate(viewannouncements", "bot-id-of-your-choice", page-number) // Must be a Int!

1 announcement is shown per page and sort style is by the latest announcement to the earliest announcement made. *\

1.0.3

This version adds 2 more features to the activate function and a new function the debug command.

The two features are:

searchserver searchuser Additional changes: search will no longer be search, it will be searchbot. Old:

dbl.activate("search", "bot-id");

New:

dbl.activate("searchbot", "bot-id");

The new features are self explainatory and easy to use.

For example


// SearchUser

dbl.activate("searchuser", "user-id") // This user-id must have logged in before in the website or it will show an error

// SearchServer

dbl.activate("searchserver", "server-id") // This is for servers that are available on the servers page or it will show an error.

New function - debug

This command allows you to debug and see if everything is working right!

dbl.debug(true) // this will show debug on the console. You can deactivate this by writing false or removing the function entirely.

Thats wraps up all the features added in this update.

1.0.2

Adding more content to readme, soon they will be more features added into this version. Once actual features come out, previous versions will become deprecated!

1.0.1

Improving ReadMe.md

1.0.0

Alot has changed in this version since the previous one. Instead of you using dbl.funcionName, we now use activate, which allows you to use any of the functions all in one function.

Old:


dbl.hasVoted("user-id");

New:


dbl.activate("hasvoted", "user-id"); // Not cap sensitive so HASVOTED or hAsVoted works!