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

discord-user-bots

v2.0.2

Published

A library that allows you to use the full potential of Discords API to create and operate powerful user bots

Downloads

419

Readme

Discord User Bots

Logo

| Useful links |- | DUB Discord Server | DUB NPM Package | DUB Client Documentation | DUB Examples

Installing

npm i discord-user-bots

What is this library?

Discord-User-Bots is a library that allows for complete access & control over user accounts

This library supports account features that are exclusive to user accounts or hidden by the Discord documentation. Data-mining Discord was used to find the vulnerabilities and hidden endpoints that allow this library to function.

What can this do?

Some use-cases for this library are:

  • Creating accounts (EXPERIMENTAL)
  • Sending unrestricted friend requests to other users
  • Joining guilds without triggering Discord's trust system
  • Email and phone verifying accounts
  • Accessing user notes, friend counts, interacting with the default Discord tutorial, and every other property associated with a Discord account
  • Remotely controlling accounts without authenticating with Discord for distributed account control
  • Common functions real accounts use
  • And many more...

Getting started

Controlling an account

For comments: https://github.com/Sopur/Discord-user-bots/blob/main/examples/basic.js

// For comments and more detail: https://github.com/Sopur/Discord-user-bots/blob/main/examples/basic.js
const Discord = require("discord-user-bots");
const client = new Discord.Client();

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

client.login("token goes here.");

Controlling an account without logging in

For comments: https://github.com/Sopur/Discord-user-bots/blob/main/examples/basic-headless.js > WARNING: if there isn't another live instance of the account running while you make a request with a headless client, the account with be disabled and flagged.

// For comments and more detail: https://github.com/Sopur/Discord-user-bots/blob/main/examples/basic-headless.js
const Discord = require("discord-user-bots");
const client = new Discord.Client({
    headless: true,
    proxy: "http://xxx.xxx.xxx.xxx:xxxx",
});
client.login("Token goes here."); // ONLY sets the token (doesn't follow the full login process)

client.send("1234567890", {
    content: "This message was sent without logging in",
});

Practical examples

See all examples: https://github.com/Sopur/Discord-user-bots/tree/main/examples

Message logger

Logs all messages sent in all the servers the client is in. https://github.com/Sopur/Discord-user-bots/blob/main/examples/log.js

Create an account (EXPERIMENTAL)

Creates an account using the captcha.guru captcha solver. https://github.com/Sopur/Discord-user-bots/blob/main/examples/chat-bot.js

Un-sendable channel

Deletes every message that is sent on channels of your choice while avoiding message delete rate limits. https://github.com/Sopur/Discord-user-bots/blob/main/examples/unsendable-channel.js

ChatGPT chat-bot

Uses OpenAI's ChatGPT as a chat bot. https://github.com/Sopur/Discord-user-bots/blob/main/examples/chat-bot.js

Documentation

Discord.Client

Methods

https://github.com/Sopur/Discord-user-bots/blob/main/doc/client.js

This library contains most functions required to do anything a normal client can do. See the client.js file in the doc/ folder for documentation on every Discord.Client method.

Event listeners

https://github.com/Sopur/Discord-user-bots/blob/main/doc/eventlisteners.js

This library has every known event listener. See the eventlisteners.js file in the doc/ folder to see every one.

What's new in 2.0.0

General

  1. Added the ability to create accounts
  2. Pretty much made DUB undetectable and 100% anonymous
  3. Added headless clients (accounts that don't login or interact with Discord's gateway)
  4. Added enum properties for every Discord enum
  5. No methods restrict your account anymore
  6. Added support for EVERY event (even undocumented ones)
  7. Added more methods to the testing script

Methods

  1. .login just like Discord.js
  2. .is_restricted
  3. Fixed .join_guild
  4. .send_single_type_notification
  5. Fixed .type to support multiple channels
  6. send_friend_request
  7. .set_profile
  8. .set_avatar
  9. .request_verify_email & .verify_email
  10. .request_verify_phone & .verify_phone

Want something?

Contact me on Discord at .sopur or Telegram at @soopur

You may also find something of interest on the DUB Discord Server.

DISCLAIMER

WHATEVER HAPPENS TO YOUR ACCOUNT AS A RESULT OF THIS LIBRARY IS WITHIN YOUR OWN LIABILITY. THIS LIBRARY IS MADE PURELY FOR EXPERIMENTAL AND ENTERTAINMENT PURPOSES. USE AT YOUR OWN RISK.