Giter Site home page Giter Site logo

antiops / discord-pomelo-snipe Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 3.0 26 KB

Sniper for new Discord Pomelo usernames. Uses a webhook to ping you when stuff happens

License: MIT License

JavaScript 100.00%
discord discord-api pomelo sniper webhook discord-sniper-username discord-username-sniper

discord-pomelo-snipe's Introduction

discord-pomelo-snipe

Discord accidently banned everyone who used the pomelo api, they unbanned everyone but use at your own risk Reddit.com - Anyone elses account randomly disabled?

  • Tries to request a username every 300 seconds (configurable)
  • Pings you with a webhook when stuff happens
  • Also pings you if your token stops working

This will make requests to the Discord Pomelo API requesting a username. When the API returns a non-error response it will ping you in a channel using a webhook. Whether it got the username or not, idk. You should check your Discord when it pings because something happened.

It will also ping you and exit the script if Discord says the token is bad. Update the token and restart.


Prerequisites

  • Requires Node.js (Tested using 19.8.1)

  • Rename .env.sample to .env and fill in the values

    • DISCORD_USERNAME: The username to request
    • DISCORD_USER_ID: Your user ID. This ID will be pinged
    • DISCORD_TOKEN: Your user token. Required to make the API requests
    • DISCORD_WEBHOOK: A Webhook. Messages will be sent to it
    • LOOP_TIMEOUT: Time to wait in seconds before retrying (Default: 300s/5min)
    • USER_AGENT: The User-Agent used in API requests. Change if you want

Get the code

Download the repo archive .zip and extract it or just use git

git clone https://github.com/antiops/discord-pomelo-snipe

Setup & Run

# Enter the repo directory
cd discord-pomelo-snipe

# Windows users can also just shift+right-click the folder and click "open cmd/powershell window here"

# Install dependencies
npm install

# Start
node index.js

To manually stop the script just press CTRL+c

Obvious Disclaimer

As always, Discord doesnt like automated requests from user accounts (usually called self-botting). Even though they have rarely go after self-botters (except the cases where people clearly abused and spammed the service), use at your own risk. Make the timeout higher if you'd like to play it safe.

Libraries Used


Notes

Response Codes
  • Authenticated, No access to use Pomelo

    • HTTP: 401
    • Code: 40001
    • Message: Unauthorized
  • Authenticated, Access to Pomelo

    • HTTP: 200?
    • Code: ?
    • Message: ?
  • Bad Token

    • Code: 0
    • Message: 401: Unauthorized

discord-pomelo-snipe's People

Contributors

antiops avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

discord-pomelo-snipe's Issues

ty

it didnt work
[2023-06-08T01:30:35.111Z][!] HTTP 400 | 50035:Invalid Form Body
and send no message per webhook

[Question] What is the point of trying multiple times?

To my understanding, if it fails, it means the username is taken. Why would I try again when knowing it was already claimed?

Also, does a 401 error code mean it is taken or did I failed to configure it correctly?

I am really dumb. I thought you could get the username in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.