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

How can I specify what I want a list to say at a beginning, and ensure that my index is not out of range?

I'm coding a discord bot that cheers people up by recognizing keywords, and users are able to add their own motivational messages to the database too. Additionally, I've created a command that shows the list of user-added messages when the user uses…
0
votes
1 answer

(Formatting) A single indent in VSCode is two indents in repl.it Is there a setting for this on either one of the IDEs?

This python code was imported from a git repository in which the code was originally written from Visual Studio Code. Seeing the code on repl.it, the indentations are now corrupted (They don't see to agree on the indentations). A single indentation…
PilotHacker
  • 121
  • 1
  • 6
0
votes
2 answers

Chai & Mocha: Tests stop express server from listening

I wrote tests using chai. Here are just three example tests: (In reality, there are more tests, please check out the repl linked) File: tests/2_functional-tests.js const chaiHttp = require('chai-http'); const chai = require('chai'); const assert =…
dasJulian
  • 497
  • 6
  • 21
0
votes
1 answer

How would one go about setting up a score tally for a personality quiz?

I'm currently trying to make an aesthetic personality quiz type thing in repl.it using python. I have 4 different variables that all start at 0, and depending on the user input, the scores will go up by one. I'm having some trouble making it to…
0
votes
0 answers

how to execute code in server from browser

This is a question out of curiosity. Does anybody know how repl.it is executing python code in a virtual desktop environment (especially turtle code)? We have an application hosted in AWS, can Amazon workspaces be handy for the purpose? Came to know…
Anoop Kc
  • 147
  • 1
  • 9
0
votes
0 answers

Repl.it Failed to load module script: Expected a JavaScript module script

import myJson from './usage.json'; function pyRun(file, input) { console.log('b'); $.ajax({ type: "POST", url: `${file}.py`, data: { param: input }, }).done(() => { console.log('a'); …
Kaito
  • 80
  • 1
  • 10
0
votes
1 answer

How to create a leader board in repl.it python

I'm trying to make a game with a leaderboard, and I have the code that writes the high scores in a file, but when multiple people play the game, they have separate leaderboards. so basically, i'm asking if there's a way to have everyone share a file…
Haha6733
  • 69
  • 9
0
votes
1 answer

How can I use a secret on Repl.it with my JavaScript code for Telegram using Telegraf?

I have this code: const bot = new Telegraf('tokengoeshereblablablabla') And I want it to look like this: const bot = new Telegraf(TOKEN) So my Telegram token wont be leaked. I know it's possible, but I don't find it eather here in StackOverflow…
r0dr1
  • 79
  • 8
0
votes
1 answer

Why isn't DiscordJS Function properly and sending a can not find module error?

I updated the node and discord.js version of my bot(Hosted on Repl.it), and since then I can not seem to use the DiscordJS Library. I have two bots I am using, one is working properly even though it is like the latest version while the other one,…
0
votes
1 answer

THREE.WebGLShader "Error: To many uniforms" when creating a lot of Point Lights

Background I'm trying to make a ring of lights as you can see in the function below function createLightRing(radius, options) { let nopIsDefault = false; ... but when I run it a get this error THREE.WebGLProgram: shader error: 0 35715…
0
votes
1 answer

bot for unwhitelisting people

I'm trying to make a bot for whitelisting and unwhitelisting people. I've use replit because it has easy DB - code will run in their DB. So I started making bot whitelist, which was easy. When I started unwhitelisting there was an error ... when I…
R.A
  • 29
  • 8
0
votes
0 answers

Unable to install packages in Repl.it

I'm using Repl.it in python, and am currently unable to install any new packages. Under the Packages tab I find the one I need and try to download it, but it tells me "(package name) was not installed. There may have been an error- check the Console…
0
votes
1 answer

const token = this.client.token ?? this.client.accessToken; SyntaxError: Unexpected token '?' repl.it with latest node

I have the latest node version installed v16 and when i start the bot with the run button or the console it brings me this error: const token = this.client.token ?? this.client.accessToken; ^ SyntaxError:…
PackOf20
  • 334
  • 2
  • 17
0
votes
1 answer

Replit DB Circular Reference Detected

Recently, I was programming a Python MMORPG using repl.it's database system. However, I ran into an error that I have no idea how to fix. I am trying to make a key in the database that lists all the humanoids in a certain area, so that different…
Akrix
  • 23
  • 5
0
votes
2 answers

Cannot Host Discord Bot on repl.it

I recently made a discord bot and ran in on repl.it as it has free hosting (I use uptime robot). But, when I run main.py the uptime robot says that the website that I use for keep_alive() is "Down" and when I try to access the website from my…
AJ2000
  • 33
  • 1
  • 5