#development

1 messages · Page 1534 of 1

leaden lake
#

I keep it in my phone. My computer is down

compact olive
#

my script

#

don't work

#

I want the bot to answer me when I ping it

quartz kindle
#

there is no type argument in a message event

#

why do you have (type, options) => ?

compact olive
#

except that there is nothing in the console the bot does not react

#

i don't know i thought it would work

quartz kindle
#

a message event gives you a message object

compact olive
#

how do i get the bot to respond to my ping?

quartz kindle
#
client.on("message", theReceivedMessage => {
  console.log(theReceivedMessage.content)
})
#

you can give it whatever name you want

#

but its a message object, and its only one argument

#

there is no type and no options

earnest phoenix
compact olive
#

@quartz kindle I do not understand

#

i just want him to talk to me when i ping him

quartz kindle
earnest phoenix
#

@unkempt ocean help me
sorry for bothering you

quartz kindle
compact olive
#

I modify it from here because it did not work

quartz kindle
#

that has nothing to do with messages

#

where did you get this code from? a tutorial? youtube? guide?

compact olive
#

no

#

an anti raid bot that I had done with friends, they know more about it than me

quartz kindle
#

have you never done any kind of coding before?

earnest phoenix
#

you have a lot more to learn

compact olive
#

a tiny bit

quartz kindle
#

discord sends a message to your bot, your bot receives the message, and sends it to client.on("message")

#

client.on("message") gives it to the first argument that you specify

#

client.on("message", argument here)

#

the argument must be a function that tells the bot what to do with the message

#

client.on("message", newMessage => { write here what to do with the received message })

earnest phoenix
#
  let pref = (await db.fetch(`prefix_${message.guild.id}`)) || client.settings.prefix;
  if (message.content === "help") {

      message.channel.send(
        `**${pref}**help`)
  }    
});```
gilded olive
earnest phoenix
#

ex

quartz kindle
#

example ```js
client.on("message", message => {
console.log(message.content) // show the content of the message in the console
message.reply("bla") // reply to the message
etc...
})

compact olive
#

tim

#

what is the script used for?

halcyon kite
compact olive
quartz kindle
#

i give up

earnest phoenix
#

Please see the screenshots

halcyon kite
halcyon kite
earnest phoenix
unkempt ocean
#

can you please send your on-ready event?

compact olive
#

i want the bot to say this is my prefix when i mention it

#

I don't want him to say blah when I send a message

#

@quartz kindle

unkempt ocean
quartz kindle
earnest phoenix
#

@unkempt ocean Please wait 2 minutes I'm helping someone

compact olive
#

basically i would like to mention it ex: @spectrum, he replies: hey! my prefix is:.

#

I can't do it

lament rock
#

on message, you should check if the message content matches /<@!?BOTID>/ and that's all that the message content is

#

only checking for if it matches might prevent you from having mention prefixes which is unintentional

zenith terrace
lament rock
#

logical OR

earnest phoenix
tall anvil
#

hello, i submit my bot and saw that the bot should ask only for permission he need. however i "asked" for manage role permission because i'm using it for a personal use (no one can use this command apart of me and in my server, to be more precise the bot is sending me an sms with a link to add some roles when someone is going in my discord server, thats all) but i'm not using it for public use. is this allowed?

earnest phoenix
#

if it's only for your personal use only in your guild, then you don't need to include the manage role permission (since nobody is going to be using that feature except you in your own guild)

#

and sure, it's allowed

tall anvil
#

ah yeh you'r right (just need to give perms in my server) ok ty.

#

i'm little bit dumb xD😅

cerulean ingot
#

hello, i was wondering if you guys could help me with my subdomains

drowsy grail
#

i'm sure someone can, just ask your question

cerulean ingot
#

well the thing is, ive never done it and i dont know where to start

drowsy grail
#

do you have a domain?

cerulean ingot
#

yes

#

i know dns, but not how to make subdomains

#

ive configured many domains before

drowsy grail
#

what DNS provider are you using?

cerulean ingot
#

namecheap, cloudflare

cerulean ingot
#

great, thank you very much

drowsy grail
#

yep np

tall anvil
#

thats a very easy question but... what permission do i have to allow to the bot to make it not beeing mute in channel where no one can speak pls?😅

cerulean ingot
lament rock
#

allow the SPEAK permission in that voice channel. If any role allows something, you cannot deny it until it's toggled off for everything

earnest phoenix
#

Hi. Any of you JavaScript users? I'm new to bot coding, self-taught, and could use a bit of help with some commands. I just require a ban command and a kick command for now if anyone could help me out with that? this is probably a big ask.

tall anvil
#

ok ty @lament rock

zenith terrace
opal plank
quartz kindle
#

i did

#

and it was not enough

cerulean ingot
opal plank
cerulean ingot
#

why isnt this working?

opal plank
#

fair argument though

cerulean ingot
#

its not redirecting

opal plank
#

check that post regardless

tame mantle
#

any idea on how to remove the reaction from client.on('messageReactionAdd'

misty sigil
tame mantle
#

hey mattheew

#

i tried that, but for some reason it removes all the reactions

#

how do i remove just reaction that's being added

#

client.on('messageReactionAdd', async (reaction, user)

#

like the reaction by user

rustic nova
#

reaction.remove(user)

#

no?

tame mantle
#

any idea what should i use

tame mantle
#

for some reason, it still removed all of them

blissful coral
#

I am currently using express, and I want it to redirect to another port on the IP,

Going to have it as app.get('mongo', (req, res) => { //redirect to the mongo port URL }) how can I get the port to display the info from the mongo DB without using redirect() because that will redirect to the IP of the PC they are on not the database page itself to use on compass

misty sigil
#

what

misty sigil
#

wouldn't you be better using nginx or something similar

earnest phoenix
#

^

misty sigil
#

because nginx doesn't expose IP

#

just proxies requests

#

and just a heck of a lot better of an idea

earnest phoenix
#

Hi i have a countdown bot and you submit answers. I have a variable called ans and i am sending it but it works some of the times and doesnt work in other times. I think the problem is that my json file with answers has it stored as "027" and "009" and "384" so all 3 digit numbers work but 2 digits/1 digit doesnt

#

here is some proof ig

#

But idk why

#

i did if int(ans)==int(message.content)

opal plank
#

its quite annoying that the trace doesnt go as back as where it originated

quartz kindle
#

discord being discord

opal plank
#

more like d.js not throwing a good trace

#

actually

#

yeah, is there a good way to get local trace?

#

like, without throwing an error?

quartz kindle
#

i mean

#

the error is coming from the request handler

opal plank
#

which doesnt give the full trace, but i could append another one ontop

quartz kindle
#

it should be caught by try/catch or .catch wherever it originated in

zenith terrace
#

Discord go brrrr

opal plank
#

thats what i was thinking of, but without another throw

#

image this

#
try {
request('semethere');
} catch(e) {
console.log(stack.trace + e);
}

// one alternative is to
try {
request('ssomewhere');
} catch(e) {
throw new Error(e);
}

Throwing a new error with the previous stack would possibly throw the string + the trace of the current file no?

#

but that would be unhandled, so i was thinking of something like the previous one

#

where i could get a trace without throwing

#

should i be using sentry? 100%, but im stubborn

quartz kindle
#

neither of those will work because request is not awaited

#

:^)

opal plank
#

you get the point though

quartz kindle
#

theres no need to rethrow the error

#

unless you want to modify it, or change its message, idk

opal plank
#

but the error is thrown inside the handler, which doesnt trace back at where the request was made

quartz kindle
#

it does if you catch it properly

opal plank
#

wait rlly?

quartz kindle
#

yes

opal plank
#

so you telling me i likely didnt await somewhere?

quartz kindle
#

yup

opal plank
#

i see i see

#

ty timmy

#

❤️

quartz kindle
#

<3

zenith terrace
#

@quartz kindle owo

quartz kindle
#

uwu

zenith terrace
#

hows life Tim

quartz kindle
#

LG

#

why are you everyone's bodypillow

zenith terrace
#

What about coding life, hows that

opal plank
#

How can i mute my neighbors dog in discord.js?

zenith terrace
#

I was Dice' at first but other people wanted their name there

zenith terrace
opal plank
#

can someone give me code for muting neighbors dog in discord.js? im using node 15

zenith terrace
#

Wow tim

quartz kindle
#

:^)

misty sigil
#

hilarious

opal plank
#

no one laughed at my joke though cryingweeb

misty sigil
#

and when the fuck did tim get into burning people to a crisp

zenith terrace
#

I am not a hoe, I am a body pillow fyi @quartz kindle

silver lintel
#

when i do message.channel.send((![]+[])[+[]]+(![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]); why does it send 'fail'

quartz kindle
#

because that spells "fail" in jsfuck

silver lintel
#

ohh

opal plank
#
let dog = message.client.neighbors.livingBeings.get('BarkingFuckingDog');
if(dog) dog.mute({reason: 'annoying as fuck'});
else console.log('Peace and tranquil, alas');

Why this no work?

silver lintel
#

pog

misty sigil
#

idk man

#

try dog.kill()

opal plank
#

okay imma stop tryhard with the starboard DeadStare clearly not working

quartz kindle
misty sigil
#

and that yes

opal plank
#

trust me, they are less than 1 m away from me, its a thinn fricking wall

quartz kindle
#

you need a stargirl bodypillow to boost your wifi

grizzled raven
#

i disagree

quartz kindle
#

only costs 7 million dice coin

zenith terrace
quartz kindle
#

;)

zenith terrace
#

Smh

scenic kelp
#

keep it on topic smh my head

zenith terrace
#

@scenic kelp this is on topic, we talking about making a dog shut with d.js

scenic kelp
#

ah

#

my bad

strong igloo
#

So I've added a ton of commands to my bot do you guys think searching through the bots servers and sending a message in channels called bot-spam or bot-commands with an update message would be acceptable?

dusky sundial
#

If so, you'd probably want a feature to disable them for the server owners

strong igloo
#

yeah I figure I'll do it once and allow server owners to set a channel for future updates

dusky sundial
#

I don't think there are any rules that would go against that, so yeah

mellow kelp
#

whoa next.js is epic

outer niche
covert nacelle
#

hiii

outer niche
#

Anybody have an idea of what I have posted above

drowsy grail
errant perch
#
axios.get(`https://query1.finance.yahoo.com/v7/finance/quote?symbols=${ticker}`).then(function(res) {
  console.log(res)
}``` I keep getting this error every time I run this code in my html document
```css
Access to XMLHttpRequest at 'https://query1.finance.yahoo.com/v7/finance/quote?symbols=aapl' from origin 'https://stockindex.glitch.me' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.```
#

I have a extension on chrome the enables CORS but I want to enable CORS on the server side

tender fern
#

Hi

neon heart
#

someone can you help me. how to fix this error?
error

Error handler caught an error:
TypeError: Found non-callable @@iterator
    at C:\Users\User\Desktop\Munari Bot\MunariHeroku\src\utils\Function.js:271:25
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Code

        const tosongs = {
            title: Util.escapeMarkdown(dataout.title),
            identifier: dataout.videoId,
            author: dataout.author.name,
            duration: dataout.duration.timestamp,
            nowplaying: dataout.duration.seconds,
            url: `https://www.youtube.com/watch?v=${dataout.videoId}`,
            thumbnail: dataout.thumbnail + "?size=4096",
        };

        const track = await new songdata(tosongs, message.author)

        const queueConstruct = {
            textChannel: message.channel.id,
            voiceChannel: channel.id,
            guildId: message.guild.id,
            songs: [],
            connection: null,
            loop: false,
            volume: 100,
            playing: true
        };

        const queue = client.queue.get(message.guild.id)
        if (queue) {
            queue.songs.push(...track) //ini line 271
        }

        message.client.queue.set(message.guild.id, queueConstruct);
        queueConstruct.songs.push(...track);```
crimson vapor
grizzled raven
#

axe

ebon kelp
cerulean ingot
#

how come everyone that used my dashboard gets internal server error and has to reload

grizzled raven
#

is it your internal server error or discord's internal server error

cerulean ingot
#

not sure im not hosting it the other dev is

#

but it looks like this:

ebon kelp
#

Probably an error on your own backend

cerulean ingot
#

idk because everyones getting it

ebon kelp
#

Just read what the console says

#

It's not that hard

earnest phoenix
#

Hi

dusky sundial
earnest phoenix
#

How do I code

#

Lol jkjkjk

dusky sundial
#

Yeah that's about half of the people in this chat xd

earnest phoenix
#

🤣

ebon kelp
earnest phoenix
#

Ikr

#

Kinda aggravating

dusky sundial
#

And the funny thing is that they always have like "coder" or "dev" in their username but they actually have no idea what they're doing

ebon kelp
#

Should be not acceptable imo

earnest phoenix
#

And they have so many bugs in it

#

But ofc discord doesn't care

ebon kelp
#

Probably

dusky sundial
#

They don't really have the time to make sure it's perfect ig

earnest phoenix
#

Ikr

dusky sundial
#

Probably hundreds of people a week trying to get verified

ebon kelp
#

I also saw 2 people in #support over the last year asking about what they should fill in into the Discord Official Bot Verification

dusky sundial
#

lmao

ebon kelp
#

Like what the bot says in terms of user data

#

And he couldn't answer that question monkaHmm

dusky sundial
#

Ah yeah, it's hard to know what data your bot collects

ebon kelp
#

And those people get a verified bot badge, but I don't. 7Sadge

dusky sundial
#

I'm sure there will be another round of those badges eventually

ebon kelp
#

My bot is in 6 servers lmao

#

It checks images for NSFW and full length movies

dusky sundial
#

Sounds pretty cool, I'm sure it'll grow eventually once you update it

ebon kelp
#

Update?

#

It's kinda finished, except privacy info

dusky sundial
#

Yeah, that's what I meant

#

like finish it completely

ebon kelp
#

It's like, at this point I have no idea what to add. And I don't get any feedback so idk

dusky sundial
#

Yeah it's pretty hard to know

sudden geyser
#

Your users won't know what they want.

dusky sundial
#

I'm waiting for discord to approve my intents request so that I can finish some new features

mellow kelp
#

just in case tho

#

it's possible to request intents for an already verified bot right?

dusky sundial
#

Yeah

#

or at least that's what I did

mellow kelp
#

o

#

aight vibing

dusky sundial
#

You're not allowed to request intents for future purposes though. Like you can't request them just in case you might need them

mellow kelp
#

yeah that makes sense

ebon kelp
dusky sundial
#

lmao there it is

ebon kelp
dusky sundial
#

The poor guy doesn't know what his bot does :,)

pale vessel
mellow kelp
#

dang

ebon kelp
#

Welp it's 05:09 time for sleep

dusky sundial
#

It is for me too, I slept for 2 hours last night

#

idk what I'm doing

ebon kelp
#

Have to get up at 9am dogf

#

So like 4 hours of sleep

dusky sundial
#

It's more than 3 :D

pale vessel
#

Hey that's my schedule

opal plank
#

pfff, imagine sleeping. You weaklings disgust me

ebon kelp
solemn latch
#

how does npm make a folder, that it cant make another folder in 🤔

ebon kelp
#

Popping some RedBulls

dusky sundial
#

Cracking some cold ones

ebon kelp
#

Are ya australian?

dusky sundial
#

Nope

#

I'm a Swedish boye

ebon kelp
dusky sundial
#

A viking, one might say

ebon kelp
#

Like maxmoefoe

ebon kelp
dusky sundial
#

True

#

Yes

ebon kelp
#

Aight have a good one

dusky sundial
#

o/

ebon kelp
#

o/

cerulean ingot
#

how come everyone that used my dashboard gets internal server error and has to reload

ebon kelp
#

READ THE FUCKING CONSOLE

#

I told you earlier

cerulean ingot
#

sorry i didn’t see

#

do you have some kind of...

#

issue?

#

i also said im not hosting it

ebon kelp
mellow kelp
#

tell the guy who's hosting it to read the console

dusky sundial
#

How would you be able to fix the issue if you're not the one hosting it?

cerulean ingot
#

the other developer is, i was going to tell him what’s wrong

ebon kelp
#

Great

dusky sundial
#

Well it's gonna be really hard to tell what the issue is if you don't have access to the console

cerulean ingot
#

alright

#

i’ll dm him about it

#

thanks

ebon kelp
#

I assume it happens when it makes a call to the backend yes?

cerulean ingot
#

yep

#

the database

sacred trout
ebon kelp
#

Have you checked the network tab in the dev tools already?

#

When you make the call

cerulean ingot
#

no

ebon kelp
#

It might give a part of the reason

cerulean ingot
#

alrighty

#

also how do i make my site have an embed

#

in the html

ebon kelp
#

1 sec

sacred trout
#

@cerulean ingot your site?

#

link?

cerulean ingot
#

thank you very much

#

also @sacred trout i love your site

sacred trout
#

thanks 🙂

#

wanna see my clients site?

cerulean ingot
#

sure!

#

dm me them

ebon kelp
#
<meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="Loka2Loka is een platform waar lokale leveranciers uit de regio hun producten kunnen aanbieden aan lokale winkels.">
  <meta name="keywords" content="loka2loka, lokaal, vanstreek">
  <meta name="author" content="Hogeschool van Amsterdam">
  <meta name="theme-color" content="#43d982">

  <title>Loka2Loka</title>

  <!-- Embed -->
  <meta property="og:title" content="Lokale producten op één platform">
  <meta property="og:site_name" content="Loka2Loka">
  <meta property="og:description" content="Loka2Loka is een platform waar lokale leveranciers uit de regio hun producten kunnen aanbieden aan lokale winkels.">
  <meta property="og:image" content='assets/img/branding/logo-icon.png'>
  <meta property="og:type" content="website">
  <meta property="og:locale" content="nl_NL">

  <meta name="twitter:card" value="summary">
  <meta name="twitter:title" content="Loka2Loka">
  <meta name="twitter:description" content="Loka2Loka is een platform waar lokale leveranciers uit de regio hun producten kunnen aanbieden aan lokale winkels.">
  <meta name="twitter:image" content='assets/img/branding/logo-icon.png'>
sacred trout
#

you site is danm good bruh

ebon kelp
#

Put that part into your html

cerulean ingot
#

thank you

sacred trout
#

your site is so good

ebon kelp
#

With your own info ofc

cerulean ingot
#

ty @sacred trout

sacred trout
#

lemme see your bot

ebon kelp
cerulean ingot
#

yep yep

ebon kelp
#

It's OEmbed and twitter cards

sacred trout
#

prefix?

ebon kelp
#

For references

sacred trout
#

also make the bot link pop up in a new window

cerulean ingot
#

good idea yeah

#

prefix is d! but you can change it

#

on the dashboard

sacred trout
#

sure

heady lodge
#

!report

sacred trout
#

!report

pearl void
#

I need help in python

#

ples help

#

dm me

odd stratus
#

What

odd stratus
#

It means your bot grew too fast in a suspicious way idk

lament rock
# stuck pike

It means Discord detected that your bot may have joined too many servers which you share with it/own or it joined too many servers with too many bots / something along those lines. Pretty sure there are more grounds in order to have your bot flagged, but those are what I remember being covered in their explanation

earnest phoenix
#

print all the servers and server owner IDS

#

and make the bot leaves each sus server

#
2021-01-19T06:30:13.371315+00:00 app[worker.1]:
                     ^
2021-01-19T06:30:13.371315+00:00 app[worker.1]: 
2021-01-19T06:30:13.371316+00:00 app[worker.1]: TypeError: Cannot read property 'get' of undefined```
rocky hearth
#

Is it possible to negate a number using a bitwise operator?

earnest phoenix
#

if it's signed

#

just flip the first bit

rocky hearth
#

how to?

earnest phoenix
#

idk your language

rocky hearth
#

js

earnest phoenix
#

you'll need to +1 the output

#

idk why you would use bitwise for this though

rocky hearth
#
+[5]      // returns 5
4 + [5]   // returns "45"
4 + + [5] // returns 9
6 - [4]   // returns 2

Explain pls...

earnest phoenix
#

probably because js handles types.... well it doesn't

brittle bobcat
#

ye i'm sticking to java xd

near stratus
cinder patio
rocky hearth
#

How [5] is a "5"?

cinder patio
#

[5].toString() = "5"

#

[1, 2, 3].toString() = "1,2,3"

rocky hearth
#

Ooh! so if, an array is used in an expression it gets converted to a string. Right?

cinder patio
#

yup

rocky hearth
#

same must be true for, objects, I guess 🤔

cinder patio
#

yeah, but objects get turned to [object Object]

faint isle
#

yea

rocky hearth
#

{} + [] gives 0 but, [] + {} gives "[object Object]"

cinder patio
#

in the first case, I think the interpreter treats {} as something else, not an object

#

and the second one is "" + {}, which is [object Object]

compact scaffold
#

how can i use iframes in my top.gg page?

cinder patio
rocky hearth
#

for the first case it should be "[object Object]0"

lament rock
#

It's not string concatenation, so that would not be the case

cinder patio
#

but the interpreter thinks that {} is an empty scope or something similar.

#

it first reads the first one to determine whether to do string concatenation, or something else

lament rock
#

if you were evaluating the expression in a string, the output would just be [object Object]

#

same for if you try to concatenate the expression into a string

#

I believe the output should be NaN since calling the Number expression on an Object returns NaN. Calling Number on an empty Array does return 0, however. Number(item) does implicitly call toPrimitive which is an "internal method"

rocky hearth
#

Oh I got it. the interpreter treats {} as an empty block in {} + [], thats y it is 0

lament rock
#

That wouldn't explain it if calling Number({}) or +{} returns NaN.
An empty Object doesn't cleanly get coerced into a number

#

The interpreter probably has special instructions for dealing with Objects

summer acorn
#

in discord.js v12, is there a way to get a invite object in a guildMemberAdd event without manually fetching the invite?

lament rock
#

You have to store the state of the Guild's invites and then after each guildMemberAdd, check which Invite's use count has increased

summer acorn
#

An invite object kinda is a one-time object with a target user and inviter user

lament rock
#

Negative

summer acorn
lament rock
#

An Invite can have a single use case, but it stored on the Guild object along with the rest of them which may have unlimited uses

summer acorn
#

Yes, but the target user property, the user getting invited

lament rock
#

This is probably something special only added for 100% completion and is most likely whenever someone opens the modal to invite friends to a Guild

summer acorn
#

it should at least be fetchable using targetUser

#

I see,

lament rock
#

That's how you get a Guild's invites

summer acorn
#

I see,

lament rock
#

Really, I'm not sure. If it is, I'm not sure why they'd add it since bots can't get added to group DMs

summer acorn
#

yeah

lament rock
#

Oh. I needed to read the doc 1 line down

timber fractal
#
  if (message.mentions.users.has(client.user.id) && !message.author.bot) {
        message.reply(`\nMy prefix is: \`>\`\nSay \`>help\` to get help with my commands!\n:3318_RainbowBlobGoingCrazy:`)
      };```So i have this code so it responds to people if they ping my bot but i want to make a talking system so if u say `@Bot` it responds with "my prefix is: >" and if u say like `@Bot Hello` it says it from the talking system
lament rock
#

Check for if there is no content after the bot mention

timber fractal
#

can u just do that with if(message.mentions.users.has(client.user.id) && !message.author.bot && msg.content()) ?

#

@lament rock ?

lament rock
#

msg.content is not a function, also that would always return true since msg.content would include the bot ping. You need to match the string with a regular expression for the bot's mention and then slice that out of the string and check for if there's more content

solemn jolt
lament rock
#

you spelled reason wrong

solemn jolt
timber fractal
lament rock
timber fractal
#

thanks

lament rock
#

A RegExp you can use to match your bot's mention is

new RegExp(`<@!?${client.user.id}>`);
#

Up to you if you wanna add flags to it like g or not, but shouldn't be necessary

willow mirage
#

:0

#

Regex make my brain explode

lament rock
#

Try writing regular expressions for error stack frames. You'll become an expert quickly

#

This is the worst expression I've written and it was to pick apart an error stack frame
My best guess to describe it so you can make sense of it is a method which is identifying as something else as a property of an Object

/((?:.[\w_.<>]*)? ?(?:.[\w_.<>]*)? ?\[(?:as)? ?(?:.[\w_.<>]*)\])? ?\(([^*?"<>]*):(\d+):(\d+)\)/
timber fractal
rocky hearth
#

can I define a enum as a class property? for TS

pure lion
#

@rocky hearth try it and see

cinder patio
#

doesn't work with const enums

#

It's pointless imo, just export the enum along with the class

eternal osprey
#

hey guys

#
console.log(baseStats.getByName({ name: currentMon.name }))
    currentMon.stamina = Math.floor(Math.random() *300);
    currentMon.hp = baseStats[0]``` How does this still return undefined in the embed?
#

it logs completely and all

rocky hearth
#

Thanks, Feud

pure lion
#
<% patterns.forEach(pat => { %>
    <div class="row">
        <div class="col-sm">
            <div class="container-box text-center">
               <%- <!-- i want the first elem to go here --> %> 
            </div>
        </div>
        <div class="col-sm">
            <div class="container-box text-center">
               <% <!-- i want the second elem to go here --> %>
            </div>
        </div>
    </div>    
<% }) %>```I have this ejs, i want it to somehow generate two columns from the current document and the next document. it will then continue to iterate through the array until there's nothing left
#

is this possible?

tired panther
#

process.cpuusage gives

 { user: 4875000, system: 1546000 }
``` how to convert it in percantage and get the whole system usage?
near stratus
pure lion
#

you're missing a (

near stratus
#

oh sorry

#

fixed

pure lion
#
                        <% patterns.forEach(pat => { %>
                            <div class="row mb-10">
                                <div class="col-sm">
                                    <div class="text-center">
                                    <h1 class="content-title">
                                        <%- patterns[patterns.indexOf(pat)].name %>
                                        <hr>
                                        <%- patterns[patterns.indexOf(pat)].authorName %>
                                    </h1>
                                    <br>
                                    <%- patterns[patterns.indexOf(pat)].description %> 

                                    </div>
                                </div>
                                <div class="col-sm">
                                    <div class="container-box text-center">
                                    <h1 class="content-title">
                                        <%- patterns[patterns.indexOf(pat) + 1] ? patterns[patterns.indexOf(pat) + 1].name : null  %>
                                        <hr>
                                        <%-patterns[patterns.indexOf(pat) + 1] ? "By " + patterns[patterns.indexOf(pat) + 1].authorName : null  %>
                                    </h1>
                                    <br> 
                                    <%- patterns[patterns.indexOf(pat) + 1] ? patterns[patterns.indexOf(pat) + 1].description : null  %> 

                                    </div>
                                </div>
                            </div>    
                        <% }) } %>
```I'm back, i tried this and it turns out its not a viable solution. Is there a better way of me doing this because the elements would just repeat over and over. Headache time weeeeeee
faint moth
#

what is the problem

tired panther
#

oh thx

faint moth
#

yes

#

@pure lion

pure lion
#

there's the fix

faint moth
#

how

pure lion
#

at miniget/index.js

#

go to line 30

faint moth
#

I went @pure lion

pale vessel
#

I w@pure lion ent

earnest phoenix
#

Hi. Anyone know how to run my bot 24/7?

quartz kindle
#

keep the program running

zenith terrace
#

smarts

earnest phoenix
#

Right. I have the program open and I have noded it, but the bot is still offline.

#

Any fix to that

quartz kindle
#

whats the output?

earnest phoenix
#

Huh? Sorry wdum?

#

I ain't too good with code yet. Just started 😅

quartz kindle
#

im assuming by "noded it" you mean you ran node index.js or similar in your command line

earnest phoenix
#

I ran node botdev.js yes

quartz kindle
#

and what was the output

earnest phoenix
#

It is usually ''ready''

quartz kindle
#

if its ready then it should work

#

can you show a screenshot of it?

earnest phoenix
#

At the moment it is showing as module not found. But it is right there

quartz kindle
#

ah then its not working

#

no wonder its not online

earnest phoenix
#

I got all thr code imputed correctlt

#

I think

warm marsh
#

rip

#

Your token is in there.

#

You need to regen that.

earnest phoenix
#

R.I.P.

#

Damnit

timber fractal
quartz kindle
#

in which folder are your bot files in?

earnest phoenix
#

The node_modules

quartz kindle
#

no

#

where in your computer is your bot

#

where is botdev.js

#

which folder

timber fractal
quartz kindle
timber fractal
earnest phoenix
#

Well it should be in the right folder, I haven't moved anything around so it should be in the same folder as the rest, my virtual studio code folder

quartz kindle
#

and that folder is...?

#

where is it located

#

whats the full path

earnest phoenix
#

Its stored on my PC hard drive (internal) in My named folder, in the extensions folder

#

PC hard drive, private folder, extensions

quartz kindle
#

so...

#

C:/private folder/extensions/botdev.js?

earnest phoenix
#

Yes

quartz kindle
#

ok

#

as you can see in your picture

#

your command line is in the wrong folder

#

so its not finding your bot

earnest phoenix
#

Hmm

#

Thanks I'll try resolving it. I'm gonna do a sweep of my files to see which one they're meant to be in

quartz kindle
#

you need to change the path of the cmd to the right folder

#

one way is to use the cd command

#

another way is to close visual studio and open it again in the right folder

zenith terrace
#

tim uwu Huggu

quartz kindle
#

right click folder -> open in vsc

quartz kindle
quartz kindle
timber fractal
#

@quartz kindle how?

quartz kindle
#

what did you try?

timber fractal
#
const escapeRegex = str => str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); const prefixRegex = new RegExp(`^(<@!?${client.user.id}>|${escapeRegex(prefix)})\\s*`); if(!prefixRegex.test(message.content)) return; const [, matchedPrefix] = message.content.match(prefixRegex);``` somebody told me to do this
timber fractal
balmy anchor
#

Yo guys
I'm making a music Discord bot right now, and I tried making lyrics command.
I did it and it works pretty well, except that some songs are too long for Discord to send them as a message.
And I was thinking about making it like 2 messages or so for the longer lyrics.
I tried making a for loop up to 1999 becuz 2000 is the limit. and I'm pretty stuck here so I don't know what to do.
Any help would be great, thanks.

earnest phoenix
#

@balmy anchor just ignore it

balmy anchor
#

:3

earnest phoenix
#

Lol

timber fractal
#

ikd just sending some random stuff LOL

earnest phoenix
timber fractal
balmy anchor
timber fractal
balmy anchor
#

discord.js

timber fractal
#

and im not advenced with the music bot

timber fractal
balmy anchor
#

nah its all ok

#

thx for trying

#

I think i have an idea to make it work

stuck pike
#

Roughly how much time

balmy anchor
#

Alot usually

#

:->

quartz kindle
earnest phoenix
#

@timber fractal why are you using regex for prefix

timber fractal
earnest phoenix
#

you can do it with one line:

if (message.content.startsWith("your prefix") do something
#

@timber fractal that guy told you to do useless extra hardwork

#

the only time youll use regex is for getting arguments from the message:

const args = message.content./* remove prefix here */.split(/ +/);
timber fractal
#

i already have a command handler like that

earnest phoenix
#

nobody likes mention prefixes

timber fractal
#

no its not a mention prefix

#

its like u say @bot it tells the prefix

#

and if u say @bot something it will chat with you

#

i need that

quartz kindle
#

you already have this right? js if (message.mentions.users.has(client.user.id) && !message.author.bot) { message.reply(`\nMy prefix is: \`>\`\nSay \`>help\` to get help with my commands!\n:3318_RainbowBlobGoingCrazy:`) }; all you need to do is check if there are any extra arguments ```js
if (message.mentions.users.has(client.user.id) && !message.author.bot) {
let args = message.content.split(" ");
if(args.length > 1) {
// message has more words than just the bot mention
}
}

earnest phoenix
#

"Chat with you" that is what a mention prefix is

timber fractal
#

okay thank yoy

earnest phoenix
#

@timber fractal minecraft themed bot interesting

timber fractal
earnest phoenix
#

im making a minecraft commands generator in react for bedrock users so they dont have to deatroy their hair

compact scaffold
earnest phoenix
compact scaffold
#

Not really

quiet coral
#

hello there im trying to make my bot's top.gg page and i cannot make it has only dark theme,if anyone can help i would be very happy!

earnest phoenix
#

@quiet coral wdym

#

do you want to force people to use dark theme on your bot page?

quiet coral
#

yea

earnest phoenix
#

Go to your edit page

#

Scroll down to the bottom

quiet coral
#

Forced themes are only enabled for creators who use custom CSS in their detailed description.

sacred trout
#

discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Bot' object has no attribute 'warnings'

dreamy gulch
#

we can use custom css 👀 ?

earnest phoenix
sacred trout
quartz kindle
quartz kindle
#

:^)

sacred trout
#

can you help?

quartz kindle
#

im not a python user, but i understand what the error means

#

do you use bot.warnings anywhere?

sacred trout
#

        except KeyError:
            first_warning = True
            self.client.warnings[ctx.guild.id][member.id] = [1, [(ctx.author.id, reason)]]```
quiet coral
quartz kindle
#

and did you create client.warnings anywhere?

sacred trout
#

self.client.warning = {}

#

    def __init__(self, client):
        self.client = client
        self.client.warning = {}```
earnest phoenix
#

@quiet coral it is me who has to thank you for forcing people to use dark theme. You saved so many eyes.

quartz kindle
sacred trout
#

bruh

quartz kindle
#

@_@

sacred trout
#

xD

quiet coral
pure lion
#

waning: stpiud

quiet coral
#

It's like blank

sacred trout
#
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/runner/Bot/cogs/warning.py", line 53, in warn
    self.client.warnings[ctx.guild.id][member.id] = [1, [(ctx.author.id, reason)]]
KeyError: 788613513756934175

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 902, in invoke
    await ctx.command.invoke(ctx)
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py", line 864, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py", line 94, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: 788613513756934175```
#

@quartz kindle

quartz kindle
#

im pretty sure you cant add double keys

#

for example

#

you cant do something[a][b] = soomethingElse if something[a] doesnt exist

sacred trout
#

how else do i do it then?

earnest phoenix
#

@quiet coral you have to add the empty style tag, save the changes, then enable forcing dark theme

quartz kindle
#

you have to create something[a] before you can create something[a][b]

quiet coral
earnest phoenix
#

^^ check if key in dict, if doesn't exist, assign an empty dict to it

sacred trout
#

yo @earnest phoenix

earnest phoenix
#

@quiet coral bruh you need to close the tag too

#

sup

sacred trout
#

bad

quartz kindle
#

in js you would do if(!something[a]) something[a] = {}

quartz kindle
#

but you understand what you have to do right?

sacred trout
#

yeah in a way

quartz kindle
#

you need to check if something[a] exists, before you create something[a][b]

#

and if it doesnt exist, create it

sacred trout
#

btw i am still waiting for top.gg to verify my bot

#

ok!

earnest phoenix
#

if ctx.guild.id not in self.client.warnings: self.client.warnings[ctx.guild.id] = {}

earnest phoenix
#

thats not an array

#

so?

quartz kindle
sacred trout
#

Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 902, in invoke
await ctx.command.invoke(ctx)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py", line 864, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: 755985276873998486

earnest phoenix
#

stop sending the same error doe

#

hashflushed ummmm

sacred trout
#

File "/home/runner/Bot/cogs/warning.py", line 56, in warn
count = self.client.warnings[ctx.guild.id][member.id][0]
KeyError: 755985276873998486

#

got it i think

slender thistle
earnest phoenix
#

ayy shivy entered the chat

sacred trout
#

nvm

earnest phoenix
#

dict.get would be useful if you're retrieving a value I guess

slender thistle
#

Nah I'm outta here

sacred trout
#

lol

slender thistle
#

Technically true yeah

earnest phoenix
#

if not self.client.warnings.get(ctx.guild.id): mmLol

sacred trout
#

thanks bro

slender thistle
quartz kindle
#

doesnt py has a falsy if evaluation?

earnest phoenix
#

yeah

#

that not

quartz kindle
#

something like if !warnings[id]

earnest phoenix
#

It has not

#

that would raise KeyError in the first place sadly

quartz kindle
#

or if not warnings[id]

slender thistle
#

dict.get by default returns None

#

Second param in it is default value to return if nothing under key exists

earnest phoenix
#

yeah, so we need to use get instead of indexing it

slender thistle
#

or use in which is probably more efficient for this

quartz kindle
#

yeah i guess a in b is the way for py

sacred trout
#

@earnest phoenix

earnest phoenix
#

wat

sacred trout
#

is it correct?

slender thistle
#

Nvm I'm too sleepy for this cya all

sacred trout
#

good night

earnest phoenix
#

I wonder the same thing

#

cya

sacred trout
#

lol

#

this ok?

earnest phoenix
#

I'd use a relational db for this though

sacred trout
#

aiofiles

#

?

earnest phoenix
#

aiofiles is an IO lib christmasthink

quartz kindle
#

are the warnings supposed to be stored forever?

#

even if the bot restarts?

sacred trout
#

yea?

quartz kindle
#

then you need a database lol

#

dicts are lost if the bot restarts

earnest phoenix
#

he probably uses json

#

or some other stuff that deal with dicts

sacred trout
#

for somethings json or sometimes sqlite3

quartz kindle
#

use sqlite for warnings then

sacred trout
#

i am too noob

earnest phoenix
#

Dont ever use json for data that changes frequently

quartz kindle
#

then un-noob yourself

sacred trout
#

lol

earnest phoenix
#

also, you wanna use aiosqlite as sqlite3 is blocking

#

how to configure MongoDB database?

sacred trout
#

how much time does it take to verify a bot by top.gg

earnest phoenix
#

casually approach database
open terminal
do some hacker shit
done

earnest phoenix
sacred trout
#

nice one

earnest phoenix
sacred trout
#

i doubt it

#

8mins?

earnest phoenix
#

Check em for ur self

#

LOL

sacred trout
#

lol wtf

earnest phoenix
#

wat

#

we shortened queue times from 2 months to 8 minutes?

#

LOL

#

normally its one week

#

if they keep me as bot reviewer it would be 8min every time

#

XD

faint moth
bold meteor
#

i dont know the bot wont go online

crystal wigeon
#

hey guys

#

umm

bold meteor
crystal wigeon
#

i think my bot is being hijacked can someone help?

limber edge
#

Hacked?

crystal wigeon
#

i have stopped the servers, but it still seems to be up

#

yes idk how my bot is up

earnest phoenix
#

@crystal wigeon regen token

#

@crystal wigeon regen token

drowsy epoch
limber edge
#

Maybe because someone Have Take the token. And The "Hacker" Can Control The Bot.

crystal wigeon
#

heart attack

drowsy epoch
crystal wigeon
#

also

#

is it possible that the commands are executing twice because of shards?

#

like double commands

faint moth
earnest phoenix
#

@crystal wigeon regen your token quick

#

you have a zero day attack

crystal wigeon
#

wym

#

zero day attack?

#

how

bold meteor
drowsy epoch
tired panther
#

how much gigs does replit offer, free plan ?

earnest phoenix
#

@tired panther 1 GB RAM and 500 mb storage

tired panther
#

how much does 6 gigs cost?

earnest phoenix
#

hacker plan costs 5$

#

per month

crimson vapor
#

or github education iirc

tired panther
crimson vapor
#

idk he is really bad at css

tired panther
crimson vapor
#

idk probably

tired panther
#

is it legit to host on replit?

earnest phoenix
#

replit is a host why would it be illegal to host stuff on it

#

just dont aboose da hardware

tired panther
slender thistle
#

They don't mind

earnest phoenix
#

bruh imagine thinking turning off a computer gets you in a lawsuit

tired panther
#

lol

tired panther
slender thistle
#

Uptimerobot

night coral
#

Hey

tired panther
night coral
#

Can I set up neoumenon bot in my server

slender thistle
#

I wish I could

night coral
#

How to set up

slender thistle
night coral
#

How

#

How to serch

#

Search

#

Bro

#

Not getting

slender thistle
earnest phoenix
#

Lmao how do you not know how to use google

slender thistle
#

What a surprise, you misspelled the name apparently

tired panther
#

lol heroku is faster xD

earnest phoenix
#

@tired panther no

#

wrong

#

heroku sucks at everything

junior gale
#

'help

crystal wigeon
#

umm

#

hey guys, so after sharding my bot is still up even after i stop the servers

#

any idea why this would happen?

#

ok im getting double commands after i sharded

quartz kindle
#

how did you stop it?

zenith terrace
#

by turning it off

tired panther
#

pull out the plug

tired panther
crystal wigeon
#

im not able to stop it

solemn elk
#
        with open('mute.json', 'r') as f:
            mrole = json.load(f)

        role = mrole[str(ctx.guild.id)]
    
        if ctx.guild.id not in mrole:
          return

Is that how to check if a guild id is in a json file?

crystal wigeon
#

i regen the token again

crystal wigeon
#

but idk why it keeps sending double commands and then it wont stop

tired panther
crystal wigeon
#
const { ShardingManager } = require("discord.js");  
const { logger } = require("../public/static/js/logger");

process.on("unhandledRejection", (error, promise) => {
    console.log(
      "Oh Lord! We forgot to handle a promise rejection here: ",
      promise
    );
    console.log("The error was: ", error);
    logger.error("UnhandledRejection: " + error.stack);
  });
  
  process.on("uncaughtException", (error) => {
    console.log("Oh my god, something terrible happened: ", error);
    logger.error("BOT SHARD CRASHED, FATAL ERROR: " + error.stack);
    // process.exit(1);
  });

const manager = new ShardingManager("./server/client.js", {
    totalShards: "auto",
    // token: process.env.DISCORD_TEST_BOT
    token: process.env.DISCORD_BOT_TOKEN
});

manager.spawn();
manager.on("shardCreate", shard => console.log(`Shard #${shard.id} is Online`));```
tired panther
crystal wigeon
#

yep

#

i killed all the ports also

tired panther
#
const manager = new ShardingManager('./server/client.js', { token: token });
#

try this @crystal wigeon

slender thistle
crystal wigeon
#

i should remove totalShards?

slender thistle
#

But do the check BEFORE actually using the key

solemn elk
tired panther
solemn elk
#

im not that good with json

slender thistle
tired panther
#

xd, what is ctx?

crystal wigeon
#

lemme check

slender thistle
solemn elk
crystal wigeon
#

context

tired panther
#

lol

tired panther
crystal wigeon
#

didnt work

#

its still sending double commands

#

250 guilds

#

i tried sharding to increase performance

tired panther
night coral
#

Hey

#

Hi

tired panther
tired panther
crystal wigeon
#

i see

#

also the shard thing didnt work

pale vessel
night coral
#

I want to set up noumenon bot in my DISCORD server

crystal wigeon
#

it still sending double commands

pale vessel
#

it won't

night coral
#

Hoe

#

Pls say

crystal wigeon
#

it was lagging

#

so thought of sharding

pale vessel
#

sharding won't do anything

night coral
#

I want to set up noumenon bot in my DISCORD server

crystal wigeon
#

but its a mandatory thing right?

tired panther
pale vessel
#

not yet for you

tired panther
night coral
#

Hey

#

Say my problem

#

I want to set up noumenon bot in my DISCORD server

#

But I am searching in Google not coming

crystal wigeon
#

well so when i reach 2.5k guilds when i shard

#

i will still face the same problem

#

double commands etc

#

@pale vessel @tired panther

slender thistle
#

Jesus fucking Christ

tired panther
crystal wigeon
#

only shard 0

tired panther
#

thats suspicous xD

crystal wigeon
#

;-;

crystal wigeon
#

wth

slender thistle
#

I STRONGLY hope you can figure out HOW to use it yourself

pale vessel
#

How To Invite?

crystal wigeon
#

what do i do

#

;-;

tired panther
crystal wigeon
#

yow

#

why am i getting shard 0

#

wtf

tired panther
crystal wigeon
#

lol

#

yowww

#

it says shard 0 is online

#

;-;

#

;_;

#

help

#

ok so if i have 2 shards

#

both of them are trying to execute the commands

earnest phoenix
#

Where do we send the appeal?

stuck pike
#

Any Idea how much time discord verification takes the bot one

crystal wigeon
#

and?

#

i mean

#

i see no errors

#

i got the shar#1

#

to load

#

but its trying to load again

#

basically my app is being invoked twice

tired panther
#

@crystal wigeon thats is a libary which can do more things. Ideveloped it xD

crystal wigeon
#

bruh

#

next level adverrtising

#

xd

tired panther
crystal wigeon
#

so when i start the client, it shards and then that shard is replicating the commands twice and executing them twice

tired panther
stuck pike
tired panther
crystal wigeon
#

i showed your the whole shard code

#

i tried using "shardCount: 2"

stuck pike
#

Someone told me it was 3 days and I was happy lol

crystal wigeon
#

it tried to invoke client.js

#

twice

tired panther
#

or u can try this

create shard.js
and a bot.js

crystal wigeon
#

yeah

#

it invoked bot.js twice

opal plank
#

omg

#

what kind of lib is this

crystal wigeon
#

bruh

opal plank
#

wtf

#

is this shit

crystal wigeon
#

discordjs

tired panther
stuck pike
#

Hey erwin

opal plank
#

not urs hoax

#

mesiter

#

what the flying fuck is this

crystal wigeon
#

its a scam

stuck pike
#

Lol

tired panther
#

no it is not

#

lol thats opensource

opal plank
#

first that linter

stuck pike
#

How much time it takes for the bot verification

opal plank
tired panther
stuck pike
#

Your took how much time lol @opal plank

opal plank
#

bruh what the fuck

opal plank
#

embed builders

#

omg why

zenith terrace
#

oh no

#

Erwin calm

tired panther
#

.setTitle does not work in static functions lol

zenith terrace
#

pls

opal plank
#

bruh

stuck pike
opal plank
#

its so bad

zenith terrace
#

dont have a fit

#

pls

stuck pike
#

Uff

tired panther
#

when u can do it better code it and make it opensource, lol

opal plank
#

im 100% having a fit when someone is recommending something this bad

crystal wigeon
#

yow

opal plank
#

if its for them, i wont bitch about it, but for public use?

crystal wigeon
#

wtf do i do with sharding

#

its not working as its supposed to

#

TwT

#

@solemn latch

pale vessel
#

Woo hoo

tired panther
#

my other npm libaries had over 2k downloads, I made this one for my bot, thats way it is not so user friendly

pale vessel
#

Downloads don't mean anything

opal plank
#

scrappers download the shit out them

#

just fyi

#

publish a 2 line code to npm and watch it have 200 downloads within the first 2 hours

tired panther
opal plank
#

if its for your bot why publish it?

tired panther
#

and people dm and thx that my libary is good xD

tired panther
opal plank
#

why not code yourself a handler and properly debug your code, right?

tired panther
pale vessel
surreal sage
opal plank
#

wow, one use who probably barely knows what a function is downloaded a library that they think is useful

surreal sage
#

Just how

#

How do i create that?

pale vessel
#

Discord RPC

surreal sage
#

Yea but

#

How do you create those buttons

pale vessel
opal plank
crimson vapor
lyric mountain
opal plank
#

theres 5k people per WEEK using that shit

#

js devs dont know better dude

surreal sage
#

if (lol === undefined)

opal plank
#

dont brag about one or two users thanking you while they barely know what a function is

lyric mountain
#

and I though java was the one about "we have a lib for that"

#

that's insane

opal plank
#

nah, js is the one for that

crimson vapor
#

nah

#

js is worse

opal plank
#

this is literally the same convo i talked to million

#

i dont mind at ALL people coding their own stuff, but please dont publish this shit

lyric mountain
#

well, I mean, here in brazil theres baked potato being sold in markets

#

I don't question anything else nowadays

tired panther
#

mongodb-prefix check them, thats is something I made for public lol

timber fractal
#

so i have this code for my stats js let memberCount = client.guilds.cache.reduce((a, g) => a + g.memberCount, 0) let serverCount = client.guilds.cache.size
and i have this as his status: js [`WATCHING: ${serverCount} servers! | >help for help`, `PLAYING: With ${memberCount} users! | >help for help] but when it chooses one of this options it shows 0 servers and 0 users

#

how can i fix it?

opal plank
#

half of this is d.js guide stuff my dude

timber fractal
opal plank
#

if THIS is your front page with this disgusting non linted code, i dont even wanna look at the backend code

#

the front page and readme shows the effort you put into ur stuff

tired panther
quartz kindle
opal plank