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

v1.6.0

Published

A library that allows you to use the full potential of Discords API to create good user bots, and create accounts.

Downloads

571

Readme

Logo

Sopur's user bot library

Hello! This is a user bot library that allows for complete control over user accounts.
Some examples of extreme examples are the ability to access user notes, friend counts, and the default Discord tutorial.
This library is still being worked on more functions will be added soon.

Installing

npm i discord-user-bots

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("Token goes here.");

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

client.on.message_create = function (message) {
    console.log(message);
};

Practical 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

Mailing list

Pings other users when a victim of your choice sends a message. https://github.com/Sopur/Discord-user-bots/blob/main/examples/mailinglist.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

Delete all incriminating messages

Deletes all incriminating messages in a channel automatically. https://github.com/Sopur/Discord-user-bots/blob/main/examples/clean-up.js.js

GPT-3 chatbot

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

Documentation

Discord.Client

Functions

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 function.

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

Event listeners

This library has every known event listener. See the eventlisteners.js file in the doc/ folder for documentation on every event.

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

Properties

This library focuses on allowing you to access absolutely everything a normal Discord client can. See the properties.js file in the doc/ folder for documentation on every event.

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

What's new in 1.6.0

  • Added accept_friend_request function (Thanks lf94)
  • Added relationship_add event listener (Thanks lf94)
  • Added relationship_remove event listener (Thanks lf94)
  • Added proxy option to client class
  • Added reconnect event listener
  • Added reconnect function
  • Added autoReconnect option to config
  • Added examples create-account.js, clean-up.js, chat-bot.js, and log.js
  • Added science/experiment tracking logic
  • Added cookie logic
  • Added uuid logic
  • Added xtrack logic
  • Fixed disconnection problem (Thanks lf94)
  • Fixed group function
  • Fixed examples
  • Fixed README

Special Thanks To

Github user Luthfi GearIntellix

  • Added attachments to the send function
  • Added the remove_reaction function

Github user Imraj

  • Added close function
  • Added terminate function

Github user lf94

  • Added accept_friend_request function
  • Fixed heartbeat bug

WARN

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