#development

1 messages · Page 1342 of 1

quartz kindle
#

xD

#

i asked them about it, they just said "working as intended"

earnest phoenix
#

Some methods exists on djs and even god doesn't understand how they work OMEGALUL

proven lantern
#

the issue is the the way they intent to do it is wrong

#

await should block until the UI shows the typing indicator

quartz kindle
#

yup

#

but no

#

they decided it resolves when the bot "FINISHES TYPING"

#

lmao

proven lantern
#

many sense

quartz kindle
#

you can use the djs api methods directly tho

#

you can properly await those

earnest phoenix
#

awaiting startTyping() will never resolve until you use stopTyping() which is the most retarded thing i have ever seen

#

It took me 5 hours to figure out the usage of it OMEGALUL OMEGALUL OMEGALUL OMEGALUL

quartz kindle
#

yeah lmfao

#

just use this await message.client.api.channels(message.channel.id).typing.post();

earnest phoenix
#

What does that do?

quartz kindle
#

starts typing

proven lantern
#

oh nice, they expose the api light that?

earnest phoenix
#

Does it resolve?

proven lantern
#

nice to know

quartz kindle
#

yes, this one resolves as soon as it sends

earnest phoenix
#

Thank god, no more retarded bs of use 2 methods to resolve a promise

proven lantern
#

there is a race condition now. if i dont wait for the ui to update then i might stop typing before i start typing

quartz kindle
#

not if you use the above method

earnest phoenix
#

Before i knew how it worked, i was like:

await message.channel.startTyping();
await message.guild.members.fetch();
message.channel.stopTyping();```
=> Wait why no result? (Kalm)
=> CPU usage goes up (Panik)
=> Tries to stop it from typing (Kalm)
=> It doesn't stop (Panik)
quartz kindle
#

cpu usage shouldnt go up from that

earnest phoenix
#

It went up because of it fetching the members and i didn't realize lmao

quartz kindle
#

it shouldnt even start fetching them

#

if you await startTyping

#

lmao

earnest phoenix
#

Wait wtf, d.js methods made me see hallucinations, now that's a hack, OMEGALUL

solemn leaf
#

is this right to replace the count with 0 if count is not a thing

#

${res.count || 0}

earnest phoenix
#

Yes

solemn leaf
#

hmm

#

It isnt working thou

earnest phoenix
#

How so?

solemn leaf
#

TypeError: Cannot read property 'count' of undefined

sudden geyser
#

res is undefined.

earnest phoenix
#

res is undefined

solemn leaf
#

res is a functin

#

function

sudden geyser
#

no its not

earnest phoenix
#

res && res.count || 0

solemn leaf
#

ok

proven lantern
#

you dont even need to call msg.channel.stopTyping(); after await msg.client.api.channels(msg.channel.id).typing.post(). it automatically updates after the bot sends a message to the channel

solemn leaf
#

thanks

quartz kindle
#

@proven lantern yes, thats how discord works

#

there is no api endpoint to stop typing

#

it automatically stops as soon as it sends a message

slender wagon
#

Which most of the tine doesnt work by the way

#

Time*

quartz kindle
#

only new messages tho, it doesnt stop if you edit a message

proven lantern
#

how does msg.channel.stopTyping(); stop the typing indicator if there is no api

modest smelt
#

឵឵

quartz kindle
#

@proven lantern it doesnt, not directly

#

djs keeps a count of "how many times did i start typing in this channel"

#

each time you do startTyping it increases the count by one

#

or by a specific number of your choice

#

then when you use stopTyping, it decreases the number

proven lantern
#

that is so confusing

quartz kindle
#

if the number is not 0, it keeps renewing the typing indicator

proven lantern
#

why would they do this

quartz kindle
#

no idea

inland lantern
#

hey quick question y'all

#

I was really happy that my bot went up this morning, but it's been less than 12 hours and it already hit the cap

#

I know stuff like that can happen but I'm also a little concerned because I'm not sure if this is abnormal

#

My token is secured and all but I don't know if there are ways bots can get messed with beyond that

sonic lodge
#

as long as you don't have a public eval command somewhere, your bot will most likely be fine

drifting wedge
#

whjere can i apply for privliged intents

quartz kindle
#

same place where you apply for verification

inland lantern
#

@sonic lodge what exactly do you mean by a public eval

sonic lodge
#

an eval command that anyone can use

inland lantern
#

i searched it up, no i don't

#

tysm

drifting wedge
#

same place where you apply for verification
@quartz kindle /verification?

#

im already verified

quartz kindle
#

then you need to contact discord

drifting wedge
#

support?

quartz kindle
#

yes

uncut river
#

not too sure how to google this but how can i create the source of a webhook like the api does
i know how to receive data from top.gg api webhook
but how can i create my own, for data to send from one server to another

pale vessel
#

what language do you code in?

uncut river
#

node.js

#

trying to get bot stats in .json to another server

pale vessel
uncut river
#

thank you!

quartz kindle
#

ws is not webhooks tho

#

ws is for real time communication like online games and chat apps

uncut river
#

yeah it's not really making sense

#

i want to send data of one node.js server to another

#

completely different IPs

quartz kindle
#

for webhooks you just need a webserver and and http lib

pale vessel
#

LMAO I READ THAT AS WEBSOCKET

uncut river
#

o

#

lul

quartz kindle
#

xD

uncut river
#

im tryna create webhook like the top.gg api

#

how can i create my own "Put the link here where we will send POST requests"

errant perch
#

how do i convert a scientific notation such as this one: 3.8e-7 to a normal number in javascript

uncut river
#

3.8 x 10-7

#

o

quartz kindle
#

have an interval that posts requests to a list

uncut river
#

can i not just have it so every time i access the page it sends the data

quartz kindle
#

sure

uncut river
#

if i go to a specific url, another server sends data to that url i opened

#

i've never done anything like this besides the top.gg webhook so don't think i will understand everything

quartz kindle
#

then its not a webhook, just a regular request

uncut river
#

ah okay

quartz kindle
#

a webhook is a reverse request basically, its when you receive something without needing to ask for it

uncut river
#

what would i have in the server i want sending data

quartz kindle
#

but if you open a page, then request data, then you are asking for it

#

do you have a nodejs webserver? like express?

uncut river
#

i want to open a page and another server will send data to it

#

yes

#

this is for my bot

#

got express and everything

quartz kindle
#

so when a person opens your page, you make a request to another server

#

for example

#
app.get("/someurl", async (req,res) => {
  let data = await fetch("another url or ip address").then(response => response.json())
  res.send(data)
})
#

using node-fetch in the example above

uncut river
#

this would be in the server i am receiving data in?

quartz kindle
#

the server that is running the webpage or website

viscid gale
#

how can i create my own "Put the link here where we will send POST requests"
@uncut river well to be technical, it would be something like

<a href="javascript:requestJavaScriptCodeHere">random text highlighting link</a>
uncut river
#

i have right now an app.get("/url") posting the data

viscid gale
#

u said, link that sends post requests xD

lean ivy
#

can i just recommend axios?

pale vessel
#

node-fetch gang

viscid gale
#

y axios tho

#

also.. personally i just prefer xmlhttprequest

pale vessel
#

XHR trolllaugh

viscid gale
#

and?

lean ivy
#

its very good at sending http requests

pale vessel
#

nah its very good

#

especially for compatibility

viscid gale
#

source code wise, i find that axios is just a lamer version of fetch

#

in that coding style, fetch works better

pale vessel
#

node-fetch is lighter anyway

quartz kindle
#

node-fetch is not that light

viscid gale
#

xmlhttprequest is longer to type but more comprehensive

pale vessel
#

i heard phin is wayyy lighter

viscid gale
#

in MY OPINION

#

i heard phin is wayyy lighter
@pale vessel :l

pale vessel
#

but im too used to the fetch api

viscid gale
#

tbh we can all just make a 5 line fetch function made off of direct http.request

#

but hey, what r modules for right

pale vessel
#

i did that lmao

lean ivy
pale vessel
viscid gale
#

so we're actually discussing different ways of sending an http request

quartz kindle
#

i use http to send server count to top.gg

pale vessel
#

i use this now

#

the usage is almost the same as fetch

#

but no more res.json() or res.text()

#

wack

quartz kindle
#

lul

uncut river
#

worked!!

#

i hope it's gonna be effiecient

#

this .json data is many many lines

quartz kindle
#

if the data doesnt change often, you can cache it

uncut river
#

it does change often

lean ivy
#

....

#

databaaaaase?

uncut river
#

yessssssssssssssss

#

xD

#

command usage

#

i crashed a hastebin url

lean ivy
#

but like, use a database

uncut river
#

wym

#

i use a database

#

i want to access in browser tho

#

and make a usage page

#

like unbelieveaboat

#

not copy, but that idea

#

rather than me

#

going throught database browser

#

and looking at the arrays

#

of each

#

500+ guilds

lean ivy
#

im confused why you would need to transfer data over http for that tho...

uncut river
#

the databse is in a .db file

#

my main server doesn't have a front end

#

and can't have one

viscid gale
#

so what does it serve?

quartz kindle
#

if the database is in the same machine as the webserver, you can access it from the webserver directly

viscid gale
#

it just a program if it has no front end 🤔

uncut river
#

like there's no address

#

you cant view a page

lean ivy
#

just the ip

uncut river
#

it says not found

viscid gale
#

well..

uncut river
#

it's a shared IP with a bunch of servers

viscid gale
#

oh so it does respond, it just lies xD

lean ivy
#

oh you mean it dosnt serve http requests

uncut river
#

i believe so

quartz kindle
#

so you have 2 machines?

viscid gale
#

so it serves ssh then?

uncut river
#

it has ssh i believe but idk how to use

viscid gale
#

:l

#

k

uncut river
#

my friend is hosting it, my bot has the same IP as one of the minecraft servers

lean ivy
uncut river
#

kinda weird

viscid gale
#

oh my

uncut river
#

it has it's own resources don't worry

lean ivy
#

how do you do anything on this server without knowing how to use ssh

viscid gale
#

never tell someone ur thing is secure

uncut river
#

FTP

#

and restart buttons

viscid gale
#

that sounds as insecure as a hackthebox challenge

lean ivy
viscid gale
#

im lying?

errant perch
#

f

uncut river
#

okay well don't worry about that, thats not what im here for lmao

lean ivy
#

fyrlex

uncut river
#

yes?

lean ivy
#

please go learn ssh

#

if you do

#

i will give you this cookie

#

🍪

viscid gale
#

not srs

uncut river
#

what makes it better than VSCode?

viscid gale
#

not bloody srs xD

lean ivy
#

ssh is used in command line interfaces

errant perch
viscid gale
#

what makes it better than VSCode?
@uncut river ssh is a communication form, not a language

lean ivy
#

its how you talk to a server without somthing like remote desktop

viscid gale
#

ssh is a command line interface
@lean ivy used in*

lean ivy
#

fair

uncut river
#

i mean i don't think i've had to run anything through a command line yet

viscid gale
#

cuz u can do ssh on node from a simple built in module

uncut river
#

okay i will learn that, thank you for the tips

viscid gale
#

is it literally require('ssh')?

#

i can't remember off hand

uncut river
#

but the server cannot be accesed through the IP

lean ivy
#

it prbly can via ip & port

#

but eh

uncut river
#

wait hold up

#

something diff

lean ivy
#

hmm?

uncut river
#

it's because i now have an app.get

viscid gale
#

also.. u said it uses ssh and u have nothing for that end

uncut river
#

i didnt before

#

and it always showed not found

#

i swear

#

fuck yes

viscid gale
#

i can basically hook up to ur pc, share some nice ipc

lean ivy
#

dont swear

uncut river
#

for some reason, putting the IP in the url never worked

viscid gale
#

and basically rape ur pc

uncut river
#

my apologies

lean ivy
uncut river
#

i have premium ESET smart security

#

don't try

viscid gale
#

i hope it picks up on the loophole u left

lean ivy
#

....

#

in other news

#

node is nice

viscid gale
#

amen

uncut river
#

agreed

viscid gale
#

luv dat

uncut river
#

why don't you guys have a bot here or developer role?

#

just here to help?

viscid gale
#

:l

lean ivy
#

i just added my first public bot

viscid gale
#

cuz, not everyone's bot is famous

uncut river
#

much appreciated tho

lean ivy
#

its sittin in queue

viscid gale
#

same

uncut river
#

what do you consider "famous"

fluid basin
#

not everyone has a bot like you

viscid gale
#

50 is famour

lean ivy
#

so ill get the role some time around next year

uncut river
#

i have 500...

#

xD

errant perch
#

bruh u can make a discord bot in roblox language 🤮

viscid gale
#

500?

uncut river
#

yes

#

533

thick gull
#

yea?

#

roblox language is just lua

errant perch
#

nasty langauge

viscid gale
#

if my bot gets accepted by here

thick gull
#

a good amount of people get into development from roblox

viscid gale
#

servers wont think it's a nuker

#

i might get into maybe 20 servers?

errant perch
#

i did come from roblox and i hate lua with a passion

viscid gale
#

but 533?? just how

#

anyway GN

lean ivy
#

have a bot that is useful

#

nn cute_wave_FB

viscid gale
#

have a bot that is useful
@lean ivy that isnt made already

uncut river
#

@viscid gale it's been over 2 years

viscid gale
#

0

uncut river
#

up to about 400 servers

viscid gale
#

oh

errant perch
#

whats ur bot

uncut river
#

@vivid parrot

viscid gale
#

my bot is a stonks bot

errant perch
#

8 ball?

uncut river
#

no

#

xD

#

but

#

i promise you

#

i have best 8ball responses

errant perch
#

same my bot is also a stock bot

uncut river
#

and you can set your own

errant perch
#

nice

#

-bots

gilded plankBOT
viscid gale
#

simulates futures investment model

errant perch
#

really

#

thats cool

viscid gale
#

same my bot is also a stock bot
@errant perch any real life model?

errant perch
#

yes

viscid gale
#

thats cool
@errant perch aka too nerdy

#

< 10 ppl playing

errant perch
#

it gets all stocks from the us market, some forex markets, and crypto

#

if you want to dm me a invite for your bot i would love to check it out

viscid gale
#

im gonna make a part called jubilee that resets the scores, so there can be and end to the game and winners each 50 rounds(rounds pass relatively fast)

errant perch
#

sounds cool

viscid gale
#

it gets all stocks from the us market, some forex markets, and crypto
@errant perch oh na i dont use real data, else it ain't stonks :}

#

i just use concepts xD

errant perch
#

lol

#

how long have u had ur bot submitted

viscid gale
#

woogie, see, it may be cool and all, but, it a game in a chat server

#

september

#

early september

errant perch
#

still interesting

#

u should be approved probably in the next few weeks

#

when you get approved you get around 20-30 servers

viscid gale
#

interesting yes, but nobody really cares.. i mean i can get invloved in random servers ppl make since im a legend in some games

#

but i got homework bruh :{

errant perch
#

bru

viscid gale
#

dw, not games u play, io games and, yea Gladiabots

#

i do suggest u play it.. flowchart to control ai that fight each oter in 3 different methods

#

collection, domination, elimination

uncut river
#

okay quick question back to the database posting

errant perch
#

bruh sounds complicated

uncut river
#

so posting my database, brings my cpu usage to 80% for a hot 3 seconds, would sending to another server do the same for my bot server?

viscid gale
#

ik, flow charts sound assy but this flow chart code is more intuitve than lego ev3 code

errant perch
#

lol

viscid gale
#

at least give it a try

#

the game (based on making AI) could use programmers in the competition

errant perch
#

i like your funny words magic man

viscid gale
#

:l

#

yea im gone with that one xD

errant perch
#

nah im probably to dumb for you

#

how do i convert a scientific notation such as this one: 3.8e-7 to a normal number in javascript

opal plank
#

cuz fuck google

errant perch
#

i looked and it didnt work

#

i used the number function bruh

#

it returned as 0

opal plank
#

legit the first entry on stacoverflow

errant perch
#

ah

#

yes

#

i have misread

#

thanks for being a dick

#

it actually helped

opal plank
#

yw

earnest phoenix
#

Very good work

#

Is a bot in 10000 servers running eris-sharder and other eris extension packages consuming 6GB of memory normal?

pale vessel
#

i don't thinks so

earnest phoenix
#

nevermind it's consuming 4gb instead, the other 2gb came from pm2 and mongodb

pale vessel
#

that sounds more normal

opal plank
#

@quartz kindle do you know if d.js is lazy caching on mentions without intent?

#

ping pls if you know

trim saddle
#

@opal plank i have the the answer

#

it's undefined

#

because what doesn't d.js cache

opal plank
#

looking for an actual answer, ty

pale vessel
opal plank
#

ty

rough lodge
#

yo

#

is this enough for the description?

pale vessel
#

yes, definitely enough

trail orchid
#

hey I am having some trouble getting the dblpy library working

#

I'm trying to detect when a user votes triggered by a !vote command and then followed by a vote link pasted in chat and a 2 minute waiting period to check if the user has voted within that time

#

for testing purposes I just voted for my bot and then called this:

print(await self.dblpy.get_user_vote(ctx.author.id))
#

and it is returning false

#

how long does it take for a vote to register?

#

or am I doing this wrong

delicate shore
#

I don't get what I am doing wrong

#

My code ^^

#
    at RequestHandler.execute (/root/app/node_modules/discord.js/src/rest/RequestHandler.js:170:25)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  method: 'post',
  path: '/channels/763617382748651531/messages',
  code: 50006,
  httpStatus: 400
} Unhandled Rejection at Promise Promise {
  <rejected> DiscordAPIError: Cannot send an empty message
      at RequestHandler.execute (/root/app/node_modules/discord.js/src/rest/RequestHandler.js:170:25)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:97:5) {
    method: 'post',
    path: '/channels/763617382748651531/messages',
    code: 50006,
    httpStatus: 400
  }
}```
#

How is it an empty message ?

pale vessel
#

why is your description an array

delicate shore
#

Oh

#

I

#

Missed the

#

``

twilit rapids
#

In the code you send you also define everything twice, so I doubt you use the code above

#

It wouldn't even run to begin with

delicate shore
#

Everything ?

#

I don't think I have done that

#

Yes you were right

#

I was messing uo

#

Up

ember plinth
#

ХУЙ

trail orchid
#

does anyone know how to do a "test vote" to check if my code is working?

copper cradle
#

yes

#

there is a test button

#

go to your bot's page

#

and go to the webhooks section

#

there should be a 'test' button

trail orchid
#

okay thanks!

royal cove
#

ok

#

okay

clever vector
#

Guys what is this

rustic nova
#

Missing module i guess

clever vector
#

what module do i missed?

earnest phoenix
#

what module do i missed?
@clever vector canvas

clever vector
#

how to install

earnest phoenix
#

npm i canvas

clever vector
#

i install but wrong cant install

#

Yeah worked thanks bro

sick pelican
#

how to make a voting reward command?

royal cove
#
.bot-description {
  color: white; /*or whatever color*/
}
</style>

<h1><center>Tyneris - Bot</center></h1>

<h3>Tyneris is a fully multi-functional, customizable bot. Includes: moderation, role management, fun and more. </h3>

<h2>Orders</h2>
<ul>
  <li>&help - Shows available commands</li>
  <li>&help modération</li>
  <li>&help gestion</li>
  <li>&help config</li>
  <li>&help utilitaire</li>
  <li>&help fun</li>
  <li>&help bot</li>
</ul>
<h2>Language:</h2>
<p>This bot is French, language translation done but not added</p>

<h2>A future:</h2>
<p>Currently the bot is at a very advanced stage, however with the upgrade to V.12, there will be further improvements. Addition: RSS, language If you want to hear from the bot or simply, if you have questions <a href="https://discord.tyneris.fr">the official Tyneris server</a> is there for that, do not hesitate to take a look.</p>

<h2>Other:</h2>
<p>Tyneris needs permissions to be able to send messages Tyneris is updated regularly, downtime is kept to a minimum to allow players to get the most out of it!</p>

<p>Join <a href="https://discord.tyneris.fr">the official Tyneris server!</a> •Quick Notes for Updates! • Report bugs, add suggestions or even talk to the community to get together and play together! • Ask questions if you get stuck or want to learn more!</p>
<center><img class="image1" src="https://zupimages.net/up/20/42/68wn.png" alt="ordi" title="ordi-img" >
</center>



#

@swift umbra that ?

sick fable
#

Lock command-

It's the basic code(structure):

@commands.has_permissions(manage_channels=True)
async def lock(self,ctx, channel: discord.TextChannel):
        channel = ctx.channel
        overwrites = {ctx.guild.default_role: discord.PermissionOverwrite(send_messages=False)}
        await channel.edit(overwrite=overwrites)
        await ctx.send("Succesfuly Locked the channel!")```




Error- ***discord.ext.commands.errors.MissingRequiredArgument: ctx is a required argument that is missing.***
royal cove
#

@swift umbra no😭

#

if you want see the page

#

bot/733773484714360913

#

okay

#

doesnt work

earnest phoenix
#

how can i get invite link with guild id

royal cove
#

i have copied url of webhooks

#

and paste in webhooks url

#

i test webhooks but

#

nothing happens

twilit rapids
#

You don't use a Discord webhook like that

earnest phoenix
twilit rapids
#

You emit the ready event in your auto-message.js file

#

You connect to your DB in your ready event

#

So every time auto-message.js is used it reconnects

earnest phoenix
#

What should I do?

twilit rapids
#

Don't emit the ready event...?

#

Why are you doing that in the first place anyways

obtuse jolt
#

aws - I looked at it, the bot uses too much ram now

azure - uhhh, I uhh, yeah I just... yeahhhhhh I think it’s off the table

heroku - oldEyes

twilit rapids
#

How much RAM does it use

obtuse jolt
#

600mb+

twilit rapids
#

Get a paid VPS

obtuse jolt
#

I can’t

twilit rapids
#

Then no reason to make a public bot if you can't even support it

zealous sable
#

U can get a paid one for like 5 dollars a month

obtuse jolt
#

uhh lemme check

#

59% usage

twilit rapids
#

59% of what

#

one core? two cores?

obtuse jolt
#

cpu

#

two

twilit rapids
#

so 1 core and a bit

#

How many guilds

obtuse jolt
#

100

#

yeah funny how that works

twilit rapids
#

600mb+ and 1+ core for 100 guilds? Just rework your code and you can stay on a free host

#

Which also costs money thinkhmm

obtuse jolt
#

I’m trying to remake everything but it just takes so long

sick fable
#

Help meeeeeeeee

#

🥺

twilit rapids
#

-ask2ask @sick fable

gilded plankBOT
#

@sick fable

Don't ask to ask.
Just ask your question, it wastes time if you say "i need help" or "can someone help me?" instead of just saying what the problem is. Save your time and other people's time and just ask the question.

Please read https://dontasktoask.com/ for an explanation on why this is an issue.

obtuse jolt
#

I think I’ve done like 4/18-19 commands so far

twilit rapids
#

Then just finish that

sick fable
#

Lock command-

It's the basic code(structure):

@commands.has_permissions(manage_channels=True)
async def lock(self,ctx, channel: discord.TextChannel):
        channel = ctx.channel
        overwrites = {ctx.guild.default_role: discord.PermissionOverwrite(send_messages=False)}
        await channel.edit(overwrite=overwrites)
        await ctx.send("Succesfuly Locked the channel!")```




Error- ***discord.ext.commands.errors.MissingRequiredArgument: ctx is a required argument that is missing.***
zealous sable
#

They have a 8gb pi4

obtuse jolt
#

Ight I’ll try remake them all

twilit rapids
#

Then why aren't they using that

sick fable
#

My code and error

obtuse jolt
#

I tried @twilit rapids

earnest phoenix
#

.addField("» users" , bot.guilds.reduce((a, b) => a + b.memberCount, 0).toLocaleString(), true)
.addField("» servers", bot.guilds.size.toLocaleString(), true)
.addField("» Channels", bot.channels.size.toLocaleString(), true) did not work, what can i do?

obtuse jolt
twilit rapids
#

Log the debug event

obtuse jolt
#

When I tried to use the command the bot was completely bricked

#

It wouldn’t do anything

twilit rapids
#

Log the debug event

obtuse jolt
#

It took 3 minutes to start

#

I think it’s not fast enough

twilit rapids
#

What do the debug logs say

earnest phoenix
#

.addField("» users" , bot.guilds.reduce((a, b) => a + b.memberCount, 0).toLocaleString(), true)
.addField("» servers", bot.guilds.size.toLocaleString(), true)
.addField("» Channels", bot.channels.size.toLocaleString(), true) help me

obtuse jolt
#

no I’m trying to say the rpi is too slow, the bot starts in seconds on my current vps it take minutes on my rpi

twilit rapids
#

Log the debug event and see what's really happening

#
client.on('debug', (msg) => {
  console.log(msg)
})
obtuse jolt
#

it’s not a bot issue

#

I’m gonna start it again and watch my webmin get pinned at 100% usage

twilit rapids
#

I mean if you're just gonna ignore what I say and don't test it then my work here is done

sick fable
#

😦

zealous sable
#

Not you @sick fable someone else is receiving help at the moment

slender thistle
#

@sick fable remove the self

#

it's only used in class methods

sick fable
#

@sick fable remove the self
@slender thistle k

#

If I remove it then also idk why tf it shows that error

slender thistle
#

either your traceback output is fucked with manual exception output or you're just not posting the full traceback

sick fable
#

Lol wait

obtuse jolt
#

@twilit rapids there I used the debug and the fking bot crashed from too high latency issue

twilit rapids
#

Show the logs?

obtuse jolt
twilit rapids
#

Did you update to Djs v12.4.0

sick fable
#

It worked :)) @slender thistle

#

Thanks <3

obtuse jolt
#

oh god new v12

slender thistle
#

ouiiiii

obtuse jolt
#

I just update it to v12.4

#

And it didn’t even respond to the heartbeat

#

and then crashed

#

it’s in Ethernet

twilit rapids
obtuse jolt
twilit rapids
#

Simply run ping discord.com

obtuse jolt
twilit rapids
#

I had that issue a while ago as well, couldn't receive any guild packets in time (90k unavailable guilds)

#

I then contacted Mason and they fixed it, you might just wanna wait with booting for like 60-120 minutes and then try again

rustic nova
obtuse jolt
rustic nova
#

No idea if he's responsible for the API, but that's the dude who announced the verification

#

On Discord Developers

obtuse jolt
#

doubt

#

It’s Spanish

#

my bots English

gilded compass
#

why does this code says in 0 servers but its in 3 "on " + str(len(client.guilds)) + " Servers."

rustic nova
#

Use client.guilds.cache iirc correctly

#

Might be wrong, I don't code js, just experience

gilded compass
#

its python

#

lol

rustic nova
#

Oh nvm then

#

No clue lol

zealous sable
earnest phoenix
#

should i learn .NET or do i stick with js

jovial nexus
#

If i have a list like: js module.exports = { test: [ "test1", "test2", ], } how can i add something to the "test" list?
i need to "edit" the file for pushing it permanent, if i restart the app the argument pushed dissaperars and i dont want it

earnest phoenix
#

If i have a list like: js module.exports = { test: [ "test1", "test2", ], } how can i add something to the "test" list?
i need to "edit" the file for pushing it permanent, if i restart the app the argument pushed dissaperars and i dont want it
@jovial nexus module.exports.test bruh

#

you can literally access your own exported stuff inside the same file that exported

jovial nexus
#

there are 2 files

#

test.js is the list and app.js is the app

#

ok thx

#

and how can i clear the cache of all the app?

#

if i do data.push(test) it pushes test to data cache no?

earnest phoenix
#

or use a database

#

if i do data.push(test) it pushes test to data cache no?
@jovial nexus everything in a js file is stored in RAM

jovial nexus
#

its a 20 line bot ,im not going to use a db

earnest phoenix
#

you'll 1000% need it later

jovial nexus
#

no i wont

#

is a bot that kicks users if it detects he is playing fortnite bruh

earnest phoenix
#

and it's better than editing a js/json file because SYNTAX ERRURS

#

is a bot that kicks users if it detects he is playing fortnite bruh
@jovial nexus you're a fucking god

gilded compass
#

how can i delete items from this: ListOfCogs = self.client.cogs?

slender thistle
#

I understood not a single bit from that

#

What is self.client.cogs? What type is it? What do you want to remove from it?

gilded compass
#

btw its python

slender thistle
#

oh wait I'm dumb, am I not

harsh reef
#

How to get dev badge?

slender thistle
#

ah-ha, mappingproxy by default

harsh reef
#

But why?

gilded compass
#

ah-ha, mappingproxy by default
whut?

slender thistle
#

how can i delete items from this: ListOfCogs = self.client.cogs?
@gilded compass Could you elaborate on the "delete items" part?

harsh reef
#

@swift umbra so no one will get from now on?

gilded compass
#

@gilded compass Could you elaborate on the "delete items" part?
@slender thistle this is the way it shows all loaded cogs but i want to make osme exceptions

harsh reef
#

76 servers required for that right?

rustic nova
#

Badge useless anyway WeirdChamping

slender thistle
#

How do you display them?

#

Is it a list comprehension or a for loop?

zealous sable
#

To verify you need to be in over 75 servers ye

#

You don’t get a badge etc anymore

#

I believe it’s still 76 servers when you get the message

gilded compass
#

@slender thistle can i dm you its easy to write

slender thistle
#

sure

rustic nova
#

is a bot that kicks users if it detects he is playing fortnite bruh
@jovial nexus oh shit i did that too back then LULW was good for lulz

halcyon shadow
#

Hello can someone help me to make a css for the background image on my bot "profile" on DBL please ?
;-;

rustic nova
#

Imagine making a bot that kicks Dbl mods PogU

halcyon shadow
#

lol

slender thistle
#

Not specifically make the CSS for you, but I can point out the selectors you might need to use

halcyon shadow
#

._.

slender thistle
#

Eh you shouldn't straight up abuse it

tawdry oracle
#

whats eris for?

slender thistle
#

it's a Discord API wrapper for JS

jovial nexus
#

hey @tawdry oracle nice to see you

halcyon shadow
#

So how to make the css ?

tawdry oracle
#

eris needs to install discord.js too?

zealous sable
#

You will need to have knowledge of how to use css. Angel

tawdry oracle
#

hey @tawdry oracle nice to see you
@jovial nexus hey man good to se u 😄

halcyon shadow
#

You will need to have knowledge of how to use css. Angel
@zealous sable ._. eof don't know lol (imma forgive this idea lol)

tawdry oracle
#

and what does eris do??

earnest phoenix
#

should i learn .NET or do i stick with js
or python or AHK or smth?

tawdry oracle
earnest phoenix
#

@tawdry oracle it is a wrapper for the discord api written in js

zealous sable
earnest phoenix
#

it basically allows you to easily interact with the api without having to do requests and storing stuff and tokens and all that jazz

eternal osprey
#

hey guys

#

i have a question

#

how would i get the id's of all the members in a server, and save that to a txt file?

#

in javascript?

#

i have tried searching examples but i could not find any, literally NOTHING.

earnest phoenix
#

ah that's somethin out of the box

eternal osprey
#

yeah maybe that explains why i could not find any exmaples on the interent.

#

i know it is possible, don't know how to perform it tho.

earnest phoenix
#

i have tried searching examples but i could not find any, literally NOTHING.
@eternal osprey because there is not a tutorial for everything in the entire universe

eternal osprey
#

yeahi understand.

earnest phoenix
#

some stuff you gotta do on your own

eternal osprey
#

do you know how to do it?

earnest phoenix
#

try running a for loop on the members cache of the guild then log their IDs

eternal osprey
#

in just general steps, don't get into the coding toomuch.

nocturne sparrow
#

<%=user.presencce.status%> i am using it but giving error

eternal osprey
#

hmmm

nocturne sparrow
#

Cannot read property 'status' of undefined

earnest phoenix
#

<%=user.presencce.status%> i am using it but giving error
@nocturne sparrow spelling of presence wrong

#

please learn to read

nocturne sparrow
#

ohh sory

#

no

#

i dont write wrong

earnest phoenix
#

yes you did

#

why double c

nocturne sparrow
#
 
 328|           <%if(user){%>
    329|           <p><%=user.tag%></p>
 >> 330|           <a href="#"><i<%if(user.presence.status=="dnd"){%> style="color: red;"<%}%><%if(user.presence.status=="idle"){%> style="color: yellow;"<%}%> class="fa fa-circle text-success"></i> <%=user.presence.status%></a>
    331|         <%}%>
    332|               <%if(!user){%>
    333|           <p><%=bot.user.username%></p>

Cannot read property 'status' of undefined```
earnest phoenix
slender thistle
#

presence is attached to a member

little mango
#

Bot in html script?

slender thistle
#

More like a dashboard

nocturne sparrow
#

yes

#

dashboard

little mango
#

Never tried it

halcyon shadow
#

Can someone tell me how I put my custum css? I have it , I know I put it in detailed desc of your bot but i don't know how...

earnest phoenix
#

Bot in html script?
@little mango discord.js has a webpack version which works on browsers

slender thistle
#

<style> tag @halcyon shadow

little mango
#

Oh never knew ill give it a shot later on

nocturne sparrow
#

<link rel="stylesheet" href="css url"> @halcyon shadow

slender thistle
#

or that if you have the CSS hosted somewhere else

nocturne sparrow
#

are you know how i can use @slender thistle

halcyon shadow
#

ye it's hosted via discord =/

slender thistle
#

what

nocturne sparrow
#

and i am using user.createdAt

#

but now working

halcyon shadow
#

<link rel="stylesheet" href="css url"> @halcyon shadow
@nocturne sparrow the stylesheet have to be modified in image for a background or i'm wrong?

nocturne sparrow
#

i dont understand

halcyon shadow
#

"stylesheet" have to be modifed?(changing the word)

nocturne sparrow
#

you dont change this

#

You will just write the url of the file in the "href" section.

halcyon shadow
nocturne sparrow
#

are you using bg-image ?

halcyon shadow
#

gneu? what's that (the url is a discord url lol)

nocturne sparrow
#

<%=user.presence.status%>

    328|           <%if(user){%>
    329|           <p><%=user.tag%></p>
 >> 330|           <a href="#"><i<%if(user.presence.status=="dnd"){%> style="color: red;"<%}%><%if(user.presence.status=="idle"){%> style="color: yellow;"<%}%> class="fa fa-circle text-success"></i> <%=user.presence.status%></a>
    331|         <%}%>
    332|               <%if(!user){%>
    333|           <p><%=bot.user.username%></p>

Cannot read property 'status' of undefined

#

how do i fix this

#
<style>
body {
  background-image: url('https://cdn.discordapp.com/avatars/737355806101733448/ff1bf7f0161c24542c03ec9d971ba396.png');
}
</style> ```
#

@halcyon shadow

halcyon shadow
earnest phoenix
#
.notif {
    max-width: 700px;
    max-height: 250px;
    min-height: 100px;
    overflow-wrap: break-word;
}

but the text still goes off the border of the element. Why? (it's a <p element inside a pre element btw)

halcyon shadow
#

still not working @nocturne sparrow

nocturne sparrow
halcyon shadow
dark grove
#

I'm trying to get my bot to add a message where people can react with different emojis. This is the code:

   if(message.author.bot) {
       return;
   }

   if(message.content.toLowerCase() === '.roles') {
       const embed = new RichEmbed();
       embed.setTitle('Server Roles');
       embed.setColor('PURPLE');
       // embed.setDescription(':ErrorChanCackle: - CackleTime\n')     +
       // ':ErrorChanGiggle: - GiggleTime\n';

       message.channel.send(embed);
   }

});```

And this is the guide i am following:
https://www.youtube.com/watch?v=PpEr4pjrYRE

But everytime I get the error:

TypeError: RichEmbed is not a constructor
   at Client.<anonymous> (D:\discord-bot\index.js:176:17)
   at Client.emit (events.js:326:22)
   at MessageCreateAction.handle (D:\discord-bot\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
   at Object.module.exports [as MESSAGE_CREATE] (D:\discord-bot\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
   at WebSocketManager.handlePacket (D:\discord-bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
   at WebSocketShard.onPacket (D:\discord-bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
   at WebSocketShard.onMessage (D:\discord-bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
   at WebSocket.onMessage (D:\discord-bot\node_modules\ws\lib\event-target.js:125:16)
   at WebSocket.emit (events.js:314:20)
   at Receiver.receiverOnMessage (D:\discord-bot\node_modules\ws\lib\websocket.js:797:20)

Today we will look at another way to write a Role Reaction bot using the DiscordJS library.

P.S: I will be doing a Server Boost giveaway and ANOTHER Nitro Giveaway. Check out my Discord for more details TBA.

Discord: https://discord.gg/bZSwjPy

----------------------------...

▶ Play video
nocturne sparrow
#

@halcyon shadow you cant use in there

halcyon shadow
#

uh where?

#

i use it where?

nocturne sparrow
#

only head

#

only head

#

you cant change it

slender thistle
#

Use dev tools in your browser

#

oh yeah right

#

use !important for this one

halcyon shadow
#

S:o ?

slender thistle
#

append that after the url() thing

halcyon shadow
#

Brain no comprendo

nocturne sparrow
#

yo soy hombre

halcyon shadow
#

uh what?

nocturne sparrow
#

soy una chica

#

nothing

halcyon shadow
#

I don't speak spain

nocturne sparrow
#

what is comprendo ?

halcyon shadow
#

What just I meme I know :p

nocturne sparrow
#

it is spanish

halcyon shadow
#

bruh

nocturne sparrow
#

how i can show user's status dnd idle etc.

#

-v11tov12

clever dust
#

@dark grove that video is outdated, change RichEmbed() to MessageEmbed()

earnest phoenix
#

anyone know how to use a link in the name of an embed pre-created by a bot template? (node)

clever dust
earnest phoenix
#

someone pls help

#

@clever dust you know?

restive furnace
earnest phoenix
#

anyone????

dark grove
#

oh thank you it finally worked

#

i thought i missed a ")" somewhere

patent condor
#

@earnest phoenix learn how hyper links work and read docs

earnest phoenix
#

i tried that man

#

im not a coder i just need help

#

@patent condor

restive furnace
#

im not a coder i just need help
@earnest phoenix learn

earnest phoenix
#

bruh..

#

ive been tryinggg

umbral zealot
#

ok first, what does "an embed pre-created by a bot template" mean?

earnest phoenix
#

i use a pre-created bot for my server and you can customize it in the file manager

#

and it lets me customize embeds in this

#

this specifically is for reaction roles

umbral zealot
#

Ok well, if you want to know how that bot works, you need to look at that bot's documentation and go to their support server.

#

This is for development, like, programmers, not "How do I use this bot I Found".

eternal osprey
#

hahahah

earnest phoenix
#

well i have that open but there isn’t anything about what im trying to do specifically

umbral zealot
#

Ok well, good luck with it, we have literally no idea how to use that bot

#

find their support page or discord.

earnest phoenix
#

but its not abt the bot

umbral zealot
#

Yes it is.

earnest phoenix
#

i just need to know if its possible to have a link with text over it as the title

#

meaning they click the title for the link

umbral zealot
#

So you're saying you can write nodejs code directly?

#

what library does it use?

earnest phoenix
#

library?

#

like i said im not knowledgeable at all with this stuff

#

sorry if i dont understand

umbral zealot
#

right. So... we have literally no idea what code you're using, what library you're using, and you have no idea what you're doing.

#

I don't think we can help you.

earnest phoenix
#

well is there a way I could find what library it is?

umbral zealot
earnest phoenix
#

damn sorry for wasting your time man

#

ill try to figure it out

umbral zealot
#

You really should learn the language. You're not going to get anywhere if you don't.

earnest phoenix
#

@earnest phoenix You mean hyperlink?

#

yes @earnest phoenix

#

and i dont have the time @umbral zealot

#

Show your code

umbral zealot
#

Then use a pre-made bot that's hosted for you

earnest phoenix
#

Ill give you the code

umbral zealot
#

if you do'nt have time to learn, most people don't have time to help you and hold your hand.

#

Though there's always a help vampire victim somewhere willing to get their blood sucked I guess.

earnest phoenix
#

i just wanted some help bro tf

#

Okay, can you show your code?

#

I'll help you.

#

@earnest phoenix can we dm rather than in here?

#

Ya sure

#

not tryna get clowned any further

umbral zealot
#

bruh I'm not laughing at you I'm telling you that you should take the time to do things and not rush.

restive furnace
#

^

eternal osprey
#

how do i get the id of a member?

clever dust
#

<member>.id

pale vessel
#

bruh

eternal osprey
#

as i am trying to get the ids of all the members in a guild.

#

@pale vessel shut the fuck up you fucking morron.

#

i am asking ain't i?

misty sigil
#

wtf

#

why did you call him a moron you dickhead

eternal osprey
#

i am asking a question and he says bruh

misty sigil
#

and you just said one member

pale vessel
#

jeremy just leave it

misty sigil
#

so <member>.id is technically correct

eternal osprey
#

yeah?

restive furnace
#

DOCSumentation.

eternal osprey
#

i haven't said something to Adib,\

#

i am glad he helped me.

#

however flaze says bruh

slender thistle
pale vessel
#

member also has the id property

restive furnace
misty sigil
#

iirc

slender thistle
#

TIL

misty sigil
eternal osprey
#

hey what have i done wrong in this code : ```js

const list = client.guilds.cache.get("734123033782124575"); 


list.members.forEach(member => console.log(member.user.username)); 

})
})
client.login(token)

misty sigil
#

list.members.cache

eternal osprey
#

got it

#

thanks

opal plank
#

fairly certain you need intents to pull member lists now

#

@eternal osprey @misty sigil

eternal osprey
#

it works.

misty sigil
#

nah

restive furnace
#

why not fetch

misty sigil
#

just to receive updates, not fetch them all but idk tbh

restive furnace
#

why only get

opal plank
#

do you not need guild_member intents to pull the whole list?

misty sigil
#

maybe

opal plank
#

im farily certain you do

restive furnace
#

do you not need guild_member intents to pull the whole list?
@opal plank not in djs iirc

#

its just hella slow

#

without the intent

opal plank
#

thats lazy caching

eternal osprey
#

i know it is caching.

opal plank
#

as users talk or get mentioned, they get added

eternal osprey
#

it is not getting the most recent member list

misty sigil
#

I’d think you would but cache fills up with member objects from messages

opal plank
#

if you restart your bot and instantly try that it shouldnt have any member in it

eternal osprey
#

but it just gets the list from the cache.

misty sigil
#

if you restart your bot and instantly try that it shouldnt have any member in it
@opal plank apart from the bot iirc

opal plank
#

say, you do that under the ready event, you'll have 0 members/users

pale vessel
#

and members that are in VCs iirc

opal plank
#

just a sidenote, without intents you wont be able to properly log your users

delicate shore
#

Bro , mongoDB is so tough

#

but I need to shift from quick.db to mongoose :(

misty sigil
#

it’s not

#

mongoose is easy

#

I’ll teach you the basics

#

a schema is a format that you follow

delicate shore
#

Oh thanks

#

Right

tawdry oracle
#

whats the bes wrapper for discord.js??

misty sigil
#

lemme look at some of my schemas

opal plank
#

discord.js IS a wrapper @tawdry oracle

restive furnace
#

@misty sigil essay about using mongoose please

tawdry oracle
#

better than discord.js

opal plank
#

what do you want to wrap in a wrapper ?

delicate shore
#

lemme look at some of my schemas
@misty sigil
Ok

misty sigil
#

discord.js-light

#

much better

opal plank
#

your other option is eris or d.js-light

delicate shore
#

Wait discord.js light is somethin?

restive furnace
#

yes

#

Tim made it

delicate shore
#

O

#

Tim

#

He is big brain

restive furnace
#

He's god of d.js

opal plank
#

imagine not using 58Gb of ram for your bot

restive furnace
#

imagine even having that much ^

misty sigil
#

imagine not using 3573gb of ram

opal plank
#

imagine not having 58Gb of ram

#

@restive furnace

restive furnace
#

126G how??

opal plank
restive furnace
#

i had 32G vps but I went to 4G

misty sigil
#
const mongoose = require("mongoose");

const Guild = new mongoose.Schema({
  id: {
    type: String,
  }, prefix: {
    type: String
  }
});

module.exports = mongoose.model("Guild", Guild);
``` this is a basic guild schema
delicate shore
#

Oh

#

Ok

#

But one thing

#

How can one set the values

#

And how can one get the value

restive furnace
#

updateOne

misty sigil
#

you can save data into the database by ```js
const Guild = require('./path/to/schema')

const data = new Guild({
id: "guild ID here",
prefix: "guild prefix here"
})

data.save()

#

to find one you can ```js
const Guild = require('./path/to/schema')

const doc = Guild.findOne({id: "guild ID here"})

#

if it doesn't find anything it returns null

delicate shore
#

wait it saves in my local

restive furnace
#

and updateOne is also possible i guess

misty sigil
#

yea

#

what

#

if you're using atlas, yes.

delicate shore
#

I can change it remotely ? Without running command

misty sigil
#

if you're using atlas, on the web

delicate shore
#

For eg I run a web server

#

Ok

misty sigil
#

if you're self-hosting a cluster, it'd need to be done via MongoDB compass

delicate shore
#

Nope

misty sigil
#

although beware of the security setup

delicate shore
#

Not self hosting

misty sigil
#

sometimes it goes wrong so i prefer closing my db to just my machine

#

nice n safe

delicate shore
#

Oh

#

And can I change data in quick.db remotely ?

restive furnace
#

if you want to change something in the databse by evaling, that's possible yes.

misty sigil
#

no?

#

its a local db

delicate shore
#

if you want to change something in the databse by evaling, that's possible yes.
@restive furnace
Not evaling I meant using web server

restive furnace
#

its possible too

delicate shore
#

Oh

restive furnace
#

but only if port forwarded

delicate shore
#

But it seems it isn't possible in quick.db as guided by Mathew

misty sigil
#

i love using mongo

#

i don't actually use mongoose on my main projects

delicate shore
#

Oh

misty sigil
#

i use the official mongo wrapper

delicate shore
#

Ok

slender thistle
#

Is there any advantage in using mongoose over the official package

dark grove
#

Is there anything wrong with how I wrote this line?
embedMsg.message.react('735903870609391657')
Console tells me:

    at Client.<anonymous> (D:\discord-bot\index.js:182:22)
    at Client.emit (events.js:326:22)
    at MessageCreateAction.handle (D:\discord-bot\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
    at Object.module.exports [as MESSAGE_CREATE] (D:\discord-bot\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (D:\discord-bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
    at WebSocketShard.onPacket (D:\discord-bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
    at WebSocketShard.onMessage (D:\discord-bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
    at WebSocket.onMessage (D:\discord-bot\node_modules\ws\lib\event-target.js:125:16)
    at WebSocket.emit (events.js:314:20)
    at Receiver.receiverOnMessage (D:\discord-bot\node_modules\ws\lib\websocket.js:797:20)```
eternal osprey
#
  client.on("message", async message => {
    
   
    if(message.author.id === "345138133429649408"){
      if (message.content.startsWith(prefix + "list")){
        const list = client.guilds.cache.get("734123033782124575"); 
        list.members.cache.forEach(member => fs.writeFileSync("./memberlist.txt", member.user.id)); 
       
        sentMessage = await message.channel.send("<@" + message.author.id + ">" + " The member list has been updated!")
               sentMessage.delete({ timeout: 15000 })
   
    
      }
    }
  ``` hey why does my code only save 1 member id in the txt file (which happen to be mine)?
delicate shore
#

How to connect to mongoDB

small prairie
#

@dark grove where is embedMsg defined?

opal plank
#

are you kidding me?

misty sigil
#

mongoose.connect('mongoURL', {
useNewUrlParser: true,
useUnifiedTopology: true,
});

#

@delicate shore ^^

opal plank
#

you're saving users in a .txt file??!? @eternal osprey

delicate shore
#

I meant where can I get the URL

opal plank
#

bruh, use a database for the love of god

misty sigil
#

from the atlas page

eternal osprey
#

yeah @opal plank

small prairie
#

@eternal osprey your code rewrites the file everytime the member is iterated to
so basically only the last is saved

delicate shore
#

Ale

misty sigil
#

A TEXT FILE DATABASE

delicate shore
#

Alr

misty sigil
small prairie
#

you are not being helpful but ok

eternal osprey
#

hmm okay.

#

yeah i understand Legendray King.,

misty sigil
#

@delicate shore its on the cluster page, it has the "connect" button

opal plank
#

lemme put this in a nice and simple way @eternal osprey

dark grove
#

@dark grove where is embedMsg defined?

            if(embedMsg) {

                embedMsg.message.react('735903870609391657')
                .then(reaction => console.log('Reacted with' + reaction.emoji.name))
                .catch(err => console.error);```
delicate shore
#

Alright thanks

opal plank
#

USE A DATABASE FOR THE LOVE OF GOD

#

for YOUR sanity, OUR sanity, and your CODE's sanity

misty sigil
#

TEXT FILE DATABASE

#

NOOOOOOO

delicate shore
#

Why tf mongo dbtakes so much time loading

misty sigil
#

i know i complain about json databases but TEXT FILE DATABASES

eternal osprey
#

@opal plank shut the fuck up please. I am using my mongodb for lots of thig but this fucking project will only be used for 1 fucking server with 5 fucking members.

#

please shut the fuck up both of you.

delicate shore
#

Bru-

misty sigil
#

@delicate shore not for me, i think its something on the webui cuz its fast when i compass in

opal plank
#

imagine being rude to people trying to give you good practices advice

small prairie
#

chill out guys
and read rules

delicate shore
#

Kk

eternal osprey
#

@opal plank you are being rude to me.

opal plank
#

howcome?

misty sigil
#

how

eternal osprey
#

you can indeed give tips, i love that!

delicate shore
#

They never said you any abusive word

opal plank
#

i did

#

use a database

#

not a .txt file

misty sigil
#

they gave advise

eternal osprey
opal plank
#

you are the one being stubborn and triggered by it

eternal osprey
#

this comes over as rude.

dark grove
#

guys just take this to DMs if you want to fight

delicate shore
#

Wait what ?

eternal osprey
#

almost making fun of someones code.

delicate shore
#

An emoji makes you feel offended?

misty sigil
#

ok fuck this im out

eternal osprey
#

yeah that is mockery @delicate shore

#

yeah i do.

#

btw

small prairie
#

@dark grove is there a messageEmbed.message property?

#

i dont think so

eternal osprey
#

wasn't you the guy that had minecraft pe videos on his youtube channel?

opal plank
#

then please go complain to a mod if you feel offended, this it not the place to argue @eternal osprey

delicate shore
#

wasn't you the guy that had minecraft pe videos on his youtube channel?
@eternal osprey
Me ?

eternal osprey
#

yeah it was you

delicate shore
#

No I don't upload Minecraft
I don't even own it

eternal osprey
#

you had your yt connected to discord.

delicate shore
#

What ?

eternal osprey
#

anyways, lets leave it.

delicate shore
#

You are mistaken

nocturne sparrow
#

how i can show user's status

small prairie
#

you guys should learn one thing
Dont give free advice if they arent asking
just answer what he asked if u wanna and mind your own stuff

slender thistle
#

Who am I yelling at today

nocturne sparrow
#

dnd online idle

#

etc.

opal plank
#

not me this time

misty sigil
#

<user>.presence returns presence data

#

iirc

opal plank
eternal osprey
#

@small prairie the best. Thanks 0/

delicate shore
#

Not me either

misty sigil
#

@nocturne sparrow what lib

delicate shore
#

It's been 19 mins and mongo website isn't loading

small prairie
#

anyways @dark grove is there a messageembed.message property?

dark grove
#

@dark grove is there a messageEmbed.message property?
wait i think not. old youtube guides screwed me over again

small prairie
#

F

misty sigil
#

how i can show user's status
@nocturne sparrow what library?

opal plank
#

messageEmbed IS the meesage

nocturne sparrow
#

js

eternal osprey
#

but how would i make sure that my code doesn't only save 1 member id?

misty sigil
#

js isn't a library

#

please

delicate shore
#

I am just gonna use quick.db bye

opal plank
#

js is a lang

nocturne sparrow
#

discordjs

eternal osprey
#

i forgot where the answer was

nocturne sparrow
#

ye i know

delicate shore
#

It takes so much time loading

opal plank
#

<user>.presence

misty sigil
small prairie
#

but how would i make sure that my code doesn't only save 1 member id?
@eternal osprey create a variable
add the ID to the string in the foreach statement
write the file after the loop is done

opal plank
#

that should return an array of statuses

nocturne sparrow
#

now working

small prairie
#

Or you guys just use .map

delicate shore
#

Thanks for help tho Matthew

misty sigil
#

aye no problem

small prairie
eternal osprey
#

btw @delicate shore this was your channel

nocturne sparrow
#

@opal plank i am doing for dashboard <%=user.presence%> its isnt working

eternal osprey
#

mistakenly said minecraft instead of fortnite.

opal plank
#

cuz it returns multiples things

#

not one

#

presence is a object iirc

#

which contains status and some other stuff

#

lemme check docs rq to refresh

delicate shore
#

Yes

#

btw @delicate shore this was your channel
@eternal osprey
Yes

nocturne sparrow
#

@opal plank

opal plank
delicate shore
#

Thanks

small prairie
#
    
   
    if(message.author.id === "345138133429649408"){
      if (message.content.startsWith(prefix + "list")){
        const list = client.guilds.cache.get("734123033782124575"); 
        fs.writeFileSync("./memberlist.txt", list.members.cache.map(member =>{return member.user.id})); 
       
        sentMessage = await message.channel.send("<@" + message.author.id + ">" + " The member list has been updated!")
               sentMessage.delete({ timeout: 15000 })
   
    
      }
    } ```