XtramCZ / auto-advertise-py

Discord selfbot written in python for advertising in specified channels
2 stars 2 forks source link

start.bat: command not found | PLEASE HELP #12

Closed Zeolite2 closed 6 months ago

Zeolite2 commented 7 months ago

I keep getting this error even though I have put everything inconfig.yml. I run the bot on Replit, I start it from the "start.bat" tab. Any idea why it is showing that. PLEASE HELP!

bot problem

XtramCZ commented 7 months ago

You can't run bat with sh, run the python file directly.

Zeolite2 commented 7 months ago

How do I run it directly? image

XtramCZ commented 7 months ago

I don't have experience with replit so I can't help you. Maybe the green "run" button at the top? You need to execute the command python main.py or python3 main.py

Zeolite2 commented 7 months ago

When I click "Run" it shows that "start.bat: command not found". Where should I write that "python main.py or python3 main.py"?

XtramCZ commented 7 months ago

That runs the file. Like I said, you are going to have to try to fix it yourself as I don't know how to setup replit for python.

Zeolite2 commented 7 months ago

It's the same for Replit, don't worry. But I really don't know how to fix it. Can you please check for me, I really need that bot, because it's easy to use? Please bro

XtramCZ commented 7 months ago

I can try tomorrow

Zeolite2 commented 7 months ago

Yeah bro, please do it. I would really appreciate it. I really need it. So would you let me know when you try, it's pretty easy to navigate through Replit, don't worry.

Zeolite2 commented 7 months ago

BTW can you tell me what that means "bash: start.bat: command not found"?

XtramCZ commented 7 months ago

"start.bat" is treated as a command (because it is not a .sh) but it doesn't exist.

Zeolite2 commented 7 months ago

What does .sh mean? And btw did you manage to try it on Replit?

XtramCZ commented 7 months ago

https://stackoverflow.com/questions/13805295/whats-a-sh-file

Works on replit without issues for me.

Zeolite2 commented 7 months ago

Very nice. How did you run it? Could you help me fix the issue with Replit for me, especially the one with "bash: start.bat: command not found"?

XtramCZ commented 7 months ago

I clicked on "create repl" and then "import from github > from URL" on the top right. I don't really know how to fix your issue, but try to do it like i said.

Zeolite2 commented 7 months ago

I did it the same way, put the info in the config file and then click run. What did you do after putting the info in the config, did you add the command "start.bat" anywhere? Please help

XtramCZ commented 7 months ago

no, i didnt do anything else. Just clicked the run button at the top

Zeolite2 commented 7 months ago

OK, thanks, I'll try again and I'll let you know if it works

Zeolite2 commented 7 months ago

The only thing you have to do is to put the info in config.yml, right?

XtramCZ commented 7 months ago

ye

Zeolite2 commented 7 months ago

OK, I'll try

Zeolite2 commented 7 months ago

Now it says my token is invalid, even though it's coorrect, any idea how to resolve that, please help image

XtramCZ commented 7 months ago

is it? Try here: https://discord-checker.janic.dev/

Replit may block the token since the code is public - Google how to setup env variables, that may help you.

Zeolite2 commented 7 months ago

I see, but why does it work for you then, but not for me?

Zeolite2 commented 7 months ago

I tried setting up env variables as google said, but after I run the command and click on "Run", nothing shows in the console. Can you check if everything I've put in the config is right. image

XtramCZ commented 7 months ago

Did you modify the code to use your env variables? This is a replit issue and a code issue so I can't really help you

Zeolite2 commented 7 months ago

I ran the command here, after that nothing shows up. Can you please help me set it up on Replit since it worked for you, I really need it? image

XtramCZ commented 7 months ago

Maybe the python main.py or python3 main.py? I did not need to set this up.

Zeolite2 commented 7 months ago

Didn't understand you. Where should I run this command? image

XtramCZ commented 7 months ago

in the "configure a run command" maybe ...?

Zeolite2 commented 7 months ago

What should I run there? Which command?

XtramCZ commented 7 months ago

Maybe the python main.py or python3 main.py? I did not need to set this up.

Zeolite2 commented 7 months ago

I did it as you said, but it says again invalid token, event though it's right, I literally took before putting it right now. Any idea? image

XtramCZ commented 7 months ago

Did you check the token on the site i sent you? Did you get a new one? Do you have 2fa? Do you have phone verification? Did you set up env variables? Did you change the code to take the token from the ENV variables and not config?

Zeolite2 commented 7 months ago

when I run the ENV variables command "export varname=value" on the "Configure the Run Command" nothing shows up. What do I do?

XtramCZ commented 7 months ago

because instead of running the program ur exporting the var

Zeolite2 commented 7 months ago

What do you mean. Can you please tell me step by step what should I do after I create a repl and import the code from github. Please bro, I really need help, please

XtramCZ commented 7 months ago

Looks like discord blocks replit's servers. I get the error "selfbots are against Discord's terms of service" Unfixable. Sorry. Get a vps or a bot hosting. Good luck.

Zeolite2 commented 7 months ago

I see, can you guide me how to run it on my pc, like on the cmd, I'dont have a clue in coding.

XtramCZ commented 7 months ago

I can see that. The installation guide is in readme.md

Zeolite2 commented 7 months ago

After I download the package, what should do to run it on the cmd, I literally don't have any idea of coding, please help

XtramCZ commented 7 months ago

The installation guide is in readme.md

pip install -r requirements.txt then click start.bat or type python main.py in cmd

Zeolite2 commented 7 months ago

but is that after I open the code in the cmd?

XtramCZ commented 7 months ago

?

Zeolite2 commented 7 months ago

Bro, I literally don't know how to run the code on the cmd, can you tell me step by step, in readme.md it's only the basic info, for people that know how to run it, please tell me how to open in the cmd!

XtramCZ commented 7 months ago

btw do you even have python installed?

  1. navigate to the folder in your file explorer
  2. Click the bar at the top (where location is displayed) and type "cmd"
  3. enter
  4. type command pip install -r requirements.txt
  5. enter
  6. type command python main.py
  7. enter
  8. if that doesn't work, type the command py main.py
  9. enter
  10. if that doesn't work, exit out of the cmd and double click start.bat
Zeolite2 commented 7 months ago

thank you

Zeolite2 commented 7 months ago

I did it, everything fine, but when I run it, it says "ivalid token", even though I got it right before putting it in the config. Any idea? image

XtramCZ commented 7 months ago

Did you check the token on the site i sent you? Did you get a new one? Do you have 2fa? Do you have phone verification? Did you set up env variables? Did you change the code to take the token from the ENV variables and not config?

Zeolite2 commented 7 months ago
  1. How do I check it there?
  2. No, but I'll try a new one.
  3. I don't have 2fa.
  4. Yes, I do have a phone verification.
  5. How do I set it up on the cmd?
  6. I haven't because I haven't set ENV variables, because I don't know how, so please tell me.
XtramCZ commented 7 months ago

My bad, try this site: https://kanekiweb.github.io/Token-Checker/

You need env variables only on replit, not locally.