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
-2
votes
1 answer

How to fix ' name "xxx" is not defined

In my program, I'm trying to run a "def command" in a conditional statement. An error pops up saying name 'command' is not defined. I tried to rewrite the code and tried to reload the repl.it server many times. def main(): inputmain =…
-2
votes
2 answers

My code doesn't allow 2 times a character (how to fix)

I need to write a code that counts the amount of closed area's en the amount of ends within a word (so B has 2 closed area's) but when 1 character sits 2 times within 1 question it only counts 1 time. I tried something that should count the amount…
PSRemco
  • 11
  • 1
-2
votes
1 answer

Movement keys stop moving though key hasn't been released

It was hard to properly summarize the problem I am facing. I am making a random game to try and learn js and I have run into a problem which affects the player movement badly. I am coding on repl.it as it is easier for me so here is the link to the…
-2
votes
2 answers

Run length encoding of the symbols in list with using scheme language

I am trying to find frequency of the letters in a list with using scheme language but I can not do it for 4 days, and code must be work in repl.it For example, our list is (a a a a b c c a a d e e e e) our output should be (4 a ) b ( 2 c ) ( 2…
-2
votes
3 answers

repl.it node js Cannot GET /

How do you set up a nodejs project on repl.it? I have a project that works on my localhost but once I uploaded it to repl.it it stopped working. Does repl.it automatically install packages from your package.json file? Is there something specific to…
Alek Westover
  • 244
  • 1
  • 9
-2
votes
1 answer

How can I use javascript std input/output in repl.it

I wrote a simple program for finding the factorial of a given number, which I want to run on repl.it. I would like to take standard input and output from the command line during it's execution. How can this be achieved?
Ashik
  • 2,888
  • 8
  • 28
  • 53
-3
votes
1 answer

I am creating a python program that filters text. How do I have the program search the computers files instead of manually dragging the file to python

This is my existing code: input = open("first file.txt", "rt") output = open("revised.txt", "wt") for line in input: output.write(line.replace("Bob", "James").replace("Xavier", "Jake")) input.close() output.close() Now, this works but I have to…
Beginner
  • 13
  • 1
-3
votes
2 answers

Discord bot in repl.it

I was trying to make a discord bot in python, I found this instruction on freecodecamp. I just copied their code, like in the video, but every time I run it there is this error message: Where is the problem? Please be indulgent I am a novice in…
foglar
  • 1
  • 5
-3
votes
1 answer

How to stop my discord bot remember data from another server

Hi I'm making a discord bot on REPL (Python) and ran into a issue with the code remembering data across server. This is an issue for me because if I want to use this bot across server it will have setting from another server Here is the link to the…
bosco
  • 3
  • 1
-3
votes
1 answer

Why does my Python code act like I'm answering yes to a question when I'm answering no?

Why does my code act like I'm answering yes to a question when I'm answering no? In this part of my code: scrollTxt("Your are woken up at 07:30 by the guards going around banging on the cell doors. Your roommate " + orange + roommate + cyan + ",…
-3
votes
1 answer

python script run perfectly in command line but failed test on repl,it

enter image description here this code run on my command line, total of 6 test and it failed two.it looks like extra space and i cant figure out how to solve it. here is the link to my repl…
seunlaw
  • 3
  • 1
-3
votes
4 answers

We are getting an error with this while loop but cannot see why

The error we are getting is that it is looping infinitely and does not appear to be picking a number to be the correct choice import random print ("Guess a random number between 1 and 10") number = random.randint(1,10) guessTaken = 0 print…
-4
votes
2 answers

Temporarily banned from discord.com when I run my bot

When I run my discord bot on repl.it I get this error: File "/home/runner/Corion/venv/lib/python3.8/site-packages/discord/client.py", line 723, in run return future.result() File…
Manos Stg
  • 84
  • 7
-4
votes
2 answers

How to install modules on the shell automatically on repl.it using python

I am making a discord bot, for this I needed to make buttons for an embed, and to do that I needed to import a library. Once I imported it in the code replit would say that there is no module named discord_slash, so I went into the shell and used…
Martin
  • 158
  • 1
  • 3
  • 13
-4
votes
1 answer

How do I use Repl.it's database?

I need my bot to save user violations to a database when a user uses a command. For example, when #violate @user red light pass is used, the bot should save the red light pass to the database for the mentioned user. I'm using Repl.it's database and…
1 2 3
21
22