There is already an electron app for repl.
https://github.com/repl-it-discord/repl-it-electron
Currently it is functional, even though leon hasnt been working on it recently.
There is already an electron app for repl.
https://github.com/repl-it-discord/repl-it-electron
Currently it is functional, even though leon hasnt been working on it recently.
Welcome! Nice change. Wonder if you could make something for .env files? maybe like a lock would be cool. Great change though.
import <filename without extension>
here is an example: https://repl.it/@AllAwesome497/Business-Man-6
Repl accounts are permanent. What you might be confused with is how long servers stay up. Servers stay up for 30 minutes after the website is visited. The website, though will always be up.
neat
@Scoder12 yeah. Bummer i didn't have the time to work on it after i initially wrote it.
@amasad Thank you. And thanks to everyone else.
Instead of pasting the code here, link the repl to the post. Dong so not only makes it readable, but it also lets us see firsthand and easily fork+edit it, so that we can better help you.
@JordanDixon1 You can! I have a post here detailing it.
Have fun with it. when u learn something new, think of annother way u could use it, do more than what the tutorial says. customize it.
@KiKUP ok. If u want it hidden to other users:
1) make a file named .env
2)add import ast
to the beginning of your code
3) Read the file:
with open('.env', 'r') as f:
<item name> = ast.literal_eval(f.read())
4)Write data into file:
with open('.env', 'w') as f:
f.write(str(<item name>))
here's an example of something I did with this: https://repl.it/@AllAwesome497/LOL-Bot
@mkhoi ok then ctrl/cmd +v should paste. Shift right clicking might show paste idk
An Error occurred: Failed to authenticate :(
Your problem is at line 11, where you forgot to indent if input() == "3":
, to fix this, simply put 2 spaces at the beginning of the line.
If it is a terminal game, then no, sound is currently not supported. If it is on a site though, then yes, you can.
@bittybith they were banned from the replit server, at least on this account...
@k9chelsea2 me too, I just blocked them
Hey. I'll point some team members your way. Right now, they are likely all asleep (i think it's 4:42 am rn in san francisco) so ur night be a while.
Time.sleep is good, but it is bad to use in any web application, since it freezes the entire application instead of a single task. asyncio.sleep pauses a single task only, making it useful (on certain occasions) in web applications.
This is how you get a random number:
import random # At the beginning of the file
random_number = random.randint(<lowest number>, <highest number>) # Choose a number between arg 1 and arg 2, includes the top and bottom numbers
Thanks for reading my earlier message and adding more to your guide, but can you provide an example please? Sometimes examples are what help the most, especially to beginners.
Btw, if u provide the link to the repl, if we click on it it will open a little window to it, which makes it more readable, and allows us to see the exact error,
and edit a forked version of it.
if you are on the repl.it discord server [email protected] someone on replit team with a link to your template repl, if not, probably email [email protected]
. Edit: Timchen says that he wil be making a template soon, and it will be announced at talk/announcements
Contact [email protected]
(probably would be best if u used your email u are singed in as, or if you have signed up with social Meha , use the email u used for that) say your username, and the name of the repl you want restored, and (ofc) ask for it to be restored.
bc just because u have a lot of cycles, doesn't mean u are responsible. some people get like 40 or something just for saying something people agree w/ or making a game. Making a game doesn't make u responsible. Although a badge of some sort or something such as a admin's star (not a star ofc but something similar) would not be bad
What language? If u know how to do it make a file called .env
@BhuCoder
what
well yes, but macs also have a lot of bloat, and macs are priced ridiculously high.
ok this is just wrong. Apple has been sued for literally putting in code designed to slow down older devices.
this is a horribly misguided statement. Apple's browser, safari, prefixes a lot of global / window variables, eg window.AudioCTX -> window.webkitAudioCTX. The majority of the world doesn't use macs, so you're then going to be doing extra work to support other platforms because apple likes to be different.
you realize that companies can't sue you for talking bad about them, right?
what? What does microsoft have to do with windows. Also, are you saying variety is bad? Last I checked, that was a good thing so this statement doesn't make sense.
What's it with the internet where if someone has a different opinion, they're wrong? Why are you taking it as a personal insult when someone doesn't like the same operating system which you use?