Questions tagged [repl.it]

Questions related to the popular online development environment repl.it. Questions should be related to the use and functionality of the repl.it editor/console itself rather than questions about programs developed on repl.it.

Website link: https://repl.it.

318 questions
1
vote
1 answer

Discord bot not logging in (discord.py python)

So the bot doesn't login as a user on startup, I am using repl.it python and referenced https://www.freecodecamp.org/news/create-a-discord-bot-with-python/ This is the code that I am using, please tell me how to fix the problem Also, if you can, can…
Raymond Mak
  • 37
  • 1
  • 6
1
vote
3 answers

Building a Dictionary of dictionaries in discord bot

I'm trying to create a simple bot for tallying requests for reviews of ticker symbols. there's a small community of traders who make requests for the TA expert to analyze charts. This is going to run as a discord bot. I want to create an…
1
vote
1 answer

i import PyNaCl, but whenever i upgrade python to a newer version, it is being removed ( Python )

i am using Repl.it and i am having trouble using PyNaCl in Python. i firstly install the package. pip install PyNaCl then i import it. import nacl PyNaCl works properly and i have no problem with that but whenever there is a newer version, and i…
Cengiz
  • 36
  • 4
1
vote
2 answers

Why cant i use the PyNaCl library in python repl.it

I'm using repl.it to make a discord.py bot and when I run the repl, it says: Repl.it: Updating package configuration --> python3 -m poetry install Installing dependencies from lock file Package operations: 2 installs, 2 updates, 0 removals -…
user13524876
1
vote
1 answer

Multiple submit button in a single page using flask and wtforms

I am writing a costom 404 handling page and need three button("Go back to the previous page";"Go to Home";"Visit our Help Center"), however I ran into some trouble, here is what I came up with and the problem I want to solve My 404.HTML {% extends…
Math Noob
  • 75
  • 1
  • 10
1
vote
0 answers

Errors hosting with replit

I have created a typing website that improves typing accuracy and speed, but it is files on my computer and accessing it locally, I am trying to put them onto replit with all of the files working properly on my computer but the script.js file…
Cohen
  • 2,375
  • 3
  • 16
  • 35
1
vote
1 answer

How to move a rectangle in pygame

I'm trying to make a moving rectangle in Pygame. I understand that I first need to use pygame.draw.rect(), in which I have. I am using an online IDE temporarily, Repl.it. I just need to make sure that this code is correct. import pygame,…
JandyPilot
  • 143
  • 6
1
vote
1 answer

How to send a message every 10 seconds discord.js?

I am trying to send a message every x amount of seconds in a discord.js bot. I know how to do this put the problem I am having is that it is spamming messages even when I have slowmode enabled. How can I fix this? client.on('message', message =>…
user14259677
1
vote
1 answer

Why is request.environ.get('HTTP_X_FORWARDED_FOR', request.remote_addr) not returning the right address sometimes?

I have a flask-based webpage running on repl.it. In said website, i have a form which uses post to send data to a page of the site. On this page, i have the following python code: b = request.environ.get('HTTP_X_FORWARDED_FOR',…
1
vote
0 answers

Access springboot application from repl.it

https://repl.it/join/gjoybdev-nodemario I have got the springboot application running on repl.it but I am not able to access it. I am getting the following error Hmmmm.... We Couldn't Reach Your Repl Make sure your repl has a port open and is ready…
Node Mario
  • 179
  • 13
1
vote
2 answers

Error loading discord bot on startup. hosted through repl.it

A couple days ago my discord bot suddenly went offline, i host my bot through repl.it and i cant get it to work as it gives a dirty error. Traceback (most recent call last): File "main.py", line 584, in
HijakTheMiner
  • 53
  • 2
  • 7
1
vote
1 answer

I'm not sure how to carry on after a person selects one question

System.out.println(" "); System.out.println("I knew something was up driving past that billboard."); System.out.println(" "); System.out.println("Something didn’t feel right."); System.out.println(" "); System.out.println(sName + " " + "Watch out…
Jayme2
  • 19
  • 1
1
vote
1 answer

javascript/ add function to prototype in repl.it

I am following this tutorial. function Bear(type){ this.type = type; } Bear.prototype.growl = function(){ console.log('grrr') } var grizzly = new Bear('grizzly') var bBear = new Bear('bBear') console.log(grizzly, bBear, Bear.growl) the…
mechaniac
  • 55
  • 8
1
vote
1 answer

Why is Repl.it python turtle.tracer(n) limited to 150?

I'm making a recursive drawing of a tree using repl.it py turtle. This is my code import turtle import random def about(x): return x * random.uniform(0.95,1.05) # recursively draw a tree def tree(t,a,s): if s<2: return t.left(a) …
John Henckel
  • 10,274
  • 3
  • 79
  • 79
1
vote
1 answer

Output non-ASCII character to the console in C++ using repl.it

I am using repl.it to edit and compile some C++ code. I want to output the obelus (division sign) to the console. The following code should do it. char div_sign ='\366'; cout << div_sign << endl; This works in Visual Studio and from what I can find…
user2970381
  • 93
  • 3
  • 11