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

dbfr

v1.0.3

Published

Le module officiel de l'API Wonder Bot List

Downloads

4

Readme

Description

dbfr est un module qui vous servira a poster les stats de vos bots sur l'API du site https://wonderbotlist.com

Installation

npm i dbfr -s

IMPORTANT

dbfr est un module compatible uniquement avec les libs en Java Script, tels que Discord.js ou Eris...

Exemple POST

const Discord = require("discord.js");
const client = new Discord.Client();

var DBFR = require("dbfr");
const dbfr = new DBFR(client, 'Token discord bot fr');

client.on("ready", () => {
  dbfr.post()
});

client.login("BOT_TOKEN")

Exemple GET

Discord.js

const Discord = require("discord.js");
const client = new Discord.Client();

const DBFR = require("dbfr");
const dbfr = new DBFR(client, 'Token discord bot fr');

client.on("ready", () => {
  console.log("Ready!");
});

client.on('message', msg => {
  const args = msg.content.split(" ").slice(1);
  const type = "user";//user ou bot (par defaut bot est choisi)
  if(msg.content.startsWith("test")){
    if(!args) return console.log("Erreur, pas d'argument");
    dbfr.get(type, args).then(r => { console.log(r) })
  }
});

client.login("BOT_TOKEN")

Eris

const Eris = require("eris");
const bot = new Eris("BOT_TOKEN");

const DBFR = require("dbfr");
const dbfr = new DBFR(bot, 'Token discord bot fr');

bot.on("ready", () => {
  console.log("Ready!");
});

bot.on("messageCreate", (msg) => {
  const args = msg.content.split(" ").slice(1);
  const type = "user";//user ou bot (par defaut bot est choisi)
  if(msg.content.startsWith("testu")) {
    if(args.length == 0) return console.error("Erreur, pas d'argument");
    dbfr.get(type, args).then(r => { console.log(r) });
  }else if(msg.content.startsWith("testb")) {
    if(args.length == 0) return console.error("Erreur, pas d'argument");
      const type = "bot";//user ou bot (par defaut bot est choisi)
        dbfr.get(type, args).then(r => { console.log(r) });
  }
});

bot.connect();

API

Vue d'un bot

{
    "id": 337997289484451840,
    "username": "Celestia",
    "owner": 193090359700619264,
    "owners": [
        "359767845762236436",
        "160868823887511552"
    ],
    "github": null,
    "descriptcourt": "Bot de modération et de fun",
    "descriptlong": "yolo je get les infos (in HTML)",
    "descriptvideo": null,
    "approuved": false,
    "lib": "discord.js",
    "prefix": "!",
    "invitelink": "https://b.discordbots.fr/invite/337997289484451840",
    "supportserver": null,
    "siteweb": null,
    "shards": 0,
    "server": 0,
    "vote": 0,
    "avatar": "https://cdn.discordapp.com/avatars/337997289484451840/8a9696c309c80a73c02efb74e0a72862.png?size=512",
    "langue": [],
    "tags": [],
    "date": null
}

Vue d'un utilisateur


    "id": 193090359700619264,
    "username": "Ten-No-Kami-Sama7777",
    "bio": "",
    "website": null,
    "facebook": null,
    "github": null,
    "twitter": null,
    "youtube": null,
    "linkedin": null,
    "avatar": "https://cdn.discordapp.com/avatars/193090359700619264/1575890721026ce092188702dd69ccd3.png?size=512",
    "isProfilPublic": true,
    "langue": "fr",
    "roles": [
        "ROLE_ADMIN",
        "ROLE_USER"
    ],
    "nitro": true,
    "mailvisible": true,
    "mail": "[email protected]"
}