Skip to content
← Back to Community
How do you make a bot on repl.it?
Profile icon
Whacko

How do you make a bot on repl.it?

I want to make a cool bot user that can make posts, write code, and make comments.
Does anybody have a tutorial for this, perhaps?
Or a way to do this?
I know these languages:

  • Node.js (If you can, I would like this language)
  • Python

Also, this isn't a Discord bot!
What I want is to make a bot user for repl.it that can share, code, customize its profile, and comment.
So, maybe you can help me?
I know it's possible, @Coder100 made @coderbot100 and a few other people also made some.
And if I need to code it, I would like it most in node.js.
Thank you!

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
programmeruser
Profile icon
Leroy01010
Profile icon
badst
Profile icon
MarcusWeinberger
Profile icon
OlauPla
Profile icon
Whacko
Comments
hotnewtop
Profile icon
Coder100

Ok, I would show you how, but retronbv showed me why I can't. All I can say is I used https://repl.it/graphql. If you would like to tell me specifically what you want accomplished, I might give you what you want...

btw, you could make a bot in bash and it would be quite easy

Profile icon
Whacko

@Coder100 Why can't you show me?

Profile icon
Coder100

it's far too easy to spam @Whacko

Profile icon
Coder100

anyways if it goes into the wrong hands someone could literally make a cycle bot @Whacko

Profile icon
Coder100

maybe even a repl talk spammer... @Whacko

Profile icon
Whacko

@Coder100 Maybe we can talk privately on Discord?

Profile icon
Coder100

wait hold up customizing your profile? That seems ok, I'll tell you how to do that:

URL: https://repl.it/data/user/update Method: POST Cookies: connect.sid Body: Form Data first_name: string last_name: string bio: string

Does that even help remotely? connect.sid you can find inside your cookies in repl.it. DON'T SHARE IT WITH ANYONE
@Whacko

Profile icon
realTronsi

@Coder100 lmao bots are just generally discouraged though

Profile icon
Coder100

yes they are @realTronsi

Profile icon
Coder100

But that doesn't mean they are all bad is it! @realTronsi

Profile icon
Coder100

Oh wow I type great @realTronsi

Profile icon
realTronsi

@Coder100 well yes but it's like saying drugs (those kind of drugs if you know what I mean) aren't all bad. Yes some can relieve pain etc but once it goes out, people are going to use it in inappropriate ways

Profile icon
CodeLongAndPros

@Coder100 Ahem, remember the self-botting you did?

Profile icon
Codemonkey51
Profile icon
Coder100

Oh yeah that was funny @CodeLongAndPros

Profile icon
Coder100

That's not an example of good but what could happen if went bad @CodeLongAndPros

Profile icon
CodeLongAndPros
Profile icon
Coder100

I'll stick with making clients instead @CodeLongAndPros

Profile icon
Coder100

We haven't gotten to automation yet :( @CodeLongAndPros

Profile icon
Zavexeon

Most users cannot now if using the official graphql api. Most of the graphql api (if not all) has been blocked to all users unless whitelisted. It was public for a little bit, but they made it private because of abusers.

Profile icon
realTronsi

You cannot code a talk bot, since they are banned from repl talk. If you would like to make one, they have to be whitelisted, but usually only bots made by mods are whitelisted.

If you code it in another IDE such as VS Code and use the bot for fun such as only activating upon some command (such as pinging), then go for it, but if you leak the code or use it inappropriately then you will face consequences.

Now the best way to do what you said is to start a server and make a crawler using something like cheerio. Depending on what you use, you could use JSDom to interact with the site, or you could inject some jquery, and jquery can help you click buttons and add text etc.

Profile icon
Whacko

@realTronsi How do you CODE it?

Profile icon
realTronsi

@Whacko I already told you, use a crawler like cheerio and use JSDom or jquery injections to interact

Profile icon
Coder100
Profile icon
Coder100

you use graphql actually @realTronsi

Profile icon
realTronsi

@Coder100 oh but I thought graphql was down?

Profile icon
Coder100

graphql is up maybe you don't have the correct headers? @realTronsi

Profile icon
Coder100

or maybe you don't use a client everyday so you don't know?
@realTronsi

Profile icon
realTronsi

@Coder100 well repl graphql for me has been down for a few weeks, show me what you see in graphql

Profile icon
Coder100

I can't show you all of it but here ya go:

image

@realTronsi

Profile icon
realTronsi

@Coder100 well poopoo I just have server connection error.

Profile icon
Coder100

yeah wrong headers @realTronsi

Profile icon
Whacko
Profile icon
realTronsi
Profile icon
Coder100

@Whacko noice

Profile icon
Coder100

I got 45 once @Whacko

Profile icon
Whacko

No @Coder100.
All of those were from this post.

Profile icon
Coder100

yes yes same here @Whacko

Profile icon
Coder100

special thanks to an argument @Whacko

Profile icon
realTronsi

@Coder100 tell me what is wrong with my header :(((

Profile icon
Coder100
Profile icon
Whacko

@Coder100 Why are you answering somebody else's question on a question?

Profile icon
Coder100

recursion @Whacko

Profile icon
Coder100

wait a second why are you putting your variables inside the header @realTronsi

Profile icon
Coder100

the variables tab are there for a reason... @realTronsi

Profile icon
Whacko

wait a second why are you answering a question on a question on repl.it @Coder100

Profile icon
Coder100
Profile icon
Whacko

Perhaps deleting this post will stop all this spam @Coder100...

Profile icon
Whacko

@Coder100 But I really want this question answered...

Profile icon
Coder100

fine fine dm me @Whacko

Profile icon
Coder100

we can't be sharing these secrets out in the open @Whacko

Profile icon
Whacko

@Coder100 Fine...
I will private message you on Discord.

Profile icon
Coder100

thankies i will reply soon @Whacko

Profile icon
realTronsi

@Coder100 wdym variable tabs

Profile icon
Coder100

bottom left @realTronsi

Profile icon
realTronsi

@Coder100 thats what I'm using though to defined my vars?

Profile icon
Coder100

im so confused rn @realTronsi

Profile icon
Coder100

graphql != headers, headers are just to make graphql work @realTronsi

Profile icon
realTronsi

@Coder100 ik, but I'm putting my vars in the query vars (look in screenshot again)

Profile icon
Coder100

did i missee @realTronsi

Profile icon
Coder100
Profile icon
realTronsi

@Coder100 thats how you do it tho? is it not

Profile icon
Coder100

no you put it in the query variables @realTronsi

Profile icon
realTronsi

@Coder100 Oh wtf headers was selected, I didn't even notice ig I'm colorblind

Profile icon
RYANTADIPARTHI

You'll have to program it in node.js, or a user server in other code editors. Like vscode, or atom, or something

Profile icon
Coder100

why would a code editor do anything @RYANTADIPARTHI

Profile icon
SUHASTADIPARTH1

You can make one using the the pyautogui module with python.
but pyautogui doesn't work on repl.it

You can code it somewhere on an editor like pycharm, visual studio code.

Profile icon
Whacko

@SUHASTADIPARTH1 Not what I wanted...
Do you know how to MAKE a user, perhaps on node.js?

Node.js is my best language.
Profile icon
SUHASTADIPARTH1
Profile icon
Whacko
Profile icon
Coder100

why would a code editor do anything @SUHASTADIPARTH1

Profile icon
SUHASTADIPARTH1

@Coder100 That is because, repl.it is not ideal for pyautogui.

Profile icon
Coder100

why would you need pyautogui @SUHASTADIPARTH1

Profile icon
SUHASTADIPARTH1

@Coder100 To make a bot

Profile icon
Coder100

seems more like a selfbot than a real bot

not even discord bots use that @SUHASTADIPARTH1