#development

1 messages · Page 692 of 1

earnest phoenix
#

discord has a built in nsfw filter

#

which doesn't work well

lusty dew
#

Yea

earnest phoenix
#

it flags screenshots from doki doki as nsfw

#

lol

lusty dew
#

🤣

idle basalt
#

but yes its definitely a feature that you can implement if youre interested

cloud rapids
#

Doki doki?

#

DOKI DOKI?

#

DOKI- Okay I stop.

lusty dew
#

Yea

#

That website using the npm package I was talking about @idle basalt

idle basalt
#

ah well there you go

lusty dew
#

I think it was made by the same developer who mad the package

#

Made*

idle basalt
#

given that its the official website for the package, i wouldnt be surprised lol

lusty dew
#

Wait really

idle basalt
lusty dew
#

🤣

idle basalt
#

lol

lusty dew
#

Forgot what I was gonna say

#

Oh yea

#

Anyone know any good sources to learning game development

#

All the ones I watch are shit

#

They just make the game and don’t really explain what they are doing

idle basalt
#

well not much game dev happens in js

lusty dew
#

I mean outside of js

#

Like C# or C++

idle basalt
#

i dont do that so i cant help you find any resources. i was just pointing out that if you were looking for js game dev there isnt much

lusty dew
#

Can’t remember which unity uses

#

Cool thing btw I saw someone make a Tetris game with html, css and js

#

Only game dev with js I’ve seen though

idle basalt
#

p sure unity is c#

#

you can do game dev with js its just not very good at it

lusty dew
#

Yea.

#

Lol

#

Unity uses c#

#

I tried learning c#

#

Just didn’t get it

idle basalt
#

unreal is the main engine for cpp

#

i only know js/html/css big oof

lusty dew
#

Oh cool

#

How much css and html do you know?

earnest phoenix
#

unity had a dark age of mono

#

it's finally adapting to net core

idle basalt
#

i dont know how to quantify that

lusty dew
#

Like

idle basalt
#

theres no percentage lol

lusty dew
#

Are you proficient at it? Can you make small websites

idle basalt
#

yea

lusty dew
#

Didn’t mean to word it like that lol

idle basalt
#

im making one right now lol

lusty dew
#

Oh neat

#

I’m trying to make one

#

But I’m limited at to what I can and can’t do

idle basalt
#

thats ok youll learn

lusty dew
#

I know html and css

modern elm
#

For anyone who can help:
I have a test help command that uses reactions to navigate through it, but the inly thing working atm is deleting the message, im not able to remove reactions or edit the message it would seem...

Link to code:
https://pastebin.com/RK9MGZbM
No Errors.

#

Please ping or DM

lusty dew
#

Why not watch the chat for an answer instead

modern elm
#

wdym

#

no one answered me FatThonk

lusty dew
#

Me personally I wouldn’t ping you

modern elm
#

oh

#

ok

lusty dew
#

I’d just give you an answer

idle basalt
#

you dont really need js to make websites

modern elm
#

ok

idle basalt
#

well, static ones

lusty dew
#

I mean

#

It is for my discord bot

#

So I’m struggling with oauth2

earnest phoenix
#

SPA websites are starting to overtake the market

modern elm
#

so

#

no answer

lusty dew
#

And another limitation of mine is no pc

modern elm
#

just a telling off for not posting properly FatThonk

lusty dew
#

So it’s hard to code a website

idle basalt
#

single page gang gang

#

i only do single page

earnest phoenix
#

same

#

which framework

idle basalt
#

none blobembarrassed

lusty dew
#

I’ve handled being able to code the bot with a vsc server my friend is running on his server

earnest phoenix
#

big oof

#

i'm in love with react's hook system

lusty dew
#

But the website will be harder cause using the vsc server I won’t be able to see what I’m doing as I’m doing it

idle basalt
#

in case you were interested in doing the same

modern elm
#

@idle basalt nice pfp

idle basalt
#

ty lol

modern elm
#

lmao

idle basalt
#

react without hooks is smh my head

modern elm
#

so um

#

can anyone pls help mem

lusty dew
#

But it kept pissing me off 😂

#

I wish I could help you but I’m not good with reactions lol.

idle basalt
#

ye same ive never worked with them

modern elm
#

ok

#

thx anyway

lusty dew
#

Np

#

Ask I’m the official d.js server

#

If no one answers here

idle basalt
#

max: 1

#

this seems like the problem

lusty dew
#

@idle basalt Any idea how I could code a website on my tablet

idle basalt
#

youre only waiting for one reaction

lusty dew
modern elm
#

yeh i probably should join the djs server

idle basalt
#

i have no idea man i have a computer lol

lusty dew
#

Rich kids smh

#

Kek

modern elm
idle basalt
#

kids Thonk

modern elm
#

its easiest

lusty dew
#

I’m kidding

modern elm
#

cross platfor mtoo

earnest phoenix
#

you really can't do any kind of deving on a mobile device

modern elm
#

and online

#

as long as u have a keyboard

#

ur good

lusty dew
modern elm
#

ik

#

but still

#

ur using a tablet

#

which is gay

earnest phoenix
#

glitch is horrible

modern elm
lusty dew
#

I mean I coded most of my bot on my tablet

#

The bot is ass but ya know

idle basalt
#

sell tablet buy chromebook

modern elm
#

lol

#

yes

lusty dew
#

Not my fault I’m just bad at styling embeds

#

NOOO

modern elm
#

@idle basalt had good idea

#

sell tablet

#

buy pc

#

OR

sudden geyser
#

install chromebook on tablet

modern elm
#

go to school that gives students pc

lusty dew
#

Then I wouldn’t be able to play my game that is dead and full of hackers

modern elm
#

lol

idle basalt
#

which game is that lol

earnest phoenix
#

emulators

lusty dew
#

Forward Assault

#

;)

modern elm
#

@earnest phoenix ur pfp hurts me

earnest phoenix
#

thank you

idle basalt
#

never even heard of it beautiful

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

lusty dew
#

Lol

#

Install chrombook on tablet

modern elm
lusty dew
#

Is that even possible

modern elm
#

yes

#

chrome OS

lusty dew
#

👀

earnest phoenix
#

chromium is

#

meh

lusty dew
#

But is it for a Apple product

modern elm
#

um

#

idk

sudden geyser
#

you can do a lot of weird stuff with a tablet

#

like eat it

idle basalt
#

chromium is the best ❤

lusty dew
#

If I’m ever that hungry

earnest phoenix
#

apple TM

lusty dew
#

I’ll def do it

earnest phoenix
#

apple ppsh

#

best os? Win 8 RT

#

stands for Windows 8 Really Trash editition

modern elm
#

apple > anything else

#

lmao

#

actually

idle basalt
#

depends for what

lusty dew
#

Mm so true

earnest phoenix
#

apple is for the braindead

modern elm
#

thats not necessarily tru

idle basalt
#

tablets for sure

modern elm
#

iPad > tablet

earnest phoenix
#

Apple > Anything Else
Apple < Any other company's practices

lusty dew
#

Apple is good for tablets

modern elm
#

iPhone > any other smartphone

earnest phoenix
#

$999 stand, anyone?

idle basalt
#

phones? depends what youre using it for
computer? again it depends what youre using it for

modern elm
#

Mac > Dell & HP

dusky geode
#

Uhh

lusty dew
#

And some of their phones were not that bad

dusky geode
#

this is development channel

#

not off-topic

earnest phoenix
#

ok and

idle basalt
#

this is very spicy opinion

earnest phoenix
#

Remember when Apple limited the clock speed of the Mac II GS

modern elm
#

tru

lusty dew
#

We are talking about development

earnest phoenix
#

just so that it wouldn't compete with the Mac Plus or whatever

lusty dew
#

Development on a tablet

dusky geode
#

ahh ok

earnest phoenix
#

I just don't like apple because you have to have a mac to build for their garbage

modern elm
#

@earnest phoenix tbh Apple is gay as hell, but still the best software out there

idle basalt
#

ye its annoying

modern elm
#

hardware is

#

meh

earnest phoenix
#

apple bases their products on simplicity, their products appeal to audiences who'd rather have "one click apps" rather than robust and customizable programs

lusty dew
#

Wdym you have to have a Mac?

earnest phoenix
#

Software? I disagree

#

Apple Music is bung

idle basalt
#

luckily macs have quite a few advantages over pcs if youre a developer

modern elm
#

@earnest phoenix um, have u ever heard of bash

idle basalt
#

unless of course you just use linux then you have everything

modern elm
lusty dew
#

Thus is true

modern elm
#

@idle basalt 100%

#

yes

earnest phoenix
#

Linux is kind of garbage imo

lusty dew
#

I need a Linux system

modern elm
#

Linux is ass

lusty dew
#

I mean

#

Linux is good for development

modern elm
#

Mac > anything else (from a developers standpoint)

earnest phoenix
#

Like i installed ubuntu 18 or whatever and there wasn't nearly any software for it

idle basalt
#

ubuntu sucks

lusty dew
#

Kek

idle basalt
#

linux is really only for work

modern elm
idle basalt
#

its not a very user-friendly system

earnest phoenix
#

linux makes me sad

#

I installed it on my other computer

modern elm
#

imagine using rsapberry pi

idle basalt
#

if you only run linux for dev shit its great

modern elm
#

raspberry pi*

earnest phoenix
#

but I couldn't install anything

#

but that's my fault apparently that computer uses an i386 lmao

modern elm
#

but wait

lusty dew
#

Raspberry pi's suck ass

modern elm
#

@earnest phoenix can u help pls

earnest phoenix
#

Perhaps

idle basalt
#

your problem is (likely) the { max: 1 }

lusty dew
#

Lol

modern elm
#

mk lemme find message link rq

lusty dew
#

Yea you’re only getting 1 reaction no?

idle basalt
#

from what i see youre only collecting the input on 1 emote

lusty dew
#

You have 3

modern elm
#

For anyone who can help:
I have a test help command that uses reactions to navigate through it, but the inly thing working atm is deleting the message, im not able to remove reactions or edit the message it would seem...

Link to code:
https://pastebin.com/RK9MGZbM
No Errors.

#

im getting all reactions

idle basalt
#

:o

modern elm
#

but only the trash emote is working

earnest phoenix
#

sox m8 I don't know anything about reactions

lusty dew
#

Maybe it’s a sign

modern elm
#

oh

idle basalt
modern elm
#

@lusty dew hahaha

#

🙄

earnest phoenix
#

the only thing iab will do is add ❌ and ⭕ to messages starting with 'petition'

idle basalt
#

does it get into the ifs

lusty dew
#

Lol

modern elm
#

ifs?

idle basalt
#

the farthest ive gone with reactions is attaching them to a message and doing nothing

west spoke
#

what the fick

lusty dew
#

If statements and such

west spoke
#

who ghost pinged me

modern elm
#

Neko

#

pls dont yell at me for being ass coder

lusty dew
#

Spider iirc

modern elm
#

xD

lusty dew
#

@west spoke

idle basalt
#
if (reaction.emoji.name === '⏪') {
            await removeReaction(m, message, '⏪');
 
            if (page !== min) {
                page -= 1;
                await m.edit({ embed: pages[page] });
            }
 
            awaitReactions(message, m, options, filter);    
        }
        else if (reaction.emoji.name === '⏩') {
            await removeReaction(m, message, '⏩');
 
            if (page !== max) {
                page += 1;
                await m.edit({ embed: pages[page] });
            }
 
            awaitReactions(message, m, options, filter);
        }
        else if (reaction.emoji.name === '🗑') {
            await m.delete();
            return;
        }```does it get into all of the ifs?
earnest phoenix
west spoke
#

@loud salmon ghost pinG

lusty dew
#

He pinged you with an image

loud salmon
#

shshshs

lusty dew
#

Lol

modern elm
#

it only works with the trash emote

loud salmon
#

i posted it in the wrong channel

modern elm
#

idk why

lusty dew
#

Spider got busted

west spoke
#

lol

earnest phoenix
#

now we run our insurgency

idle basalt
#

check your if statements

lusty dew
#

@modern elm because it’s saying your coding is trash

#

Jkjk

modern elm
#

lol

idle basalt
#

run the best debugger ever: console.log('i got here') every line

lusty dew
#

You should see my coding mmLol

topaz fjord
#

It works @idle basalt

earnest phoenix
#

oh this is js lmao

modern elm
#

@idle basalt lmao

topaz fjord
#

So there's nothing wrong on doing it

earnest phoenix
#

i don't know js

lusty dew
#

Lmao

earnest phoenix
#

c#gang

modern elm
#

i like it ima do that rn

topaz fjord
#

ur a c# nerd

modern elm
#

C# is dope

#

ngl

topaz fjord
#

I'm a kotlin nerd

lusty dew
#

@earnest phoenix teach me c#

topaz fjord
#

I was with js

lusty dew
#

:)

earnest phoenix
#

okay what you do is you install c#

topaz fjord
#

But fuck js mmLol

earnest phoenix
#

and then google like hell

lusty dew
#

LMAO

idle basalt
#

sounds like all languages

lusty dew
#

Yup

#

I wonder what the first programming language is

idle basalt
#

machine code

earnest phoenix
#

cry when VS downloads the C# runtime into your project folder

#

making your project folder .5GB

lusty dew
#

And whoever made it was either smart or dumb and just put a bunch of random things together

earnest phoenix
#

i mean the C compiler was written manually

#

with switches

topaz fjord
lusty dew
#

Short code

#

Lovely name

topaz fjord
#

yes

earnest phoenix
#

short code to me means

#

int i=0;

lusty dew
#

Lol

earnest phoenix
#

not int i = 0;

idle basalt
#

why bother with int

modern elm
#

wait

#

i got an error this time

idle basalt
#

use a normal language without types

#

tyvm

modern elm
#

it was the reactionRemove() function

earnest phoenix
#

no

modern elm
#

m.reactions.find(...).users.remove is not a function

earnest phoenix
#

i don't like python lmao

modern elm
lusty dew
#

When in js you can do const variable = 0

idle basalt
#

actually you can just do variable = 0

earnest phoenix
#

i had enough fun writing spintext in python lmao

idle basalt
#

let const and var are optional

lusty dew
#

That’s a global variable though?

topaz fjord
#

yes it is

idle basalt
#

i didnt say it was good practice

lusty dew
#

Lol

#

Makes every variable s global variable

#

Kek

earnest phoenix
#

hours of pain

topaz fjord
#

What the fuck is this shit

idle basalt
#

why arent all the variables named x

topaz fjord
earnest phoenix
#

it sets up a blender scene for making spinning text

idle basalt
#

come back to me when all the variables are named x

topaz fjord
#

well I found your first issue

#

you used fucking python

earnest phoenix
#

you have to use python for that

topaz fjord
#

your a good language you normie

#

*use

lusty dew
#

I’ll name all my variables x if you talk to me @idle basalt

earnest phoenix
#

fucking call me when Blender implements running lua scripts on startup boi

idle basalt
#

hi

lusty dew
#

Lol

topaz fjord
#

Fucking call me when you don't use Lua or python

earnest phoenix
#

also it supports textures

lusty dew
#

Lua is bomb wym

topaz fjord
#

Lua is gay

lusty dew
#

I love lua

earnest phoenix
#

lua is epic

lusty dew
#

Used it for roblox mmLol

earnest phoenix
lusty dew
#

That image doesn’t belong here

earnest phoenix
#

It's contextual

#

i'm gun_kirbying Turtle lmao

lusty dew
#

It’s still shitpost no?

topaz fjord
#

I'll gun Kirby you

earnest phoenix
#

mmm

idle basalt
#

minimod REE1REE2

earnest phoenix
#

Not sure that I'd call it a shitpost

lusty dew
#

Lol shush syztum

#

I don’t want anyone muted or warned

#

😂

earnest phoenix
#

yeah

#

I mean I get not to just randomly post memes but I think if they're contextual it's probably not that big of a deal

#

that and they're not obnoxious

lusty dew
#

Yeee

#

Time to post my 30gb meme folder

earnest phoenix
#

o shit

lusty dew
#

On a pc with a keyboard that doesn’t work nor connect to the internet

topaz fjord
#

30gb meme folder

lusty dew
topaz fjord
#

I have a 500gb porn foldwe

lusty dew
#

Lol my hentai folder beats that

earnest phoenix
#

the way that sentence is structured it makes me think your keyboard doesn't connect to the internet

#

peasant

lusty dew
#

Lmao

#

On a ofc that has a non working keyboard and the pic also doesn’t connect to the internet

#

Is that better peasant

earnest phoenix
#

no

#

not until your keyboard can post to Twitter without your permission

lusty dew
#

Lol

earnest phoenix
#

and it posts exclusively your passwords

#

but not what they go to

lusty dew
#

It already opens up porn on its own

earnest phoenix
#

just your passwords

lusty dew
#

Only thing that works on it is the touch screen

#

Someone spilled milk on it

#

Yet it powers on

earnest phoenix
#

lmao

#

what do you think the milk just stays wet in there?

lusty dew
#

I mean

#

I’d think it would fry everything

#

And not just the keyboard

#

Cause ya know liquid and electronics don’t mix well

topaz fjord
#

I feel like this is getting off topic

earnest phoenix
#

god damn it kawaiipanda now I have to look up "is milk conductive"

topaz fjord
#

maybe we should switch back to why python is shit

lusty dew
#

LMAO

#

Yea

#

Well

#

Python is shit because idk how to use it

earnest phoenix
#

python is shit because it doesn't have a great debugger

topaz fjord
#

Also it is a bit conductive according to google

earnest phoenix
#

yeah

topaz fjord
#

Because of salt

lusty dew
#

Though python is kinda cool

topaz fjord
#

would u say the pycharm debugger makes up for it @earnest phoenix

lusty dew
#

I made a keylogger with python after googling a bunch of shit

earnest phoenix
#

i feel like a debugger shouldn't be third-party lmao

topaz fjord
#

I don't like python either way

lusty dew
#

I use notepad++

topaz fjord
#

You can make a keylogger with jni

lusty dew
#

You can make one with c# as well

topaz fjord
#

I use something written in jni to detect hotkeys

lusty dew
#

I’ve made many things in c#

#

And I forget everything

#

So I basically don’t know c#

#

😂

#

Which aggravates me cause I’ve watched video after video on c# even read some stuff on it and I just can’t take any of it in

valid frigate
#

if you basically have a good grasp on oop it's not that hard

#

just like learning any other language

lusty dew
#

Js I kinda understand

#

I’m just not good at piecing things together

knotty steeple
#

??

lusty dew
#

Lol

#

They left

broken shale
#

does c++ even have docs somewhere?

modern elm
#

So uh

#

I need help

#

cause im stupid

#

someone pls help

#

its reactions

broken shale
#

what lib

knotty steeple
#

whats ur problem

#

just state it

modern elm
#

Okay

#

lemme paste

#

Code:
https://pastebin.com/RK9MGZbM
Error:
m.reactions.find(...).users.remove is not a function

lusty dew
#

Why did you put the link in code blocks

#

Kek

modern elm
#

idk

lusty dew
#

Makes us mobile users harder to access it

modern elm
#

wait

#

perfect

#

there we go

broken shale
#

I think you're making this command way too complicated for what it's worth

lusty dew
#

^

modern elm
#

Yeah FatThonk

earnest phoenix
#

now just place your link inside of <> to remove the embed and you've achieved balance

modern elm
#

but then it will be a template for all reaction based commands

lusty dew
#

Are you trying to do pagination?

modern elm
#

@earnest phoenix How do I do that?

lusty dew
#

Just told you

#

<link>

modern elm
#

:O

#

Beauty

#

gtg fr a sec brb

broken shale
#

also it's <message>.clearReactions() for stable

#

not sure if you can clear specific reactions

lusty dew
#

You can for users I think

broken shale
#

just filter it

knotty steeple
#

ooh

#

ill steal this code

broken shale
#

lmao

modern elm
#

uh oh

#

code theft eyesBOOM

#

@broken shale according to docs you can clear them the exact way im trying to FatThonk

broken shale
#

well according to node it says otherwise

#

and there's a 1 liner to how to remove a specific user's reactions but I can't spoonfeed

modern elm
#

@broken shale spoonfeeding isnt a bad thing if it is related to exact notation

#

imo

earnest phoenix
#

anything's a oneliner if you remove newlines

modern elm
#

@earnest phoenix lmao

#

w0w

#

pls snipe

#

damnit

broken shale
#

nice try

modern elm
#

<message>.clearReactions().then(x => x.remove(id))

#

hehehe

broken shale
#

you aren't learning ¯_(ツ)_/¯

#
  • not even sure if it will work in your case
modern elm
#

it wont

broken shale
#

cuz idek what you're adding

modern elm
#

my purpose isnt to clear all the reactions, just to remove the specific reaction

broken shale
#

not possible with d.js

modern elm
#

not according to docs...

broken shale
#

according to docs

modern elm
#

message.channel.fetchMessage(messageID).then(msg = m.reactions.get(reactionID).users);

#

ima try that ig

broken shale
#

Won't work

modest escarp
#

Hello

modern elm
#

@broken shale it worked!

#

jk

#

it didnt

#

lmao

lusty dew
#

Rip

modern elm
#

wait

#

this time the error was missing permissions

#

so

#

im getting somewhere

lusty dew
#

Your bot doesn’t have the proper permissions or you’re a pleb without the proper permissions

opaque eagle
#

haha

broken shale
#

also confirmed by monbrey and my memory you can't remove specific emojis

lusty dew
#

When we question if this is truly his bot

#

Jk

broken shale
#

you can
A. clear all reactions
B. remove a specific user from it

modern elm
#

@broken shale

#

it worked

#

this time for real

lusty dew
#

Does anyone wanna help me code a bot in scratch

broken shale
#

scratch = ew

earnest phoenix
#

i really doubt js message.channel.fetchMessage(messageID).then(msg = m.reactions.get(reactionID).users); worked

modern elm
#

kawaii lmao

#

scratch = ass

broken shale
#

ikr fripp

modern elm
#

@earnest phoenix if u want i can invite u to a server

lusty dew
#

Scratch = bby

modern elm
#

where i can demonstrate it working

lusty dew
#

We good

earnest phoenix
#

that code is syntactically incorrect

modern elm
#

welp it worked

broken shale
#

I think you need to learn js more

modern elm
#

so fuck me

lusty dew
#

We don’t wanna see your hentai collection

modern elm
#

whoops

#

i posted it wrong here

lusty dew
#

Lol

modern elm
#

message.channel.fetchMessage(m.id).then(() => {m.reactions.find(r => r.emoji.name == emoji).remove(message.author.id)});

#

thats what it actually was lmao

earnest phoenix
#

🤔

modern elm
#

and its working

#

so

#

:)

earnest phoenix
#

im assuming it's only working because the message is cached

modern elm
#

no

#

sort of

broken shale
#

anyways anyone have links to c++ docs because I'm starting to think it's non existent

earnest phoenix
#

restart your bot and try again

modern elm
#

wdym

lusty dew
#

@broken shale you’re right it is

modern elm
#

ok

lusty dew
#

I haven’t found any c++ docs either

broken shale
#

wait fr c++ docs is non existent GWmemetownOMEGALUL

modern elm
#

bot has been restarted

lusty dew
#

I’m pretty sure

#

I haven’t found any documentation on it

modern elm
#

no it still worked

earnest phoenix
#

well, you do realize you aren't using what's returned from the fetchMessage?

modern elm
#

i aint finna complain

#

if its working

earnest phoenix
#

alright

modern elm
#

but now it wont continue

#

it seems to be ending the process lmao

lusty dew
#

Then it doesn’t work

modern elm
#

no it works

#

jesus

#

why r u guys so against me using that code

lusty dew
#

If it keeps ending the process that’s not good

earnest phoenix
#

because it doesn't make any sense

lusty dew
#

How does that even remotely sound like it’s normal

modern elm
#

ok its not returning

#

that codeblock is working

#

the next error is in editing the message

#

which im bouta fix

lusty dew
#

Okay you don’t need to post updates kek

fallow osprey
#

U

modern elm
#

lol

lusty dew
#

I like how github hasn’t responded to my request for the student developer pack it’s been over a week and they said 1h to 5 days

earnest phoenix
#

mine got instantly approved

broken shale
#

I had to wait ~2 weeks

#

After I sent them an email GWmythiBlobLUL

modern elm
#

student dev pack?

earnest phoenix
#

it varies whether your school domain is on the swot list or not

modern elm
#

what is this?

broken shale
#

mine is an edu

earnest phoenix
#

thonk

modern elm
earnest phoenix
modern elm
#

ADVERTISING AHHH

earnest phoenix
#

ok

modern elm
#

lol

#

im jk

earnest phoenix
#

ok

lusty dew
#

Oh it’s only for universities

broken shale
#

no?

lusty dew
#

You can be in Highschool and get approved?

broken shale
#

yes

earnest phoenix
#

any education level counts

lusty dew
#

Oh okay

broken shale
#

any

#

you need an id

lusty dew
#

So 1st grade

#

Got it

#

Looks like I’ll be approved

#

Kek

earnest phoenix
#

you don't need an id

broken shale
#

1st grade here = ban on discord 👀

lusty dew
#

You only need proof of attendance

earnest phoenix
#

yes

#

you just need to be legally registered in the system

#

the rest of data is pulled by the team

lusty dew
#

I have several things that could be proof of attendance:
School schedule
School ID
Report cards
Etc

broken shale
#

I think edu are prioritized first or something in approval idk how true that is

earnest phoenix
#

nah

lusty dew
#

Nah they just lazy

earnest phoenix
#

i have an @skole.hr which is croatia's version of an edu email

#

it got approved almost instantly

#

i guess there are just a ton of kids applying right now

lusty dew
#

Lucky

earnest phoenix
#

especially with the newest additions

lusty dew
#

New editions?

broken shale
#

additions*

earnest phoenix
#

this year's gh student pack introduced more services

lusty dew
#

I know it autocorrected

#

Oh cool

#

I heard you get free domains from it by several people

earnest phoenix
#

yeah

lusty dew
#

But idk how true it is

#

Oh really

#

It’s not like a github page right?

#

It’s an actual domain that you can choose the name of

amber fractal
#

it's a .me domain

#

iirc

#

and you can just look at the perks yourself

broken shale
#

Wait fr :poggy:

earnest phoenix
#

free .me domain for a year from namecheap and a free domain from name.com from a list of 25 TLDs

lusty dew
#

Oh cool

#

I was gonna by my own domain for 9$ for two years

amber fractal
lusty dew
#

Off of godaddy

earnest phoenix
#

godaddy is big scam

#

oh yeah you also get a free .tech domain

amber fractal
#

no free .dev domain

#

sad

lusty dew
#

👀

amber fractal
#

that'd be nice

#

but I mean I already paid for mine

earnest phoenix
#

they're relatively cheap

broken shale
#

I cba making a website

#

Might end up doing one who knows

earnest phoenix
#

you can also get a .dev domain from name.com

lusty dew
#

What’s working copy

#

It says it’s a git thing or whatever

earnest phoenix
#

git client

#

basically it's pocketgit but ios

lusty dew
#

Ah mk

#

I’m so tired but I gotta work so much on my bot kek

#

I wonder why User count goes up and down all the time

#

Like it will go from 45k to 20k in a matter of seconds

#

But the guild count stays the same

#

And I doubt 25k people are leaving a server all at once

dusky geode
#

25k people leave and join a guild at the same time @lusty dew

lusty dew
#

Sure about that

#

Like at the exact same time

modern elm
#

The help command is now fully functional :)

dusky geode
#

@lusty dew yes

#

its called a server being deleted

#

then the bot joining a popular server

lusty dew
#

Doesn’t make sense but okay

west raptor
#

@lusty dew one or some of your guilds might be having outages

lusty dew
#

Yea didn’t think about that

#

Discord has been having a lot of outages for me at least

#

This server goes out every now and then for hours at a time

broken shale
#

c++ is not that bad imo

#

syntax similar to js

lusty dew
#

I wish I knew it kek

broken shale
#

what lang you use?

lusty dew
#

Js

#

But I wanna branch out

broken shale
#

Same

lusty dew
broken shale
#

Currently learning py and c++

lusty dew
#

I found this though idk how helpful that is

broken shale
#

probably somewhat helpful

lusty dew
#

Yea

#

Last time I checked google for documentation on c++ I found nothing

broken shale
#

Kinda feel I'm going to wing learning c++ off from my limited java knowledge and js

#

I still think js is easier than py

#

¯_(ツ)_/¯

lusty dew
#

Lol

#

Yea

broken shale
#

or maybe it's just me GWcorbinHolyFuck

lusty dew
#

Js is easier

#

Do you know any c++ @broken shale

broken shale
#

nope just literally started today 30mins ago

lusty dew
#

What are you using?

broken shale
#

codeacademy since I can't find anything else

lusty dew
#

Oof is it free?

broken shale
#

yea

lusty dew
#

Oh thank god

#

Kek

inner jewel
#

c++ isn't that similar to js besides the very basics of the syntax

unkempt heron
#

dvssd

#

dsv

#

dsvxdsvsssss

amber fractal
#

k

#

can you not tho?

lusty dew
#

@unkempt heron if ya don’t need help or aren’t talking about development #memes-and-media

broken shale
#

I think I can get the hang of c++

#

though setting it up in vsc is a hassle

inner jewel
#

for c/c++ i just use vim

lusty dew
#

Oof

#

I’m going to figure out how to extend onto TextChannel in master

#

Kek

inner jewel
#

although tbf i'm using vim for almost everything now since opening a terminal takes less than a second

lusty dew
#

Lol

#

Same with vsc

#

There’s a hot key

#

Can’t remember it

#

Iirc it’s ` + t

#

Or just `

inner jewel
#

yes

#

but opening an editor takes longer than opening a terminal and running vim

lusty dew
#

Lol

valid frigate
#

gl on c++

broken shale
#

What's the jetbrains IDE

valid frigate
#

clion

#

iirc you need to setup the compiler yourself

broken shale
#

yep

valid frigate
#

but otherwise it handles everything else

#

you should learn about in depth c++ though

#

like how an executable is made etc

broken shale
#

Where are the docs for C++

valid frigate
#

idk really lmao

#

i started learning a few months ago

broken shale
#

C# -> unclear docs a bit C++ -> No docs?

valid frigate
#

its like split into chapters n shit

broken shale
#

:o thanks

valid frigate
#

yeah np

broken shale
#

Was looking for some resources

inner jewel
#

also linux man

#

both document pretty much everything

valid frigate
#

id say for beginners the documentation doesnt exactly provide much of a use unless you know what you're looking for

inner jewel
#

that's what google/stackoverflow are for

valid frigate
#

but i actually didnt know linux had builtin documentation for c++ stuff lmao

#

is it?

#

actually wait

inner jewel
#

man isn't just linux docs

valid frigate
#

yeah thats what i was about to say

inner jewel
#

it's docs for everything that bothers providing man pages

#

that one comes from libstdc++

valid frigate
#

id assume the standard library would be basically a part of linux by now

inner jewel
#

the c++ one isn't

#

linux doesn't use c++

valid frigate
#

ah

#

id still consider myself new to c++ this is some enlightening knowledge

#

knowing man has references

lusty dew
#

Does anyone know how Structures.extend works?

#

I mean I have the basic setup for it

#

But I’m trying to create my own send function

#

And idk what parameters to pass

lusty dew
#
Structures.extend("TextChannel", TextChannel => {
    class ClapTextChannel extends TextChannel {
        constructor(guild, data) {
            super(guild, data);
        }

    send(content, options, languages) {
        //do translation to modify the content
        super.send(content, options, languages);
    }
}
#

I have this so far

#

But I’m not sure what to do with content and options and languages.

#

Languages I have an idea of what to do with.

#

Maybe make an array inside the send function like:

let languages = [{
en: 'english',
ru: 'russian'
//etc
}]```
earnest phoenix
#
//вот тут надо - _-
let Discord = require('discord.js')

const prefix = "js!"

exports.run = async (bot, message, args) => { // достаём функции
  if(message.content == "js!test")
  message.channel.send('ховно') 
}
exports.help = { // экспорт команды в коллекцию
  name: "test" // имя команды
}

Help pls

earnest phoenix
#

Yes

#

Don't work

#

This is in test.js

#

Amm

#

That not in this bot

#

That in test bot

slender thistle
#

Why does it matter

#

You are supposed to get an error in either bot

lusty dew
#
Structures.extend("TextChannel", TextChannel => {
    class ClapTextChannel extends TextChannel {
        constructor(guild, data) {
            super(guild, data);
        }

    send(content, options, languages) {
        //do translation to modify the content
        super.send(content, options, languages);
    }
}

I’m making my own class extended onto TextChannel, I’ve ran into a speed bump of how I can define content, options and languages

#

Basically making my own send function so when and if some server owner or admin chooses to change the language of the text in the bot it will translate to that chosen language

#

I’m saving their choice to a db

#

I’m using d.js master by the way

#

Mk I don’t get why you responded then but okay

fierce thorn
#

maybe there's nothing for that guild in that json file

#

try console logging langue

quiet rapids
#

Is it normal that a prefix set in a JSON file is defined as [object Object]?

#

(I'm doing a Discord.js bot btw)

earnest phoenix
#

Then, use db system 200IQ

quiet rapids
#

I fixed it, thanks anyway ^^'

earnest phoenix
#

.

covert turtleBOT
#

Please do not post dots to clear your messages/get attention. It adds absolutely nothing to the conversation and just causes spam If you need to get attention, then say hello everyone. If you need to clear your messages, then press the Esc key. If you do not follow these instructions you will be muted.

hidden cargo
#

I need help, I have made a command which will choose a random picture in an link and the code is as follows. And after many things it says is wrong it says "(node:21648) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)" (4 was just in this case) how should I fix this/code so it works?...

earnest phoenix
#

(discord.js) dbl How do I vote with if with webhook? Can someone do it and throw it away? I tried, but not

#

𝓗𝓮𝓷𝓽𝓪𝓲𝓜𝓪𝓼𝓽𝓮𝓻/𝓣𝓻𝓪𝓹𝓹𝓮𝓻𝓕𝓪𝓷Today at 12:10 PM
I need help, I have made a command which will choose a random picture in an link and the code is as follows. And after many things it says is wrong it says "(node:21648) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)" (4 was just in this case) how should I fix this/code so it works?...
have you tried reading the error

wooden lance
#

Hello. I just switched to a new hosting provider for my discord.js bot and it doesn't come with a package manager or node. Could anyone tell me how I install node without a package manager? Thanks!

opaque eagle
#

What OS does the VPS run on

wooden lance
#

Debian 9

opaque eagle
#

Do you want latest or LTS?

wooden lance
#

Latest

opaque eagle
#
# adds node.js ppa
sudo apt-get install curl software-properties-common
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -

# install node.js
sudo apt-get install nodejs
wooden lance
#

Okay, thanks! 🙂

topaz fjord
#

I think the first one is recommended

#

and if you want to have multiple node versions, check out nvm

wooden lance
#

E: Command line option 'L' [from -sL] is not understood in combination with other options.

inner jewel
#

sudo apt-get ... and curl -sL ... are two separate commands

opaque eagle
#

They're not two different ways to do the same thing... all three commands must be run @topaz fjord

latent oasis
#

Py
How to change type from integer to number
x =

slender thistle
#

from integer to what?

latent oasis
#

Symbol or number

slender thistle
#

You speak Russian right

latent oasis
#

Yep

slender thistle
wooden lance
#

got node installed.

#

sudo was not installed

#

lol

earnest phoenix
#

Hi, i have an error.

I do npm i better-sqlite3 and npm i quick.db

But when i want start my bot, it say me :
Error: Cannot find module '../build/better_sqlite3.node'

#

How can i do

lusty dew
#

Why are you installing two dbs

wooden lance
#

You normally only have to do npm i quick.db as quick.db installs better-sqlite3 automatically.

earnest phoenix
#

for quick.db, we must have better sqlte 3

#

ok

#

i check

lusty dew
#

Why not just use better-sqlite3 itself

#

Though I’m biased in this ig

#

Imo quick.db is cancerous

knotty steeple
#

quick.db is for people that cant learn sql

#

its just an extra not really needed dependency

lusty dew
#

Exactly

mossy vine
#

brb switching to quick.db

knotty steeple
#

cyber no

lusty dew
#

Why not take the extra time to put effort into learning the syntax of the db the package uses

knotty steeple
#

sql is easy to learn

lusty dew
#

You’ll learn nothing by doing quick.add() or whatever it is

knotty steeple
#

you dont have to know the whole thing

split hazel
#

Would having a SQLite table for each guild cause any problems?

lusty dew
#

Uhm

#

Why do that

knotty steeple
#

a table yes

lusty dew
#

You only need one table

knotty steeple
#

why would you do that

#

you need a table with rows

lusty dew
#

You can make multiple entries in that table

knotty steeple
#

rows of the guilds and theirs settings

lusty dew
#
  • and columns
knotty steeple
#

whatever

#

rows and columns

#

yes

#

you have 1 row for each guild

lusty dew
#

Imagine making a table for every guild

knotty steeple
#

in that row you have the columns for the settings and whatever

lusty dew
#

God that’d be cancerous on its own

knotty steeple
#

by the time you reach 50 guilds thats gonna be bad

lusty dew
#

Memory eating

split hazel
#

oh so is there a way to have AUTOINCREMENT specific to each guild id in the table

lusty dew
#

You’re trying to increment the guild id?

split hazel
#

no

#

im trying to have an increment id for each guild id

#

so

#
guild2 autoiincrementval```
#

i want autoincrementval to be specific to each guild

late hill
#

why do you need that value

#

What will you be using it for

split hazel
#

well have a punishment id for each server

lusty dew
#

What are you using?

#

Sqlite3?

split hazel
#

yes

late hill
#

But why don't you just use the guild id

split hazel
#

you dont understand what i want to do

late hill
#

Correct

split hazel
#

so like each server has a specific "punishment id"

lusty dew
#

Basically a case id?

split hazel
#

yep

#

for each server

lusty dew
#

Okay

late hill
#

Each server has a specific guild id

#

So

#

Why not use that

lusty dew
#

That doesn’t make sense to use the guild id?

late hill
#

If the only requirement is them being different per guild

earnest phoenix
#

unless you're using guild per table system (not suggested) you can't use sql's autoincrement feature

late hill
#

guild id would be fine

earnest phoenix
#

please shut up

late hill
#

👀

lusty dew
#

They are trying to make a case counter if I’m understanding this correctly

late hill
#

If you're not in a good mood maybe just avoid help channels

lusty dew
#

But using the guild I’d makes no sense

split hazel
#

so i would have to setup a custom one, that gets the latest row from a specific guild id, and add 1 to that id?

earnest phoenix
#

you're literally not getting the point of the problem and keep blabbing about your own solution that's irrelevant to the problem @late hill

#

yup @split hazel

split hazel
#

oh okay thanks

earnest phoenix
#

it's how i do it too

late hill
#

Because still no one has explained what the point of the extra value is?

lusty dew
#

I just make a row in the table called case_counter and have the default to 0

lusty dew
#

And when a mod command is used a log is sent to a log channel and the case counter is incremented by 1

earnest phoenix
#

that's wasteful

lusty dew
#

How so?

late hill
#

Oh

#

So it would start at 0 for all guilds

#

?

earnest phoenix
#

i mean, if you store other data alongside the case id, it's really wasteful

lusty dew
#

Why?

earnest phoenix
#

you have another table for just counting you're costing yourself resources

lusty dew
#

No

#

What

earnest phoenix
#

when you could just fetch the latest case and add + 1 to it's id

lusty dew
#

I never said a separate table

earnest phoenix
#

oh a property

#

my b

#

it's still not suggested since you're storing the state instead of making it fool proof ™

lusty dew
#
id: {
        type: Sequelize.TEXT,
        primaryKey: true,
        unique: true
    },
    log_channel: {
        type: Sequelize.TEXT,
        defaultValue: null,
        allowNull: true
    },
    prefix: Sequelize.TEXT,
    premium: {
        type: Sequelize.BOOLEAN,
        defaultValue: false,
        allowNull: false
    },
    case_counter: {
        type: Sequelize.SMALLINT,
        defaultValue: 0,
        allowNull: false
    },
#

That’s not the whole table it’s way longer then this

#

But that’s a snippet of the guild table

earnest phoenix
lusty dew
#

Also wym 'fool proof'

earnest phoenix
#

concurrency issues

#

it mostly shouldn't be an issue since it's really rare

lusty dew
#

Yea

earnest phoenix
#

but still to be mentioned as a concern

lusty dew
#

I don’t even remember what that word means so

#

Time to go google

#

Also just a question what’s with all the stuff inside the case? @earnest phoenix

#

What’s the purpose of it

earnest phoenix
#

everything is stored database side so the bot can't break when a user intervenes and messes something up in discord

#
  • tracking temporary actions
lusty dew
#

Ah mk

#

I gotta go figure out the rest of this class thing lol

#

Trying to make my own class extending onto text channel in d.js master

#

Any ideas?

#

I have the basic setup for it done

#

Just trying to figure out what to do with some of the parameters I passed

earnest phoenix
#

no idea, i don't work with d.js at all

lusty dew
#

Ah mk

#

Well for anyone who can help

turbid geyser
#

how can i give my bot to dbl

lusty dew
#

All I’m trying to do is make my own send function that basically translates the text inside it to a different language of the server owner/admin choosing

earnest phoenix
#

why not make a helper method instead of trying to inject it into the class

#

e.g

class Utils {
    static translateText() 
    { 
        return "";
    }
}

channel.send(Utils.translateText(whatever));
lusty dew
#
const { Structures } = require('discord.js')

module.exports.ClapTextChannel = Structures.extend('TextChannel', TextChannel => {
    class ClapTextChannel extends TextChannel{
        constructor(guild, data){
            super(guild, data)
        }

        send(content, options, language){
            content = content.
            super.send(content, options, language)
        }
    }
})
#

Basically what I have right now

wooden lance
#

I just installed node.js and modules onto a new VPS for my bot. But, whenever I try to use any of the module's commands, it says they can't be found. Anyone know what could be wrong?

hidden cargo
#

@earnest phoenix Bc you wanted to see the error here (bc I do not understand it) here:
(node:19812) UnhandledPromiseRejectionWarning: TypeError: The resource must be a string or Buffer.
at ClientDataResolver.resolveFile (C:\Users\ega1115\Desktop\HentaiMasters\hentaimaster\node_modules\discord.js\src\client\ClientDataResolver.js:278:27)
at C:\Users......\Desktop\HentaiMasters\hentaimaster\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:173:30
at Array.map (<anonymous>)
at TextChannel.send (C:\Users......\Desktop\HentaiMasters\hentaimaster\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:172:40)
at Client.<anonymous> (C:\Users.....\Desktop\HentaiMasters\hentaimaster\game.js:40:37)
at Client.emit (events.js:209:13)
at MessageCreateHandler.handle (C:\Users......\Desktop\HentaiMasters\hentaimaster\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
at WebSocketPacketManager.handle (C:\Users.....\Desktop\HentaiMasters\hentaimaster\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
at WebSocketConnection.onMessage (C:\Users.....\Desktop\HentaiMasters\hentaimaster\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
(node:19812) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
Srry for the ping....

earnest phoenix
#

well yes

#

a mega link alone won't work because it isn't a direct link to the file

#

the mega website serves html, css and javascript on the link

hidden cargo
#

ok, so are saying I need to "remove" them from the code?

#

@earnest phoenix

earnest phoenix
#

what im saying is that you can't use a mega link as an attachment

hidden cargo
#

Ok, what should I use?

#

bc I want to have it online bc otherwise it becomes to big for the service I use pretty fast

#

@earnest phoenix srry for the ping

earnest phoenix
#

why do you want an attachment if you already have the link to the file

#

just send the link instead

hidden cargo
#

Bc I want it to send an random image...

hidden cargo
#

and what?

late hill
#

@lusty dew your super.send() will use the TextChannel's send method which means it'll only take content and options as args
Passing language to it won't cause an error but it simply won't do anything

#

The function you're passing to Structures.extend() is also supposed to return the new extended class

#

Your current example just creates the class without returning it

earnest phoenix
#

how do i create a category via code in discord.js?

stray garnet
earnest phoenix
#

use a table and style it

stray garnet
#

Ok