#development

1 messages · Page 1103 of 1

earnest phoenix
#

¯_(ツ)_/¯

#

f pc discord

halcyon crow
#

no

earnest phoenix
#

f @everyone ping

#

^^ didn't ping anyone

#

admins are smart they disabled it

#

also can someone help me

digital ibex
#

hm?

earnest phoenix
#

before i put the code

#

it is a discord bot list bot

#

so

#

if you want then you can help

#
case "submit":
message.reply("Enter the client ID of the bot");
let collecter = message.channel.createMessageCollecter({time:60000});
collecter.on("collect", m => {
  let clientID = m.content;
  collecter.end;
});

Have I done this right?

digital ibex
#

no idea

#

have u tried it?

earnest phoenix
#

np

#

i made a test collecter command

digital ibex
#

ok

earnest phoenix
#

@digital ibex do you think top.gg will reject a bot list bot?

digital ibex
earnest phoenix
#

r/madlads they chose no when i asked to protect their data 🤣 not my fault if they get robbed cross-servers

#

and i maxed out the reactions

#

so people can't choose no on the second one

pure lion
#

Uh

#

No

#

:)

slender thistle
#

@earnest phoenix only if the bot list is a website iirc

weak rain
#

How to host bot on github

slender thistle
#

GitHub is code storage

weak rain
#

i know for heroku

slender thistle
#

not a host

weak rain
#

i mean editor

pure lion
#

Please don't use heroku as anything whatsoever

weak rain
#

how to store their

#

and host

pure lion
#

There*

weak rain
#

lol i m confused

pure lion
#

GH not host

slender thistle
#

Create a repository and drag your files in the GitHub tab

weak rain
#

@slender thistle i already

slender thistle
#

once that's done, connect your GitHub to your Heroku account

weak rain
#

did

#

heroku

#

is giving error

slender thistle
#

What's the error

delicate shore
#

I'm so fucking done

pure lion
#

Uh oh

delicate shore
#

With people saying they have better bot commands despite the fact they use Discord Bot Maker

weak rain
#

With people saying they have better bot commands despite the fact they use Discord Bot Maker
@delicate shore holy fuck lol

slender thistle
#

View build log

earnest phoenix
#

@earnest phoenix only if the bot list is a website iirc

bot is a website

waitWhat where's the logic

slender thistle
#

Bot list

#

being a website

earnest phoenix
#

thunder e's tabs

#

and pings

delicate shore
#

Is replit better than

#

Bps ?

earnest phoenix
#

being a website
💥 brain died

delicate shore
#

VPS*

pure lion
#

No

earnest phoenix
#

kinda

#

close enough

slender thistle
#

repl.it is technically only intended to be used as a testing environment

earnest phoenix
#

umm

slender thistle
#

a VPS can be used for both testing and production

pure lion
#

That runs 24/7

delicate shore
#

Ok

earnest phoenix
#

Karens like me who use it for bots: yes but actually no

delicate shore
slender thistle
#

repl.it doesn't mind if you use their services for production

earnest phoenix
#

yeah

slender thistle
#

You're just limited on resources afaik, that's about it

delicate shore
#

What about API

#

Do they allow ports

#

On reply

#

Replit*

earnest phoenix
#

of course...

slender thistle
#

An API isn't something that allows ports

delicate shore
#

No for

slender thistle
#

Ports are allowed to be used through your Internet connection settings (router settings, if you wish)

delicate shore
#

Topmgg API

#

We need port

#

Glitch doesn't allow that

slender thistle
#

Glitch gives you port 3000

earnest phoenix
#

yes

slender thistle
digital ibex
#

why do u even want glitch to give u a port

delicate shore
#

But

earnest phoenix
#

and PGamerX i will jump off my window if you don't switch to repl.it in 30 minutes

delicate shore
#

3000 port

#

Is used by itself

slender thistle
#

Glitch is meant for web apps

#

It's not, you are using it

earnest phoenix
#

yeah

delicate shore
#

Yes but

earnest phoenix
#

yeah

delicate shore
#

I can't use it for anyother

#

Thinf

earnest phoenix
#

expressjs

delicate shore
#

Thing

earnest phoenix
#

you can

delicate shore
#

and PGamerX i will jump off my window if you don't switch to repl.it in 30 minutes
@earnest phoenix
I can't I already paid for second month of glitch

slender thistle
#

The only option you have is to try to cram your two programs into one

earnest phoenix
#

LMAO

#

or

#

make them communicate with each other

delicate shore
#

Listener

earnest phoenix
#

if that's whatcha after

delicate shore
#

I tried that as well

#

Didn't worked

#

Either

earnest phoenix
#

Listener
so you mean you want to listen for http requests

delicate shore
#

Myers

#

Yes*

earnest phoenix
#

i used port 3000 once and it didn't interfere

slender thistle
#

What do you have running

delicate shore
#

How tho

#

What do you have running
@slender thistle
Discord bot

earnest phoenix
#

Discord bot
@delicate shore smart

slender thistle
#

a Discord bot doesn't need a port

earnest phoenix
#

sarcasm

#

ye

#

not in the case of mine

slender thistle
#

by itself, at least

earnest phoenix
#

the same file is running both my webpage and my bot

hardy steeple
#

wait

#

message.mentions.users.first would give you the user that was first mentioned in that message

earnest phoenix
#

yeah

hardy steeple
#

but then how would you get the username of that user

earnest phoenix
#

umm

slender thistle
#

a = ...first()
a.username

earnest phoenix
#

it returns the user object

#

do message.mentions.users.first().username

slender thistle
#

easier to store the user object in a variable instead

earnest phoenix
#

^^^^

misty sigil
#

never know when you need it

delicate shore
#

It needs

#

A port

#

On glitch

#

;-;

earnest phoenix
#

why

digital ibex
#

wouldnt u await that? i dont know it just seems like u would need to

delicate shore
#

Idk

#

It says port is already in use

earnest phoenix
#

for a website and a discord bot at the same time?

delicate shore
#

And turns off my bot

slender thistle
#

You're running something on that port

delicate shore
#

Yes

#

I am

#

Oh wait

#

No

#

Ok

#

Lmao

#

Yikes

slender thistle
#

A Discord bot doesn't need a port

delicate shore
#

Ok

#

Then

#

What is it

slender thistle
#

The communication with Discord happens over websockets

delicate shore
#

Glitch autocreates

#

A file

#

Called

#

Server.json

#

And

digital ibex
#

PGamer, glitch isnt meant for websockets, like discord bots, you're bound to get disconnected

delicate shore
#

It is using that port in that

slender thistle
#

Stop typing like that

earnest phoenix
#

delete it bruh

hardy steeple
#

var FirstMentioned = message.mentions.users.first()
var ProfileEmbed = new Discord.MessageEmbed()
.setTitle(FirstMentioned.username)

#

would that work?

earnest phoenix
#

umm yep

#

if you add in other stuff too

potent ridge
#

the text is white but the background is also white evenn though im setting it to black any one know why ?

earnest phoenix
#

pretty sure you can't display an embed with onlya title

hardy steeple
#

yeah im planning to add the pfp too

digital ibex
#

how are u setting it to be black, coltz?

slender thistle
#

@potent ridge What's your CSS

potent ridge
#
<style>
body {
  background-color: #333333;
}
</style>
digital ibex
#

use color instead of background-color

hardy steeple
#

wait

slender thistle
#

Why are you setting background color of the entire page

hardy steeple
#

if you wanted to get the pfp for a user that was first mentioned

slender thistle
#

read the docs

hardy steeple
#

FirstMentioned.displayAvatarURL right?

slender thistle
#
sinful delta
#

i have problem MenheraCrying

potent ridge
#

@hardy steeple no

#

its a function

digital ibex
#

whats ur problem?

sinful delta
#

module.exports = { name: 'help', description: "this is a help command!", execute(message, args){ const embed = new MessageEmbed() .setTitle('__**BOT COMMANDS**__') .setColor(0xFFACAC) .setDescription('**🎲FUN**\nannoy, Fish, Poll, Ping, say\nAnime, Meme, play(Rock,Paper or Scissors ) \ncringe\n\n**📘MODERATION**\nVotekick(user), Mute, giverole (role)(user)\n**🎶EMOTES**\nSlap, Hug, kill, Bite, lick'); .setImage('https://cdn.discordapp.com/attachments/733538577350131762/733612973574062140/CloseRevolvingLadybug-size_restricted.gif ` ')

  message.channel.send(embed)
}

};`

#

ignore

potent ridge
#

@digital ibex its still the same

sinful delta
#

the image

digital ibex
#

```js
// ur code here
```

slender thistle
#

what's the problem

sinful delta
#

wait

potent ridge
slender thistle
#

Inspect Element

#

P.S. it's .longdescription

sinful delta
#

thats the problem

hardy steeple
#

wait

cinder patio
#

You probably added a semicolon at the end of the .setDescription function

quartz kindle
delicate shore
#

Ok

sinful delta
#

OHHH, THANK U THANK UUU

hardy steeple
#

im trying to make a command that grabs that username and pfp of the person first mentioned in the message

delicate shore
#

So if I remove the port

#

From server.json

hardy steeple
#

can anyone tell me why

delicate shore
#

My bot stops so I guess it's not possible

hardy steeple
#

var FirstMentioned = message.mentions.users.first()
var ProfileEmbed = new Discord.MessageEmbed()
.setTitle(FirstMentioned.username)
.setImage(FirstMentioned.displayAvatarURL())

#

isnt working?

potent ridge
#

P.S. it's .longdescription
@slender thistle is this for me ?

slender thistle
#

yes

#

Create a rule for that selector

digital ibex
#

what isnt working?

hardy steeple
#

the code

slender thistle
#

What's your discord.js version

hardy steeple
#

me?

slender thistle
#

yes

digital ibex
#

iirc users dont have the displayAvatarURL method

slender thistle
#

they do

delicate shore
#

Ok

hardy steeple
#

ive used displayAvatarURL before and its worked

slender thistle
#

An avatar is attached to a user

digital ibex
#

oh, my bad

delicate shore
#

Your discord is version is 12 or 11

hardy steeple
#

oh

potent ridge
#

@hardy steeple in v12 its a function
if your v11 its not

delicate shore
#

As asked by shivaco

hardy steeple
#

how do i check what version tho

#

thats a dumb question

potent ridge
#

npm ls discord.js

delicate shore
#

;-;

#

go to

digital ibex
#

require('discord.js').version :p

delicate shore
#

did u do npminit

hardy steeple
#

yes

digital ibex
#

or just check ur package.json

hardy steeple
#

npm init discord.js

delicate shore
#

Then what veriso

#

Was it

#

Version

#

Go to watch.json or server.json idk

hardy steeple
#

lemme check my package\

delicate shore
#

There it is written

potent ridge
#

do you mean this this ?
my html / css isnt very good

<head>
<style>
html {
  color.longdescription: #333333;
}
</style>
</head>
hardy steeple
#

12.20

#

is the version

delicate shore
#

Ok

#

V12

digital ibex
#

remove the .longdescription

#

and change html to .logdescription

slender thistle
#
selector {
 /* rules for `selector` go here */
}```
hardy steeple
#

for me?

digital ibex
#

no

delicate shore
#

No

hardy steeple
#

k

slender thistle
#

your selector in this case is .longdescription because there's elements with class="longdescription" in the page's HTML

weak rain
slender thistle
#

aka the detailed description

#

that doesn't help

delicate shore
#

Huh

#

What's that

weak rain
#

:/

#

:/

fast yacht
#

@weak rain click More in top right and then 'logs'

weak rain
hardy steeple
#

var FirstMentioned = message.mentions.users.first()
var ProfileEmbed = new Discord.MessageEmbed()
.setTitle(FirstMentioned.username)
.setImage(FirstMentioned.displayAvatarURL())

fast yacht
#

Hmmm, does any of those links provide any useful information?

weak rain
#

i seriously dont know @fast yacht

hardy steeple
#

is supposed to grab the username and pfp of the person first mentioned in the message

#

but it aint workin

weak rain
#

is their any other host?

quartz kindle
#

@hardy steeple what about it isnt working?

#

which part

weak rain
#

Is their any free vps

hardy steeple
#

is sends back an error when i test the command

quartz kindle
#

what error

hardy steeple
#

TypeError: Cannot read property 'username' of undefined
at Client.<anonymous> (C:\Users\Mom_admin\Desktop\NOTABOT\node_modules\index.js:29:38)
at Client.emit (events.js:315:20)

quartz kindle
#

if you get an error, the first thing you should do is post the error

potent ridge
#
<head>
<style>
.logdescription {
  color: #333333;
}
</style>
</head>

still the same

slender thistle
#

log

#

did you mean long

quartz kindle
#

that error means user was not found

hardy steeple
#

ok

#

wait

slender thistle
#

@potent ridge Could you elaborate on what you want?

#

To change the color of text in the long description, edit .longdescription .content

potent ridge
#

no not the text

quartz kindle
#

color is text color

hardy steeple
#

wait

slender thistle
#

background-color

potent ridge
#

let me show you

quartz kindle
#

background is background color or image

hardy steeple
#

i have that code attached to the command =profile

#

am i meant to do =profile (mention)

#

because i did and it returns another error

potent ridge
#

so like this

quartz kindle
#

color is text color
background is background color or image

misty sigil
#

Is their any free vps
@weak rain no

weak rain
#

@slender thistle WHAT SHOULD I DO

misty sigil
#

why would there be

#

it is literally buying a spot on someones server

potent ridge
#

@weak rain pay to host ...

quartz kindle
#

@hardy steeple we cant magically fix your code, you need to show and explain what is happening, show your full code, your full error, show examples of what you tried, an example of what happens when you use the command, etc...

misty sigil
#

why would it be free

potent ridge
#
<head>
<style>
.longdescription {
  background: #333333;
}
</style>
</head>
#

sol ike this ??

quartz kindle
potent ridge
#

well i have and it didnt

pale vessel
#

try being more specific, like .longdescription .content

quartz kindle
misty sigil
#

thank you tim

weak rain
#

what should i do to host ?

misty sigil
#

pay

quartz kindle
misty sigil
#

or use your own pc

slender thistle
#

Go through the build logs and search for an error

quartz kindle
delicate shore
#

is there something as guild.membercount

misty sigil
#

yes

weak rain
#

is their any other host like heroku?

misty sigil
#

no

delicate shore
#

Ok

slender thistle
#

rtfd

delicate shore
#

is their any other host like heroku?
@weak rain
Replit

weak rain
#

is that nice?

quartz kindle
#

there is repl.it, glitch, heroku, and possibly cloudflare workers (havent tried them)

misty sigil
delicate shore
#

I use glitch

#

But tbh it's bitch

#

I pay 10$/month

#

To host it

misty sigil
#

yeesh

delicate shore
#

On glitch

weak rain
#

@delicate shore i use glitch

misty sigil
#

you could buy a better vps for that

slender thistle
#

What do you get in return

weak rain
#

but another host

delicate shore
#

I'm shifting to Digital Ocean

misty sigil
#

good option

delicate shore
#

Or the one @misty sigil told me

misty sigil
#

also very good option

slender thistle
#

I pay $1.88/month for specs good enough to host a few Discord bots with all caching enabled

quartz kindle
#

nice

weak rain
#

I pay $1.88/month for specs good enough to host a few Discord bots with all caching enabled
@slender thistle where

#

thats pretty cheap i think

slender thistle
#

It's a discount, actually

misty sigil
#

pretty cheap indeed

slender thistle
#

but without it I'd pay $2.50

misty sigil
#

i pay $4/mo angrybirb

slender thistle
#

but SkySilk have fairly cheap prices catshrug

weak rain
#

name?

quartz kindle
#

i pay $3

slender thistle
#

yearly? :^)

quartz kindle
#

and get 1 month free every year

slender thistle
#

oof

quartz kindle
#

so basically 2.75/month

misty sigil
#

honestly i'd recommend unlimited bandwidth because

weak rain
#

fuck

misty sigil
#

unlimited

weak rain
#

Repl is paid

misty sigil
#

whats your budget @weak rain

delicate shore
#

i pay $3
@quartz kindle
What u use

weak rain
#

@misty sigil till now never used paid hosts

misty sigil
#

i'd advise oxide but thats just me

weak rain
#

but my bot is 24/7 online

delicate shore
#

How can I get PUBLiC feature ?

quartz kindle
#

i use galaxygate

delicate shore
#

Ok

#

Is it good

#

Does it allows more than

#

One port ?

quartz kindle
#

its been good so far

misty sigil
#

yes

quartz kindle
#

its KVM virtualization, it allows anything a normal computer allows

delicate shore
#

Oo

misty sigil
#

most vps hosting allows all ports

quartz kindle
#

you could even install windows on it

misty sigil
#

80, 8080, 30, 3000, 420, 69, you name it, as long as it's under 65535

slender thistle
#

420

misty sigil
#

yes

delicate shore
#

Wow

quartz kindle
#

why 25565

misty sigil
#

wait did i get it wrong

slender thistle
#

brings back memories

weak rain
#

@slender thistle is their any other host?

misty sigil
#

fixed it

weak rain
#

like heroku

misty sigil
#

no

quartz kindle
#

@weak rain we already told you

misty sigil
#

you dont get free 24/7 hosting

quartz kindle
#

there is repl.it, glitch, heroku, and possibly cloudflare workers (havent tried them)
@quartz kindle

slender thistle
#

there is repl.it, glitch, heroku, and possibly cloudflare workers (havent tried them)

weak rain
#

you dont get free 24/7 hosting
@misty sigil I do

slender thistle
#

I'm not the only person here :^)

#

Free hosting and 24/7 are not exactly compatible

misty sigil
#

nah

#

afaik heroku restarts

weak rain
#

how to get live code on github

slender thistle
#

Someone has to pay for electricity and maintaining the machine(s) in the end

misty sigil
#

yea

quartz kindle
#

there is also amazon and google which offer free for 1 year deals

#

additionally, google has a free forever plan

#

as long as you dont exceed limits

weak rain
#

additionally, google has a free forever plan
@quartz kindle are they good?

misty sigil
#

but it probably will not handle a bot

weak rain
#

and how?

delicate shore
#

@slender thistle ```js
require("./index")

var express = require("express");
var http = require("http");
var app = express();

// Ping The Apps.
//app.use(express.static("public"));
// http://expressjs.com/en/starter/basic-routing.html
//app.get("/", function (request, response) {
// response.sendStatus(200);
//});

// Request Listeners.
var listener = app.listen(3000, function () {
console.log("Your app is listening on port " + listener.address().port);
});
//setInterval(() => {
// http.get(http://${process.env.PROJECT_DOMAIN}.glitch.me/);
//}, 270000);```

quartz kindle
#

much better than glitch and heroku

sullen harness
#

Don't you need a credit card for those?

delicate shore
#

this is where glitch

misty sigil
#

yes

quartz kindle
#

but you need a credit card to register

delicate shore
#

uses

pale vessel
#

yes you do

delicate shore
#

port

misty sigil
#

but you need for heroku too

weak rain
#

but you need a credit card to register
@quartz kindle :/

pale vessel
#

you have 12 month free trial too, and then you can use the free forever one

weak rain
#

how to get live code on github

misty sigil
#

well, you see

#

just don't go for free hosting if you can

rancid tartan
#

I need understanding on a Roblox Bot coding, as it says there is an error somewhere in my code, but won't show me it

quartz kindle
#

wdym live code on github

weak rain
#

how to get live code on github

sullen harness
#

Just fix your Heroku error if you're so desperate to get free hosting?

weak rain
#

@quartz kindle codes

#

to host

#

Just fix your Heroku error if you're so desperate to get free hosting?
@sullen harness how should i

quartz kindle
#

github doesnt run your code

#

only stores it

small prairie
#

creating server invites on join/without anyone with create invite perms's command usage is against TOS right?

sullen harness
#

Google and trial n error

misty sigil
#

yes

#

why tf would it not be

delicate shore
#

why does glitch uses port?

misty sigil
#

what is the output?

sullen harness
#

Your email is in that btw

weak rain
#

thats my fake email btw

#

my old plan ended so made one

slender thistle
#

I just created a project and I only see a server.js file that you can edit.

misty sigil
#

nice way of covering that up

slender thistle
#

I can easily remove that and host my own stuff on port 3000

delicate shore
#

I can easily remove that and host my own stuff on port 3000
@slender thistle will my bot work if i remove that

small prairie
#

creating server invites on join/without anyone with create invite perms's command usage is against TOS right?
@misty sigil You answered to this?

delicate shore
#

because it does not

#

idk why

misty sigil
#

yes

slender thistle
#

What does your code even look like

misty sigil
#

very against tos

small prairie
#

Ah thanks

#

Yeah i know

delicate shore
#

What does your code even look like
@slender thistle wym

misty sigil
#

basically if you have to ask

#

then it probably is

delicate shore
#

my index code?

#

or my command

#

or my watch.json

small prairie
#

just some stupid devs were stupid enough to show an SS with on join invite

#

And my partner was like why cant we do for our bot

#

(new coder)

misty sigil
#

report that

delicate shore
#

yo @slender thistle my bot works after removing that but

weak rain
#

is their any link for

delicate shore
#

it gives me a annoying loaidng

weak rain
#

hostings

delicate shore
#

loading

#

icon on glitch

misty sigil
weak rain
#

wtf

#

i mean

#

link of repo

#

like

small prairie
#

@tulip grove

misty sigil
#

repo?

weak rain
#

to host bot on glitch

misty sigil
#

you literally

weak rain
#

we have live code

misty sigil
#

Dont host bots on glitch

weak rain
#

i use it as a editor\

rancid tartan
#

I host bots on Glitch, and it broke all my bots

small prairie
#

worst excuse ever
VSC Is like waaay better ;-;

slender thistle
#

define "broke"

quartz kindle
#

sublime text 3

small prairie
#

got them IP banned?

digital ibex
#

i use sublime text3 and vsc

small prairie
#

Notepad

sullen harness
#

I still have an old bot running on Glitch 24/7?

digital ibex
#

both are good

rancid tartan
#

It gives an error on my code without any actual way to fix it

pale vessel
#

notepad++ honestly

slender thistle
#

what kind of error

weak rain
#

I still have an old bot running on Glitch 24/7?
@sullen harness i made one

#

and its online too

#

was thinking to shift on github

#

but

earnest phoenix
#

glitch does not allow any sort of pinger bot to keep the project alive anymore

rancid tartan
#

} catch { but will not send me to the error

earnest phoenix
#

they started terminating discord bot projects doing that

sullen harness
#

Welp, if it goes, it goes

quartz kindle
#

probably a matter of time before repl.it does it as well

slender thistle
#

:^)

sullen harness
#

How many bots can you host on 1 vcore actually?

delicate shore
#

YO @slender thistle thanks a lot 🙂 i can now use discord bot api :::::::))))))

rancid tartan
#

glitch does not allow any sort of pinger bot to keep the project alive anymore
@earnest phoenix you know how bots are meant to sleep after 5 minutes of inactivity and the bots are violating the rules by making Glitch lag

delicate shore
#

i pay 10$/month

rancid tartan
#

well Glitch is lagging because of that, by what I mean

delicate shore
#

and i tworks fine

#

it works*

opal plank
#

why not pay 10$ on a proper vps?

delicate shore
#

but glitch is a bitch

#

so don't use it

earnest phoenix
#

yeah i know flxwer, that's why they made that against their TOS

delicate shore
#

why not pay 10$ on a proper vps?
@opal plank i am shifting

#

to it

opal plank
#

oh, aight

quartz kindle
#

why not pay $3 instead of $10 for a proper vps?

weak rain
#

i have a code

delicate shore
#

why not pay $3 instead of $10 for a proper vps?
@quartz kindle yes

weak rain
#

i want to merge it with another

opal plank
#

exactly what tim said

weak rain
#

what should i do?

opal plank
#

i think DO has some 3$ packs

delicate shore
#

can anyone link e

#

me

rancid tartan
#

I might switch to VSC if it's simple enough to do so

opal plank
#

what

delicate shore
misty sigil
#

what

quartz kindle
#

vsc is a code editor, not a hosting service

delicate shore
#

lmao

rancid tartan
#

I know

restive pebble
delicate shore
misty sigil
rancid tartan
#

And I tried transferring a bot code to VSC and it didn't work

faint prism
quartz kindle
#

what didnt work lol

opal plank
#

VSC should have no prob importing files

#

its just an editor

quartz kindle
#

you literally download the files, then open them in vsc

#

and they work

sullen harness
#

I mean, let your VSC debugger run indefinitely and you got yourself free hosting.

quartz kindle
#

for editing, not for running, as vsc is an editor, not a host

marble juniper
#

vsc does not change how the files work wtf

opal plank
#

why use debugger?

#

open powershell and node the f out of it

marble juniper
#

yes

#

try to find line 537 in ur 200 line index.js file

restive pebble
marble juniper
opal plank
#

what

summer acorn
restive pebble
#

GWjianWut lol

marble juniper
#

@summer acorn show more code

weak rain
#

can we merge 2 codes in VSC

slender thistle
#

Define "merge"

pale vessel
#

you can do that in any editor lol

slender thistle
#

a code is just a certain snippet of text

weak rain
#

i mean

pale vessel
#

bruh

marble juniper
#

you can merge them if you copy paste

summer acorn
#

when trying to list the tags

case "list":
                    let tags = [];
                    for (let tagInstance of res.tags) {
                        tags.push(tagInstance.name);
                        console.log(tagInstance)
                    }
                    embed = new MessageEmbed()
                    .setColor(branding)
                    .setTitle("Tags")
                    .setDescription(`\`${tags.join('` `')}\``)

                    message.channel.send(embed);
                    break;
opal plank
#

stop thinking about VSC as a 3 headed monster. Its just like notepad. Copy paste with extra features

#

theres no reason whatsoever merging or copying code over would error

summer acorn
#

when trying to send the tag

let args = message.content.slice(res.prefix.length).split(/ +/);
            let tagName = args.shift();
            let tag = res.tags.find(t => t.name = tagName);
            if (!tag.value) return;
marble juniper
#

vsc is like a fancier notepad

quartz kindle
#

@summer acorn console.log(res.tags)

marble juniper
#

vsc is not gonna change the file itself

slender thistle
marble juniper
#

and give you randomly errors

#

or some shit

weak rain
#

open 2 codes at a time

opal plank
#

unless its ts

marble juniper
#

yes

weak rain
#

in same window

opal plank
#

in which case it'll run as js not ts

quartz kindle
#

@slender thistle nice catch

opal plank
#

well, breakpoints at least

slender thistle
#

:^)

summer acorn
#

the names are there

opal plank
#

holy...

quartz kindle
#

@summer acorn shiv already found you the problem

summer acorn
#

ah

marble juniper
summer acorn
#

I literally did not realize I did = and not ===

marble juniper
#

lol

earnest phoenix
#

i have sharded bot how i can get shard counter??

marble juniper
#

if u mean posting the count

slender thistle
#

getting shard count

#

not exactly related to top.gg API

weak rain
#

see

marble juniper
#

k

summer acorn
#

the listing still doesn't work though

weak rain
#

i m opened 2 codes at a time by adding them in the same folder

#

now

summer acorn
#

the names in there is still undefined

weak rain
#

same name files disapeared

opal plank
#

huh?

#

what are you on about thunder?

weak rain
#

i m merging 2 codes

opal plank
#

to 'merge' them, you open both and copy the contents of one onto the other one

#

if what i think is happening

#

you are drag and dropping them

summer acorn
#

ok nevermind, I figured it out. It was a very similar issue.

opal plank
#

and replacing them cuz same name

weak rain
#

if i rename

#

server.js

#

will it still work?

slender thistle
#

If your code relies on that file, probably

opal plank
#

im completely lost tbh, how is the merging related to your file names?

#

if thats your main file, you need to point it on package.json

#

apart from that, name it whatever you want

#

now for the 'merging', you open both files you want to merge and copy the contents of one to the other(not replace)

digital ibex
#

hello

weak rain
#

kk

digital ibex
#

im making a request to discord api and its showing it with that for some reason, any ideas?

slender thistle
#

a role with zws as name?

earnest phoenix
#

^

digital ibex
#

oh yeah

#

whelp

#

im stupid, thank

quartz kindle
#

@weak rain what are you even trying to do? sounds like you're trying to run two separate projects, not "merge" them lol

weak rain
#

which is the best vps ?

#

@weak rain what are you even trying to do? sounds like you're trying to run two separate projects, not "merge" them lol
@quartz kindle hm

misty sigil
#

which is the best vps ?
@weak rain what are you looking for?

opal plank
#

i've heard good things about DO, though its personal option most of the times

solemn latch
#

^

delicate shore
misty sigil
weak rain
#

what are the prices for DO

opal plank
#

Digital Ocean should have some less than 5$ prices iirc

misty sigil
#

but so does oxide

#

and contabo (contabo seems to have many bad reviews)

opal plank
#

indeed, as i said, its usually preference

weak rain
#

Someone tell me fAST\

solemn latch
#

Lol

opal plank
#

just google Digital Ocean prices

#

¯_(ツ)_/¯

misty sigil
#

$4.67/month.

#

1vCore

delicate shore
#

anyone

misty sigil
#

2GB ram

delicate shore
#

ok nvm

quartz kindle
#

stop asking people to go to api

misty sigil
#

$4.67/month.
1x vCore (3.70ghz)
2048MB DDR4 ECC Ram
32GB Storage (SSD)
200mbp/s Port Speed
Unmetered Bandwidth
1x IPv4, 1x IPv6 (/112)
Automated Backups
Multiple Locations
Virtualized by KVM

quartz kindle
#

people will answer you when they can and want to

delicate shore
#

ok

slender thistle
golden condor
#

Is that skysilk

slender thistle
#

yup

golden condor
#

Kewl

misty sigil
#

but i have unmetered bandwidth

golden condor
#

Same

slender thistle
#

I don't need unlimited bandwidth so /shrug

opal plank
#

Selhosted gigabit internet here

misty sigil
#

Did you mean: ¯_(ツ)_/¯

quartz kindle
#

@slender thistle that was some promotional price they had going right? normal prices now are like $4+

solemn latch
#

Host wars

golden condor
#

Yeah it was the 4th of July sale

#

Iirc

delicate shore
#

¯_(ツ)_/¯

golden condor
#

I got an email about it

slender thistle
#

My discount is for being a beta tester

golden condor
#

olol

digital ibex
#

i misread that as 1tb of ram lul

slender thistle
golden condor
#

I thought 1tb storage

quartz kindle
#

this is what i see lol

weak rain
#

@slender thistle name?'

slender thistle
#

huh what

opal plank
#

vps name

#

i think

golden condor
#

Why would he need to know that

opal plank
#

cuz he was looking for vps

slender thistle
#

Name of the site

#

SkySIlk

sinful sorrel
#

can any one help me

#

with my problem

misty sigil
opal plank
#

^~

slender thistle
#

@quartz kindle I guess they raised their prices then

sinful sorrel
#

SyntaxError: Cannot use import statement outside a module

#

help

sullen harness
#

€4
4gb RAM
2 vcores
300gb
Unlimited

misty sigil
#

code please.

slender thistle
#

and I'm not surprised really

opal plank
#

you need to set packacge as module type

#

or run it in not commonjs

digital ibex
#

quikc queston, does anyone know how i can send data users put in the option tag?

#

with input its just name="whatever"

#

html btw

#

and in the backend its just req.body.whatever and it shows u what u put in the input box, any ideas?

quartz kindle
#

apparently i never registered in skysilk beta

#

even though im pretty sure i did

#

i have the emails and shit

#

but says my email is not registered

#

¯_(ツ)_/¯

slender thistle
#

Sounds like a ticket to support :^)

#

Don't know honestly, I've been their customer ever since they released out of beta and only had very small problems with their occasional maintenance

opal plank
#

@sinful sorrel run it as mjs if you trying to use new ES stuff

#

hmmm now that i think about it, whats your node version?

sinful sorrel
#

hmmm now that i think about it, whats your node version?
@opal plank node: '12.18.0

hardy steeple
#

im trying to make a command that gives you the username and pfp of the person first mentioned in a message

#

currently my code is

#

case 'profile':
var FirstMentioned = message.mentions.users.first()
var ProfileEmbed = new Discord.MessageEmbed()
.setTitle(FirstMentioned.username)
.setImage(FirstMentioned.displayAvatarURL())
message.channel.send(ProfileEmbed)

#

however it sends back this error:

opaque seal
hardy steeple
#

ypeError: Cannot read property 'username' of undefined
at Client.<anonymous> (C:\Users\Mom_admin\Desktop\NOTABOT\node_modules\index.js:29:38)
at Client.emit (events.js:315:20)
at MessageCreateAction.handle (C:\Users\Mom_admin\Desktop\NOTABOT\node_modules\discord.js\src\client\acti

still merlin
#

Did you even read the error? Your username isnt defined

opaque seal
#

@hardy steeple message.mentions.members.first();

still merlin
#

Don't spoonfeed

hardy steeple
#

the point is that its supposed to be the person first mentioned in the message

opaque seal
#

@hardy steeple message.mentions.members.first();
^

hardy steeple
#

yet if i mention someone in the message nothing ha[[ens

still merlin
#

Use a mention?

sinful sorrel
#

-experimental-modules

#

what is the use

still merlin
#

As GP said

hardy steeple
#

yes sorry im new ok

opaque seal
#

mentions.members. not mentions.users

#

Can someone help me remove that shitty border next to the image?
anyone'

sinful sorrel
#

cant

#

i cant

hardy steeple
#

so like this:

#

var FirstMentioned = message.mentions.members.first();

opaque seal
#

try

pale vessel
#

bruh var

hardy steeple
#

k

opaque seal
#

if it doesn't work ask

#

use let instead of var

hardy steeple
#

TypeError: FirstMentioned.displayAvatarURL is not a function
at Client.<anonymous> (C:\Users\Mom_admin\Desktop\NOTABOT\node_modules\index.js:30:38)
at Client.emit (events.js:315:20)
at MessageCreateAction.handle (C:\Users\Mom_admin\Desktop\NOTABOT\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)

#

im using .displayAvatarURL to show the pfp

#

its not wkring tho

#

lemme try a let

opaque seal
#

FirstMentioned.user.displayAvatarURL

sinful sorrel
#

SyntaxError: Cannot use import statement outside a module
?[90m at wrapSafe (internal/modules/cjs/loader.js:1054:16)?[39m
?[90m at Module._compile (internal/modules/cjs/loader.js:1102:27)?[39m
?[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)?[39m
?[90m at Module.load (internal/modules/cjs/loader.js:986:32)?[39m
?[90m at Function.Module._load (internal/modules/cjs/loader.js:879:14)?[39m
?[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)?[39m
?[90m at internal/main/run_main_module.js:17:47?[39m

opaque seal
#

check docs before asking for help here @hardy steeple

hardy steeple
#

it still doesnt work

#

wait

#

ypeError: Cannot read property 'user' of undefined
at Client.<anonymous> (C:\Users\Mom_admin\Desktop\NOTABOT\node_modules\index.js:29:38)
at Client.emit (events.js:315:20)
at MessageCreateAction.handle (C:\Users\Mom_admin\Desktop\NOTABOT\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)

#

is the error it gives

#

even when i mention someone it doesnt work\

#

lemme try a let

spice smelt
#

hey there! I asked a question on StackOverflow yesterday about mongo DB. if you have any answer, can you share it here or there please? thx :) https://stackoverflow.com/q/63176051/13230118

hardy steeple
#

@opaque seal i read the docs and used .username property but it still doesnt work

#

it sends an error

#

TypeError: Cannot read property 'user' of undefined
at Client.<anonymous> (C:\Users\Mom_admin\Desktop\NOTABOT\node_modules\index.js:29:38)
at Client.emit (events.js:315:20)
at MessageCreateAction.handle (C:\Users\Mom_admin\Desktop\NOTABOT\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)

#

my code is

#

let FirstMentioned = message.mentions.members.first();
var ProfileEmbed = new Discord.MessageEmbed()
.setTitle(FirstMentioned.user.username)
.setImage(FirstMentioned.user.displayAvatarURL())
message.channel.send(ProfileEmbed)

solemn latch
#

Why is your index.js in node_modules

#

🤔

hardy steeple
#

man idk thats just where it was when i got discord.js

#

does it matter

spice smelt
#

that's just weird. I've never seen this

hardy steeple
#

should i move it

spice smelt
#

well yes since it isn't a node_module

#

it makes sense

hardy steeple
#

to where should i move it

#

just the main file of the bot?

spice smelt
#

yes I think

hardy steeple
#

like where node_modules and package.json is

#

should i move it there

spice smelt
#

yes.

hardy steeple
#

k

eager nest
#

for the second time

#

: )

spice smelt
#

ahah

hardy steeple
#

i moved it to the main file

#

lemme try to open it

shy turret
#
events.js:292
throw er; // Unhandled 'error' event
^
Error: 1001:
at Shard._onWSClose (/home/container/node_modules/eris/lib/gateway/Shard.js:1810:51)
at WebSocket.emit (events.js:315:20)
at WebSocket.emitClose (/home/container/node_modules/ws/lib/websocket.js:191:10)
at TLSSocket.socketOnClose (/home/container/node_modules/ws/lib/websocket.js:858:15)
at TLSSocket.emit (events.js:327:22)
at net.js:674:12
at TCP.done (_tls_wrap.js:574:7)
Emitted 'error' event on Client instance at:
at Shard.emit (/home/container/node_modules/eris/lib/gateway/Shard.js:2111:26)
at Shard.disconnect (/home/container/node_modules/eris/lib/gateway/Shard.js:118:18)
at Shard._onWSClose (/home/container/node_modules/eris/lib/gateway/Shard.js:1863:14)
at WebSocket.emit (events.js:315:20)
[... lines matching original stack trace ...]
at TCP.done (_tls_wrap.js:574:7) {
code: 1001
}

Does anyone understand this error?
I use eris.js. I think it is saying the shard crashed???

solemn latch
#

I heard eris has issues with unexplained shard crashes

eager nest
#

"The immediate cause of the "error code Error 1001" warning is a failure to correctly run one of its normal operations by a system or application component."

hardy steeple
#

i moved my index file

#

not like it did anything in particular

#

for some reason it was in node_modules

golden condor
#

No you just have to handle the error

pale vessel
#

@solemn latch yeah but you can handle them but still, it doesn't resume the connection properly somehow, which is the reason why i moved back to d.js

hardy steeple
#

yeah i know but i needed to move it because its not a node module

golden condor
#

@pale vessel I handle it and it resumes the connection fine

pale vessel
#

not for me

#

i still have errors in my console

#

vysion had the same issue, which made me switch lib

golden condor
#

Do you handle shardDisconnect and shardReconnect and error?

pale vessel
#

of course

hardy steeple
#

so im trying to make a command that takes the first person you mention in the message and gives you their username and pfp

golden condor
#

I used to have this issue

hardy steeple
#

its not working tho and i dont know why

#

here is my code:

#

let FirstMentioned = message.mentions.members.first();
var ProfileEmbed = new Discord.MessageEmbed()
.setTitle(FirstMentioned.user.username)
.setImage(FirstMentioned.user.displayAvatarURL())
message.channel.send(ProfileEmbed)

golden condor
#

But it now just handles it and continues the connection, and it doesn't stop music streams or anything like that

hardy steeple
#

and heres the error:

pale vessel
#

if you handle it, it'll still emit an error about what happened anyway, so that's not it

golden condor
#

No it doesn't

delicate shore
#

I suck at API

pale vessel
#

as in me logging the error

hardy steeple
#

TypeError: Cannot read property 'user' of undefined
at Client.<anonymous> (C:\Users\Mom_admin\Desktop\NOTABOT\index.js:29:38)
at Client.emit (events.js:315:20)

#

how do i fix it?

golden condor
#

Well it emits the error, it's your call to handle it however you wish, I log it to a channel with a webhook.

pale vessel
#

the event shouldn't trigger, that's why

hardy steeple
#

i tried to read the docs but i cant find answers there

pale vessel
#

@golden condor that's the thing, you can't simply ignore errors

golden condor
#

I don't, all of them are just cloudflare restarting the proxy and/or connection reset by peer. And then the connection resumes and uptime doesn't reset

pale vessel
#

what does cloudflare have to do anything with this

hardy steeple
#

i need help

#

i tried to read the docs but i found no answers

delicate shore
#

Flufdy

#

Fluffy boi

hardy steeple
#

im trying to make a command that takes the first person mentioned in the message and gives you their username and pfp

pale vessel
#

you know it's a problem when docs can't help you

golden condor
delicate shore
#

im trying to make a command that takes the first person mentioned in the message and gives you their username and pfp
@hardy steeple
Avatar command ?

hardy steeple
#

yeah pretty much

delicate shore
#

Ok

#

It's ez

#

One min

hardy steeple
#

my current code is

#

let FirstMentioned = message.mentions.members.first();
var ProfileEmbed = new Discord.MessageEmbed()
.setTitle(FirstMentioned.user.username)
.setImage(FirstMentioned.user.displayAvatarURL())
message.channel.send(ProfileEmbed)

earnest phoenix
#

what does cloudflare have to do anything with this
@pale vessel cloudflare sometimes like to kill the connection on discord's side, can't do anything about it

golden condor
#

@hardy steeple there is no mention

hardy steeple
#

but when i mention someone no message sends

#

and when i dont, it send this error

golden condor
#

That means there is not a first mention

#

And you need to check that

pale vessel
#

like how doesn't it happen on d.js

earnest phoenix
#

it probably does

#

d.js just silently handles it

hardy steeple
#

yeah but when i do mention someone no message sends

pale vessel
#

you're right

golden condor
#

But djs does the handling for you

sinful sorrel
#

SyntaxError: Cannot use import statement outside a module

#

plss someone

#

help

misty sigil
#

what

#

is

#

your

#

code

delicate shore
#

let FirstMentioned = message.mentions.members.first();
var ProfileEmbed = new Discord.MessageEmbed()
.setTitle(FirstMentioned.user.username)
.setImage(FirstMentioned.user.displayAvatarURL())
message.channel.send(ProfileEmbed)
@hardy steeple weirdsip

golden condor
#

It happens across all libs no matter the Lang

pale vessel
#

okay, sure, show me how it did that in the source

hardy steeple
#

@delicate shore thats my code exactly

delicate shore
#

I can

#

Wait

hardy steeple
#

TypeError: Cannot read property 'user' of undefined
at Client.<anonymous> (C:\Users\Mom_admin\Desktop\NOTABOT\index.js:29:38)
at Client.emit (events.js:315:20)

delicate shore
#

Huh

hardy steeple
#

i have the exact same code you put

#

let FirstMentioned = message.mentions.members.first();
var ProfileEmbed = new Discord.MessageEmbed()
.setTitle(FirstMentioned.user.username)
.setImage(FirstMentioned.user.displayAvatarURL())
message.channel.send(ProfileEmbed)

delicate shore
#

Why use that

hardy steeple
#

when i mention someone no message sends

delicate shore
#
const Discord = require("discord.js")

module.exports = {
    name: 'avatar',
    description: "displays avatr of person",
   async execute(msg, args){
  
     const member = msg.mentions.users.first() || msg.author;

    const Embed = new Discord.MessageEmbed()
      .setColor("RANDOM")
      .setTitle(`${member.username}`)
      .setImage(member.displayAvatarURL({ size: 2048 }))
      .addField(`Link`, `[Click Me](${member.displayAvatarURL()})`);

    msg.channel.send(Embed);
   
   }}```
hardy steeple
#

lemme reset token and restart vsc

delicate shore
#

@hardy steeple ^^

#

i use thT

#

that

solemn latch
#

Reset token?

#

Lol

delicate shore
#

yo @solemn latch can u come dms for a bit

hardy steeple
#

when i dont reset my token and make too many edits my bot send 10 messages for one command

solemn latch
#

I'm on mobile rn, can't be much help

delicate shore
#

but still

#

when i dont reset my token and make too many edits my bot send 10 messages for one command
@hardy steeple use command handler

sinful sorrel
#

SyntaxError: Cannot use import statement outside a module

#

can help me?

delicate shore
#

Code

golden condor
#

We need code

delicate shore
sinful sorrel
#

import {moment} from 'moment';

    function isDate(string) {
        {
            moment(string).format(["MM-DD-YYYY", "YYYY-MM-DD"]);
        }
    } exports.isDate = isDate;
delicate shore
#

huh

golden condor
#

Use this

#

const moment = require ("moment")

sinful sorrel
#

yes

#

i have that

#

i have const moment = require ("moment")

delicate shore
golden condor
#

Idk why people can't just get around Eris errors. I accept the ready event once and then set a custom var in the client as the uptime to show the actual uptime of the bot and use a function (client.getUptime()) to get it

sinful sorrel
#

so

#

how to fix SyntaxError: Cannot use import statement outside a module

golden condor
#

Don't use import

sinful sorrel
#

what must i use

golden condor
#

Require

sinful sorrel
earnest phoenix
#

.

shy turret
sullen harness
#

Pretty sure you don't need to import it again if you already required it.

golden condor
#

@shy turret no just use the error and disconnect events

shy turret
#

like this?

client.on('error', () => {
});
golden condor
#

Yes

shy turret
#

i guess i can make it auto restart using that

golden condor
#

You don't need to

shy turret
#

so if i just add that the problem wont happen again? (i dont think that is how it works though)

#

like it will kinda ignore the error?

opaque seal
golden condor
#

You just have to handle the errors and it will be fine. As it tells you it said unhandled error.

shy turret
#

so i could just add that code ok kthx

#

still gonna keep the auto restart though because it clears some ram

sage bobcat
#

One message removed from a suspended account.

golden condor
#

Smh

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

golden condor
#

No it's an es6 thing

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

golden condor
#

*es6

sage bobcat
#

One message removed from a suspended account.

golden condor
#

Also ty

#

No es6 will be coming to js

sage bobcat
#

One message removed from a suspended account.

hardy steeple
#

@delicate shore i put in the exact same code as you and still an error when i dont mention anyone and no message when i do

sudden geyser
#
console.log(callum) // => undefined```
restive furnace
#

es6 is alr in js

opal plank
#

it comes in node

hardy steeple
#

alright well i tried

opal plank
#

nothing related to that

restive furnace
#

i can do import Discord from "discord.js"; for example in js

opal plank
#

Its not realted to Ts

restive furnace
#

^

opal plank
#

ts has some esNext and newer feature

#

that es6 is enabled in newer node versions

#

just switch your module to mjs or enable type module on your packacge to enable imports

restive furnace
#

node.js 12.6 or newer it is enabled ^

opal plank
#

@sage bobcat its not a Ts feature

dull sluice
#

@hardy steeple do you still need help I looked and I think I see the problem

hardy steeple
#

im okay thanks tho

dull sluice
#

K

opal plank
earnest phoenix
opal plank
#

if you have Ts you can specify which ES you want

restive furnace
#

i might rewrite my bot to ts.

faint prism
#

Fortunately TS is built on top of JS. So not much conversion

opal plank
#

well

#

not quite

#

in Lax mode, yeah

#

in strict mode? get ready for 300+ errors

sudden geyser
#

There are some benefits to using TS over JS even though it's compiled down to JS (and earlier versions of JS in fact)

opal plank
#

you get errors beforehand?

#

built in docs?

#

optimiziation?

#

lemme grab a link for ya

sudden geyser
#

I wouldn't use it myself and would rather prefer a language that offers those features to me directly rather than what feels like a wrapper

opal plank
#

watch this

#

its a good 'for dummies' of why to use it

restive furnace
#

well: js -> ts -> oop languages.

weak rain
#
    at Module._compile (internal/modules/cjs/loader.js:759:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at Function.Module._load (internal/modules/cjs/loader.js:555:12)
    at Module.require (internal/modules/cjs/loader.js:666:19)``` error :/
#

:/\\

nova dock
#

Which commands should we use Now

#

Error://_

opal plank
#

huh?

nova dock
#

Confused me

opal plank
#

Which commands should we use Now

#

meant that

nova dock
#

😢

#

🐇

weak rain
#

@opal plank any guess?

nova dock
#

Hahahahahaha

#

NOPE

opal plank
#

@weak rain show above that part

#

there should be another line or two above

weak rain
#

code?

opal plank
#

the error

weak rain
#

of music.js

nova dock
#

😡

opal plank
#

show full error

#

@nova dock move to #general if you arent going to keep at channel topic

weak rain
#
    throw err;
    ^
Error: Cannot find module '../config.json'
Require stack:
- /app/commands/music/music.js
- /app/handlers/command.js
- /app/server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)
    at Function.Module._load (internal/modules/cjs/loader.js:526:27)
    at Module.require (internal/modules/cjs/loader.js:666:19)
    at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/app/commands/music/music.js:4:25)
    at Module._compile (internal/modules/cjs/loader.js:759:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at Function.Module._load (internal/modules/cjs/loader.js:555:12)
    at Module.require (internal/modules/cjs/loader.js:666:19)
internal/modules/cjs/loader.js:613
    throw err;
    ^
Error: Cannot find module '../config.json'
Require stack:
- /app/commands/music/music.js
- /app/handlers/command.js
- /app/server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)
    at Function.Module._load (internal/modules/cjs/loader.js:526:27)
    at Module.require (internal/modules/cjs/loader.js:666:19)
    at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/app/commands/music/music.js:4:25)
    at Module._compile (internal/modules/cjs/loader.js:759:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at Function.Module._load (internal/modules/cjs/loader.js:555:12)
    at Module.require (internal/modules/cjs/loader.js:666:19)````
#

i think config.json

opal plank
#

there we go, now we are talking

#

it is

#

where is you config?

#

and where is your file requiring it?

nova dock
#

Wow Nice!!!

weak rain
#
const { MessageEmbed } = require("discord.js")
const { QUEUE_LIMIT } = require("../config.json");
opal plank
#

thats in your index.js?

weak rain
#

no