Scoder 12
hacker

@Scoder12 (343)
I am a passionate programmer who has been learning for 6 years. My main languages are python, js, and bash. http://scoder12.ml
Repl Talk Rules and Guidelines [README]
posted to Announcements by mat1

Yay glad this finally came together! (I helped)

How to use a custom domain
posted to Learn by dotcomboom

I was having the issue of where its saying "CNAME records should have a name set! " but I just used www for the name and it worked as long as I put www.mydomain.tld in repl instead of just mydomain.tld

What's your favorite YouTube programming Channel?
posted to Ask by hayaodeh

Code Bullet

Pygame "Open in a new tab" producing error
posted to Ask by DavidWilson

That's not an error as that is the same thing printed in the editor. Pygame does not yet have support for a new tab and repl.run will only show you the console output so that is why you won't see your window. Right now the only option is to work in the editor, but I'm sure the devs are working on it as it is a highly requested feature.

I am a repl.it helper. If this is a good answer, please upvote

Why doesn't repl.it have popular packages installed by default?
posted to Ask by sytelus

They used to have this before the package manager, but they are working on something to cache the packages using the new file system.

I am a repl.it helper. If this is a good answer, please upvote!

(@ replit staff) repl.run with certain compilation options
posted to Ask by SPQR

You could make a bash repl which runs the command for your code and use the repl.run link for that. If that doesn't work you might have to use polygott but that's pretty advanced.

I'm a repl.it helper. If this is a good answer, please upvote!

Did Repl.It add support for GitHub?
posted to Ask by PaoloAmoroso

Yep! This is an explorer feature still in beta announced in the explorer discord channel by masfrost.

If this was helpful, please upvote

💲Make Money 💲Building a Bot 🤖
posted to Ask by amasad

Ok @amasad I am done. I will do it for $45 but I can beat any other offers you get. I can dm you the repl and invite if you want.

https://repl.it/@Angelos_ThomasP/DearShortEmbed
posted to Ask by Angelos_ThomasP

@Angelos_ThomasP no worries, we're all learning together and its sad that some people don't enccourage that

Possible Repl Talk (Ask) Solution
posted to Ask by Vandesm14

You should put this on the Repl.it Feedback board. That's where the admins will see it. Also I think on ask they should have the repl embedded like other posts. Maybe a repl link could be required.

if this post helped you, please consider leaving an upvote!

HTML5 surveys
posted to Ask by TheGman753

You need some form of server to send the results to. This can be made in many different coding languages, but you can deploy it on repl.it and have the form tag submit to the server.

If you found this post helpful please leave an upvote!
If there is any way I can improve, please leave a reply!

Artificially Intelligent Audio Player
posted to Challenge by BLyons

How is this AI? A quick examination of the code just shows it return the first result found on youtube for the given data. There is nothing AI about this, its just a youtube player. smh

Auto Enter
posted to Ask by KidNext2Ben

Yes. You can use

import sys
import tty
tty.setraw(sys.stdin)
letter = sys.stdin.read(1) # put however many characters you want
print(letter)

I am a repl.it helper. If this is a good answer please upvote.

🥇repl.run homepage contest 💻
posted to Announcements by amasad

@joshwood you could check how wide the screen is programmatically and adjust your code for that.

🥇repl.run homepage contest 💻
posted to Announcements by amasad

What would you like it so say as the intro? Do we have to write our own? I don't want to be judged on that

Why isn't this executing all the way through?
posted to Ask by DavidMcConnachi

The reason it is not working is because == checks if strings are the same instance which will never be true since strings are immutable (you get a new instance each time). You are looking for the .equals() method which will check if the strings are equal.

if (problem_set.equals(problem_set_y))
            problem_set_y();

For more information, see this stack overflow question.

I am a repl.it helper. If this is a good answer, please upvote.

I did something horrible
posted to Ask by Elizabeth_Mason

Hi, it sounds like you have already been helped but it might help to ask in the discord server as well as the admins might respond faster there. It is also a great place to hang out!

Shortlink Bot
posted to Share by Scoder12

@andersonbosa You don't need to run it yourself! It is already running, you just need to invite it to your discord server or use it in the repl.it server.

💲Make Money 💲Building a Bot 🤖
posted to Ask by amasad

$45 and I'm almost done can get you tomorrow morning

https://repl.it/@Angelos_ThomasP/DearShortEmbed
posted to Ask by Angelos_ThomasP

On line 84, you are missing a closing parenthesis. This is what is causing the error. Also I think you want another input statement on line 85. And also if statements need 2 =, instead of one. Good luck! Ask again if you need more help!

If this helped, please consider upvoting.

Feat request: edit SVG code in addition to the preview
posted to Ask by abusedmedia

You should put this on the Repl.it Feedback board. That's where the admins will see it.

if this post helped you, please consider leaving an upvote!

Python - What is difference between a direct import and a dependency file for installing packages?
posted to Ask by Oziwag

The requirements.txt file just tell repl.it what to install. You still need to use the same import statements whether you use a requirements.txt or not. Generally requirements.txt is better because the auto install doesn't always work and plus you can specify things such as custom versions by using somepackage==1.2.3 where 1.2.3 is the version number.

I am a repl.it helper. If this helped you, please consider marking as the answer and/or upvoting.

Can Repl.it have a Stack overflow community?
posted to Ask by PYer

I agree that repl.it should have a stack overflow community, however I don't agree with earning cycles based on reputation. Then someone with a lot of reputation could come in and be the top contributor without ever writing a single post. Cycles are for contributing on this community, not on other ones with different rules.

python 3 replit modul
posted to Ask by thediamondlego

There isn't really any docs because the only way you can use it is using the following code:

import replit
replit.clear()

but there are some docs here that mention it. It is also mentioned in the FAQs:

Q. Can I clear the console programmatically?
Yes, but currently only in Python, post on our feedback forums if this is something that you want to see implemented in other languages.
import replit
replit.clear()
Note that this does not work if you are in Project Mode.

That is pretty much it.

If you found this post helpful please leave an upvote!
If there is any way I can improve, please leave a reply!

Files don't update after being edited via code.
posted to Ask by LukeZeller

Actually this is in beta right now and still under development. The project is called "goval files" because the code runner is called goval. If you set yourself as an explorer in your accounts, you can try it out, but make sure to report any errors or unexpected behavior to the team!

How to Make a Python Email Bot
posted to Learn by Scoder12

@giamorivera Oh my gosh, the article I thought I put in the tutorial got lost! But, with gmail, the max is you can only check once every.10 minutes, or 600 seconds. Here is the article, I will add it right now: https://support.google.com/mail/answer/7126229?hl=en

How to Make a Python Email Bot
posted to Learn by Scoder12

@giamorivera Yes, it should be receiving the new new emails as it is running, as it checks for new ones every few seconds depending what you set check_freq to in config.py. Which email service are you using? Perhaps they have an API limit...

How to Make a Python Email Bot
posted to Learn by Scoder12

@JamesXin You don't have to change anything, just make sure you have the correct server info and just login with whatever address you have, the TLD doesn't matter.

How to use a custom domain
posted to Learn by dotcomboom

I would really advise against using freenom's built-in DNS and using a provider such as cloudflare instead. Aside from cloudflare many additional features (many of which are less useful on repl.it but still really good) it allows you to change the DNS root values unlike freenom and allows you to specify an automatic TTL. Just make a clouflare account, put in your freenom domain, log into freenom, and change your nameservers to the ones clouflare provides for you. I fully recommend it to anyone trying this.