#no results

1 messages · Page 1 of 1 (latest)

oak harbor
#

yeah i get this

slow oasis
#

hmm, open the package.json and add this:"deploy": "node deploy-commands.js" under scripts

oak harbor
#

that's my npm run build

gleaming burrow
slow oasis
#

im going off what i use on gitbash

oak harbor
#

git bash?

#

this is replit

slow oasis
#

oh you online host? i local host my ones, NPM is in gitbash using a command shell

#

the best i can think of is attempting to run the file like index

#

or main howwhere you named your brain file

oak harbor
#

it is index

slow oasis
#

hmm

oak harbor
#

here's what happened

#

with index

#

actually this should be something else

#

no results

slow oasis
#

so you get nothing with node index.js?

oak harbor
#

yes

#

nothing

slow oasis
#

did you try using the hint that shows on the log? at any point

oak harbor
#

i know that ctrl+c cancels

#

and i did

slow oasis
#

what do you have in your index to connect to the client?

oak harbor
#

i'll share the repl

slow oasis
#

you appear to be missing (or its hidden from public view) the npm files for the node_global folder

oak harbor
#

hmm

#

i started the repl using repl.it is it normal for that

slow oasis
#

try running npm install

#

and see if it fill is

oak harbor
#

nope

slow oasis
#

anything pop up?

oak harbor
#

nope

slow oasis
#

im not that familiar to repl, ill see if i can find a recent review

#

try adding to the top of the index file:

const express = require('express');
const app = express();
const port = 3000;

app.get('/', (req, res) => res.send('Hello World!'));

app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`));

source: https://dev.to/fizal619/so-you-want-to-make-a-discord-bot-4f0n some parts look a bit outdated for djs terms but the top section may work

DEV Community 👩‍💻👨‍💻

If you're an avid discord user you've definitely seen a bot (or 10) in the server(s) you're a part of...

oak harbor
#

oh

#

what about the command deployment

slow oasis
#

that may work after it connects to the server on repl

oak harbor
#

works now :D

slow oasis
#

great!

oak harbor
#

i'm going to test it out rn

slow oasis
#

if you go on the link it has a section on keeping it online 24/7

oak harbor
#

if i update to i have to pause it