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

POST requests return HTTP error 308 on repl.it

I need to make a post request from a modem onto one of my REPLs The post request works fine when sent from a sufficiently advanced device (with automatic redirects), however, low-level requests always get stopped due to HTTP 308 (permanent redirect)…
M. Chak
  • 530
  • 3
  • 13
0
votes
1 answer

How do I fix the error "Cannot read property 'execute' of undefined"?

I'm trying to make a discord bot using discord.js and repl.it, but for the ping command, I keep getting this error that says "Cannot read property 'execute' of undefined". I've looked at others with the same problem and tried their solutions, but…
Olive
  • 1
0
votes
1 answer

on requests.get, UnicodeEncodeError: 'latin-1' codec can't encode characters in position 89-91: ordinal not in range(256)

the problem is occuring on: response = requests.get('*some url*', cookies=cookies, verify=False).text. It was perfectly working today morning, but it suddenly threw this error: Ignoring exception in on_message Traceback (most recent call last): …
dbld
  • 998
  • 1
  • 7
  • 17
0
votes
1 answer

JS, how to get promises in loops

I just recently started working with js and still can't figure out the promises in loops. I am working with repl.it db. Let's say I have an array that contains keys and I would like to query each element of the array to put the values into a another…
Makasin
  • 5
  • 1
0
votes
1 answer

Run lua file other than main in replit

I'm trying to run a lua file other than main on replit.com, and I'm not sure how to do that. I know in java you just type "java name_of_file" into the terminal but typing "lua name_of_file) doesn't work. Here is a screenshot of what I'm trying to…
suz_m
  • 35
  • 1
  • 6
0
votes
1 answer

How can I play a mp3 file in a Nodejs Replit?

I have a mp3 file and I would like to play it when a button is pressed. But I belive I am not serving the file to the server correctly. Here is the code on Replit.com: const app = require('express')(); const http = require('http').Server(app); const…
Human Friend
  • 135
  • 1
  • 4
  • 11
0
votes
1 answer

discord.js simple kick users command

I recently made a kick command for my bot using arguments. I didn't want to use message.mentions.users.first() as that would kick a user if his/her message is replied with !kick. I have given my code below. The bot only asks me to mention a user…
Darshan B
  • 658
  • 1
  • 5
  • 19
0
votes
0 answers

Adding to values to a database in repl.it not working

I will go directly to the point; I'm having problems with accessing values in my Repl.it Database. I made an entire class in another file to access the database, I'm able to print out and return values but can't add values to a list in the…
Newbie
  • 1
  • 1
0
votes
1 answer

When i try to import termcolor on repl.it, it just says the package operation failed

When i try to run from termcolor import colored, cprint, it keeps coming up with Repl.it: Package operation failed. Does anyone know what the problem is and how to fix it?
RonaB
  • 5
  • 2
0
votes
1 answer

I am facing issues printing things on repl.it

I am new to repl.it and I was trying to print the python version using this code Print Version of the Python Running on the Machine Here's the code: import sys print("Python version") print (sys.version) print("Version info.") print…
siricat
  • 13
  • 4
0
votes
3 answers

How does my list become ObservedList? Problem with replit db

I have a problem with making discord bot on repl.it, my list is 'ObservedList' and i dont know what to do with this, when I watch some tutorials its always just a normal list from replit import db db['fruits'] =…
JacobyJacob
  • 21
  • 1
  • 1
0
votes
1 answer

I was making a claim command for giveaways so that the bot shows the claim time for the role which the user has

I wanted to know the error in this code and a solution to it. Thanks in advance! When the giveaway bot announces the winner, it starts with Congratulations <@user> . . . The bot needs to check the @user's roles and let the host know the claim time…
Darshan B
  • 658
  • 1
  • 5
  • 19
0
votes
1 answer

How to upload a folder with 3000 text documents on repl.it?

I am currently coding a discord bot and I want to host it online and the only solution I found was using repl.it. I tried uploading my folder (3MB) of text files on repl.it, but I always get an error from the website, saying "Ran out of memory". Is…
0
votes
1 answer

Keeping a jar file from terminating on repl.it

I'm trying to host a music bot on repl.it and lavalink keeps terminating on. How do I stop it from terminating.
0
votes
1 answer

Trying to click on button gives me an error. I am using repl.it python environment

Code: from webbot import Browser import time from selenium import webdriver from selenium.webdriver.chrome.options import Options web = Browser() tab = 1 add = 1 web.go_to('https://tankster.io') time.sleep(1) chrome_options =…