Skip to content
Sign upLog in
← Back to Community
Repl.it Access one file from another repl?
Profile icon
lightningrock

So I am making a text adventure, and I have functions in the part one repl that I would like to use in my part two repl. Is there any way to do that? I am using python without any packages.

Also, just curious, is there a repl.it API? That would be quite useful if there were one.

Answered by EpicGamer007 [earned 5 cycles]
View Answer
Voters
Profile icon
cobbbbb
Profile icon
lightningrock
Comments
hotnewtop
Profile icon
EpicGamer007

There is no way to get it to the part 2 repl other than just copying all the functions you need from the first to the second.

Profile icon
Coder100

No, you can't access another repl, why not just do something like:

print("go to part to here: [insert url]")

Yes, yes there is an API. https://repl.it/graphql, but I'm not going to tell you how to use it (it's PRIVATE and has been abused maybe once or twice)

Profile icon
lightningrock

@Coder100
Oh ok bc I wanted to use the functions in the first repl in the second repl. BTW What do you mean it has been abbused?

Profile icon
Coder100

@lightningrock
remember how repl.it went down a few minutes ago?

Profile icon
Coder100

@lightningrock
or maybe 10 minutes ago, that was most likely because some malicious user got ahold of graphql

Profile icon
Coder100

If you really want to use the API ping

@turbio
and
@masfrost
@lightningrock

Profile icon
lightningrock

Oh, repl.it was down? I thought it was my internet.

@Coder100

Profile icon
Coder100

haha no, they even had to go on cloudflare anti-DDOS

@lightningrock

Profile icon
lightningrock
Profile icon
Coder100

Here's repl.it's testimony (on discord)

image

@lightningrock

Profile icon
Coder100

np :) good luck on your game!

@lightningrock

Profile icon
lightningrock
Profile icon
Coder100