Why so less comments?
Why so less comments?
@rafrafraf don't worry i don't know how to do any of that stuff
@rafrafraf huh. I never knew you could even use semi colons in python lol. tho i like how you made your "while" function
@dillonjoshua68 yes, there is a way to make a login system without replitdb, but users would not be able to create accounts on repl.it.
Since, there are values on what each letter is in keys.txt, wouldn't that mean that people that use your program can have their encrypted values easily decrypted? Don't take this too seriously, it's just a question
@JosephSanthosh You would do something like print("\033[1m" + "This is bold text!" + "\033[0m")
Hope this helps!
Unfortunately, you can not change the font family of text in python. But, you can change the color of the text or add markdown to the text. Hope this answers your question! Upvote or choose as the correct answer if so.
This is only going to work if @AmeliaBlackwell chooses to buy more requests to jsonbin or she gets another api for the game. If she gets another api, all of the data won't be saved.
Can you run programs when you search something up? If you added in programs into search results, it would be really cool!
Nice!
Nice! You even have statistics on your own websites! repl.email is probably my favorite!
Very nice game for your first post! I guess I don't have enough creativity to make such a great game oof
@k9chelsea2 Thanks! How can I make this even better?
Any idea when an api for this is ready?
@MarblesAndMore Yes, and the difficulty and your streak.
This is addicting!
@TerrorbuildLuna That means you took too long to answer the question. You have 100 seconds to answer a question and the longer it takes to answer one, the less points you have.
Great visuals! This is a great thing to spread awareness that COVID-19 is actually very harmful to people!
@BusterCody3 You should try to put your bin access url into the .env file and the secretkey in the main.py file.
@BusterCody3 Change the signup function to:
def signup(username, password):
data = json.loads(requests.get(page, headers=headers).text)
for elem in data["accounts"]:
if elem["username"] == username:
print('This username has been taken already!')
return
data["accounts"].append({
"username": username,
"password": password
})
requests.put(page, json=data, headers=headers)
I hope this will work!
@BusterCody3 Right! I forgot to tell you this! So, it doesn't work because you have to have json in your bin.
Here is the json you need to put in your bin:
{
"accounts": []
}
That's all!
Type this into the terminal, python -m pip install -U discord.py
. You can open up the terminal by clicking, ctrl+shift+s
. That will help you update your discord module. Hope this helps! If it does, don't forget to upvote and click on the correct answer button!
@BusterCody3 Once you have made a jsonbin account, you can make a bin. From there, there is an access url to put in for the url. Also, the secret key is used like a password to open the bin so that you can get its data. The secret key/ api key can be found here. Hope this answers your questions!
@BusterCody3 Here it is! The template is here!
Hope this helps and click the upvote button and the correct answer button if it helps you!
You can use jsonbin or use the repl.it database. Hope this helps!
Hi, it seems like your problem is actually that you haven't defined what enemy_hp
is in main.py
. For your function Ogre, you should make the parameter enemy_hp=20
instead of defining the value of the parameter inside your function. This will let you make that parameter an optional one. Hope this helps!
Sometimes I feel like these very simple projects shouldn't get many upvotes but I guess this is how repl works