marioparaschiv / nitro-sniper

🔫 A lightweight, fast and efficient discord nitro sniper, giveaway sniper & invite sniper.
820 stars 3.25k forks source link

[Bug] Couldn't DM User After Giveaway #386

Closed sakuriaz closed 2 years ago

sakuriaz commented 2 years ago

Describe the bug

After i win giveaways an error message occurs "Couldn't DM user"

To Reproduce

  1. Start Sniper
  2. Win A giveaway

Expected behavior

It should've dmed, right?

Please provide your snipers settings.

{
  "settings": "{\n   tokens: {\n      // Main Token (ex: Nz...)\n      main: 'TOKEN HERE',\n      // Alt Tokens (ex: Nz...)\n      alts: [\n         '',\n      ],\n   },\n   // The mode to run the sniper in. Options: main (only main account), alts (only alts), both\n   mode: 'main',\n   /*\n      The status the accounts should be on.\n      Options: online, dnd, idle, offline, default\n      default means the status will not be modified.\n   */\n   status: {\n      // The status the main account will have IF it's logged in\n      main: 'default',\n      // The status the logged in alts will have\n      alts: 'default'\n   },\n   nitro: {\n      // The amount of nitros needed to be sniped for the cooldown to activate\n      max: 2,\n      // Cooldown to activate after max nitro has been hit (in hours)\n      cooldown: 24,\n      dm: {\n         /*\n          * How long to wait before attempting to claim the nitro in DMs (in seconds)\n          * This is to avoid suspicion when winning giveaways by slowing down the sniper from instantly sniping it.\n          */\n         delay: 10\n      },\n      // A list of channel IDs to ignore when sniping nitro\n      blacklistedChannels: [\n         '',\n      ]\n   },\n   giveaway: {\n      // Wether or not to activate the giveaway sniper (true/false)\n      enabled: true,\n      // Delay to react to the giveaway (in seconds)\n      delay: 30,\n      // DM the hoster on giveaway win (true/false)\n      dm: true,\n      // Messages to DM the host\n      dmMessages: [\n         'Hey, i won the giveaway.',\n         'Could i redeem my prize?'\n      ],\n      // How long to wait to DM (in seconds)\n      dmDelay: 25,\n      // How long to wait between messages (in seconds)\n      messageDelay: 2,\n      // Blacklisted words for giveaway prizes\n      blacklistedWords: [\n         'bot',\n         'test',\n         'ban'\n      ],\n      // Only react to whitelisted giveaway prizes (true/false)\n      whitelistOnly: false,\n      // Whitelisted words for giveaway prizes\n      whitelistedWords: [\n         'nitro'\n      ],\n      // Blacklisted Server IDs to not snipe giveaways on\n      blacklistedServers: [\n         ''\n      ],\n      // Only snipe giveaways on whitelisted servers (true/false)\n      whitelistServersOnly: false,\n      whitelistedServers: [\n        ''\n      ],\n      prizeLength: {\n         // The minimum character length of the prize (null = infinite)\n         min: 4,\n         // The maximum character length of the prize (null = infinite)\n         max: null\n      }\n   },\n   invite: {\n      // Wether or not to activate the invite sniper (true/false)\n      enabled: false,\n      delay: {\n         // Minimum delay to join the server (in seconds)\n         min: 10,\n         // Maximum delay to join the server (in seconds)\n         max: 20\n      },\n      members: {\n         // The minimum member count the server should have\n         min: 1500,\n         // The maximum member count the server should have\n         max: 999999\n      },\n      // The amount of joined invites needed for the cooldown to activate\n      max: 10,\n      // Cooldown to activate after max joined invites has been hit (in hours)\n      cooldown: 6,\n      // Whether to accept an invite on any other alt/account (depends on \"mode\") if the current alt has max servers (true/false)\n      queue: true,\n      // Whether to allow the main token to snipe invites ONLY if sniper mode is set to \"both\" (true/false)\n      onlyAlts: true\n   },\n   webhook: {\n      // URL to fire webhook to for notifications (ex: https://discord.com/api/webhooks/.../...)\n      url: '',\n      enabled: {\n         // Fire webhook on invalid code (true/false)\n         codeInvalid: false,\n         // Fire webhook on already redeemed code (true/false)\n         codeAlreadyRedeemed: false,\n         // Fire webhook on sniped code (true/false)\n         codeSuccess: true,\n         // Fire webhook on giveaway enter (true/false)\n         giveawayEntered: true,\n         // Fire webhook on giveaway win (true/false)\n         giveawayWin: true,\n         // Fire webhook on invite join (true/false)\n         inviteJoin: false,\n         // Fire webhook on failure of sniping invite (true/false)\n         inviteFail: false\n      },\n      mentionEveryone: {\n         // Mention on invalid code (true/false)\n         codeInvalid: false,\n         // Mention on already redeemed code (true/false)\n         codeAlreadyRedeemed: false,\n         // Mention on sniped code (true/false)\n         codeSuccess: true,\n         // Mention on giveaway enter (true/false)\n         giveawayEntered: false,\n         // Mention on giveaway win (true/false)\n         giveawayWin: true,\n         // Mention on invite join (true/false)\n         inviteJoin: false,\n         // Mention on failure of sniping invite (true/false)\n         inviteFail: false\n      }\n   },\n   // Whether to log all console messages to file (true/false)\n   log: true\n}"
}

What platform are you seeing the problem on?

Repl.it

Relevant log output if applicable.

No response

Craftzman7 commented 2 years ago

This is due to privacy settings. @localip you are good to close this.