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

Enumeration attribute not recognized

This is the code I am running: import Qubit from Z import Z q = Qubit(Z.V) Qubit code looks like this: from Z import Z class Qubit: def __init__(self, spin): if isinstance(spin, Z): print ('success') Z code looks like this: from enum…
joshua
  • 458
  • 5
  • 18
-2
votes
1 answer

Discord bot will not respond to commands

I am using this Replit demo to create a Discord bot: https://replit.com/@amasad/Discordpy-Music-Bot I followed the instructions, and my bot is capable of logging in and staying online. The only thing wrong is it won't respond to any of my commands,…
sam
  • 1
-2
votes
1 answer

"List of indices must be integers, not str" While getting an API image using aiohttp

I am making a discord bot that is meant to send embeds with images gotten froms APIs. I have one for a dog, and it works. The code for the dog one: if message.content.lower().startswith("!dog"): async with aiohttp.ClientSession() as session: …
Martin
  • 158
  • 1
  • 3
  • 13
-2
votes
1 answer

I am unable to access 127.0.0.1

I am developing an app in repl.it, when I run the code this is output: * Serving Flask app 'main' (lazy loading) * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production…
ferg
  • 13
  • 4
-2
votes
1 answer

Why does discord-py-slash-command pip package keep uninstalling itself?

Ever single time I open my code to test or edit it (I'm using repl.it btw) everything is fine running but discord.py slash commands just uninstall itself EVERY TIME I open the repl. its just annoying having to type "pip install…
Antlogiq
  • 1
  • 1
-2
votes
1 answer

I want score attained by user

I have to get score of user in my quiz.Here, is the link https://replit.com/@ArpitKumar9/quiz-1#index.js
-2
votes
1 answer

How do I make enter send a message while typing in a text box in HTML?

I have forked this repl.it https://replit.com/@templates/Socketio-Chat-Template and am using it with a friend but having to press the 'send button every time I want to send a message feels unnatural, is there any way to make it so that pressing…
Jake
  • 19
  • 5
-2
votes
1 answer

How to fix quick.db is not installing?

I have been trying to install quick.db package on my repl.it project but on every time I try that it just crashes and gives this error: It was working fine before but when I reinstalled it for a reason it started crushing every time. I need this…
Hassan_BH
  • 113
  • 1
  • 2
  • 11
-2
votes
1 answer

Python Discord bot error I haven’t seen before

I started this code a bit ago in repl.it but each time I try to run it, it throws me this weird error. Could someone help me figure this out? I’m trying to make a !purge command for a Discord bot, but whenever i try to add in an Embedded message…
asdf
  • 29
  • 4
-2
votes
1 answer

Mongoose 1.0.2 not connecting to repl.it

So my problem is that I am hosting a discord bot on repl.it and It is refusing to connect to mongo db on my laptop I have tried to create a account but I don't know how to connect it. I have been trying to connect it for almost 2 weeks now and I…
DA Skull
  • 23
  • 7
-2
votes
3 answers

Celsius to Fahrenheit converter in "JavaScript" failing in repl but working in Chrome

I’ve been working on the challenge to get into a bootcamp (as a complete newb) and I hit a bit of a bump The task is to convert the temperature of 4°C to °F All versions below work in the developers tool in chrome, however they don’t work on…
-2
votes
1 answer

hello please how to solve this error .error CS1525: Unexpected symbol `namespace', expecting `identifier' or `static' Compilation failed: 1 error(s)

hello please how can i solve this error( mcs -out:main.exe main.cs main.cs(8,6): error CS1525: Unexpected symbol namespace', expecting identifier' or `static' Compilation failed: 1 error(s), 0 warnings ) from this exercice ( use the + operation to…
CHARLY
  • 1
  • 4
-2
votes
1 answer

How to call a local file/online file if you are using repl.it?

I would let my discord bot(python) into the voice channel and play an audio, but I'm Using repl.it, how should I do? Sorry about my English :(
TxJxCh
  • 1
  • 1
-2
votes
4 answers

How do I fix it when is says TypeError: unsupported operand type(s) for +: 'type' and 'type'?

I know there is something wrong, with this, something about the types, but I forgot how to change it. number = int(input("Which number do you want to check? ")) if number/2 == int + float: print("This number is an odd number") else: print("This…
mechy 345
  • 7
  • 2
-2
votes
1 answer

Can't pass struct to function declared in another file?

I have a series of variables including a struct that is declared in another file (Vek.h). In this file, I also declare a function called correct: class Vek: public Player{ protected : int counter = 0; struct next {int nexti=0; int…
Mark13Vek
  • 1
  • 1