marioparaschiv / nitro-sniper

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

[Bug] Auto Dm not working #395

Closed Burri61 closed 2 years ago

Burri61 commented 2 years ago

Describe the bug

I was testing with accounts that I have written to dm and if it sends. But with people who do not send a message to the dm, it gives a dm error. I tried to modify the configuration in any way, try to change the jsa of giveaways and others. The timeout delay and others. Do not send to people who have never written, it gives a dm error. This happens to more people.

To Reproduce

1.Go to a server private 2.Test a giveaway in a alt that you have written to the private 3.Test in an account that you have not sent any message to

Expected behavior

A functional and passing dm that works with other bots like apolo apart from just the giveaways bot

Please provide your snipers settings.

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

What platform are you seeing the problem on?

Local Computer

Relevant log output if applicable.

2022-05-10 20:14:44 SUCCESS: Sniper is running with 2 accounts and 81 servers.2022-05-10 20:15:15 SUCCESS: Reacted to giveaway of Nitro or 500 Robux from ! " Tendou.#3435 in (Spring Community > #・꒰🎉、gw) after 12 second(s).2022-05-10 20:15:15 SUCCESS: Reacted to giveaway of Nitro or 500 Robux from ! " Tendou.#3435 in (Spring Community > #・꒰🎉、gw) after 13 second(s).2022-05-10 20:17:48 SUCCESS: Reacted to giveaway of NITRO CLASSIC from LuKe#6669 in (🥤﹒Meo﹒Social﹒Chill﹒Fun﹒Giveaways﹒Anime﹒Emoji > #🎁﹒early) after 13 second(s).2022-05-10 20:22:45 SUCCESS: Reacted to giveaway of 100 robux from ! " Tendou.#3435 in (Spring Community > #・꒰🎉、gw) after 13 second(s).2022-05-10 20:22:47 SUCCESS: Reacted to giveaway of 100 robux from ! " Tendou.#3435 in (Spring Community > #・꒰🎉、gw) after 13 second(s).2022-05-10 20:22:47 SUCCESS: Reacted to giveaway of 100 robux from ! " Tendou.#3435 in (Spring Community > #・꒰🎉、gw) after 14 second(s).2022-05-10 20:22:48 SUCCESS: Reacted to giveaway of 100 robux from ! " Tendou.#3435 in (Spring Community > #・꒰🎉、gw) after 15 second(s).2022-05-10 20:23:32 SUCCESS: Reacted to giveaway of nitro boost from iemirhqn#1666 in (Shimei | Social & Events & Giveaways > #タ︰🐻︰giveaways) after 13 second(s).2022-05-10 20:23:33 SUCCESS: Reacted to giveaway of nitro boost from iemirhqn#1666 in (Shimei | Social & Events & Giveaways > #タ︰🐻︰giveaways) after 14 second(s).2022-05-10 20:28:56 SUCCESS: Reacted to giveaway of Nitro Cl from IceWater 🧊#1616 in (Shimei | Social & Events & Giveaways > #タ︰🐻︰giveaways) after 11 second(s).2022-05-10 20:28:59 SUCCESS: Reacted to giveaway of Nitro Cl from IceWater 🧊#1616 in (Shimei | Social & Events & Giveaways > #タ︰🐻︰giveaways) after 14 second(s).2022-05-10 20:29:03 SUCCESS: Reacted to giveaway of Nitro Classic [5$] from Loxxu#0007 in (Discord.gg/event | Social | Giveaways | Nitro > #︰🎁・nitro) after 13 second(s).2022-05-10 20:29:04 SUCCESS: Reacted to giveaway of Nitro Classic [5$] from Loxxu#0007 in (Discord.gg/event | Social | Giveaways | Nitro > #︰🎁・nitro) after 14 second(s).2022-05-10 20:33:09 SUCCESS: Reacted to giveaway of Nitro Cl from IceWater 🧊#1616 in (Shimei | Social & Events & Giveaways > #タ︰🐻︰giveaways) after 12 second(s).2022-05-10 20:33:09 SUCCESS: Reacted to giveaway of Nitro Cl from IceWater 🧊#1616 in (Shimei | Social & Events & Giveaways > #タ︰🐻︰giveaways) after 12 second(s).2022-05-10 20:39:46 SUCCESS: Reacted to giveaway of nitro cl from iemirhqn#1666 in (Shimei | Social & Events & Giveaways > #タ︰🐻︰giveaways) after 13 second(s).2022-05-10 20:39:48 SUCCESS: Reacted to giveaway of nitro cl from iemirhqn#1666 in (Shimei | Social & Events & Giveaways > #タ︰🐻︰giveaways) after 15 second(s).2022-05-10 20:40:33 SUCCESS: Won giveaway of nitro cl from iemirhqn#1666 in (Shimei | Social & Events & Giveaways > #タ︰🐻︰giveaways).2022-05-10 20:40:38 ERROR: Couldn't DM iemirhqn#1666 after winning nitro cl in (Shimei | Social & Events & Giveaways > #タ︰🐻︰giveaways) after 5 second(s).2022-05-10 20:45:12 ERROR: Invalid Code | Code: pmEZEnqg4Qr8ksvy | Apsora | Gws ~ Pfps ~ Icons ~ Genshin ~ Emotes > #﹕☕︰lounge | salv#2727 | 126ms2022-05-10 20:45:12 ERROR: Invalid Code | Code: pmEZEnqg4Qr8ksvy | Apsora | Gws ~ Pfps ~ Icons ~ Genshin ~ Emotes > #﹕☕︰lounge | salv#2727 | 123ms2022-05-10 20:50:21 SUCCESS: Reacted to giveaway of Nitro Classic from Loxxu#0007 in (Discord.gg/event | Social | Giveaways | Nitro > #︰🎁・nitro) after 12 second(s).2022-05-10 20:50:21 SUCCESS: Reacted to giveaway of Nitro Classic from Loxxu#0007 in (Discord.gg/event | Social | Giveaways | Nitro > #︰🎁・nitro) after 13 second(s).2022-05-10 20:50:24 WARNING: Avoiding Duplicate | Code: pmEZEnqg4Qr8ksvy | Apsora | Gws ~ Pfps ~ Icons ~ Genshin ~ Emotes > #﹕☕︰lounge | salv#27272022-05-10 20:50:24 WARNING: Avoiding Duplicate | Code: pmEZEnqg4Qr8ksvy | Apsora | Gws ~ Pfps ~ Icons ~ Genshin ~ Emotes > #﹕☕︰lounge | salv#27272022-05-10 20:50:42 WARNING: Avoiding Duplicate | Code: pmEZEnqg4Qr8ksvy | Apsora | Gws ~ Pfps ~ Icons ~ Genshin ~ Emotes > #﹕☕︰lounge | Mori Delta#99992022-05-10 20:50:42 WARNING: Avoiding Duplicate | Code: pmEZEnqg4Qr8ksvy | Apsora | Gws ~ Pfps ~ Icons ~ Genshin ~ Emotes > #﹕☕︰lounge | Mori Delta#99992022-05-10 20:52:48 ERROR: Invalid Code | Code: yPv7MtzvQ4sFCkGk | Apsora | Gws ~ Pfps ~ Icons ~ Genshin ~ Emotes > #﹕☕︰lounge | salv#2727 | 107ms2022-05-10 20:52:48 ERROR: Invalid Code | Code: yPv7MtzvQ4sFCkGk | Apsora | Gws ~ Pfps ~ Icons ~ Genshin ~ Emotes > #﹕☕︰lounge | salv#2727 | 130ms2022-05-10 20:57:56 SUCCESS: Reacted to giveaway of ROBUX 🎁 from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 12 second(s).2022-05-10 20:57:57 SUCCESS: Reacted to giveaway of ROBUX 🎁 from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 11 second(s).2022-05-10 20:57:59 SUCCESS: Reacted to giveaway of ROBUX 🎁 from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 10 second(s).2022-05-10 20:57:59 SUCCESS: Reacted to giveaway of ROBUX 🎁 from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 10 second(s).2022-05-10 20:57:59 SUCCESS: Reacted to giveaway of ROBUX 🎁 from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 12 second(s).2022-05-10 20:57:59 SUCCESS: Reacted to giveaway of ROBUX 🎁 from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 15 second(s).2022-05-10 20:58:12 SUCCESS: Reacted to giveaway of ROBUX 🎁 from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 15 second(s).2022-05-10 20:58:12 SUCCESS: Reacted to giveaway of ROBUX 🎁 from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 15 second(s).2022-05-10 20:58:33 SUCCESS: Reacted to giveaway of nitro yearly from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 12 second(s).2022-05-10 20:58:36 ERROR: Failed to react to giveaway of nitro yearly from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 15 second(s).2022-05-10 20:59:59 SUCCESS: Reacted to giveaway of Nitro Classic [5$] from Loxxu#0007 in (Discord.gg/event | Social | Giveaways | Nitro > #neptune) after 15 second(s).2022-05-10 20:59:59 SUCCESS: Reacted to giveaway of Nitro Classic [5$] from Loxxu#0007 in (Discord.gg/event | Social | Giveaways | Nitro > #neptune) after 15 second(s).2022-05-10 21:03:19 SUCCESS: Reacted to giveaway of ROBUX 🎁 from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 10 second(s).2022-05-10 21:03:19 SUCCESS: Reacted to giveaway of ROBUX 🎁 from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 12 second(s).2022-05-10 21:03:19 SUCCESS: Reacted to giveaway of ROBUX 🎁 from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 12 second(s).2022-05-10 21:03:20 SUCCESS: Reacted to giveaway of ROBUX 🎁 from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 11 second(s).2022-05-10 21:03:24 SUCCESS: Reacted to giveaway of ROBUX 🎁 from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 13 second(s).2022-05-10 21:03:24 SUCCESS: Reacted to giveaway of ROBUX 🎁 from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 13 second(s).2022-05-10 21:11:41 SUCCESS: Won giveaway of ROBUX 🎁 from ! Smx#0001 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux).2022-05-10 21:11:52 SUCCESS: DMed ! Smx#0001 after winning ROBUX 🎁 in (﹕`🌹`ෆ˖˚TinyPark | Community • Fun • Social • Emojis > #ෆ₊˚ʚ🍁✦﹕robux) after 6 second(s).2022-05-10 21:20:39 SUCCESS: Reacted to giveaway of Nitro Cl from Loxxu#0007 in (Discord.gg/event | Social | Giveaways | Nitro > #neptune) after 10 second(s).2022-05-10 21:20:39 SUCCESS: Reacted to giveaway of Nitro Cl from Loxxu#0007 in (Discord.gg/event | Social | Giveaways | Nitro > #neptune) after 11 second(s).
Craftzman7 commented 2 years ago

This is an issue with privacy settings. @localip you can close this.

Burri61 commented 2 years ago

This is an issue with privacy settings. @localip you can close this.

Tell me what I have to activate and we'll see if it's a bug.

Burri61 commented 2 years ago

i has just done everything, with several friends with all the privacy to send him any type of message. I've tried other settings and none of them work on dm with people you haven't sent them a message before.

Craftzman7 commented 2 years ago

i has just done everything, with several friends with all the privacy to send him any type of message. I've tried other settings and none of them work on dm with people you haven't sent them a message before.

I tested it before commenting. It works just fine.