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

How to import python files into main.py on repl.it?

Straight to the point: I have created three files on repl.it along with my main.py - Logger.py, Responses.py, and phrases.json Now when I am trying to import them into main.py using, import Logger.py import Response.py import phrases.json I am…
1
vote
1 answer

import discord gives me an error on repl.it

I'm trying to host a bot on repl.it, and when I was trying to run the bot this error message was shown: File "main.py", line 2, in import discord ModuleNotFoundError: No module named 'discord' This seemed weird to me as my code worked…
earthman
  • 27
  • 1
  • 7
1
vote
1 answer

How to separate members from bots in discord member count and separate text channels from voice and categories?

So I did some research but I never found the right answers I was looking for- Here is the complete code: const {MessageEmbed} = require("discord.js") const moment = require("moment") module.exports.run = async (client, message, args) => { …
Itzkaiiii
  • 25
  • 7
1
vote
0 answers

Message repeating 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 uptime robot to continuously send a…
Anandakrishnan
  • 347
  • 1
  • 4
  • 18
1
vote
2 answers

how to delete a single specific value within a repl database?

Im making a discord python bot using repl's database function and i cant figure out how to delete only one value from the database. @client.command() async def addvalue(ctx, arg): db[str(ctx.author.id)] = [arg] await ctx.send("value…
lolita
  • 43
  • 5
1
vote
2 answers

Is there a way to resize a Kaboom game when the window is resized

Consider the following simple kaboom "game": kaboom(); function makeWallComps(name, x, y, w, h) { return [ name, "wall", origin("center"), rect(w, h), pos(x, y), outline(), area() ]; } let leftWall =…
Paul Wheeler
  • 18,988
  • 3
  • 28
  • 41
1
vote
1 answer

How can I create a column that is scrollable in PySimpleGUI

I'm looking to create a simple menu type thing, where my window is split into 2 halves, and I want the left hand side to be scrollable, but the right hand side to be stationary. I'm new to PySimpleGUI, and I've looked through the mess that is the…
user13524876
1
vote
0 answers

Restricting API access on Google APIs not working

I was recently working on a project using https://console.cloud.google.com/apis/, but when I tried to restrict the API key to my repl.it project website (search.myreplitusername.repl.co), it broke the search feature at my repl.it page that depends…
Leo
  • 172
  • 2
  • 14
1
vote
2 answers

Repl.it environment secret variables are None type

I am trying to make a discord bot. Using secret environment variables in repl.it, when I try to take the value of the variable, it says its of None type import discord import os client = discord.Client() @client.event async def onReady(): …
1
vote
0 answers

Replit database.get returns null when used with a parameter but not when used with the value of the paramater?

I have an express GET request I'm using for a login page, and the first step in the login process is making sure that the user exists, but the thing is, while this returns a value - users.get('Example…
LlamaButt
  • 431
  • 4
  • 15
1
vote
1 answer

When trying to use mouse / import, I'm getting a recursion error / package operation fail

I'm running a python repl.it environment / project, my code is as stated below: from webbot import Browser import time from keyboard import press import mouse web = Browser() tab = 1 add =…
Frostwolfu
  • 15
  • 5
1
vote
1 answer

Getting Key From Replit Database Not Working

Here's my code: const Database = require("@replit/database"); const db = new Database(); db.set("test", "wow").then(() => {}); console.log(db.list().then(keys => {})); I have the database package installed, and it says that there is one key in the…
1
vote
1 answer

Using repl.it databases locally

I have used repl.it database on the official website. But now I want to use it offline/locally. I have installed replit from the PyPi library. But using it with from replit import db command doesn't work. It raises a NoneType exception. Is it…
1
vote
1 answer

Trying to compare a given username to a 2D array to make sure that they don't match

So I am making a discord bot that will be recording a certain "cred" for each person in my server and we can increase or decrease certain people's cred with a simple command. The only issue that I have run into so far is that I don't want someone to…
kubectl
  • 13
  • 3
1
vote
1 answer

My Killswitch is not working in Discord.py and it's not working, no error message

So, I have been working on a killswitch for my bot in discord.py, and I've hit a stump. My kill switch is not working and it's not giving me an error. If anyone can help I would very much appreciate it. import discord from discord.ext import…
1 2
3
21 22