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
0 answers

Running Eliza Chatbot on Mac Terminal

I am running Python3 with the latest Python Launcher on my Mac, the scripts are run on Mac Terminal. It is a chatbot script, sort of Eliza knockoff in Python version. This is what I got from the Mac terminal. Couldn't run it and I used input()…
Gary Lai
  • 19
  • 1
1
vote
1 answer

Text displaying twice in different fonts | Javascript Canvas

I am creating a game using javascript on repl.it. I have run into a problem with the menu screen of my game. The title text for my game displays twice in different fonts over eachother. However, if I refresh the window, the text displays normally.…
Joyal Mathew
  • 614
  • 7
  • 24
1
vote
1 answer

How to print a backspace character with python using repl.it

I am using python3 on repl.it. I was trying to print a backspace but it prints instead print("hello\bworld") should print hellworld but it prints helloworld. I tried to use sys.stdout.write("\b") but it still prints .Can someone please help?
Hippolippo
  • 803
  • 1
  • 5
  • 28
1
vote
2 answers

TypeError: not all arguments converted during string formatting to color text

I am trying to make a game on my own and this is my first one. In it I'm trying to add features as time goes on and one day I came up with an idea to add color to certain key words. This is what I have: print("The Text Based Game v0.1.0.0") import…
1
vote
1 answer

Ruby/Sinatra/jQuery app not running in repl.it

My mad libs game (Ruby/Sinatra backend, most logic is JS/jQuery, data is stored in json files) runs fine on my Mac and my Ubuntu VirtualBox, but when I installed it on repl.it (and made a few changes that seemed indicated by their example…
globewalldesk
  • 544
  • 1
  • 3
  • 18
1
vote
1 answer

How to upload images to repl.it

I am working on a school video game project in which I am coding a game with friends. Because I am working on a school laptop, I can not download python, so I use repl.it. My friends made graphics to use in the game, but I don't know how to use them…
Mason D
  • 11
  • 1
  • 4
0
votes
0 answers

How to install Opencv in python (Repl.it)

Fairly new to coding. All suggestions say to input pip install opencv-python but this gives syntax error "invalid syntax". I don''t understand at all. Any help is appreciated I tried what everyone said to do. Expected it to work.
0
votes
1 answer

AttributeError: 'NoneType' object has no attribute 'send' when sending message

so I checked all over in stack overflow for answers and nothing. Im trying to make it that when the bot fires up it will send a message in a channel, I have alr checked if the bot can see and talk in the channel and they can. My code: import…
0
votes
0 answers

Communicating with executable on repl.it

I'm using Repl.it and Python to communicate with an executable (stockfish, a chess engine). i.e.: Send a command to the stockfish executable Get the output This is what I'm currently doing: stockfish = subprocess.check_output(f'printf "position…
Boo Who
  • 17
  • 6
0
votes
0 answers

How to set environment variable of export OPENCV4NODEJS_DISABLE_AUTOBUILD=1?

I am attempting to set an environment variable for opencv4nodejs, but all that is told in the documentation is to do export OPENCV4NODEJS_DISABLE_AUTOBUILD=1 for linux OS(I am using repl.it to run my program, and replit runs on linux OS). The issue…
0
votes
1 answer

Problem writing the combination of two different images in node.js for only some images

Its a baffling problem, since I don't know how to debug this. The goal: combine two images into one with jimp. It works perfectly on some images(no clue why it works on some but not on others), but on other images it doesn't work and just kills…
Jeff
  • 11
  • 1
0
votes
0 answers

How to recieve repl.it username on a static HTML page?

I am creating a games website on repl.it (https://goofyahgames.ml) I am trying to make a repl.it authentication, which works. BUT I need to receive who is logging in, which I can't figure out how to do on HTML. Repl.It docs…
0
votes
1 answer

Repost deleted images to discord using a bot

I have written a discord.py bot on repl.it that makes one able to quote on text. i will spare you on the code for this one, since it does not help in answerign the question, but basically, it splits a send message with a parameter and puts these…
0
votes
1 answer

Repl.it discord.js bot doesn’t go online

I was hosting a discord.js bot on repl.it and at the beginning it worked fine. I had an easy ping-pong example, which worked too. But now, as I added code, it stopped working. When I run it, the program shows the usual Example app listening at…
0
votes
0 answers

Why do functions auto take in code that's not apart of the function

The title may be confusing so I will explain it. I run python on replit.com (not sure if this is only an issue on replit.com) and sometimes when I hide then unhide code within a function it automatically puts code that's next to but not within the…