#development

1 messages · Page 1848 of 1

wheat mesa
#

I need to get into web dev

boreal iron
#

Well then work needs to be done
Somebody has to hold up the economy

#

See ya

wheat mesa
#

Always sucked at HTML and CSS but it’s a really valuable skill

boreal iron
#

It is yeah

rose warren
#

It really is.

wheat mesa
#

Just gotta put in some effort and time to learn it

rose warren
#

I've made webpages as soundboards for events even. Just a locally hosted page to make an easy UI so anyone can run the right sounds at the right time.

solemn latch
#

past few days been playing with css and html.
probably the worst thing ive made in the past year pandasad

#

css is so hard just because there is no "finish"

rose warren
#

The simpler the better

split hazel
#

i hope whoever made css died a painful death

#

sorry got a bit dep

rose warren
#

What's wrong with CSS? 😂

solemn latch
#

I actually like css, I just suck at it

split hazel
#

its hard

#

and unpredictable lmao

rose warren
#

It's not that bad. It's easier to learn than JS etc

#

Less properties

#

Less stuff to learn

wheat mesa
#

Less stuff to learn is correct, but I’m not sure if it’s fair to compare it to learning js

solemn latch
#

flex makes it a lot more predicable imo.
still figuring it out, but its helped a ton

wheat mesa
#

They’re made for fundamentally different purposes

#

CSS is for design, whereas js is usually handling logic

rose warren
#

Yeah I know. It's a bad comparison.

#

Still

wheat mesa
#

Sort of an apples and oranges type thing

rose warren
#

Give me a book on how to learn CSS and I'll bet it'll be lighter than a book on JS

wheat mesa
#

I struggle with design stuff purely because I don’t have a very creative background

solemn latch
wheat mesa
#

Which is why I suck at web dev atm

#

That and making things appear on a certain place in a website is a lot trickier than it seems

#

(For me, I’m inexperienced)

solemn latch
rose warren
#

When I do a site for a client, I do wireframes, then mockups, then I start to code. Makes the whole process more efficient and gives you a good direction to follow.

split hazel
#

unless i want to suffer i am never gonna do anything front end lmao

solemn latch
#

^ front end for me is made out of necessity

wheat mesa
#

It’s an incredibly valuable skill to learn at some point

#

But it’s also frustrating

split hazel
#

i lost interest in web development a long time ago

#

anything that involves browsers

#

native applications are my go to

rose warren
#

Web dev is here to stay imo. Native apps won't take over. There's still a lot of value in a good website.

solemn latch
#

just got my discord package. over 200MB compressed eyes_shaking

split hazel
#

yeah

#

tho im probably gonna do something cyber security

wheat mesa
split hazel
solemn latch
#

If it can be a website, I want it to be a website, excluding a few things.

sudden geyser
# split hazel laughs in terrible javascript

If you don't want to carry the burden of developing for the web, I recommend using a framework that can perform on the web and native applications. I enjoyed writing a SwiftUI application for months but decided to stop since I didn't want to develop just for iOS/macOS/etc. React Native and Flutter are the two frameworks that come to mind.

#

JavaScript sucks but we need it.

quartz kindle
#

javascript is best

sudden geyser
#

go away

quartz kindle
#

no u

wheat mesa
#

js is efficient enough for websites but there's better options when it comes to writing applications that require good performance

quartz kindle
#

which basically nobody cares anymore

#

literally every single app these days is bloated af no matter what language is written in

wheat mesa
#

true

split hazel
#

but i dont have an apple

quartz kindle
#

people just gave up along the way and decided to rely on modern cpus instead

#

"eh whatever, modern pcs will run it"

sudden geyser
#

You don't need an apple.

split hazel
#

no?

wheat mesa
#

so much ram available now that it basically doesn't matter unless you have a massive memory leak

split hazel
#

i thought swiftui was apple and web only

sudden geyser
#

SwiftUI is for Apple's platforms only.

split hazel
#

i wouldnt imagine apple being so kind as to make their proprietary software available to all operating systems

wheat mesa
#

literally 30 bucks for 8gb of ram now whereas like 4mb of RAM 30 years ago was hundreds

#

30 years ago*

sudden geyser
#

I was just using SwiftUI as an example of developing for native apps.

quartz kindle
#

my first pc had 256mb ram

split hazel
#

same

#

and a 1ghz cpu

quartz kindle
#

good old windows xp

wheat mesa
#

I'm not old enough to experience that KEKW

quartz kindle
#

actually it wasnt my first pc

#

we had a family pc when i was a kid

#

running windows 98

#

idk what specs it was, i wasnt old enough to know these things

wheat mesa
#

My dad had me "build" (basically just shove the GPU and ram in and call it a build) a PC when I was like 6 or 7 with him, and it had like 512mb of ram with windows vista

quartz kindle
#

i was at an age where i tried to copy a game's desktop shortcut into a floppy disk and paste it in another computer and expect it to run

quartz kindle
#

lmao

quartz kindle
#

xD

rose warren
#

We had 2 computers in our classroom in elementary school running Windows 95 and I remember trying to copy a game over to the other one with a floppy dog_XD

#

Or it might have been NT...

#

Can't remember

quartz kindle
#

hahah

#

the oldest pc i used was win 95

#

never did NT

rose warren
#

You know the way school PCs are dog_Joy wouldn't surprise me if it was NT

quartz kindle
#

went on a family trip to visit cousins, aunts, etc... spent the whole day playing warcraft on their windows 95 pc

rose warren
#

One of my earliest memories was coloring in Thomas the Tank Engine on Paint on my Dad's old PC dog_Joy

quartz kindle
#

xD

rose warren
#

And I remember my Dad used to play Age of Empires 1 when it came out

#

1997 dayum

quartz kindle
#

i played aoe1 for the first time on my step-sister's pc, loved it so much i asked her to make a copy and send it to me

#

she sent me the original cd

rose warren
#

When games could fit on a CD...

smoky herald
#

ola, anybody knows why my code can't find the module in broadcastEval?

#

v12 btw

quartz kindle
#

you cant use relative paths

smoky herald
#

I seeee, thanks a lot P_SadgePray

quartz kindle
#

use absolute paths with process.cwd()

smoky herald
#

will look into it TieseSalute I would never even think of the problem's core if you didn't tell me 😂

quartz kindle
#

np :)

boreal iron
#

Like 16,17 or 18y ago

#

Dunno anymore

#

Remember when phones you could flip were cool and snake on a mobile phone was latest shit

#

And you was fucking afraid of accidentally opening the phone browser causing a bill from your provider thicker than any book

#

And tbh even without all the technologies, smartphones etc. it was a great time

#

I wanna say somehow better than today in a lot of cases

#

Tim actually knows what I’m speaking about since he’s at a similar age

quartz kindle
#

ye

#

n64 was the shit

#

4 player mario kart or mario party

earnest phoenix
#

it doesnt show the reason :P should i change role.delete(reason=reason) to something else?

long crow
#

I used to play Solitaire back when I was highschool

#

Or paint even

simple stump
opaque seal
#

Just refractor

function makeChannel(member){
    var server = member.guild;
    var name = member.displayName();

    server.createChannel(name, "voice");
}
simple stump
#

wdym?

#

oh wait

#

mb

#

thx

#

wait actually displayName isnt a function. im using discord.js v12

#
if (test.length > 0) {
      newState.disconnect();
      makeChannel(newState.member);
    } else {
      test.push(oldState.member.id);
    }
solemn latch
simple stump
#

ah

worthy ivy
lyric mountain
#

v12 was probably the most short-lived djs version

split hazel
worthy ivy
#

slash commands

#

message content is getting locked down under privelaged intents

split hazel
#

nah man i'll wait for a couple months to prepare to migrate a giant code base

#

otherwise i might commit

long crow
#

right click to make UwU messages, how can't you not commit. lol

split hazel
#

i meant the other commit

#

the easy way out

long crow
#

UwU

sick fable
simple stump
wheat mesa
#

Will I need the message intent in order to fetch message IDs to delete?

#

I don't need to know the content of the messages, I just need to have their IDs so I can delete them

simple stump
#

also are embeds different on v13 lol. i think the last version i used was v11 a long time ago lmao and i used this:

    const helpEmbed = new Discord.MessageEmbed()
    .setColor('#10D365')
    .setTitle('Help')
    .setDescription('Ranked Bridge')
    .addFields(
      { name: '=elo', value: 'Displays your ELO' },
      { name: '=idk', value: 'placeholder ig' },
    )
    .setTimestamp()
    .setFooter('Made by Eltik');
    message.channel.send(helpEmbed);

but get this error:
https://srcb.in/2E3DOoiXSm

wheat mesa
#

message.channel.send({embed: helpEmbed})

simple stump
#

ah alr thx

boreal iron
simple stump
#

still get the same error

wheat mesa
#

Through a slash command

simple stump
#

message.channel.send({embed: helpEmbed});

wheat mesa
#

¯_(ツ)_/¯

#

I don't use djs anymore

simple stump
#

all g

pale vessel
#

message.channel.send({embeds: [helpEmbed] });

boreal iron
wheat mesa
boreal iron
#

Oh I see I’m talking about something different

wheat mesa
#

Yeah, I meant if a user sends a certain slash command, my bot fetches the message IDs, then deletes them

pale vessel
#

What message ID

wheat mesa
#

Wasn't sure if I needed the intent for that or not since I don't need the content of the messages themselves

simple stump
#

embeds gives a diff error now
https://srcb.in/TzJ4rKyX5d
ill double check my code but dont think its an issue with the embed im sending. line 49 directs to the message.channel.send
EDIT:
im dumb i didnt put the embed in an array

wheat mesa
#

Just previous message IDs prior to the slash command, it's a clear command

boreal iron
#

Thought you’re generally speaking about receiving message events

pale vessel
#

I'm pretty sure you'll get message ID and channel ID

wheat mesa
#

Alright

pale vessel
#

just the content and attachments are privileged

#

Not sure yet

wheat mesa
#

I guess if it breaks whenever the intent comes out I'll fix it haha

#

If it ain't broke don't fix it

boreal iron
#

lol

split hazel
#

trash library

#

good in terms of functionality but not good in library

boreal iron
#

Depends on ur needs

split hazel
#

don't feel like changing all my code every time a new version comes out

boreal iron
#

I have a small sized bot which is an API lookup & ID converter tool in addition to my web tool and djs it the perfect structure for this small scale project

split hazel
#

for a small definitely

#

for a large and for a stable codebase something else will probably be better

boreal iron
#

At least I wanna mention the fantastic docs again

split hazel
#

their docs are kinda cute

earnest phoenix
#

I don't like any of the js libraries

#

They are all bleh to me

boreal iron
split hazel
#

I see some decent new ones but it's uncertain if they'll be discontinued in a year or so

earnest phoenix
#

php has a lib

split hazel
#

motivation and life often changes

earnest phoenix
#

RestCord and DiscordPHP

boreal iron
#

Didn’t need one as I coded it myself

split hazel
#

sorry mr your own library

boreal iron
#

But I wanted to move to a more dynamic code language

earnest phoenix
sudden geyser
earnest phoenix
#

Clojure ?

#

cuz my code is correct :)

sudden geyser
#

It's completely dynamic

boreal iron
#

Never heard of that, too

split hazel
#

i find js (and maybe python) best for bots because of their chilled out and non strict syntax

sudden geyser
#

should learn it :)

lament rock
#

coding your own lib can help you understand Discord

earnest phoenix
sudden geyser
#

Functional programming language

lament rock
#

but it sucks to maintain atm since the api is making rapid changes

earnest phoenix
#

dialect of lisp

#

tf is lisp

sudden geyser
#

Bunch of parentheses

#

But you learn to love them

split hazel
#

() {}

#

asm has best syntax

earnest phoenix
#

jesus lisp does use a lot of parentheses

split hazel
#

i don't have a lisp

earnest phoenix
#
(select (:title :author :year)
  (from :books)
  (where (:and (:>= :year 1995)
               (:< :year 2010)))
  (order-by (:desc :year)))

⇒ ((:title "Practical Common Lisp"
    :author "Peter Seibel"
    :year 2005)
   (:title "ANSI Common Lisp"
    :author "Paul Graham"
    :year 1995))
#

This looks so weird

boreal iron
#

Oof oh god

sudden geyser
#

It does when you start

#

But when you learn it, it all makes sense.

boreal iron
#

Looks a little bit like SQL syntax

earnest phoenix
#


(reduce #'-
        (reverse (list 1 2 3)))
⇒ 0

(mapcar #'string-downcase
        (list "Hello" "world!"))
=> ("hello" "world!")
#

Functional apparently

#

I dont see how this is functional

earnest phoenix
sudden geyser
earnest phoenix
#

what is #'-

sudden geyser
#

Metadata reader

earnest phoenix
#

🤔

#

idek know what makes a dynamic lang or what it means by dynamic

#

Does it mean it can be OOP or functional?

sudden geyser
#

To be dynamic means to allow variables/symbols to have multiple types.

boreal iron
#

Im using unnecessary parentheses, too for calculations, shorthand statements etc. and people are complaint about it if I show code examples but I like it, makes things easier to see in my opinion but that shit above… eww

sudden geyser
#

Like a schemaless database.

earnest phoenix
#

I have grown to like golang

lament rock
#

non statically typed

#

statically typed js pls

#

and no, TS doesn't count

sudden geyser
#

But seriously, I recommend you at least try it out

earnest phoenix
#

I would but nah

#

I have had enough of learning new languages

#

go is probably going to be the last one I learn for a while

sudden geyser
#

Alright

sick fable
lyric mountain
earnest phoenix
boreal iron
#

Anyway I’m too old to move on learning new things lol

sick fable
sudden geyser
#

but lisp is old :(

sick fable
#

💀

boreal iron
#

Tooooo old

#

After so many years of backend dev only and at least some frontend projects it was pain to move to JS
Can’t deal with such a pain again KEKW

#

As the time I can spend nowadays is far less than what I could spend like 10-15y ago

#

Things are changing…

lyric mountain
#

But war...

#

War never changes

earnest phoenix
#

see i dislike it so much I can't spell it

lyric mountain
#

Parenz

boreal iron
vivid fulcrum
earnest phoenix
#

smh

#

why reply to me with that

lyric mountain
#

If it comforts you, it's closer to ascii buttcheeks than boobies

long crow
#

OwO intensify

#

Does someone publish some boilerplate template of discord bot to npm before?

#

I think I saw some

tranquil steppe
#

Hello.

wheat mesa
#

Hello

pallid jungle
#

How to make when someone vote my bot it dms him ?

latent heron
latent heron
#

fuck restcord

#

person who made discordphp is a living chad

earnest phoenix
#

Hi

#

can anyone help me

#

?

long crow
#

Just ask

earnest phoenix
#

i want help with my bot's auto moderation

#

i need somebody to help me

#

i dont remember half of the code

#

it got deleted by mistake

#

@long crow

#

Can u hepl

#

How old do you need to be to male your bot verified

#

woah

#

thats kinda funny question

#

any age is ok

#

Like you can be 13 ?

#

yes

#

im same age

#

Ty so much

#

come to dm

#

pls

#

pls

#

come to dm

#

Ok

hollow robin
#

hey, does anyone have an idea if reuploading a currently existing bot is okay with the owner’s permission? the existing bot was deleted and so was the owner’s account btw.

long crow
#

No, you will need parent consent for 13

#

Found it

#

An Update on Verifications for Users Under 16

Recently, users under 16 began receiving errors during the Stripe verification step of verifying their bots. We promptly contacted our partners at Stripe to learn more about the error, and learned that Stripe will be unable to verify the identities of any further individuals under 16 years old due to legal concerns.

As a result, we are taking a similar step, and will no longer be able to independently verify users under 16 without the assistance of a parent, legal guardian, or other trusted sponsor.

This only impacts users who are not verified yet. Any user who is already verified will not have to re-verify and their verification will remain valid, regardless of age.

We've crafted a detailed FAQ with a whole lot more detail to answer some of the following questions:

  • I haven't verified my bot yet, and I'm under 16. What does this mean for me?
  • I've already verified my bot, and I was under 16 at the time. Does this affect my bot at all?
  • How can my parent or legal guardian help me get verified?
  • How can a friend or co-developer help me get verified?
  • Can I submit a friend, parent, or legal guardian's ID for verification using my own account?
  • What if I can't find anyone to help me get verified?
  • My friend was able to get verified and they're under 16. Why can't I get verified?
  • My parent or legal guardian has concerns about the verification process. Where can they get answers?

If you have any of those questions and more, please visit the Help Center article available here: https://support.discord.com/hc/articles/1500006788822

We've also crafted an article for parents and other potential sponsors: https://support.discord.com/hc/articles/1500006788922

And of course, you can always send any additional questions you have to https://dis.gd/contact, or you can ask in #verification-help for additional clarification. I'll be around as much as I can to personally address any of your concerns as well.

#

@earnest phoenix @earnest phoenix

earnest phoenix
#

Ty

#

How will parenting control work

#

yes how does it work?

long crow
#

You will have better answer here, since I copied the text from there

hollow robin
long crow
#

Should be fine as long the code is not 100% copy paste from other codes on the internet

earnest phoenix
#

hey ayeven

#

i need help with automoderation of my bot

long crow
#

Cant help. About to go out

earnest phoenix
#

how much time does it take for verification

#

??

#

😦

hollow robin
earnest phoenix
#

hey slashdiv

hollow robin
#

?

earnest phoenix
#

how much time does it take for a bot's verification

#

?

hollow robin
#

my friend got accepted in like 2 weeks but they did it when you could get a badge

earnest phoenix
#

2 weeks?

hollow robin
#

yep

earnest phoenix
#

i though it was something like email verify and done

hollow robin
earnest phoenix
#

Ok

hollow robin
# earnest phoenix Ok

like they have to use their info. they also let friends do that too. your account just has to own the bot.

coral scroll
#

anyone can help? I am trying to make this into a cog but it keeps providing error message for user.

class MyClient(discord.Client):
    async def on_ready(self):
        print('Logged on as {0}!'.format(self.user))

    async def on_message(self, message):
        print('Message from {0.author}: {0.content}'.format(message))

I tried to play it in main.py or with a cog using:

class MyClient(commands.Cog): ##USED WITH BOTH commands.Cog and discord.Client and none worked
    def __init__(self, client):
        self.client = client

    async def on_ready(self):
        print('Logged on as {0}!'.format(self.user))

    async def on_message(self, message):
        print('Message from {0.author}: {0.content}'.format(message))

def setup(client):
    client.add_cog(MyClient(client))

But keep getting error like:

'MyClient' object has no attribute 'user' discord.py
earnest phoenix
#

The self here refers to the instance of MyClient which indeed has user attribute.

#

But Cog objects by default don't have user attribute, but it does hold reference to a Client (see your self.client = client line) object which has user attribute. You wanna refer to that instead.

coral scroll
#

mk i'll give this a shot

earnest phoenix
#

Also, you need the listener decorator to actually register those callbacks.

coral scroll
#

the listeners i already had i just forgot to type those in.

#

so something like this?

import discord
from discord import client
from discord.ext import commands

class MyClient(commands.Cog):

    def __init__(self, client):
        self.client = client

    @commands.Cog.listener()
    async def on_ready(self):
        print('Logged in as {0}!'.format(self.client))
        
    @commands.Cog.listener()
    async def on_message(self, message):
        print('Message from {0.author}: {0.content}'.format(message))

def setup(client):
    client.add_cog(MyClient(client))
earnest phoenix
#

This application has grown inorganically so we are unable to process your verification request at this time.

#

whats that

earnest phoenix
#

from discord import client is redundant though, it's not used anywhere in the code.

coral scroll
#

yeah i kinda just had that copied there hadn't cleaned that.

but yeah didn't give bot's name which sucks so I guess i can manual fix that then computer fixing it

#

Logged in as <discord.ext.commands.bot.Bot object at 0x0000022D9B4C73A0>!

#

xD

earnest phoenix
#

That's why I said you might wanna refer to the user attribute of the self.client.

earnest phoenix
#

?

earnest phoenix
unique onyx
#

Status

earnest phoenix
#

Its not

unique onyx
#

That command is used in self bots only

earnest phoenix
#

What

unique onyx
#

I also have a self bot

earnest phoenix
#

Cool

unique onyx
#

I used this type of coding

earnest phoenix
#

Okay

unique onyx
earnest phoenix
#

I highly doubt this is a self bot

unique onyx
#

Na

#

I am a real person

earnest phoenix
#

:/

zenith terrace
#

when you admittedly opened saying you have a self bot

unique onyx
#

:)

unique onyx
earnest phoenix
#

Let them be stupid

zenith terrace
#

doesn't matter lol

unique onyx
#

I also have 2 music bots

#

1 nuke bot

earnest phoenix
#

Hey guess what

unique onyx
#

And working on mod mail

earnest phoenix
unique onyx
earnest phoenix
unique onyx
#

😐

#

Not at funny joke

earnest phoenix
#

Wasn't meant to be funny

#

Was meant to be truthful

unique onyx
#

I care

#

I know, what it feels when everyone ignores you

#

@earnest phoenix can we become frnds?

near stratus
#

*everyone ignored him

earnest phoenix
#

Please dont ping me

unique onyx
unique onyx
earnest phoenix
#

Cause I said so

#

So please stop

near stratus
earnest phoenix
#

Looking at the ugly block thing every time they talk is more annoying then a ping

unique onyx
#

I have blocked all the channel, now I never get a ping message

near stratus
runic depot
#

is ts good for backend or commonjs?

pale vessel
#

Up to you

runic depot
#

because benchmarks are so awful

pale vessel
#

Isn't the choice clear then?

runic depot
#

so why people are still using ts then?

#

for libraries

pale vessel
#

You're asking why people use JS?

runic depot
#

no, TS

#

most of libraries are written in ts

pale vessel
#

And they're transpiled to JS?

runic depot
#

umm yea

#

i meant the speed

#

nvm

#

im going to use ts :|

pale vessel
#

There's no speed difference

runic depot
#

ok thanks

long crow
#

It because of typeguard, intellisense etc

#

Js is a loose type

#

For e.g i can do client.something_not_exist, to attach something on client

#

It will accept it

#

Ts will go mad at you when you do that

runic depot
#

yea

willow mirage
#

the Webhook is not working, dunno why

earnest phoenix
#

...

compact flicker
earnest phoenix
#

seriously?

earnest phoenix
compact flicker
#

can i get a help

earnest phoenix
#

I don't think it was ever a string

earnest phoenix
compact flicker
#

it disable codeline below it

earnest phoenix
#

what

#

The code after embed= is unrunnable?

compact flicker
#

yes

earnest phoenix
#

Well, python works based off indentations iirc

#

Make sure its indented properly that might fix it I don't really remember

willow mirage
#

@earnest phoenix now this

#

:<

tired panther
#

How can I use the domain without the port on express?

#

do you I have to set the port to 80 and how do I do the configs with ngix

cinder patio
#

Usually you use nginx as a reverse proxy

#

set port of your app to whatever you want, ex. 4000, then set the port of the nginx server to 80

tired panther
quartz kindle
#

proxy_pass

cinder patio
#
location / {
 proxy_pass http://localhost:4000/
}
tired panther
quartz kindle
#

you need multiple server blocks, one for each domain

#

doesnt matter how your files are, as long as the blocks are included in the main nginx.conf

tired panther
#

Ah, found it, have to define it on the root property

quartz kindle
#

root is only for static files

#

you use server_name to define the domains

tired panther
#

Thx, a last unrelated question, when I create a local redis server will it use my bandwith, when I do requests on it?

quartz kindle
#

local to local no

#

only if you expose it and remote-access it

tired panther
#

Okay makes sense

cinder patio
#

omg working with marked custom extensions is so annoying 😫

pallid jungle
#

2021-08-18T10:27:21.568699+00:00 app[Worker.1]: (node:4) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'tag' of null
2021-08-18T10:27:21.568709+00:00 app[Worker.1]: at Object.execute (/app/events/messageDelete.js:11:38)
2021-08-18T10:27:21.568711+00:00 app[Worker.1]: at Client.<anonymous> (/app/index.js:55:44)
2021-08-18T10:27:21.568711+00:00 app[Worker.1]: at Client.emit (events.js:400:28)

#
2021-08-18T10:27:21.568699+00:00 app[Worker.1]: (node:4) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'tag' of null
2021-08-18T10:27:21.568709+00:00 app[Worker.1]:     at Object.execute (/app/events/messageDelete.js:11:38)
2021-08-18T10:27:21.568711+00:00 app[Worker.1]:     at Client.<anonymous> (/app/index.js:55:44)
2021-08-18T10:27:21.568711+00:00 app[Worker.1]:     at Client.emit (events.js:400:28)
const Discord = require('discord.js')
const snipes = new Discord.Collection()
const config = require('../config.json')

module.exports = {
    name: 'messageDelete',
    async execute(client, message, messageDelete) {
        if (message.author == client.user) return;
        snipes.set(message.channel.id, message)
        
        const DeletedLog = new Discord.MessageEmbed()
        .setTitle("Deleted Message")
        .setDescription(`**User:** ${message.author.tag}\n**Content:** \`\`\`${message.content}\`\`\``)
        .setColor('RED')
        .setThumbnail(message.author.displayAvatarURL({dynamic: true}))
        const bot = client.user.username;
        await message.guild.channels.cache.get(config.log)?.createWebhook(bot, {
            avatar: client.user.displayAvatarURL({ format: 'png', dynamic: true, size: 128 })
          })
          .then(webhook => Promise.all([webhook.send({ embeds: [DeletedLog] }), webhook]))
          .then(([_, webhook]) => webhook.delete())
          .catch(() => {});
        
          return;
    }
}

Anyone help other events working tf

cinder patio
#

Anyone have experience with custom marked extensions?

name: "ref",
level: "inline",
start: (src) => src.indexOf("[["),
tokenizer: (src) => {
    /* Extracts the text */
},

Shouldn't the src in the tokenizer function be the text AFTER the index returned by the start function??

#

the src in the tokenizer is always the full text

quartz kindle
#

you are receiving a message with a null author

#

so you have to check for that and return if author is not available

quartz kindle
#

if index returns -1, the text is ignored, otherwise the tokenizer is run

#

Marked will use this function to ensure that it does not skip over any text that should be part of the custom token.
// Hint to Marked.js to stop and check for a match

long crow
#

I giggled at my bot progress

#

KEKW It reach 10th server today, hooray for my bot

earnest phoenix
#

Do they add bot in their server for aprroval?

wary flame
#

Yes

earnest phoenix
#

Which server?

wary flame
#

It's private

earnest phoenix
#

And who takes demo?

#

Owner give?

#

Or they inspect by own

wary flame
quaint wasp
#

How do I made an image apear in an HTML page with a link to something?

quartz kindle
#

<img src="url">

wary flame
quaint wasp
#

ah thanks

earnest phoenix
quaint wasp
#

No

earnest phoenix
#

How will i give demo then -_-

quaint wasp
#

Its a server owner by Veld as I expect, and the only people there are bot reviwers and maybe other staff members.

quaint wasp
wary flame
#

They test based on your help command

quaint wasp
#

They just test it with commands

#

ya

long crow
earnest phoenix
#

Coz i didnt updated help command, will update after bot gets approved

wary flame
#

Update it

earnest phoenix
#

Ok

#

Then

wary flame
#

They need it for verification

earnest phoenix
#

Hmm

#

Didnt knew

quaint wasp
#

Just that it wil be 404 page untill they aproove it

#

(link to bots vote paging it what I meant btw)

earnest phoenix
#

I added commands in the detailed desc. Within page

quaint wasp
#

help command would be the best 👍

earnest phoenix
#

U mean i need to add, pls vote me <link>

quaint wasp
#

You don't need to

#

but if thats whats in the update u can

#

just that the link will be invalid untill they aproove the bot

earnest phoenix
#

And ofc i will add when its aprooved

wary flame
#

Copy the command list of the description to a command

earnest phoenix
#

Okh

wary flame
#

Also it's "approved" :)

earnest phoenix
#

What?

#

My bot?

#

Aprooved?

wary flame
#

no like the word

#

one "o" not two

earnest phoenix
#

-_-

#

Ok sir

#

Kind sir

quaint wasp
earnest phoenix
#

Typos sucks on Android

quaint wasp
#

since when...

earnest phoenix
#

Am confused, wait i google

quaint wasp
#

I forgot grammer over the summer probably

wary flame
#

relatable

earnest phoenix
#

Sometime happens

quaint wasp
#

lol

earnest phoenix
#

Style u know

quaint wasp
earnest phoenix
#

Kekw

quaint wasp
earnest phoenix
#

Cya

hollow depot
#

just updated to v13, i'm getting this error when starting the bot

narrow sedge
hollow depot
#

oh right lol

#

im dumb

narrow sedge
#

lol

pallid jungle
narrow sedge
#

message.member.user.tag

#

thats for messageDelete

quartz kindle
grim arch
#

is eris sharder compatible for djs13?

quartz kindle
#

it depends on the message being cached to even work

pallid jungle
quartz kindle
#

and messages from webhooks for example dont have authors

#

they have webhookId instead

pallid jungle
#

@quartz kindle Should i add if(message.author.tag) return

#

?

quartz kindle
#

if(!message.author)

pallid jungle
#

@quartz kindle message.member.user.tag is this right ?

narrow sedge
#

yea

#

thats it

pallid jungle
#

kk

quartz kindle
#

if its a guild message yes

#

it wont work for dm messages

pallid jungle
#

Okay

sterile thicket
narrow sedge
#

did it send any errors?

sterile thicket
#

It's just the variable "thumbsUp" and "thumbsDwn" is 0 as a result

#

even when it is not supposed to.

cinder patio
sterile thicket
#

What am I doing wrong here?
https://sourceb.in/aWQ1fKHoEU
No error.
It's just the variable "thumbsUp" and "thumbsDwn" is 0 as a result after the end of the event.
even when it is not supposed to be.
in v12, it worked perfectly.

rocky hearth
#

How do nanoid guarantees to always give a unique id? What the algorithm is based on?

earnest phoenix
#

can someone help me with discord.py iam making a code for clear command which basically deletes messages and i have made if and else situation where if the author has manage message permission the bot will execute the command and send an embed with "deleted messages" but when the author does'nt the bot is supposed to send another embed but its not sending it code:

@client.command()
@commands.has_permissions(manage_messages=True)
async def clear(ctx, amount=5):
if ctx.message.author.guild_permissions.manage_messages:
await ctx.channel.purge(limit=amount)
embed = discord.Embed(description = ('The messages were removed !') , color=0xED4245)
message = await ctx.send(embed = embed , delete_after=5) #save embed as "message"
await message.add_reaction("✅")
else:

em = discord.Embed(description = ('You need manage messages permissions to do this!') , color=0xED4245)
jama = await ctx.send(embed = embed ,delete_after=5)
await jama.add_reaction("❎")
sterile thicket
#

What am I doing wrong here?
https://sourceb.in/aWQ1fKHoEU
No error.
It's just the variable "thumbsUp" and "thumbsDwn" is 0 as a result after the end of the event.
even when it is not supposed to be.

quaint wasp
#

uhh

#

I tryed doing .setImage() to set smth like a banner on the embed

#

but says .setImage is not defined

#

ping in replise

grim arch
earnest phoenix
#

still facing this issue

pallid jungle
#

What that means?

2021-08-18T12:20:29.164035+00:00 app[Worker.1]: (node:4) TimeoutOverflowWarning: 6000000000 does not fit into a 32-bit signed integer.
2021-08-18T12:20:29.164037+00:00 app[Worker.1]: Timeout duration was set to 1.
lyric mountain
#

number too big

#

you need to use long/bigint for values larger than 2.1 billion

grim arch
#

and also can u turn the msg into a code markdown

quaint wasp
earnest phoenix
#

no errors

#

the bot is supposed to send embed but it sends a message in console

#

"discord.ext.commands.errors.MissingPermissions: You are missing Manage Messages permission(s) to run this command."

earnest phoenix
quartz kindle
#
code here
quaint wasp
#

in the place of py u can put any language extention.
||(Ex: js, css, py, html, c, ect)||

#

so um.. How do u put a banner/image on an embed?

quartz kindle
#

with setImage()

earnest phoenix
#

setImage(url=?)?

quaint wasp
#

I did this:

quartz kindle
#

it needs to be a direct link to the image

grim arch
#

fax

earnest phoenix
#

lol

#

upload it in discord

#

then copy the url

quaint wasp
#

Ohh

#

lol me dum

#

alr 👍 thanks

grim arch
grim arch
earnest phoenix
#

lol

earnest phoenix
#

Iam getting this instead of a embed

grim arch
#

how am i going to read that lmao

earnest phoenix
#

idk

#

just read the last line

near stratus
grim arch
earnest phoenix
#

i want the bot to send a message that you are missin permission

#

but the bot is not sending the embed i coded

deft orchid
#

how can i add cookies to my website which uses discord oauth on nodejs express i want people to be logged in if they logged in before

lyric mountain
#

about message deletion, does editing the message refresh the 2 week-old limit?

#

or does it consider only creation date?

earnest phoenix
#

edit a message after 1minute

grim arch
#

pls turn it to code markdown im having a hard time reading it

earnest phoenix
#

if the time refreshed

near stratus
quartz kindle
#

in the roles or in the channel permissions?

earnest phoenix
quartz kindle
#

still, in the roles or in the channel permissions?

earnest phoenix
#

Iam trying to use the commnd from alt

earnest phoenix
#

roles

lyric mountain
#

do you know it tim?

earnest phoenix
#

everyone roles doesn't have manage message perms

#

you did'nt get it right?

quartz kindle
#

and i think the limit only applies to bulkdeletes

lyric mountain
#

ye

#

guess I'll stick to creation date

quartz kindle
#

channel permission overwrites

earnest phoenix
#

its not about permission

#

let me explain you

#

i made a command which purges messages

pallid jungle
earnest phoenix
#

so if someone with manage message perms tried it the bot will delete the messages and send a embed and if someone who does'nt have manage message perms tries it the bot is again supposed to send a embed

#

so i wanted to test it

quartz kindle
#

it is about permissions
you are checking for ctx.message.author.guild_permissions.manage_messages, which only takes into account permissions from roles, it does not consider channel-specific permissions like permission overwrites. manage-messages can be turned on or off in channel overwrites

earnest phoenix
#

thats why i opened a alt account

quartz kindle
#

thats why im asking if there is any channel permission overwrite, you code is not taking it into account

willow mirage
#

@earnest phoenix

#

dont see any error

earnest phoenix
#

You're calling that function in a different scope, where the stringTools variable declared isn't available

#

That error is originated from your eval.js file, may you show us the code of it?

quartz kindle
#

that shouldnt matter, its in a closure

willow mirage
#

oh

#

im stupid

earnest phoenix
#

but it did'nt work aswell

quartz kindle
earnest phoenix
#

then pls send me code

#

which will work

quartz kindle
earnest phoenix
#

@quartz kindle please

#

i request you to send the code

quartz kindle
#

i just did

earnest phoenix
#

iam messing up

quartz kindle
#

also if you're checking permissions inside the code, you should probably remove the decorator

#

ie, remove this @commands.has_permissions(manage_messages=True)

earnest phoenix
grim arch
#

just check it out

earnest phoenix
#

iam not really good at coding

#

like 3-4 days ago

#

so i have some doubts

#

can you tell me what to do next

quartz kindle
#

im not even a py developer lol

#

go read docs, check some tutorials

earnest phoenix
#

i checked

#

docs

slender thistle
#

Q

earnest phoenix
#

link please

quartz kindle
#

shivaco is a py dev, go bug him/her/them

#

:^)

earnest phoenix
#

@slender thistle hwwo

#

shivaco reminds me of trivago

slender thistle
#

Just for that joke I'll go back to eating my cookies

quartz kindle
#

hotel? trivago
python? shivaco

slender thistle
#

shivago is Go user

#

anyhoo

#

Let me get on lappy in a sec

earnest phoenix
#

fake person

#

is typing...

boreal iron
#

shivago is Go user
Aka shivagogo is crazy

quartz kindle
#

shivagogopowerrangers

earnest phoenix
#

shivaco

boreal iron
#

lol

earnest phoenix
#

you there?

#

😢

#

guess no one will help

quartz kindle
#

he said he was gonna get his laptop lol, stop being annoying

boreal iron
#

There’s a difference between helping and doing your job oldEyes

earnest phoenix
slender thistle
#

Okay

#

What are we doing

earnest phoenix
#

dm?

#

or here?

quartz kindle
#

he wants to do if has permission do something else do something else

earnest phoenix
#

bruh

#

i mean

#

let me explain

#

i saw this code on

#

stack overflow

#

it was like this

wheat mesa
#

Must be a lot oldEyes

boreal iron
#

He’s probably downloading the whole site content okeh

wheat mesa
slender thistle
#

DMing me

#

And I'm struggling to understand the intent

wheat mesa
#

Why bother with DMing someone when you can post it in a channel where there’s more people available to help

slender thistle
#

Don't ask me

boreal iron
#

[...] there’s more people available to help

to enjoy, not to help

wheat mesa
#

True

hollow depot
#

is there any way i can install node and run commands on netlify?

earnest phoenix
#

@quartz kindle you were correct

#

thanks

quartz kindle
#

👍

ebon lantern
#

Can anyone send me the

#

Codes plssss

#

Like any u know

near stratus
boreal iron
#

if(true) false else true;

near stratus
#
console.log("Hello world")
ebon lantern
#

So is it like rpg code hello world?

wheat mesa
#

Yes

ebon lantern
#

Ok any others?

quartz kindle
#

process.exit()

pale vessel
#
<?php echo "Hello world";```
quartz kindle
#

while(true) console.log(true)

boreal iron
#

Hey hey! Close the tags!

pale vessel
#

no

boreal iron
#

Devil

ebon lantern
#

Like?

pale vessel
#

It looks hotter if you don't

ebon lantern
#

How do I write it?

wheat mesa
boreal iron
#

Hotter… lmao

true ravine
#

Beautiful

near stratus
ebon lantern
#

Anyone write a code and show

#

Code of rpg

near stratus
true ravine
near stratus
silent whale
silent whale
#

application complete?

wheat mesa
#

I’m not smart enough to come up with that code

#

Not a good enough dev

ebon lantern
#

Can anyone write the codes of rpg?

#

Like normally

near stratus
silent whale
#

okok

boreal iron
#

Nobody will write code for u unless you pay him

true ravine
#
while(true)
  if(main_character.alive)
    main_character.friends.kill()
near stratus
silent whale
#

hmm...

true ravine
#

Yeah you just gotta wait like 5 business days now and you should get an email

silent whale
#

👍

grim arch
split hazel
willow mirage
quaint wasp
#

hello...

So uhh... I am trying to do this: js people[peoples]

Peoples is this: ```js
const peoples = people[Math.floor(Math.random() * people.length)];

And people is a json. like so:```json
[
        "Smug",
        "Channel",
        "a Loser",
        "a Gay person",
        "your mommy",
        "ur online gf"
    ]```


fixed
#

it returns undefined..

trail finch
#
 const msg = await message.channel.send("react one")

    await msg.react("✅")
    await msg.react("❌")


     const filter = (reaction, user) => {
    return ['✅', '❌'].includes(reaction.emoji.name) && user.id === message.author.id;
};

message.awaitReactions({ filter, max: 1, time: 60000, errors: ['time'] })
    .then(collected => {
        const reaction = collected.first();

        if (reaction.emoji.name === '✅') {
            message.reply('Tested! You reacted with the tick emoji');
        } 
    if (reaction.emoji.name === "❌") {
            message.reply('Tested! You reacted with the cross emoji');
        }
    })
    .catch(() => {
        message.reply('Times up!');
    });
#

this is my code

#

and the err is nothing but its not working

#

I reacted to both the reaction but no work

wheat mesa
trail finch
#

someone ans mine too ;-;

split hazel
#

msg not message

trail finch
#

um wait lemme give the full code

split hazel
#

no

trail finch
#

um k

split hazel
#

why are you telling me this

#

change message to msg

trail finch
#

;-; wdym

#

if I change msg to message then ofc its gonna give error

#

;-;

#

ok lemme try first

split hazel
#

I think you're a little confused

#

you're adding reactions to another message

#

but you're collecting reactions on another message

trail finch
cinder patio
quaint wasp
#

This.. says that user.bot is undefined..

split hazel
#

where are you getting this from

trail finch
#
const Discord = require('discord.js')

module.exports = {
  name: "test",
  description: "a test cmd",


  run: async ( client, message, args, prefix ) => {


    const msg = await message.channel.send("react one")

    await msg.react("✅")
    await msg.react("❌")


     const filter = (reaction, user) => {
    return ['✅', '❌'].includes(reaction.emoji.name) && user.id === message.author.id;
};

msg.awaitReactions({ filter, max: 1, time: 60000, errors: ['time'] })
    .then(collected => {

        if (collected.first().reaction.emoji.name === '✅') {
            message.reply('Tested! You reacted with the tick emoji');
        } 
    if (collected.first().reaction.emoji.name === "❌") {
            message.reply('Tested! You reacted with the cross emoji');
        }
    })
    .catch(() => {
        message.reply('Times up!');
    });


  }
}``` @split hazel  this may be easier for u to see what r the variable name and how I required them
split hazel
#

that code is a lot different to the one above

trail finch
#

rlly?

quaint wasp
#

mhmm

trail finch
#

;-; but I copied from the same file I wrote the prev one

split hazel
#

so that's correct can you add console.log(reaction.emoji.name) after .then(collected

#

to see if it's picking the reactions up

trail finch
#

ok

split hazel
#

when tim has no idea all hope is lost

quartz kindle
#

i never used marked

trail finch
boreal iron
#

And you will see the issue

waxen bough
#

i keep getting unknown interaction. I think it's because my bot's taking too long to respond to a command and i can't do anything about it. how do i make interaction wait longer?

quartz kindle
quaint wasp
#

alr

cinder patio
#

How can a package with 20K stars have such poor documentation 😭

trail finch
#

aaah its not picking the reaction idk why

boreal iron
#

because u await them for the wrong message ...

#

as he told u already

trail finch
#

I tried it with the same message but it didnt work

#

maybe my trying is wrong? uhm lemme try again

split hazel
#

maybe your syntax is incorrect

#

what discord js version are you using

trail finch
#

12

latent heron
cinder patio
# quartz kindle no idea then
                start: (src) => src.indexOf("[["),
                tokenizer: (src) => {
                    const match = src.match(/(?<=\[\[).+?(?=\]])/);
                    if (match && match.index) return {
                        type: "ref",
                        raw: `[[${match[0]}]]`,
                        text: match[0].trim()
                    };
                    return undefined;
                },

... what??

#

Alright, so I think I know what's happening, marked is removing the first n characters, where n is the length of the raw text

#

but why is it doing it from the start??

split hazel
trail finch
#

ok I understood my mistake one

#

but now it gives the error ID of undefined

const Discord = require('discord.js')

module.exports = {
  name: "test",
  description: "a test cmd",


  run: async ( client, message, args, prefix ) => {


    const msg = await message.channel.send("react one")
    await msg.react("✅")
    await msg.react("❌")

            msg.awaitReactions(response => response.emoji.name == '✅' && response.author.id == message.author.id || response.emoji.name == '❌' && response.author.id == message.author.id, {
                 max: 1,
                 time: 60000,
                 errors: ['time'],
            })
    .then(collected => {


        if (collected.first().reaction.emoji.name === '✅') {
            message.reply('Tested! You reacted with the tick emoji');
        } 
    if (collected.first().reaction.emoji.name === "❌") {
            message.reply('Tested! You reacted with the cross emoji');
        }
    })
    .catch(() => {
        message.reply('Times up!');
    });

  }
}``` at the response.author.id
near stratus
split hazel
#

yes it is

#

it comes with the gateway message

near stratus
split hazel
#

your code completely changes after a minute

#

whats up

trail finch
#

oh nvm the target was not defined so I changed it to message.author.id one

stable eagle
#

Does discord/erlpack support node.js v16?

trail finch
#

oh right there r target still left lemme change

split hazel
#

'd imagine so why wouldnt it

stable eagle
#

I can’t install it and I read somewhere it doesn’t

split hazel
#

major node versions are fairly backwards compatible

#

what error does it throw

#

i have had people tell me "sqlite isnt compatible with node x" but with a bit of tinkering i got it to work

stable eagle
split hazel
#

is that the whole error?

stable eagle
#

No

#

Its a long one

split hazel
#

well then that screenshot doesnt show the error

#

paste it into hastebin or something

stable eagle
#

Ok

trail finch
#

thats the type of err I used to get when I tried installing quick.db without python ;-;

stable eagle
waxen bough
#

from what i can gather there's a problem building erlpack

split hazel
#

yeah its the libraries problem i think

#

theres c++ errors in there

#

which means its a lib problem

stable eagle
#

Is there a way to fix them?

earnest phoenix
#

Do you have buildtools installed?

split hazel
#

looks like they do

#

getting more technical node 16 probably had some nodegyp update

#

and its not properly linking the required libraries

#

you'd have to wait on them to fix it unless you want to try go manual

#

i dont have much nodegyp config experience

#

and very typical of discord to ignore the c++ warnings lmao

waxen bough
#

Due to how my code was built i just did this now it works thanks

const bindRreply = () => (interaction.replied || interaction.deferred ? interaction.editReply : interaction.reply).bind(interaction)
await interaction.deferReply()
trail finch
#

guys thx for ur help! I did it!

split hazel
#

actually @stable eagle

#

i was thinking about making a pr to fix it but people already did it

#

you might want to try installing the pull requests

stable eagle
#

Hmm

split hazel
#

npm install discord/erlpack#pull/41/head

#

try that

#

@stable eagle

#

but yeah as i thought they just had to upgrade the c++ version in the nodegyp config

stable eagle
#

It worked

split hazel
#

and when discord officially releases a fix for it you should move back to discords branch

inner hollow
#

are there the new interactive buttons in discord.py ?

clever agate
#

how do you sort the descending order in mongodb? (js)

quartz kindle
#

honestly erlpack is not even worth it

#

you get like 10% better compression at the cost of being 3x slower

split hazel
#

i disagree

#

you have to have the best bottum compression to stand out from the crowd

true ravine
#

Small botum data = big p.....

forest drift
#

So i know you can make slash commands in discord.js v12, but how do you make a slash command that only the sender can see?
like the .reply slash commands in v13 but for v12

lyric mountain
wheat mesa
#

Why not just update to v13

#

Ephemeral flags on the message ^^

#

I assume v12 allows you to specify flags when responding to slash commands

forest drift
forest drift
wheat mesa
#

Perhaps you should just update to v13 and not have to come up with janky solutions for a non updated library version mmulu

lyric mountain
#

and ye, update to v13

forest drift
#

ah

lyric mountain
#

v12 is already obsolete

forest drift
#

also i enjoy the challenge

lyric mountain
#

v12 is already in coma

lyric mountain
#

just a few more months and it's ded

wheat mesa
#

As much as I dislike using djs now, if you’re gonna use it you might as well update to the most recent stable release

cinder patio
#

you don't love v12

#

you're just lazy

forest drift
#

how do u add tags again ;-; i dont think ive ever worked with them

cinder patio
#

tags?

lyric mountain
#

tags?

wheat mesa
#

I think he meant flags

lyric mountain
#

ah, ephemeral tag ig

#

ye, flag

forest drift
#

*flags

lyric mountain
#

but really, UPDATE to v13

#

I'm not joking when I say it IS in coma and about to die

#

remember how it was with v11 -> v12

forest drift
#

fine ill start switching this weekend

wheat mesa
#

It would take you a few minutes to switch most likely

forest drift
#

that quick?

lament rock
#

v12 is still on api v8 which won't be deprecated for a while

forest drift
#

oh ok

#

thanks

lament rock
#

v9 is still "new"

wheat mesa
#

There’s not many breaking changes

forest drift
#

ok nvm waffle im staying ;)

#

for now

earnest phoenix
forest drift
#

ill probally switch in a month or so when a bunch of stacked overflow questions/answers are updated

lament rock
#

That's not the way to go about things

wheat mesa
#

If you rely on stackoverflow to answer everything then you should probably think outside the box more

lament rock
#

You should learn to read the docs and make comprehensive design and coding decisions on your own

wheat mesa
#

The djs docs are really nice

forest drift
#

i forget a ton of stuff and after finding the answer on stacked overflow i can remember without having to read the whole thing again

lament rock
#

I wish fabricmc had good docs like djs

forest drift
#

anyway, cyall

wheat mesa
#

The overhaul for the detritus docs is looking quite nice from what I’ve seen so far

lament rock
#

reject managed libs. Embrace modular and cacheless

wheat mesa
#

I cache n o t h i n g

lament rock
#

Then do not use libs based on cache

wheat mesa
#

Detritus isn’t based on caching

lament rock
wheat mesa
#

Is it?

lament rock
#

Press x to doubt

wheat mesa
#

There’s caching options, but I’ve disabled them

lament rock
#

whats your guild count and memory usage

wheat mesa
#

Like 30 guilds and something around 100mb ram usage

earnest phoenix
#

I use d.js guild count 6.4k and 2gb ram is needed

lament rock
#

Oh my god why

wheat mesa
#

Most of it from nodejs itself

lament rock
#

Node internals only take 30MB max

wheat mesa
#

Not sure about that

lament rock
#

I can guarantee you. I made a lavalink rewrite in node and idle occupies 70MB. Most coming from require cache

wheat mesa
#

I was told it’s normal for node itself to take anywhere from 40-80mb

lament rock
#

Not normal

wheat mesa
#

¯_(ツ)_/¯

#

Since I’m not caching anything the RAM usage basically never changes

earnest phoenix
#

Deno uses only 2mb for internal stuff
Node uses 17 mb ram
On a console.log("hello"); script

wheat mesa
#

I could have a problem with a memory leak or something as well

#

Not sure

#

Haven’t looked into it in a while

#

Currently rewriting for slash commands exclusively

#

So then probably won’t take as much ram

lament rock
#

dev instance of my main bot

#

4 shards total on both instances

wheat mesa
#

What library are you using

lament rock
#

CloudStorm and SnowTransfer (forks)

#

Wrapping those into a discord.js-like layer I made

long crow
#

Anyone know if this error will give dependancy conflict or not? I'm skeptical seeing the red word

lament rock
#

I think you'll have to install 0.5.0 since it deduped prism-media, but installed 0.6.0

long crow
#

Yeah, the latest version for opus is 0.6.0, but I can revert it back to 0.5.3, little skeptical seeing that red word

lament rock
#

Probably just hates seeing a different minor ver

wheat mesa
#

The process uses ~100mb on my VPS whenever I use top

wheat mesa
#

Yeah

lament rock
#

that's the way to get real memory usage