#development

1 messages ยท Page 1289 of 1

quartz kindle
#

then theres your answer lol

#

if the install was not successful, then its not installed

low shard
#

so what i need to do

#

i knwow

#

know

quartz kindle
#

is it linux mac or windows?

low shard
#

win

quartz kindle
#

you need to install build tools

misty sigil
#

let me guess

#

integer

quartz kindle
#

npm i -g windows-build-tools from an admin powershell

low shard
#

@quartz kindle oh

#

i try it in cmd

#

its ok?

#

or only pshell

quartz kindle
#

no

#

it has to be in administrator powershell

#

maybe administrator cmd will work

low shard
#

oh

#

ok

quartz kindle
#

but it has to be administrator mode

low shard
#

dont worl

#

work

#

gg

#

oh

#

how i do that

#

haha

#

@quartz kindle like

#

run as

#

admin?

#

now its work i think

#

im so dumb

earnest phoenix
#

@opal plank what program did you use to generate the SLAVE thing text

opal plank
#

wdym? thats just hard ascii text

earnest phoenix
#

ascii is hard to generate

opal plank
#

wdym? just google ascii text generator

#

here

earnest phoenix
#

also why the fuck do people use the word ascii to denote super fancy text it's still outputting Unicode

balmy anchor
#

Hey guys,
I'm using discord.js and I tried to make an awaiting messages and reacting system.
but I got an issue
I'm trying to make it with embed but I dont know how do I react on an embed message

opal plank
balmy anchor
#

Where?

opal plank
#

talking to @earnest phoenix

balmy anchor
#

oh ok

earnest phoenix
#

@balmy anchor send is a promise and returns your message

balmy anchor
#

ok

earnest phoenix
#

either await it and store the return value in a variable or use the promise.then pattern

eternal osprey
#

hey

balmy anchor
#

how am i supposed to store it?

earnest phoenix
#

take a guess

eternal osprey
#

how would i save 1 text line into json.

#

i obv can't just use []

balmy anchor
#

should I use message.embeds.find()?

earnest phoenix
#

no

low shard
#

@quartz kindle dont work

#

more ways?

earnest phoenix
#

so close !

balmy anchor
#

So how do I get it?

earnest phoenix
#

store it in a variable

balmy anchor
#

i know

#

but

low shard
#

@balmy anchor je

#

w

#

gg

cobalt spruce
low shard
#

wassup

balmy anchor
boreal iron
#

np

boreal iron
#

whatever I did lel

cobalt spruce
#

@boreal iron man i cant believe it works

#

lol

eternal osprey
#

boys, how do i save text in a json file.

boreal iron
#

๐Ÿ‘

cobalt spruce
#

hmm

eternal osprey
#

i know json files are a risk, but it's just one line of text and only server forone guild.

earnest phoenix
#

@eternal osprey wym "save" it?

eternal osprey
#

i have a !append (message) command

opal plank
eternal osprey
#

the message gets saved in the actual json file

#

but it's saved strange:

#

and when i try to work with it later i get: Unexpected token w in JSON at position 1

earnest phoenix
#

{}

eternal osprey
#

instead of []?

earnest phoenix
#

jsons are always {}

eternal osprey
#

lol no

#

[] it can be saved like this as an object too

earnest phoenix
#

then i believe [] is the dictionary

eternal osprey
#

{} this is for arrays

cobalt spruce
#

SyntaxError: await is only valid in async function
execute( message, args ) {
how i fix

eternal osprey
#

google

cobalt spruce
#

@boreal iron

#

SyntaxError: await is only valid in async function
execute( message, args ) {
how i fix

eternal osprey
#

this will help you out

#

try to do research before asking.

low shard
#

@quartz kindle help?

violet haven
#

help me pls

eternal osprey
#

You can only use await in an async function

violet haven
#

why the fuck is this happening

lethal sonnet
#

but without custom domain works normal

quartz kindle
#

@low shard did you install windows-build-tools? did it install successfully? did you wait until it said "All Done"?

opal plank
lethal sonnet
#

help meh :((

violet haven
#

๐Ÿ˜ญ

#

i didn't change anything and it doesn't work now

eternal osprey
#

@violet haven can't help without your code.

lethal sonnet
#

OMG IT WORKS

eternal osprey
#

we can't help off a ss only.

autumn aspen
#
jsconst Discord = require("discord.js");

module.exports.config = {
    name: "setnickname", 
    aliases: []

}
    
module.exports.run = async (client, message, args) => {
    if (!message.member.hasPermission(["MANAGE_GUILD", "ADMINISTRATOR"])) {
        return message.channel.send({embed: {color: "RED", description: "You can't use this command!"}})
      }
      
      let user = message.mentions.users.first(); 
      if (!user) return message.channel.send({embed: {color: "RED", description: "You need to mention the user!"}});
      
      let nick = args.slice(1).join(" ");
      if (!nick) return message.channel.send({embed: {color: "RED", description: "You need to input the nickname!"}});
      
      let member = message.guild.members.cache.get(user.id);
      
      await member.setNickname(nick).catch(err => message.channel.send({embed: {color: "RED", description: `Error: ${err}`}});
      return message.channel.send({embed: {color: "GREEN", description: `Successfully changed **${user.tag}** nickname to **${nick}**`}});
    }
    
    

Whats wrong with this command?

lethal sonnet
#

i just had to wait

low shard
#

@quartz kindle yep after all this its do a restart to my pc

violet haven
#

my code is good it worked

eternal osprey
#

@autumn aspen what error does it give?

autumn aspen
#

@autumn aspen what error does it give?
@eternal osprey unexpected token ;

violet haven
#

@eternal osprey

eternal osprey
#

what line?

autumn aspen
#

also I have a module.json

low shard
#

@quartz kindle you have more ways ?

violet haven
#

do i need to upgrade something? it uses lavalink

autumn aspen
#

what line?
@eternal osprey at the end also the return at the end is not purple?

eternal osprey
#

wait i will check this code in vsc

autumn aspen
#

wait i will check this code in vsc
@eternal osprey thx

quartz kindle
#

@low shard now try intalling quick.db again

low shard
#

@quartz kindle dont work

eternal osprey
#

@autumn aspen fixed.

quartz kindle
#

show logs

eternal osprey
#

you missed a )

violet haven
autumn aspen
#

also I have a module.json
@eternal osprey

eternal osprey
#
await member.setNickname(nick).catch(err => message.channel.send({embed: {color: "RED", description: `Error: ${err}`}}));``` this would work
autumn aspen
#

you missed a )
@eternal osprey where

#

thx

eternal osprey
#

np.

autumn aspen
#

np.
@eternal osprey where tho

#

lol

eternal osprey
#

you had:

autumn aspen
#

at the end

#

oh ok

eternal osprey
#

${err}`}});

low shard
#

@quartz kindle look dm

eternal osprey
#

and i saw that there was a ) missing.

#

@violet haven send your code here. Don't ss.

violet haven
#

the bot joins and search for the music but doesn't play it

quartz kindle
#

@low shard what is your quick.db version?

#

in your package.json

low shard
#

the last v

balmy anchor
low shard
#

7.1.2

#

@quartz kindle

balmy anchor
#

Do u know guys how to I make this with an embed?
@balmy anchor Does anyone knows?

quartz kindle
#

@low shard what is your better-sqlite3 version in your package.json?

low shard
#

@balmy anchor wdym

balmy anchor
#

I want to do the like this

#

ok?

low shard
#

oh ye

balmy anchor
#

but with an embed

#

instead of a regular message

eternal osprey
#

@balmy anchor have you looked at the discord.js docs?

#

they have good examples on how to use embeds.

low shard
#

7.1.1

balmy anchor
#

I checked but I didnt understand anything

low shard
#

@quartz kindle

quartz kindle
#

@low shard try npm rebuild quick.db

eternal osprey
#

hey tim.

#

just a question

low shard
#

@quartz kindle nope

eternal osprey
#

how would i save a text line into a json file, but they will be saved in " "

low shard
#

@balmy anchor jew?

#

@quartz kindle look dm

quartz kindle
#

@low shard delete better-sqlite3 and quick.db from your package.json, save your package.json and try installing quick.db again

low shard
#

ok wait

balmy anchor
#

@balmy anchor jew?
@low shard lol wdym

quartz kindle
#

@eternal osprey wdym saved in ""

low shard
#

@balmy anchor ื™ื”ื•ื“ื™?

balmy anchor
#

ื•ื•ืืœื” ื›ืŸ

#

ื—ื—

low shard
#

ื–ื” ืžื” ืฉืืžืจืชื™

#

LOL

balmy anchor
#

no cuz i didnt understand how did u knew

eternal osprey
balmy anchor
#

lol

low shard
#

@balmy anchor lol

eternal osprey
#

but i cannot use this as text is not json formatted.

low shard
#

@quartz kindle nope

#

dont work

eternal osprey
#

how would i still be able to use the text within this json

quartz kindle
#

if its just text you dont need to make it a json

#

you can put it in a .txt file lol

eternal osprey
#

but i want to save it.

#

wait what

low shard
#

@quartz kindle ?

opal plank
#

fsWrite

#

fsRead then on returned value, append/modify what you want, then fsWrite

#

dunno what the issue is

low shard
#

-bots @quartz kindle

gilded plankBOT
#
Bots <:dblCertified:392249976639455232>

@oak sentineldblCertified
@autumn widget
@frank niche

low shard
#

@oak sentinel

#

oh nice

eternal osprey
#

i am trying to save plain text with a command to my json file

#

but apparently i can't.

opal plank
#

why not?

quartz kindle
#

@low shard is it still the same error, about integer 3.0.1?

low shard
#

so what i need to do?

opal plank
eternal osprey
#

because it would give me this lmao:

low shard
#

@quartz kindle wdym about integer 3.0.1?

opal plank
#

fsRead => JSON parse => modify => JSON stringy fsWrite

#

its a json dude

eternal osprey
#

and later on i am trying to get and use this message again and it would return: SyntaxError: Unexpected token w in JSON at position 1

opal plank
#

not a txt file

#

either save it on a .txt or .json

#

of course its gonna error

#

what you are trying to write ISNT json syntax

eternal osprey
#

this is a json?

#

i know.

low shard
#

?

opal plank
#

then whats the issue?

#

write it as .txt then

#

or comply with .json format

lethal sonnet
#
{
  text: "wellcome back!"
}

??

earnest phoenix
#

{}

crimson vapor
#

you need to use JSON.parse(data) on read and JSON.Stringify(data) on write iirc

opal plank
#

already said all that

eternal osprey
#

oowh okay.

#

thanks guys!

crimson vapor
#

yes but he didnt see it

low shard
#

@eternal osprey bro

eternal osprey
#

@low shard bro

low shard
#

you want to do it more easy?

eternal osprey
#

go ahead

low shard
#

use

#

haha

#

buy a premium

opal plank
#

cringe

crimson vapor
low shard
#

haha

opal plank
quartz kindle
#

@low shard show your full package.json

eternal osprey
#

funny.

quartz kindle
#

also show your bot's folder

low shard
#

@quartz kindle tf

#

fbi here

#

?

#

haha

quartz kindle
#

yes

low shard
#

you need my passport id

eternal osprey
#

@low shard what are you talking about, please.

low shard
#

@eternal osprey botghost?

earnest phoenix
quartz kindle
#

check if they are blacklisted before executing the commands?

quaint hornet
#

lets go get all night programing/reprograming react website ๐Ÿ˜„ i'm gonna cry

crimson vapor
#

before you execute a command (in the command handler) return if they are blacklisted

earnest phoenix
low shard
#

@earnest phoenix write on google

#

blackmarket

#

you will see

earnest phoenix
#

lmao

#

funny

low shard
#

ye i know

quartz kindle
#

you cant do that in an event

quaint hornet
#

is that javascript?

honest perch
#

no

opal plank
#

py

honest perch
#

python

sudden geyser
#

on_command is fired before the command is invoked.

#

But it doesn't control if it'll be invoked.

low shard
#

py

sudden geyser
#

Consider using a check.

earnest phoenix
#

is there not a way to add a check Decorator to it ?

quartz kindle
#

events are independent, one event listener cannot stop another event listener

sudden geyser
#

Yes, you should use a check decorator.

earnest phoenix
#

fml,

lethal sonnet
#

tim, i thought you are js ?

#

so u PY ?

#

or u can both

sudden geyser
quartz kindle
#

im js

sudden geyser
#

1% py

low shard
#

@quartz kindle dm

quartz kindle
#

but many things in programming are the same across many langs

earnest phoenix
#

i have that open lol, i'm just trying to think about how i'd go about this @sudden geyser ๐Ÿ’€

quartz kindle
#

@low shard wait... is your bot in your computer or in glitch? you sent me a package.json from glitch?

low shard
#

wtf

#

wait

lethal sonnet
#

wow in this server has so people who are JS

#

im still noob in js

#

if i have any stupid question,dont be toxic

#

:((

quartz kindle
#

no need to apologise

#

its ok to have stupid questions

lethal sonnet
#

and my english bad

low shard
#

@quartz kindle so

#

more ways to fix

#

this shit

quartz kindle
#

there is no other way to fix it

low shard
#

@quartz kindle so

quartz kindle
#

what is the package.json in your bot's folder?

low shard
#

im fucked

#

i sent in dms bro

opal plank
low shard
#

but nvm i just

quartz kindle
#

why doesnt it have shit from glitch in it?

lethal sonnet
#

rand() == Math.random() ??

low shard
#

cause in my first time that i try to code bot

opal plank
#

i assume so

low shard
#

i use glitch

crimson vapor
#

that is a different language

low shard
#

haha

quartz kindle
#

but are you gonna run your bot in glitch or in your pc?

opal plank
#

true = (0-1 > 10)

#

?

low shard
#

pc

crimson vapor
#

maybe

quartz kindle
#

then delete your package.json and delete your node_modules folder

#

and then run npm init

lethal sonnet
#

and package-lock.json

quartz kindle
#

^

lethal sonnet
#

:)) im verry happy that im helping ppl :))

quartz kindle
#

well apparently quick.db didnt update their npm version

#

those fucks

crimson vapor
#

wait what happened?

low shard
#

so?

quartz kindle
#

install it from github

#

npm i truexpixels/quick.db

autumn aspen
#

@eternal osprey ```js
message.channel.send("Wait...").then(m => {
m.edit(embed).then(m => {(
timout: 2000
})
})

}

can u check this pb it has 2 problems
#

I wanna fix it

boreal iron
#

wrongly placed )

autumn aspen
#

wrongly placed )
@boreal iron where

#
message.channel.send("**Wait...**").then(m => { m.delete({
                m.edit(embed)
                })
            
            
} ```
#

I want it like this

boreal iron
#

you have 4 possibilities

lethal sonnet
#

@autumn aspen wtf is that code

boreal iron
#

1 is wrong - 25% chance

lethal sonnet
#
m.delete({m.edit(embed)})
autumn aspen
#

@autumn aspen wtf is that code
@lethal sonnet lmao I want it to delete the Wait...

lethal sonnet
#

@swift umbra wut the ehck

#

no

fervent goblet
lethal sonnet
#

@autumn aspen what do want to do

#

edit or delete

crimson vapor
#

do you ever stop the loop lmao

autumn aspen
#

I solved it thx

fervent goblet
#

i thought that what the currentPrice<user.balance is for

lethal sonnet
#

@swift umbra no but the code

crimson vapor
#

for (i = 0; someVal<otherVal; i++) {
}

lethal sonnet
#

i still don't understand it

crimson vapor
#

you did not check to make sure i was less than a value

#

you never stopped the loop

lethal sonnet
#

like edit the text after 2s ?

#

nvm

quartz kindle
#

if current price is smaller than user.balance, increase i then increase total then check again

#

current price will still be smaller than user.balance because neither was changed, so it will repeat infinitely

earnest phoenix
#
Ignoring exception in command ping:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 892, in invoke
    await ctx.command.invoke(ctx)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/discord/ext/commands/core.py", line 790, in invoke
    await self.prepare(ctx)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/discord/ext/commands/core.py", line 744, in prepare
    raise CheckFailure('The check functions for command {0.qualified_name} failed.'.format(self))
discord.ext.commands.errors.CheckFailure: The check functions for command ping failed.```
lethal sonnet
#

anyone has inv link for djs server ?

boreal iron
autumn aspen
#
 message.channel.send("**Wait...**").then(m => { 
            
            m.edit(embed)
            })
        }

I want it to delete the Wait... not the embed :/

worldly nebula
lethal sonnet
#

thx

autumn aspen
#
 message.channel.send("**Wait...**").then(m => { 
            
            m.edit(embed)
            })
        }

I want it to delete the Wait... not the embed :/

#

anyone help?

worldly nebula
#

@autumn aspen why are u copy pasting it x2

autumn aspen
#

idk

earnest phoenix
#

he quoted himself

autumn aspen
#

lol

quartz kindle
#

...send("bla").then(sent => sent.delete())

autumn aspen
#

thx

#
 message.channel.send("**Wait...**").then(m => {
            
            m.edit(embed)
            m.edit(" ")
            m.react("โŒ")
            })
        }

How am I able to make the embed delete when Im reacting with x?

earnest phoenix
#
Ignoring exception in command ping:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 892, in invoke
    await ctx.command.invoke(ctx)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/discord/ext/commands/core.py", line 790, in invoke
    await self.prepare(ctx)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/discord/ext/commands/core.py", line 744, in prepare
    raise CheckFailure('The check functions for command {0.qualified_name} failed.'.format(self))
discord.ext.commands.errors.CheckFailure: The check functions for command ping failed.```

I hate this 

```py
#check
def on_command(ctx):
    if ctx.author.id == bot.blacklisted_users:
        return
        
@bot.event
async def on_command(ctx):
    if ctx.author.id in bot.blacklisted_users:
        embed = discord.Embed(title="", description="", colour=discord.Color.red())
        embed.set_author(name="BlackListed!")
        embed.add_field(name="Sorry", value=f"{ctx.author} It looks like you've been Blacklisted!", inline=True)
        await ctx.send(embed=embed)
        return

#goes in the commands under bot.command()
@commands.check(on_command)```
autumn aspen
#
 message.channel.send("**Wait...**").then(m => {
            
            m.edit(embed)
            m.edit(" ")
            m.react("โŒ")
            })
        }

How am I able to make the embed delete when Im reacting with x?

#

anyone help?

boreal iron
#

stop posting ur shit 2-3x all the time

quartz kindle
#

why are you editing twice?

autumn aspen
#

lol

#

why are you editing twice?
@quartz kindle bc ur was wrong it edites from Wait... to empty

quartz kindle
#

what

autumn aspen
#

I solved it with that

quartz kindle
#

you said you wanted to delete, i told you how to delete

autumn aspen
#

bruh Tim can I show u in my test server?

#

you said you wanted to delete, i told you how to delete
@quartz kindle yes the wait.. thingy

slender thistle
quartz kindle
#

you want to delete or edit?

earnest phoenix
#

shiv this makes me mad

slender thistle
#

yeah me too because your code doesn't make much sense but I'm a bit too sleepy to be able to actually help

#

so let me just go over the top

earnest phoenix
#

i am Pro Confuser

autumn aspen
#

you want to delete or edit?
@quartz kindle just edit it to empty again but I fixed it now bot how can I delete the embed by reacting to x

earnest phoenix
abstract coyote
#

i think there is a on react event

eternal osprey
#

how would i make sure that [] doesn;t get deleted with my !messageremove command?

grand pawn
#

em could someone help me with something

eternal osprey
#
}else if (message.content.startsWith(prefix + "removeappend")){

     fs.writeFileSync("./append.json", [args7.replace(args7, "") ])```
#

!removeappend removes the whole line from json

#

how would i let the [] intact.

slender thistle
#

Remove your on_command event, rename the check function to whatever else like allowed_to_use

in that function, just do return ctx.author.id in bot.blacklisted_users

to catch the check error, you use the on_command_error (see docs please)

opal plank
#

@grand pawn dont ask to ask

#

just ask what you need

grand pawn
#

em so i am trying to get my bot online with the command prompt

#

with the node . command

opal plank
#

which language and library?

#

well

#

that gives me half of it

#

js

#

which lib?

grand pawn
#

im not a pro so r u talking about what im using?

opal plank
#

discord.js, eris, ...?

grand pawn
#

discord.js

#

thats it

opal plank
#

good, now show me your folder that you have the bot on

grand pawn
#

u mean i take a screenshot?

opal plank
#

yup

grand pawn
#

ok

abstract coyote
#

@quartz kindle just edit it to empty again but I fixed it now bot how can I delete the embed by reacting to x
@autumn aspen uhm make an on reaction event, then check if the reaction is an x, and delete the message :p

grand pawn
#

is this it?

opal plank
#

do node main.js

grand pawn
#

ok

#

is that it

opal plank
#

pretty much, thats how you run the code

#

you still gotta code the bot though

#

which is the code inside main.js

grand pawn
#

ye ik but i need it to go online first

eternal osprey
#

hey guys how do i make sure my !removeappend doesn't remove the [] from my json file?

grand pawn
#

is this it

opal plank
#

like i said, its code not an app

#

you need to put code inside the main.js for it to connect to discord

eternal osprey
#

no-one that knows the answer?

abstract coyote
#

have you coded anything into main.js yet?

grand pawn
#

no

abstract coyote
#

oh

opal plank
#

thats why

grand pawn
#

i dont think so

abstract coyote
#

well u gkt ur answer now

grand pawn
#

im a noob

iron ferry
#

guys need help

opal plank
#

you have to code your bot first

#

here

#

lemme grab the guides

abstract coyote
#

@grand pawn do you have your app made in the dev portal?

slender thistle
#

@earnest phoenix Suggestion: make intents accept a list for intents instead of having to assign True to each intent we want :p

iron ferry
#

how can i prevent raids or nukes for my server

grand pawn
opal plank
#

NO

#

NONONO

earnest phoenix
opal plank
#

no youtube

grand pawn
#

check 13:50

opal plank
#

nonoo

#

bad

grand pawn
#

oh

abstract coyote
#

yes

#

bad

grand pawn
#

i was told to start there

opal plank
#

you aint gonna get anywhere watching outdated/bad videos

grand pawn
#

its not outdated

earnest phoenix
#

@slender thistle I guess I could do that, sure HC_hmyeah

grand pawn
#

its 2020 may

abstract coyote
#

if anything watch videos for v12

iron ferry
#

please help me

opal plank
abstract coyote
#

^^^^^^^^

opal plank
#

you need a bit of knownledge of js beforehand

grand pawn
#

oh

#

ok

opal plank
#

check the second link FIRST

grand pawn
#

btw im 13 so i might struggle

opal plank
#

learn at least a little bit of the basics

#

cover these :
Objects, Variables, Functions, Arrays, Maps, Switches and if's, that should be enough base for you

slender thistle
#

I'm thinking of writing my own little list-dict-function_args converter lol

grand pawn
#

should i scrap what i have done

abstract coyote
#

i mean

#

what have you done?

slender thistle
#

I'm that lazy to write guilds=True instead of "guilds"

opal plank
#

nah, just follow what i said

abstract coyote
#

can you show the code?

grand pawn
#

here

abstract coyote
#

Noooo

autumn aspen
#
 message.channel.send("**Wait...**").then(m => {
            
            m.edit(embed)
            m.edit(" ")
            m.react("โŒ")
            })
        }

I cant find an message event how delete the embed when u react on the x. Can someone send link or help me. Plese.

abstract coyote
#

remove that

opal plank
abstract coyote
#

ur token

grand pawn
#

ok

opal plank
#

remember, you are responsible for tokens

abstract coyote
#

remove the token whenever ur sjaring ur code

opal plank
#

do NOT share them

grand pawn
#

i deleted it

opal plank
#

ik

#

just a warning

grand pawn
#

ok

autumn aspen
#

i deleted it
@grand pawn lmao re new ur token

grand pawn
#

ok

abstract coyote
#

^

opal plank
#

and then read the message i sent above mentioning you

grand pawn
#

i regenerated it

opal plank
#

good, now go read that

abstract coyote
#

and i think its
new Discord.Client(), not new Discord.client()

#

that was an issue as well

grand pawn
#

ok

earnest phoenix
#

I'm that lazy to write guilds=True instead of "guilds"
@slender thistle I could just make it simply like discord.Intents.from_list(["guilds", "members", etc])

grand pawn
#

i will study it

autumn aspen
#

^
@abstract coyote also I cant find how to delete with reaction

#

pls help me

slender thistle
#

please save the hassle for someone lmao

grand pawn
#

how long do u think it will take for me to start coding

earnest phoenix
#

That's what my whole fork is about 0_KEKLaugh

slender thistle
opal plank
#

depends how much time you put into it

autumn aspen
#

lmao

grand pawn
#

ok thx

slender thistle
#

I'm half-asleep, it's 0329 and I haven't slept yet so excuse me

opal plank
#

to get a good grasp of a programming language? 3 months, maybe. to get started? prob a couple days

abstract coyote
#

gn shivaco!

opal plank
#

night shiv

earnest phoenix
opal plank
autumn aspen
#

ok thx
@grand pawn press "Ctrl + L"

grand pawn
#

could i friend u so i can dm u incase i get stuck?

opal plank
#

keep support to this channel only

autumn aspen
#

LMFAO

opal plank
#

even if im not around theres a lot of people here who can help you

grand pawn
#

ok

autumn aspen
#

Yes

grand pawn
#

thx

opal plank
autumn aspen
#

ok
@grand pawn press "Ctrl + L"

#

TO start code

opal plank
#

Now time to get more food and anime

grand pawn
#

i was told by someone a few days ago that youtube was the best way to start coding

opal plank
#

all bs

#

complete

#

utter

#

bs

autumn aspen
#

i was told by someone a few days ago that youtube was the best way to start coding
@grand pawn not always

abstract coyote
#

well its not true ;)

autumn aspen
#

^^

grand pawn
#

oh ok

autumn aspen
#

oh ok
@grand pawn learn docs is better ๐Ÿ™‚

grand pawn
#

ok

autumn aspen
#

Like I fkn finally did lol

grand pawn
#

and what about the program i should be using

abstract coyote
#

stack overflow is my best friend. he understands my problems and tries to help me fix them. he is like a brother to me.

autumn aspen
#

@opal plank am I right lol

#

?

opal plank
#

Videos get outdated
They are hard to keep up with every small change
the person doesnt explain things right
their code is shit
half truth's
and the list goes on

#

tl;dr, read the docs, dont watch videos

abstract coyote
#

and what about the program i should be using
@grand pawn for javascript, i suggest VS Code

grand pawn
#

oh ok that is what i am using

abstract coyote
#

Atom is nice too

#

but

autumn aspen
#

@grand pawn join my test server for my bot I can teach u stuff

opal plank
#

but vsc better

abstract coyote
#

ye

autumn aspen
#

but vsc better
@opal plank yup

grand pawn
#

ok endph

#

invite me the server linl

opal plank
#

remember what i just said about watching youtube n stuff?

#

that also applies to endph

abstract coyote
#

lol

#

and me lol

opal plank
#

should have a good idea of what you are talking about before trying to coach someone endph

abstract coyote
#

oh right why am i here lol

#

i was stuck trying to see why my bot only did stuff when another bot sent a msh

#

until i realies

#

realised* thaz i put ! in front of the statement ;-;

rotund pasture
#

Here i am

cosmic forum
#

Here

#

Ok

abstract coyote
#

hello

rotund pasture
#

So then you have to get the message with the id

sturdy osprey
#

How do I become a bot developer

rotund pasture
#

Then you are able to read out the content

sturdy osprey
#

I have made a bot

rotund pasture
#

@sturdy osprey you have tl submit your top on top.gg

sturdy osprey
#

I have done that

#

I've waited 7 weeks

#

๐Ÿคช ๐Ÿ‘

rotund pasture
#

Is it approved?

earnest phoenix
#

Keep waiting

sturdy osprey
#

I wish this shity coronavirus go away

abstract coyote
#

uhh ma,be wrong channel for a talkk?

copper cradle
#

I've waited 7 weeks
@sturdy osprey you added your bot on september 18th, that's nowhere near 7 weeks my dude

quaint hornet
#

the good of being own of a website who nobody acess is you can test in production

abstract coyote
#

@sturdy osprey you added your bot on september 18th, that's nowhere near 7 weeks my dude
@copper cradle ladies and gentlemen, we got em.

autumn aspen
#
let nick = args.slice(1).join(" ");
      if (!nick) return message.channel.send("You need to input the nickname!");
      
      let member = message.guild.members.cache.get(user.id);

      if (!member.setNickname()) return message.channel.send({embed: {color: "RED", description: `${member}'s has changed to ${nick}!`}});
      await member.setNickname(nick).catch(err => message.channel.send({embed: {color: "RED", description: `Error: ${err}`}}));
}

WHy does it not members new nickname-+

#

?

frail canopy
#

v

copper cradle
#

imagne trying lmao

#

are you dumb?

#

stop spamming your dumb invite

autumn aspen
#

imagne trying lmao
@copper cradle can u help me with my code

copper cradle
#

@autumn aspen that wasn't for you

autumn aspen
#

@autumn aspen that wasn't for you
@copper cradle ik but can u help?

#

@modern sable @frail canopy spammed ADs here. Just saying

modern sable
#

@frail canopy ad jail bonkcat

autumn aspen
#

lmao

#
let nick = args.slice(1).join(" ");
      if (!nick) return message.channel.send("You need to input the nickname!");
      
      let member = message.guild.members.cache.get(user.id);

      if (!member.setNickname()) return message.channel.send({embed: {color: "RED", description: `${member}'s has changed to ${nick}!`}});
      await member.setNickname(nick).catch(err => message.channel.send({embed: {color: "RED", description: `Error: ${err}`}}));
}

Why does it not send the members new nickname?

#

@modern sable sorry for ping but can u help me?

quartz kindle
#

Stop being impatient lol

autumn aspen
#

or enyone help?

quaint hornet
#

i think have anything on front of member

#

or i am wrong?

copper cradle
#

can you like, stop being impatient and pinging people

autumn aspen
#

lol

#

oke

quaint hornet
#

member.displayName

quartz kindle
#

!member.setNickname() makes no sense

autumn aspen
#

!member.setNickname() makes no sense
@quartz kindle yeah I understand but what should be there instead?

quartz kindle
#

Remove that if altogether lol

autumn aspen
#

aight

#

the whole code

#

??

#

@quartz kindle

quartz kindle
#

Everything inside the if

autumn aspen
#

Everything inside the if
@quartz kindle I did it, but what statement am I going to use for the bot to send that info look

#
const Discord = require("discord.js");

module.exports.config = {
    name: "setnickname", 
    aliases: [],
    cooldown: 5

}
    
module.exports.run = async (client, message, args) => {
    if (!message.member.hasPermission(["MANAGE_GUILD", "ADMINISTRATOR"])) {
        return message.channel.send(":x: **You don\'t have permission to run this command!** :x:")
      }
      
      let user = message.mentions.users.first(); 
      if (!user) return message.channel.send("Please specify a User you want to setnickname on.");
      
      let nick = args.slice(1).join(" ");
      if (!nick) return message.channel.send("You need to input the nickname!");
      
      let member = message.guild.members.cache.get(user.id);

      return message.channel.send({embed: {color: "RED", description: `${member}'s has changed to ${member.displayName}!`}});
      await member.setNickname(nick).catch(err => message.channel.send({embed: {color: "RED", description: `Error: ${err}`}}));
}
#

there

opal plank
#

scope blocked

autumn aspen
#

scope blocked
@opal plank ah thx

opal plank
#

last line wont run

#

you really need to learn scopes and function returns

#

cuz this ahsnt been the first time i seen you asking the same thing

#

im amazed your ide isnt telling you about it

autumn aspen
#

you really need to learn scopes and function returns
@opal plank but how do I make it sends that info

#

at the end

opal plank
#

you really need to learn scopes and function returns

autumn aspen
#

chill

#

haha

opal plank
#

cant wait for this to finish

misty sigil
#

slave

opal plank
#

yes, child

#

slave

autumn aspen
#

im amazed your ide isnt telling you about it
@opal plank I fixed it

opal plank
#

master

#

its all the same

#

child process, master slave, same shit

slender thistle
#

Watch out for snowflakes, I heard winter is coming closer

opal plank
#

How to get token revoked in a couple simple steps
step 1, run that shit
step 2, profit

solemn latch
#

winter is coming?

rotund yarrow
#

Hey peeps i need some help here

solemn latch
#

yo

rotund yarrow
#

hey are you a js dev?

solemn latch
#

no, but i do write in js :p

rotund yarrow
#

oh

#

uh could you help with something im trying to do in js

#

pretty much i need a way to send to channels listed in my db

solemn latch
#

discordjs?

#

you can fetch the channels from cache

rotund yarrow
#

yes but when sending to more than one channel

#

discordjs?
@solemn latch y e s

onyx hare
#

When I try n run pip install dblpy I keep getting โ€œpip is not recognizedโ€ -.- idk if my cmd is derpy or Iโ€™m missing something I have python installed so idk why itโ€™s not picking it up

solemn latch
#

sending mass messages is generally considered api abuse @rotund yarrow

#

is your plan to loop every channel you have in the db?

#

if thats your plan you should use a community server

rotund yarrow
#

mk

#

how many channel ids would be considered api abuse

#

@solemn latch

solemn latch
#

any more than needed

quaint hornet
#

man i has two months stuck in a error, the problem is react doesnt go good with javascript comments ;-;

autumn aspen
#
 if (message.flags[0] === "off") {
    channel.setRateLimitPerUser(0);
    return message.channel.send(`<#${channel.id}> slowmode has been deactivated.`);
  }

Ehm I have little problem with turn off the slowmode how do I do hehe

thick gull
#

message.flags (?)

#

also you should probably check docs..

autumn aspen
#

message.flags (?)
@thick gull wdym ?

slender wagon
#

Someone offered me a house for free

#

But i declined cuz i only wanted nitro

thick gull
#

@autumn aspen what even is your error

autumn aspen
#

@autumn aspen what even is your error
@thick gull no I dont have any errors I just wonder how to turn off the slowmode

#

look

#
const Discord = require("discord.js");
const ms = require("ms");

module.exports.config = {
    name: "slowmode", 
    aliases: []
}
    
module.exports.run = async (client, message, args) => {
  if (!message.member.permissions.any(["ADMINISTRATOR", "MANAGE_CHANNELS"])) {
    return message.channel.send(":x: **You don\'t have permission to run this command!** :x:");
  }
  
  let channel = message.mentions.channels.first(),
      time = args.slice(1).join(" ");
  
  if (!channel) time = args.join(" "), channel = message.channel;
  
  
  if (message.flags[0] === "off") {
    channel.setRateLimitPerUser(0);
    return message.channel.send(`<#${channel.id}> slowmode has been deactivated.`);
  }
  
  if (!time) return message.channel.send({embed: {color: "RED", description: "Please includes the time format."}});
  
  let convert = ms(time); 
  let toSecond = Math.floor(convert / 1000); 
  
  if (!toSecond || toSecond == undefined) return message.channel.send("Please insert the valid time format!");
  
  if (toSecond > 21600) return message.channel.send("Timer should be less than or equal to 6 hours.");
  else if (toSecond < 1) return message.channel.send("Timer should be more than or equal to 1 second.");
  
  await channel.setRateLimitPerUser(toSecond);
  return message.channel.send({embed: {color: "RED", description: `<#${channel.id}> has been slowing down for **${ms(ms(time), {long: true})}**.`}});
}

jeez I dont even know how to turn it off and thats my command

#

@thick gull

#

how do I turn it off?

thick gull
#

works for me

silver lintel
#

how to check if a string has a specific character in js

worthy glacier
#

how do i get my bot to grab the last image link or attachment send in chat

#

and also: can canvas edit gifs?

thick gull
pale vessel
#

canvas only grabs the first frame of the gif

thick gull
pale vessel
#

canvas is not capable of editing gifs

#

you would need gifencoder(2) for that

#

it supports canvas contexts

worthy glacier
#

any recommendations for a good gif editing tool

#

(best performance)

#

ive heard imagemagick is good

solemn latch
#

editing like, development

#

or editing as in just an image editor that supports gifs

#

iirc, photoshop has some good gif plugins

thick gull
#

i think he means

#

a npm package

worthy glacier
#

^

pale vessel
#

gifencoder2 for encoding, canvas for editing maybe

solemn latch
#

ah, I think you might need to separate the gif into individual images then use something like canvas to modify each one and put them together again.

#

gifencoder2 can modify images?

#

ye

#

looks like you may just need canvas and gifencoder2 to go that route

worthy glacier
#

is there really no single package or tool that can do gif editing?

solemn latch
#

๐Ÿคทโ€โ™‚๏ธ not that I know of

#

not that those would be any easier than just canvas and gifencoder2

#

since gifencoder works directly with canvas frames

worthy glacier
#

oh thats cool thanks for letting me know

lean sorrel
#

uhhh....how do u put a support invite for the bot cuase im making a bot my first bot

sonic lodge
#

just paste a link to your support server

lean sorrel
#

how?

sonic lodge
#

uh are you new-new to development or have some programming experience

lean sorrel
#

im just new

#

i came here two days ago

sonic lodge
#

so add a command to your bot that replies with the link to your support server

earnest phoenix
#

I've got the api working and I can see who voted but I had to provide an ID. Is there a way I can check who voted without ID or webhooks?

thick gull
#

is there a java equivalent to this in js

console.log(`String ${variable} String`)

doing java cause cs class but i absolutely despise doing this:

System.out.println("String " + variable + " String");
quartz kindle
#

probably something like String.format()

thick gull
#

pain .

quartz kindle
#

yes, bread

vernal rivet
#

String.Format()

#

from what i remember.

earnest phoenix
#

message.guild.premiumTier.length = 1 ? `level 1` : message.guild.premiumTier = 2 ? `level 2` : message.guild.premiumTier = 3 ? `level 3` : ''

sudden geyser
#

@earnest phoenix Did you mean to use === instead of =

#

Also I'd recommend not using multiple ternary expressions in a single statement as they're hard to read.

earnest phoenix
#

oh ok

pale vessel
#
`level ${message.guild.premiumTier}`
sudden geyser
#

big brain

earnest phoenix
#

I'm trying to do to have the emblem when it reaches each level

#

i put

#

message.guild.premiumTier.size === 1

pale vessel
#

premiumTier is an number

#

.size can only be used on maps and collections

earnest phoenix
#

so i can leave only message.guild.premiumTier === 1

pale vessel
#

since it's an object, you can use Object.keys(message.guild.premiumTier)[0] to get the tier as a number

earnest phoenix
#

oh

#

thank you

pale vessel
#

hm

#

ignore that xd

earnest phoenix
#

;-;

#

ok

pale vessel
#

it's a number apparently

earnest phoenix
#

thanks thanks

pale vessel
#

instead of chained ternary

earnest phoenix
#

ok

#

gg

#

thank you @pale vessel

pale vessel
#

\๐Ÿ˜ณ

earnest phoenix
carmine summit
#

I made a ping command, with msg.edit, but there is one flaw, The first message, when edited, stays, and just added an embed at the bottom

#

How can I make the Pinging... message disappear?

pale vessel
#

you can use message.edit({ embed: yourEmbed, content: null })

carmine summit
#

my first message is not an embed

pale vessel
#

that's for the sentMessage

#

embed is your new ping embed

carmine summit
#

then when i edit it, it just added the embed at the bottom

thick gull
#

yes thatโ€™s what he said

carmine summit
#

nvm, im just gonna delete the message then send a new one

thick gull
#

that edits the content

pale vessel
#

don't

carmine summit
#

hmm

pale vessel
#

omg

#

how did you define your embed?

#

your ping embed

carmine summit
#

my embed is a function lol

pale vessel
#

that returns what?

carmine summit
#
async function embed(title, desc) {
  const embed = new Discord.MessageEmbed().setColor('#860000').setTitle(title).setDescription(desc)
  return embed
}
pale vessel
#

then you can use message.channel.send("Pinging...").then(sent => sent.edit({ embed: embedFunction(), content: null }));

carmine summit
#

Pinging... wont go away

pale vessel
#

show your code

carmine summit
#
if (command == 'ping') {
    let one = Date.now()
    let msg = await message.channel.send('Pinging...')
    let two = Date.now()
    let old = Date.now()
    await axios.get(`https://api.hypixel.net/skyblock/news?key=${process.env.SKYBLOCK}`)
    let oldd = Date.now()
    let uptime = convert(client.uptime)
    const promises = [
      client.shard.fetchClientValues('guilds.cache.size'),
      client.shard.broadcastEval('this.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0)'),
    ];
    Promise.all(promises).then(async results => {
      const totalGuilds = results[0].reduce((acc, guildCount) => acc + guildCount, 0);
      const totalMembers = results[1].reduce((acc, memberCount) => acc + memberCount, 0);
      msg.edit(await embed('๐Ÿ“ Pong!', `**Discord latency: ${Date.now() - message.createdTimestamp}ms\nAPI Latency: ${two - one}\nHypixel latency: ${oldd-old}ms\nServer count: ${totalGuilds}\nMember count: ${totalMembers}\nUptime: ${uptime}**`))
    }).catch(console.error);
  }
pale vessel
#

so msg.edit({ embed: await embed(), content: null }));

carmine summit
#

my embed is a functionnnnn

pale vessel
carmine summit
#

ah

#

wtf

pale vessel
#

dude what the fuck

carmine summit
#

Why the brackets and the , content?

pale vessel
#

that adds an embed, which is the generated embed from your embed() function while setting the message content to null (or empty)

#

edit accepts a string (that would overwrite the previous message content) or an object with options

#

embed and content is one of the options

carmine summit
#

why those numbers so high?

pale vessel
#

now

carmine summit
#

I was expecting it like in 20's

pale vessel
#

why is your embed() function async

#

it doesn't need to be async

#

you should remove async and await

carmine summit
#

Yeah

#

its still in 100's

pale vessel
#

did the text at least disappear

#

like what you wanted

carmine summit
#

Yeah

#

thanks

pale vessel
#

cool

#

now handle the rest troll

carmine summit
#

kewl

thick gull
#

thats nice but

#

?

#

@oak cliff ^

#

no

unique patio
#

Not sure if this is a discord.net related. I have used an open-source setup it works fine but funny enough on the command feature.

When I request it via command (and not its side alias names) it works fine the scope to my function and calculates as expected but when the alias call is made to the exact command it works but any timing function is messed up.

#
        [Command("qview")]
        [Alias("queueview", "view", "queue", "q")]
        [Summary("Lets users know who is currently on the island!")]
        public async Task RequestQueueViewAsync() {
            await Globals.Bot.ViewQueue().ConfigureAwait(false);
        }

qview works 100% then when I call its queueview it works but times all janked.

modest crane
#

calling with the alias shouldn't have any difference

wanton furnace
#

message.channel.send("Pinging...").then(sent => sent.edit({ embed: embedFunction(), content: null }));

earnest phoenix
#

how do i fix TypeError: client.Embed is not a constructor

opal plank
#

@earnest phoenix usually its Discord.MessageEmbed(), put it depends on how you imported/declared discord-js

carmine summit
#

how do i make superString()?

#

you know, substring but the opposite

opal plank
#

see this example?

earnest phoenix
#

i see

#

but how can i do it on a chrome book

opal plank
#

what you'd want is a listener on 'vote'

#

its unrelated to which platform you use

#

if you got a bot running you are good to go

#

just need a port opened

earnest phoenix
#

i see

#

does a mod bot works

opal plank
#

code is code

earnest phoenix
#

i see

opal plank
#

so yeah, it will work

earnest phoenix
#

will

opal plank
#

just dont copy that

earnest phoenix
#

i dont

opal plank
#

make sure you understand what you are doing

earnest phoenix
#

i can ask a friend to help

opal plank
#

blindly copying snippets wont get you anywhere

earnest phoenix
#

but idk if he gonna do it

opal plank
#

to put it VERY simply

#

like, REALLLLYYY simply

#

rather than logging it on console. just send it on a channel

earnest phoenix
#

how

opal plank
#

thats literally it

earnest phoenix
#

i am new

opal plank
#

you'd need to know how your library works

earnest phoenix
#

i am in this

opal plank
#

which lib you using?

earnest phoenix
#

i am in that

opal plank
#

you dont need that

earnest phoenix
#

im new to it

opal plank
#

then you should learn a bit

#

lemme grab the docs

#

which language you coding in?

earnest phoenix
#

trying to do discord.js

#

but idk on a chromebook

opal plank
#

aight, so let me grab the docs rq

restive furnace
#

download node.js -> download visual studio code (or preffered editor) -> start coding.

opal plank
#

just read what i sent

earnest phoenix
#

alright

opal plank
#

thats like, the BARE BARE BARE BARE BARE and i cannot emphasise this enough BARE minimum you can start from

pale vessel
#

fun

earnest phoenix
#

i am trying to look at it

#

so ik what i can do

opal plank
#

you need 4 things. Learn the basic of the language. Download/install node. Download/use Visual Studio Code. Read the guide i sent you

#

thats it

earnest phoenix
#

you need 4 things. Learn the basic of the language. Download/install node. Download/use Visual Studio Code. Read the guide i sent you
@opal plank how tho

#

where at

opal plank
#

reading what i sent you

#

its all explained there

#

all here

graceful dock
#

Bruh

opal plank
#

now im off to watch my anime

earnest phoenix
#

ooo

opal plank
#

it finished downloading quite a while back

#

good luck draco

earnest phoenix
#

what kinf

#

kind

opal plank
#

plastic memories

earnest phoenix
#

hmm

unique patio
#

Sorted my issue I accidentally called two instances with a hotkey press.

#

I doubted it but I really did.

#

TY studios for this copy/paste line hotkey

#

not even sure outside array why someone ever need that, no one should repeat line like that or need to. ๐Ÿ˜„ Fun fix.

restive furnace
#

Do I need to know React before hopping into Nextjs?

soft sedge
#
    at parseError (/var/www/bot/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (/var/www/bot/node_modules/redis-parser/lib/parser.js:302:14) {
  command: { name: 'hmset', args: [ 'bans' ] }
}``` anyone know I can fixed this?
worthy glacier
#

how do i get my bot to grab the last image link or attachment sent in chat

pale vessel
#

what library are you using?

carmine summit
#

Is there any way to reboot my bot using a command??

lethal sonnet
#

learn at least those
@opal plank Why no For loop

#

for() is the most inportain thing

honest perch
#

Never used it ngl

lethal sonnet
#

but it is importain to understand loops

opal plank
#

@lethal sonnet opposite

#

USE For loops

#

dont use forEach()

lethal sonnet
#

uh no ForEach() is goof

#

good

gentle lynx
#

Not sure if somebody knows but how can I use JSON in MySQL? Should I use blob as the datatype or JSON? I'm so confused and would like to see if there's a tutorial on that stuff or not

lethal sonnet
#

Is there any way to reboot my bot using a command??
@carmine summit yes if u use pm2 then use this:

process.env.exit()
#

Not sure if somebody knows but how can I use JSON in MySQL? Should I use blob as the datatype or JSON? I'm so confused and would like to see if there's a tutorial on that stuff or not
@gentle lynx u know what(just a suggestion) Dont use MYSQL cuz it is verry verry old, it is like for ur Grandpa. Use some new Database :))

gentle lynx
#

lol what

lethal sonnet
#

example MongoDB, quick.db and bla bla

gentle lynx
#

bruh

#

mysql is good though

lethal sonnet
#

nvm

#

but i cant help, im bad in MySQL

gentle lynx
#

it's ok-

opal plank
#

@lethal sonnet you use EmbedBuilder?

#

like Message.Embed()?

lethal sonnet
#

no

#

MessageEmbed

autumn aspen
#

@opal plank look ```js
if (message.flags[0] === "off") {
channel.setRateLimitPerUser(0);
return message.channel.send(<#${channel.id}> slowmode has been deactivated.);
}

How do I chancel the slowmode?
opal plank
#

so you use it?

autumn aspen
#

/slowmode off?

lethal sonnet
#

@opal plank ??

#

wdym

opal plank
#

in your code

#

how do you send embeds?

autumn aspen
#

const embed = new Discord.MessageEmbed()

#

that how

#

@lethal sonnet

lethal sonnet
#

i use

let embed = new MessageEmbed()
message.channel.send(embed)
lethal sonnet
#

@autumn aspen wow rly

autumn aspen
#

@autumn aspen wow rly
@lethal sonnet yes

#

Just copy thatn

opal plank
#

then im 100% not taking a word about what your opinion is about performance

autumn aspen
#

that

opal plank
#

embed builder is TWENTY times slower than other methods

lethal sonnet
#

@opal plank uh then why u use it

opal plank
#

forEach() falls just as close, its way less performant

autumn aspen
#

embed builder is TWENTY times slower than other methods
@opal plank noooooo

opal plank
#

who said i use it?

carmine summit
#

@carmine summit yes if u use pm2 then use this:

process.env.exit()

@lethal sonnet whats pm2

opal plank
autumn aspen
#

tf u saying

#

lmao

lethal sonnet
#

@opal plank ecplain what is pm2

opal plank
#

uh no ForEach() is goof
good

compact oriole
#

forEach is ๐Ÿ˜…

opal plank
#

forEach is trash

autumn aspen
#

^^

compact oriole
#

forEach is trash
yea

lethal sonnet
#

smh ok ok

autumn aspen
#

uh norhing

compact oriole
#

especially for async stuff

lethal sonnet
#

i will use for

opal plank
#

hence why im showing you legit using embed builders which are absurdely waste of resource power

earnest phoenix
#

@autumn aspen setRateLimitPerUser can be set to zero to disable slowmode

opal plank
#

while claiming that forEach is good

pale vessel
#

process.env.exit()? fullbruh

opal plank
#

no harm in not knowing, just dont say something is good/bad until you use it

autumn aspen
#

@autumn aspen setRateLimitPerUser can be set to zero to disable slowmode
@earnest phoenix yes but is it /slowmode 0 or /slowmode channel 0 idk??

lethal sonnet
#

smh my 1month codes gone, i have to fix all of then

autumn aspen
#

Can u check

opal plank
#

giving false/bad feedback is a horrible idea

autumn aspen
#

@earnest phoenix can u check my code real quick

compact oriole
#

1 month when we say "forEach is bad" LUL

opal plank
#

next thing you see, you taught a new dev to use basically forEach() and unoptimized code all throughout their stuff

lethal sonnet
#

@compact oriole well i dont care alots about my performance, cuz my ping is alway less then 120

compact oriole
#

I was talking about you lying

lethal sonnet
#

lying

compact oriole
#

it doesn't take a month for for-loops

lethal sonnet
#

No

#

i mean the code that i made 1 month ago

clever dust
#

@lethal sonnet whats pm2
@carmine summit PM2 is a production process manager for Node.js applications with a built-in load balancer. It allows you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks.

you can read more about it here - https://www.npmjs.com/package/pm2

lethal sonnet
#

now i have change all od them

compact oriole
#

pm2 is dope

#

it also has web monitoring

lethal sonnet
#

pm2 op

opal plank
#

i dont like pm2

compact oriole
lethal sonnet
#

cuz there are no npm package has that function

#

pm2 is top 1 from 1

opal plank
#

i prefer doing my own stuff tbh

#

prettier

#

better