Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

[Bug] Invalid settings on repl.it install #278

Closed
AnshulKale08 opened this issue Oct 18, 2021 · 9 comments
Closed

[Bug] Invalid settings on repl.it install #278

AnshulKale08 opened this issue Oct 18, 2021 · 9 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@AnshulKale08
Copy link

AnshulKale08 commented Oct 18, 2021

Describe the bug

image

So I get this error and I have all the other issues and tried fixing , but it does not work. (Even the quotation marks)
Slow , please if you can help me please do it. Anyone just help me please.
Also I get this JSON5: invalid character 's' at 1:1 error on the json5 checker website listed in the readme

Another question : Is it deployable on heroku?

To Reproduce

I guess the above and below description give a clear idea about that.

Expected behavior

It should have just worked and not displayed any error yet it showed it.

Please provide your snipers settings.

settings="{
   tokens: {
      // Main Token (ex: Nz...)
      main: "",
      // Alt Tokens (ex: Nz...)
      alts: [
         "",
      ],
   },
   // 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: 10
      }
   },
   giveaway: {
      // Wether or not to activate the giveaway sniper (true/false)
      enabled: false,
      // Delay to react to the giveaway (in seconds)
      delay: 30,
      // DM the hoster on giveaway win (true/false)
      dm: true,
      // Messages to DM the host
      dmMessages: [
         "Hey, i won the giveaway.",
         "Could i redeem my prize?"
      ],
      // How long to wait to DM (in seconds)
      dmDelay: 25,
      // 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: false,
      // Whitelisted words for giveaway prizes
      whitelistedWords: [
         "nitro"
      ],
      // Blacklisted Server IDs to not snipe giveaways on
      blacklistedServers: [
         ""
      ],
      // Only snipe giveaways on whitelisted servers (true/false)
      whitelistServersOnly: false,
      whitelistedServers: [
        ""
      ]
   },
   invite: {
      // Wether or not to activate the invite sniper (true/false)
      enabled: false,
      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: 1500,
         // 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,
      // Wether to allow the main token to snipe invites (true/false)
      onlyAlts: true
   },
   webhook: {
      // URL to fire webhook to for notifications (ex: https://discord.com/api/webhooks/.../...)
      url: "",
      enabled: {
         // Fire webhook on invalid code (true/false)
         codeInvalid: false,
         // Fire webhook on already redeemed code (true/false)
         codeAlreadyRedeemed: false,
         // 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: false,
         // Fire webhook on failure of sniping invite (true/false)
         inviteFail: false
      },
      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
      }
   }
}"

What platform are you seeing the problem on?

Repl.it

Relevant log output if applicable.

[2021-10-18 15:59:21] Invalid settings, please visit the FAQ for more information: https://github.com/slow/nitro-sniper#faq. Exiting process...
npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! nitro-sniper@1.3.9 start: `node .`
npm ERR! Exit status 255
npm ERR! 
npm ERR! Failed at the nitro-sniper@1.3.9 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2021-10-18T15_59_26_818Z-debug.log
exit status 255
@AnshulKale08 AnshulKale08 added the enhancement New feature or request label Oct 18, 2021
@AnshulKale08
Copy link
Author

oh ok

@AnshulKale08
Copy link
Author

It works now wow!
Thx a lot

Btw is it deployable on heroku?

@AnshulKale08
Copy link
Author

Ohh , cant i like fork it or download all the files and then upload it as a new repository and then deploy?

Btw yea i will close it in some minutes

@AnshulKale08
Copy link
Author

Sad , I hope with some changes it could have been changed.

Also I have some sniper on my heroku and it works perfectly fine , has sniped like 5 codes for me and 10 for my friends
However, I can neither find where I deployed it from.

image

These are the logs
Can this help in any way
It kind of looks like your old code or something.

@AnshulKale08
Copy link
Author

Ahh , Man heroku sucks at that

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants
@AnshulKale08 and others