Skip to content

Releases: kubaam/Discord-Giveaway-and-Nitro-Sniper-Selfbot

v1.1

17 Nov 20:15
435f82f
Compare
Choose a tag to compare

Changelog for Giveaway Sniper Script Update

Updated Features

  1. Discord API URL Update

    • Changed the Discord API base URL from https://canary.discord.com/api/v10 to https://discord.com/api/v9 to align with the official API standards.
  2. Dependency Management Improvement

    • Retained the functionality for uninstalling and reinstalling dependencies at startup for consistency, ensuring all dependencies are properly updated using the requirements.txt file.
  3. Console Clear Function

    • Added the clear_console() function to maintain a clean console view during bot execution for better readability.
  4. Webhook Notification Enhancements

    • Improved the webhook notification design to include:
      • Distinct Titles: Added more descriptive titles such as "Nitro Code Redemption Status," "Giveaway Sniped!", and "Giveaway Win Detected!".
      • Colored Embeds: Updated embed colors for different types of notifications (e.g., blue for nitro, green for win notifications) for easier visual distinction.
      • Additional Footer Texts: Added footer texts like "Giveaway Sniper | Action Report" to give more context.
      • New Avatars: Updated avatar URLs for different webhook notifications to represent the type of alert visually.
  5. Giveaway Reaction Details

    • Added more detailed giveaway sniping information including:
      • Location Information: The server and channel names were included in the giveaway sniping message.
      • Hosted By Information: The author of the giveaway is now explicitly mentioned in the webhook notification.
  6. Better Nitro Code Redemption Feedback

    • Separated Invalid Code and Captcha Required: The status messages now differentiate between "Invalid code" and "Captcha required" when attempting to redeem a Nitro gift code.
    • Introduced more informative status messages, specifically:
      • "Captcha required" when Discord demands additional verification.
      • "Invalid code" when the provided Nitro code does not exist or is malformed.
  7. Nitro Code Sniper Improvements

    • Added error handling for 429 rate-limit responses by implementing retry logic after waiting for the specified cooldown period.
    • Added a log for rate-limited scenarios to provide better traceability when the bot gets temporarily blocked by Discord's rate-limiting.
  8. Error Handling and Logging Enhancements

    • Extended Logging: Improved log function to include save option across more scenarios to track important actions.
    • Detailed Error Messages: Updated error messages and added logging for scenarios like failed private messages to giveaway creators.
  9. Code Cleanup and Optimizations

    • Removed redundant functions and optimized certain logical branches.
    • Added safety checks for NoneType values (e.g., message.guild, message.author, client.user) to prevent runtime exceptions.
    • Removed outdated references to unused packages and made sure that imports are structured properly.
  10. Better User-Agent and Header Randomization

    • Improved the randomness of User-Agent and other headers by including unique identifiers to avoid detection while interacting with Discord endpoints.
  11. Visual Improvements in Bot Connected Notification

    • Added an improved "Bot Successfully Connected" notification that includes additional details about the user account connected and a unique avatar icon for better recognition.
  12. Refined Giveaway Win Notification

    • Direct Message Notification: Added functionality to send a direct message to the giveaway creator when the bot wins a giveaway, including the winning message link and prize details.
    • Prize Details Extraction: Improved regex for extracting the giveaway prize from both the message content and embed descriptions to provide accurate information.
  13. Minor Bug Fixes

    • Fixed issues related to message components when interacting with Discord buttons.
    • Fixed typo (restart_script()a to restart_script()) to ensure correct script restart behavior in the event of a failure.
  14. Discord API Rate Limiting

    • Added a Retry-After mechanism when encountering a 429 HTTP error to respect Discord's API limits and avoid getting rate-limited further.

Full Changelog: discord-selfbot...v1.1

v1

11 Nov 23:20
435f82f
Compare
Choose a tag to compare
v1

Features in Detail

1. Instant Nitro Sniper

  • Scans incoming messages for discord.gift/ URLs and attempts to redeem them instantly using the provided user token.
  • Implements various headers and random user agents to avoid detection.

2. Giveaway Sniper

  • Automatically clicks buttons and reacts with emojis to join giveaways, ensuring better chances of winning.
  • Automatically detects giveaway messages and reacts to join.
  • If you win, it will notify you via webhook and attempt to send a DM to the giveaway creator.

3. Stealth Features

  • Randomized Headers: Adds X-Super-Properties, X-Fingerprint, and other headers to requests to mimic legitimate Discord client behavior.
  • User Agent Rotation: Utilizes a list of common user agents to make requests appear from various devices.
  • Hardware Identifiers: Randomizes device identifiers in headers.

4. Logging and Notifications

  • Logs to logs.txt to keep track of important events such as snipes, warnings, and errors.
  • Sends webhook notifications to a configured URL, allowing real-time tracking of successful Nitro redemptions or giveaway winnings.

Important Functions

  • check_nitro_codes: Detects and redeems Nitro codes as soon as they are posted.
  • handle_giveaway_reaction: Automatically reacts to giveaway messages to enter.
  • BotConnectedInfo: Sends a notification when the bot successfully connects to Discord.

Avoiding Detection

  • Custom Headers & Device IDs: Adds multiple custom headers to mimic Discord client requests more closely.
  • Random User-Agent Strings: Chooses a user-agent string from a predefined list to simulate requests from different devices.

Warning

Selfbots are strictly against Discord's Terms of Service. If you use this script, you do so at your own risk. It is recommended to only use this on test accounts that you are willing to lose.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Acknowledgements

  • Thanks to the contributors of discord.py and other Python packages that made this project possible.

Note: The use of this bot should be strictly for educational purposes only. Any misuse, including violating Discord's Terms of Service, may result in a ban or other legal consequences.


Full Changelog: discord-selfbot...v1