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

Rep-lit + Histograms + Matplotlib -- code works in Python but won't work on replit and there's no error messages

Reasking the same question that got closed: I am a college professor who wants to teach a Python lesson without having students install Python on their computers. I am using this code from a colleague that I have tweaked. It works in Python. It is…
Natalie
  • 1
  • 1
0
votes
1 answer

Socket.io gives same ip address no matter where the connection is happening from (hosting with repl.it)

This is for a bigger project but i managed to condense it into one small program. I am trying to get the ip address of the client from a websocket connection. I found out that I can use socket.handshake.address but when I run it on repl.it it always…
0
votes
1 answer

"IndentationError: expected an indented block" in my python code

Ok, so I tried running my code (so far) and it has this annoying/weird error. I have double-checked it but it is still wrong. I know it's usually to do with indents, but everything seems to be in order. I'll paste the WHOLE code down there. PS some…
PixelPro
  • 15
  • 3
0
votes
0 answers

Is there any way to increase the maximum size of a 2D array in repl.it?

I am writing some code that requires me to use a 2D integer array that is size 50000x50000. Unfortunately, every single time I try to do this, I end up getting a segmentation error. I am currently using the repl.it IDE. Do you know any way in which…
Username1
  • 11
  • 1
0
votes
0 answers

Getting SyntaxError: Unexpected token '.' for statement error?.output on some versions of Node.js

/home/runner/SR12/index.js:83 lastDisconnect.error?.output?.statusCode !== DisconnectReason.loggedOut ? startAsrbot() : console.log('Koneksi Terputus...') ^ SyntaxError: Unexpected token '.' I getting…
Mr ASR
  • 1
  • 1
0
votes
1 answer

TypeError: 'Pyre' object is not subscriptable (I'm getting this error even though it was never there before)

I started working with Pyrebase recently and it's been going smoothly. However, today, I started getting an error from an update statement that I wasn't getting before. I didn't change anything in the code. The statement triggering the TypeError…
0
votes
1 answer

How do I see a certain member's permissions in discord?

I tried this in different ways but I can't find the right one. {name: `**Permissions:**`, value: `${user.permissions.cache.size}`,inline: false} It says ".size is undefined" I want to display something like this:
Itzkaiiii
  • 25
  • 7
0
votes
1 answer

How to get the the createdAt timestamp without 'GMT+0000 (Coordinated Universal Time)'?

I have searched everywhere for this but I haven't got the right answer. I just want to set it without the CUT time. {name: "Registered:", value: `${user.createdAt}`}, {name: "Joined:", value: `${message.guild.joinedAt}`} It currently shows up…
Itzkaiiii
  • 25
  • 7
0
votes
1 answer

Discord.js How to get show your server member count from your bot

I've been trying to show my server member count from my bot but I don't know the input to type. const {MessageEmbed} = require("discord.js") module.exports.run = async (client, message, args) => { console.log(message.guild.iconURL()) const…
Itzkaiiii
  • 25
  • 7
0
votes
1 answer

Repeating messages even after explicitly checking for history in discord

I'm trying to make a discord bot and I've added functionality of the tasks repeating after 24 hours using tasks.loop after at an interval of 24 hours( 64800 seconds). Since the code is run on repl.it, I've used uptimerobot to continuously send a…
Anandakrishnan
  • 347
  • 1
  • 4
  • 18
0
votes
1 answer

Why do I get this syntax error (false syntax error pyflakes)

I try to follow a tutorial on how to host a discord bot with discord.py. I did everything correctly but pyflakes shows a syntax error. Do You know why? I've got two files: main.py and keep_alive.py. This is main.py: import os import discord from…
Sneezy_HD
  • 55
  • 6
0
votes
0 answers

Create a command to update a discord bot database

I have made a discord bot in python which makes use of databases to store channel ids where my bot is running. I have a command which allows me to add/remove items from this database, however, it will not actually update the database unless if I…
Javkxx
  • 1
0
votes
0 answers

db.sqlite3 continues working after having been deleted

I recently deleted my db.sqlite3 file because some data had become corrupted. I though that at the next run of python manage.py migrate it would have simply been recreated from stratch. Instead, Django is contuining to work off the old db.sqlite3…
Edgar Derby
  • 2,543
  • 4
  • 29
  • 48
0
votes
1 answer

Python code doesn't work after imported from PyCharm to Repl.it (ParseError: bad input)

I was working on a simple one-point perspective 3D-Engine in PyCharm which uses Turtle to render images. The code simply just renders three (badly-made) stars floating around and changing colours. I've also worked on the site repl.it tons of hours…
0
votes
3 answers

How to get attribute values of HTML tags into a list?

I want to extract the values of the "id" attribute from a list of table rows like this one: , via BeautifulSoup4. In the case of this example tag, I want the "8LVPCRJGR" part. I tried this block of code…