Axel1672

@Axel1672 (12)
Axel1672
Axel1672
shared a Post
1 year ago
11
unable to run, main file "main.sh" not found
Ask
unable to run, main file "main.sh" not found How can I correct that error in red and why does it appear?
Read full post
Coder100
Coder100 Create a .replit file. Inside, put: run="npm start" `1 year ago
JBloves27
JBloves27 Which lang did you choose?1 year ago
SUHASTADIPARTH1
SUHASTADIPARTH1 You just have to create a bash repl and run it from there. Then you can create other files like python, c, and code it from there.1 year ago
Axel1672
Axel1672
shared a Post
6 months ago
2
Failed to connect, retrying.
Ask
Failed to connect, retrying. Help me please
Coder100
Coder100 Please, wait patiently. Large projects take some time to load, but you can also try forking the repl and clicking the get help button.6 months ago
Axel1672
Axel1672
shared a Post
8 months ago
1
How to save data in node.js?
Ask
How to save data in node.js? (50 charsssssssssssssss)
Coder100
Coder100 there's multiple ways to do it, the easiest is replit db https://docs.replit.com/misc/database8 months ago
ruiwenge2
ruiwenge2 you can use the replit database, like this: const Database = require("@replit/database"); const db = new Database(); db.set("number", 2).then(() => console.log("saved")); hope this helps!8 months ago
Axel1672
Axel1672
shared a Post
1 year ago
1
Error in my project
Ask
internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module 'noblox.js' at Function.Module._resolveFilename (internal/modul
RYANTADIPARTHI
RYANTADIPARTHI It is module error. Whatever module you are importing is giving the error. You might want to remove that.1 year ago
Coder100
Coder100 oh wait nvm change your .replit file to: run="npm i ; npm start" `1 year ago
Coder100
Coder100 send repl1 year ago
Axel1672
Axel1672
shared a Post
9 months ago
1
I cant ping a repl project in UptimeRobot
Ask
I cant ping a repl project in UptimeRobot When I press add new monitor and put the repl url it says: Not Found (404)
Coder100
Coder100 send the repl url9 months ago
Axel1672
Axel1672
shared a Post
6 months ago
1
Cannot get / error
Ask
Cannot get / error I am using express
ch1ck3n
ch1ck3n add this on line 48 app.get('/', function (req, res) { res.send('hello world'); }); `6 months ago
Axel1672
Axel1672
shared a Post
9 months ago
1
TypeError: res.send is not a function
Ask
const express = require("express") const app = new express() const fetch = require("node-fetch") const groupId = process.env.groupId app.get("/groupm
Coder100
Coder100 You named the fetch called res, so you need to change the variable, here is correct code: const express = require("express") const app = new express() const fetch = require("node-fetch") const groupId = process.env.groupId app.get("/groupmembers/:id", (req, res) => { var Key = req.params.id if (Key === process.env.key) { fetch('https://groups.rprxy.xyz/v1/groups/' + groupId).then(r => r.json()).then(r => { const groupMembers = r.memberCount; res.send(groupMembers); }) 9 months ago
Axel1672
Axel1672
shared a Post
9 months ago
1
Why is verifSent not assigned 1?
Ask
client.on('message', (message) => { var verifSent = 0; if (message.content.toLowerCase() === Prefix + 'verify' && verifSent == 1) { message.ch
AloegelhiPlaysR
AloegelhiPlaysR You set it to 0 everytime the client sees a message, to prevent this, move the variable outside of the client.on('message'... part.9 months ago
R2D2VaderBeef
R2D2VaderBeef I think its because you set it to 0 every time a message is received.9 months ago
Axel1672
Axel1672
shared a Post
9 months ago
1
How to change environment variables value?
Ask
How to change environment variables value? in node.js
InvisibleOne
InvisibleOne You can only read env's, not write them (at least not to my knowledge, although there is a way in python I think)9 months ago
Axel1672
Axel1672
shared a Post
1 year ago
1
Error in my project
Ask
 npm start > [email protected] start /home/runner/Reblex-renking-epi-newi-1 > node server.js internal/modules/cjs/loader.js:638 throw err;
RYANTADIPARTHI
RYANTADIPARTHI There's a module that you are importing which is either not there or not available in repl.it1 year ago
Axel1672
Axel1672
shared a Post
9 months ago
1
Why retryCounter is added 2 times "1" instead of just 1 time?
Ask
var verifSent = 0; var retryCounter = 1; client.on('message', (message) => { if (message.content.toLowerCase() === Prefix + 'verify' && verifSent