#development

1 messages · Page 1532 of 1

pure lion
#

and i and j are just the location on the canvas where the rect is drawn

earnest phoenix
#

while using cogs, can i use data across files? like if i do a = "a" in commands.py and i want to use it in commands2.py, how would i do it?

quartz kindle
#

so... if i understand correctly

#

the array is a 16x16 grid

#

and each 1x1 represents a 32x32 area in the canvas?

pure lion
#

yes

quartz kindle
#

and you want to draw the array into the canvas?

#

like 1x1 is drawn at 0x0, 1x2 is drawn at 0x32, etc

pure lion
#

yes

quartz kindle
#

so you're missing the relationship between them

pure lion
#

and each element has its own height, which relates to its colour

quartz kindle
#

you have to get the array indexes based on where you are in terms of pixels

#

or the opposite way

#

draw in a specific location based on where you are in the array

pure lion
#

a h

quartz kindle
#

for example

#
for(let index1 in array) {
  for(let index2 in array) {
    let x = index1 * 32;
    let y = index2 * 32;
    if(patt[index1][index2].height != 0) {
      ctx.fillStyle(...)
    } else {
      ctx.fillStyle(...)
    }
    ctx.fillRect(x,y,32,32)
  }
}
#

the x and y in the canvas is obtained from the indexes you are currently on

#

thats the relationship that was missing

pure lion
#

oh f u c k

#

thanks tim you've saved me an hour of forring

quartz kindle
#

the code you had before was basically changing the color of the same square 256 times before moving on to the next square

crimson vapor
mellow kelp
#

square

pure lion
crimson vapor
#

LOL SQUARE

silk acorn
#

Lets go my bot got approved

pale vessel
#

Congrats

cerulean ingot
#

how do i auto redirect to https on my website

#

on cloudflare

pale vessel
#

there's an option for it

crimson vapor
#

force https iirc

#

idk my password so I can't check

#

I wanna make an AI to do capchas so I don't have to

#

that would be nice

#

might do that as my project in 3 years

earnest phoenix
crimson vapor
#

yep

earnest phoenix
crimson vapor
#

brb

earnest phoenix
#

Why do you want to make an ai for it
Just replicate the lego technic robot that passed recaptcha

cerulean ingot
crimson vapor
earnest phoenix
#

it's not as easy as you think

#

reCAPTCHA for example

#

is much much more than just identifying correct images

#

if you're suspicious, the images get noise so your AI will most likely fail to identify the correct ones

#

there are captcha solving services for this

mellow kelp
earnest phoenix
#

probably

#

but it's better than slaving in some factory

#

i guess

#

not that you're not a slave here either

mellow kelp
#

true tho

sudden geyser
#

a recaptcha doesn't even need to see if you clicked the right images. Just needs to see how you solved it

formal jacinth
#

How can you get your bot 24/7 online

earnest phoenix
sudden geyser
#

exactly

earnest phoenix
#

that's why recaptcha is so slow to load compared to rest of the page

mellow kelp
formal jacinth
#

a vps?

earnest phoenix
#

virtual private server

#

a small (virtual) machine you can rent for a few bucks a month

#

that most of the time has 100% uptime

formal jacinth
#

ok

glacial pagoda
#

How do you make it so the bot creates a role in the guild with specific name and perms using discord.js?

solemn latch
#

docs would know

glacial pagoda
#

can you send the docs

glacial pagoda
#

thanks

#

How do you make the bot takes a role and adds it to each guild channel with specific perms?

rotund yarrow
#

heyo i need some help, i have it where i can ping my bot and it responds to the ping, but it spams the response... can someone help?

#

i can send the lines of code

glacial pagoda
#

i think you might have many debuggers on

#

at the moment

rotund yarrow
#

hmm

#
if (message.content === '@zenith kernel' || '@zenith kernel'){
        let embed2 = new MessageEmbed()
        .setTitle('Hey there!')
        .setDescription(`Hey! I'm Essentials, a fast and simple bot. My prefix is e!`)
        .setColor("#FD3917")
        message.channel.send(embed2)
    }
#

it works when i have message.content.startsWith but thats not what i want

mellow kelp
#

that if statement will always be executed

#

you can't check comparisons like that

rotund yarrow
#

oh

mellow kelp
#

you probably want to use message.content === 'option-1' || message.content === 'option-2'

rotund yarrow
#

ahhh restate it

#

gotcha

#

lemme try

glacial pagoda
#

Like how mee6 does

#

where it creates a mute role

mellow kelp
#

idk what you mean

#

and im occupied

glacial pagoda
#

oh

rotund yarrow
#

THANK YOU @mellow kelp it worked

#

5 star rating on ur assistance 😄

mellow kelp
remote cedar
#

Hi i have better squilete 3 error

pale vessel
#

What is it

remote cedar
#

Ok wait

#

How was iy

#

/rbd/pnpm-volume/2b7b340d-fe94-4793-9ad2-d105633f550d/node_modules/.registry.npmjs.org/quick.db/7.1.3/node_modules/.registry.npmjs.org/quick.db/7.1.3/node_modules/quick.db/node_modules/bindings/bindings.js:135

dusky sundial
#

That's the directory to the file where it failed

#

you need to post the error code

earnest phoenix
#

How to make the bot create an invite ?

#

Discord.js

rustic nova
#

can i ask for what?

earnest phoenix
#

Idk i just want to make getinvite command i guess

rustic nova
#

That's a privacy breach, just saying

earnest phoenix
#

I mean it gets invite from the same server ur in

#

Even tho u can make one urself

#

Nvm

#

I'm just dumb

#

I'll just go

dusky sundial
earnest phoenix
drifting wedge
#

how can i make element.style.backgroundColor === "#2FFFFF"; work?

crimson vapor
#

Wdym?

#

Are you checking if it’s value is that or setting it’s value?

hoary vine
#

ok

drifting wedge
#

Setting

#

Oh

#

Lmfao

#

I don't have brain

#

worked, ty

#

and how can i add or remove one specific element with innerhtml?

#

like one specific item

glacial pagoda
#

How do i make it so everytime you send a command, the bot rotates responces

quartz kindle
#

keep a counter

glacial pagoda
#

oh ok

quartz kindle
#

if you want a sequential rotation

#

if you just want random responses, then use Math.random()

quartz kindle
#

meth

earnest phoenix
#

Quik mafs

zenith terrace
#

oh you got meth tim?

quartz kindle
#

maybe

opal plank
stable eagle
#

TypeError: Function.prototype.apply was called on undefined, which is a undefined and not a function

I started a message collector, but this weird error happened? What does this mean? I don’t have any prototype in my code...

quartz kindle
#

you're trying to use a function that requires a callback

#

but you didnt give it one

stable eagle
#

Oh oops

sterile lantern
#

wait can bots have animated profile pictures or no

earnest phoenix
#

no

sterile lantern
#

oof

glacial pagoda
#

How do you make a bot edit role permissions in a channel

#

I refered to the docs but couldnt find anything

#

the closest thing to this is...

#
  type: 'voice',
  permissionOverwrites: [
     {
       id: message.author.id,
       deny: ['VIEW_CHANNEL'],
    },
  ],
})```
#

But i dont want it to create

earnest phoenix
#

try browsing the docs more in the future

drifting wedge
#

how can i get something like this to work? ```js
if (element.style.backgroundColor === "#fd4d4d") {
element.style.backgroundColor = "#2FFFFF";
}

else {
  element.style.backgroundColor = "#fd4d4d";
}```
#

if the background color is that, do this, else, do that

rustic nova
#

I mean isn't that technically correct?

#

If color 1, change to color 2, else change to color 1

drifting wedge
#

uhh its not working

#

like, if the color is fd4d4d, change it to 2FFFFF, if its not fd4d4d, make it fd4d4d

mellow kelp
#

maybe add .toLowerCase()

rustic nova
#

Make backgroundColor lowercase before checking for it

#

Yeah

drifting wedge
#

add what to lowercase?

#

like to which part?

rustic nova
#

to element.style.backgroundColor

#

On the condition check

drifting wedge
#

ok lemme try

#
    if (element.style.backgroundColor.toLocaleLowerCase() == "#fd4d4d") {
        element.style.backgroundColor = "#23292e";
    } else {
      element.style.backgroundColor = "#fd4d4d";
    }```?
rustic nova
#

yeah

drifting wedge
#

not working

rustic nova
#

Aww

drifting wedge
#

no errors in console

rustic nova
#

without the Locale, no?

drifting wedge
#

lemme try to print the value

#

locale?

#

it makes it the color

#

so the else works

#

but the if never does

rustic nova
#

You have toLocaleLowerCase

#

not toLowerCase

drifting wedge
#

its in rgb

#

lemme try something

#

works!

#

ty

#

just had to do it in rgb

#

and also, how can i like remove or add only 1 specific thing in innerhtml?

#

i can copy the innerhtml, find what i want to remove, and set the new one without it?

mellow kelp
#

String.replace probably

drifting wedge
#

ok ty

#

and to just add it, ill just get innerhtml, and just add the new str to it?

#

can i get the html of an emlement?

#

like the code of it?

mellow kelp
#

wut?

drifting wedge
#

like with .value i get the input right?

#

lets say i have div1 with an id of hi

#

can i get all the code inside the div1?

#

with the id?

#

all the html

mellow kelp
#

that's what innerHTML does

drifting wedge
#

innerhtml sets it to the code?

mellow kelp
#

yeah

drifting wedge
#

or is it the code?

#

then u replace it?

mellow kelp
#

it is

#

and it sets

drifting wedge
#

OHHHH

#

ok make sense

#

ty

mellow kelp
drifting wedge
#

uhh it doesnt copy the div itself...

#

like i have a div with the id

#

if i get the innerhtml of it

mellow kelp
#

yeah

drifting wedge
#

it doesnt include the dib

#

alr lemme figure that the

mellow kelp
#

hence inner html

drifting wedge
#

gomme a minm

rustic nova
#

Depends on what you want to get with .value

#

You could also use textContent to only get the next of it

#

Being able to append with += iirc

drifting wedge
#

alr ty

#

can i use the cursor:pointer for a div?

mellow kelp
#

yea

drifting wedge
#

doesnt seem to do anything

misty sigil
#

i wanna learn something new

#

because im bored

#

what should i learn

mellow kelp
#

how about react

misty sigil
#

yea i could do that

sudden geyser
misty sigil
#

apart from js/ts not really

sudden geyser
#

then I got nothing for you

drifting wedge
#

so this wierd bug is happening where it needs to have one already in the trade menu for it to work, here is the code

async function displayTradeItems(square_clicked, square_clicked_inside) {
    let element = document.getElementById(square_clicked);
    let inside = document.getElementById(square_clicked_inside);
    let element_nohighlight = element.innerHTML;
    let tradeDiv = document.getElementById("tradeBox");

    if (inside.style.backgroundColor == "rgb(253, 77, 77)") {
      inside.style.backgroundColor = "rgb(35, 41, 46)";
      tradeDiv.innerHTML = tradeDiv.innerHTML.replace(element.innerHTML, "");

    } else {

      inside.style.backgroundColor = "rgb(253, 77, 77)";
      tradeDiv.innerHTML = tradeDiv.innerHTML + element_nohighlight;
    }
}```

```html
<div id="first">
            <div style="width: 6rem; height: 6rem; padding: 10px; margin-left: 10px; border-left: #4eff98 5px solid; background-color: #23292e;" class="tooltip1" onclick="displayTradeItems('first', 'first_in')" id="first_in">
          
              <img src="https://imgur.com/dRFe7wx.png" width="100%">
            
  
              <span class="tooltiptext1" style="width: 230px;">
                <div style="color: #6198f1;">Veld's Baguette Fishing Rod</div>
                <div style="margin-top: 5px; border-bottom: #78899b 2px solid; margin-bottom: 9px;"></div>
  
                <div style="color: #3b434b;" align="center"><a style="color:#ff6060">Made from Veld's stolen Baguette.</a></div>
  
  
              </span>
  
            </div>
          </div>```

the picture is what happens when i click it 3 times, aka triggering the right image once, then when i clicked it again, it was supposed to remove the image, then the 3rd time is for it to appear again, but then it just doesnt, and it only works normally after theyres one already therew
#

so basically, it works fine, but the "mini cards" that pop up the first time, never goes away

earnest phoenix
#

are you sure you want to use vanilla js for this

#

seems like you're building a complex ui

mellow kelp
#

rejec frameworks

#

return to vanilla

drifting wedge
#

uhh yes vanilla works

#

this is simple

earnest phoenix
#

2008 websites flashback

drifting wedge
#

i just literally need a way to make it show on the side when u click it

#

its not very complicated

#

like basically copy the item u clicked's html on the other side

misty sigil
#

why not use a framework

drifting wedge
#

i mean i dont see why

#

its not a complicated thing

#

i just messed up my code

quartz kindle
#

comparing background colors sounds like a very stupid thing to do

#

use classes

drifting wedge
#

Mhm

#

But like how can I do it then?

#

If it's clicked, and if it's not clicked

quartz kindle
#

what exactly do you want to do?

drifting wedge
#

Basically, have it edit the background color when u click it, and basically like make it show on the other side if it's toggled/clicked

#

Like a checkbox, if it's on, it shows on the other side and has a dof background, if not, it just shows like normal

quartz kindle
#

on click -> toggle class "selected"

#

add css to class selected for the background color

#

on click -> run function that copies all items with class "selected" to the other side, and removes all items without the class

drifting wedge
#

Ok I don't really get it and I'm not on my pc Rn, I'll understand u tmr lmfao

#

But I think I get it

#

Toggle as in show?

quartz kindle
#

toggle

#

add if it doesnt have, remove if it does have

#

element.classList.toggle("selected")

#

like a checkbox/switch

wanton knoll
#

weirdsip weirdsip ok moving members

earnest phoenix
#

hey
do you know how I would be able to get userobject
by just doing
!av jenna

quartz kindle
quartz kindle
#

(assuming discord.js)

crimson vapor
#

what thats a thing

#

you can just query using their name

#

poggers

quartz kindle
#

yup

crimson vapor
#

learn something every day

quartz kindle
#

you can get up to 100 results

crimson vapor
#

same as the message delete?

#

100

quartz kindle
#

if you have the members intent there's no limit

cerulean ingot
#

why does it look like this when im editing the css

#

then i copy all the css over and it looks like this

quartz kindle
#

where are you editing it? dev tools?

cerulean ingot
#

yes

#

i think i know what i did

rustic nova
#

Use a live css editor and/or work with the preview feature on top.gg

lament rock
cerulean ingot
drifting wedge
#

I think u get banned

#

So don't

earnest phoenix
#

without javascript you can't regardless

vernal fiber
#

Hiii

sacred trout
#
reddit = apraw.Reddit(username="",
                      password="",
                      client_id="",client_secret="",
                      user_agent="apraw")                                         
    
subreddit = reddit.subreddit("memes")

top = subreddit.top(limit=50)


    @commands.command()
    async def meme(self, ctx, subred="memes"):
        subreddit = reddit.subreddit(subred)
        all_subs = []
        top = await subreddit.top(limit=50)

        for subbmission in top:
            all_subs.append(subbmission)

        random_sub = random.choice(all_subs)
        name = random_sub.title
        url = random_sub.url

        embed = discord.Embed(title=name)
        embed.set_image(url=url)

        await ctx.send(embed=embed)```
#

discord.ext.commands.errors.ExtensionFailed: Extension 'cogs.fun' raised an error: AttributeError: 'coroutine' object has no attribute 'top'

tired hazel
#

U use JavaCord?

vernal fiber
#

Hiii@sacred trout

#

@UnknownVazguz#8133

tired hazel
sacred trout
#

do i know you @vernal fiber >

sacred trout
#

no?

#

wtf even is thaT?

tired hazel
#

a library to make discord bots

#

what languge and library u using?

sacred trout
#

py

buoyant aspen
#

Is there a way to check if a user has boosted (d.js) other than checking for a role?

earnest phoenix
sacred trout
#

i am using apraw

earnest phoenix
#

Still

solemn latch
earnest phoenix
#

It's better

sacred trout
#

wtf is that

slender thistle
earnest phoenix
sacred trout
#

ok

slender thistle
earnest phoenix
#

This guy must be high

slender thistle
#

Oops. Not .top, but the subreddit var

earnest phoenix
slender thistle
#

... what's the difference between aiohttp and apraw in this case? They don't cache anything

sacred trout
#

top = await subreddit.top(limit=50)

#

like this?

#

@slender thistle

slender thistle
#

that and the line with subreddit too

sacred trout
#

Traceback (most recent call last):
File "main.py", line 59, in <module>
client.load_extension(f'cogs.{filename[:-3]}')
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 663, in load_extension
self._load_from_module_spec(spec, name)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 609, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'cogs.fun' raised an error: SyntaxError: 'await' outside function (fun.py, line 17)

earnest phoenix
slender thistle
sacred trout
#

do i add this in the func?

slender thistle
#

Yes

sacred trout
#

@slender thistle

#

getting error bruh

#

subreddit = await reddit.subreddit("memes")

top = await subreddit.top(limit=50)

#

Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "/home/runner/Bot/cogs/fun.py", line 31, in meme
subreddit = await reddit.subreddit("memes")
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/apraw/reddit.py", line 243, in subreddit
await sub.fetch()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/apraw/models/subreddit/subreddit.py", line 170, in fetch
resp = await self._reddit.get(API_PATH["subreddit_about"].format(sub=self.display_name))
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/apraw/reddit.py", line 138, in get
return await self.request_handler.get(*args, **kwargs)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/apraw/request_handler.py", line 70, in execute_request
result = await func(self, *args, **kwargs)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/apraw/request_handler.py", line 88, in get
headers = await self.get_request_headers()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/apraw/request_handler.py", line 34, in get_request_headers
) + timedelta(seconds=self.user.access_data["expires_in"])
KeyError: 'expires_in'

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

#

@slender thistle

slender thistle
#

mmm

sacred trout
#

?

#

@slender thistle

slender thistle
#

I'm busy to look into this atm

sacred trout
#

sad

remote cedar
#

i have better-sqlite3 error

slim umbra
#

gonna assume ur using js

#

make sure u have node-gyp and c++ build tools installed

remote cedar
#

already

#

installed

tribal siren
#
newState.guild.channels.create(`${newState.member.user.username} ~ Voice`, {
      type: 'voice',
      bitrate: 384000,
      parent: '798413426086510673',
      userLimit: 15,
      reason: `Member ${newState.member.user.tag} joined VC`
    }).then(async c => {
      c.updateOverwrite(newState.id, {
        VIEW_CHANNEL: true,
        MANAGE_CHANNELS: true,
        USE_VAD: true,
        MUTE_MEMBERS: true,
        DEAFEN_MEMBERS: true,
        MOVE_MEMBERS: true,
        PRIORITY_SPEAKER: true,
        CONNECT: true,
        SPEAK: true,
        STREAM: true,
        CREATE_INSTANT_INVITE: null,
        MANAGE_ROLES: true
      })```
#

TypeError: Cannot read property 'updateOverwrite' of undefined

#

help please

blissful coral
#

You know you can make the permission overwrites when creating the channel?

remote cedar
#

i need help too

delicate shore
#
sh: 1: install-from-cache: Permission denied
Error: EACCES: permission denied, scandir '/root/.nvm/versions/node/v14.15.4/lib/node_modules/firebase-tools/node_modules/re2'

> protobufjs@6.10.2 postinstall /root/.nvm/versions/node/v14.15.4/lib/node_modules/firebase-tools/node_modules/protobufjs
> node scripts/postinstall

internal/modules/cjs/loader.js:834
  throw err;
  ^

Error: Cannot find module '/root/.nvm/versions/node/v14.15.4/lib/node_modules/firebase-tools/node_modules/protobufjs/scripts/postinstall'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
    at Function.Module._load (internal/modules/cjs/loader.js:687:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/firebase-tools/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/pm2/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! protobufjs@6.10.2 postinstall: `node scripts/postinstall`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the protobufjs@6.10.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-01-18T05_27_04_081Z-debug.log
Linking global packages from system...
#

NVm not orking

earnest phoenix
#

@delicate shore you: sup npm: npm WARN notsup

shell girder
#

guys

#

can i get some help >

#

?

earnest phoenix
#

dont ask to ask

#

just ask

shell girder
#

nice

#

does that work ?

dbl.webhook.on('vote', vote => { 
    let votechat = client.guild.channels.find(channel => channel.name === "votes")
    let voteembed = new Discord.RichEmbed()
            .setDescription(`User with ID ${vote.user} just voted!`)
    votechat.send(voteembed)
});```
earnest phoenix
#

try it

#

RichEmbed 🤮

shell girder
#

someone must vote bot

earnest phoenix
#

Are you using djs v11

shell girder
#

v11

#

yep

earnest phoenix
#

Congrats, you're deprecated

#

isn't there a button to test the webhook on dbls page

shell girder
#

where ?

earnest phoenix
#

🤷‍♂️

#

i havent touched the site in 6 months

shell girder
#

can you give me a link ?

earnest phoenix
#

There is

#

Go to your bot page

#

Press edit

shell girder
#

and what ?

elfin marsh
#

does djs have a leave function for the bot?

earnest phoenix
#

Goto webhooks and press test

#

(after putting your ip and auth stuff)

earnest phoenix
#

Guild.leave

elfin marsh
#

ok

#

ty

shell girder
#

to test it

delicate shore
#

I made a tuotorial on top.gg webhook
It's a medium blog
I can share with you if you want

shell girder
#

ok

earnest phoenix
#

nice

shell girder
#

give me link pls

earnest phoenix
#

i should make a generator in react

shell girder
#

thanks

delicate shore
#

welcome

earnest phoenix
#

@delicate shore dblapi.js is deprecated

delicate shore
#

oh

#

Frick

#

I know

#

but

#

it's easier

#

for me and it still works

earnest phoenix
#

it's literally just renamed to node-sdk

#

windows 7 is deprecated and hit end of LTS

#

does that mean it doesn't exist

delicate shore
#

What's an incel

earnest phoenix
#

when you get your message removed but all you did was say fax 😔✋

#

it exists on my computer

delicate shore
#

How can I make nvm update

#

All packages

#

?

crimson vapor
#

npm?

#

you mean

delicate shore
#

I mean reinstall

#

No

#

Node version manager

crimson vapor
#

ah

delicate shore
earnest phoenix
#

nvm - nevermind

delicate shore
#

I installed new node version

#

Can It reinstall all packages?

#

acc to new node v

earnest phoenix
#

nevermind to update npm packages?

delicate shore
#

Yes

#

smh

#

I don't know if you know it but
You are really annoying sometimes just like me

#
error E@1.0.0: The engine "node" is incompatible with this module. Expected version "12.x". Got "14.15.4"
error Found incompatible module.
#

which module it's talking abotj

earnest phoenix
#

why dont you just run npm install

#

npm will install the latest version that is compatible with the node version

blissful coral
#

do npm install || npm i

delicate shore
#

ok

slim heart
#

http://img.censor.bot/TPDQ7fo6 does anyone know how to set the name of this? since the inner image is technically a text element the text of that element gets slapped in front of the servers name, so the T icon + the Testing server name turns into TTesting, i just want it to be Testing, any idea?

tall anvil
#

Do someone know a good api that gives you random picture link? Such as Shiro api etc...pls

slim heart
#

you literally named the api

#

just use shiro

rustic nova
#

Shiro gud

tall anvil
#

Yeh but looking for other's

slim heart
#

there's not much better

#

they all have risks

#

except for shiro

tall anvil
#

OK

#

I was tryna find other no risk xD

#

Cause I found an other one but was pretty risky sometimes...

#

Think I will use Shiro

#

T'y for answers

near stratus
#

also you can make your own

surreal juniper
dusky sundial
#

Log in on their website, post your bot and wait for it to get approved (or denied if you don't follow the rules)

eternal osprey
#

hey guys

#

i have this text file. i wan't a command to add a message to this text file. How would i do that?

#

like !add (message)

#

and it will get on place number1

#

annd !add (message) will get to message 2 etc etc.

dusky sundial
#

Get the argument string, read the file, check for a number that is empty and write the string to that line

near stratus
#

How do I check if my bot is in a voice channel ?
Like ```js
let VC = message.guild.me.voice.channel;

#

Should this work ?

dusky sundial
#

Does it work?

near stratus
#

idk

dusky sundial
#

Try it? :)

#

then check if voiceChannel.members contains your bot

lethal trout
#

pls ping btw

vernal moth
#

guys how do I add or remove something from a json array? (discord.js)
context: I'm trying to make a cooldown per user for each server that the server is in.

dusky sundial
vernal moth
#

thank you :3

lethal trout
dusky sundial
#

People probably won't help you make an entire command, this channel is for more specific problems. Not just "how to make this command?"

lethal trout
stable eagle
#

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community

Any other npm package I tried installing worked fine, but discord.js doesnt work for some reason...
why?

summer torrent
#

nodejs version ?

stable eagle
#

v12.19.0

earnest phoenix
#

Someone explain, I’m so pissed why is it doing that

stable eagle
#

wait db is defined as eco

#

change every db to eco

earnest phoenix
#

@stable eagle I’ve tried dosent work neither

stable eagle
earnest phoenix
#

Does my code work for you?

cinder patio
#

Is this now how you add an image to a buffer in discord.js, it's not adding the file, no errors either MegaThonk

obj.image = {url: "attachment://board.png"};
obj.files = [
   new MessageAttachment(this.board.getBuffer(), "board.png")
];

where obj is an embed object

#

nvm I got it

pure lion
#

can i parse a string to an array

#

e.g the string is in the format of an array but its a string

cinder patio
#

JSON.parse

pure lion
#

it doesnt work because its not a JSON formatted array, its literally

#

"[{x: 3, y: 6}]"

dusky sundial
#

Is it not possible to change it to a json string?

pure lion
#

it is but that makes it into a literal json string and not an array

leaden lake
#

hi, I got a bot which deletes messages when a user is in offline status. But I have a problem. Idk why the bot doesn't work after a moment but only on 1 server... Does anyone have an idea ?
The owner must kick the bot and invite it back because when I restart it, It doesn't work too

dusky sundial
leaden lake
#

nope. Only doesn't work

#

and I don't have error handler

dusky sundial
#

How many guilds is the bot in?

cinder patio
pure lion
#

im passing it from frontend to backend

cinder patio
#

but how do you stringify it in the frontend?

#

You don't use JSON.stringify?

leaden lake
pure lion
dusky sundial
#

Could you send the part of the code that is supposed to delete the messages?

leaden lake
#

and it doesn't work in only 1 server. And I can look at the perms, it has all perms it needs

leaden lake
# dusky sundial Could you send the part of the code that is supposed to delete the messages?
try:
            statut = user.status
            if statut is discord.Status.offline:
                db = sqlite3.connect("main.sqlite")
                cursor = db.cursor()
                cursor.execute(f"SELECT bypassrole FROM main WHERE guild_id = {message.guild.id}")
                bpresult = cursor.fetchone()
                if bpresult is None:
                    pass
                else:
                    try:
                        if get(user.roles, id = int(str(bpresult[0]))):
                            return
                    except ValueError:
                        pass
                
                if userid == int(341257685901246466):
                    return
                elif user.guild_permissions.administrator:
                    return
                elif get(user.roles, name = "AllowUnconnected"):
                    return
                elif user.bot:
                    return
                else:

                    cursor.execute(f"SELECT logchannel FROM main WHERE guild_id = {message.guild.id}")
                    logresult = cursor.fetchone()

                    await message.delete()

                    if logresult is not None :
                        await client.get_channel(int(logresult[0])).send(embed = embedtypingperso)
                    
                    try:
                        await message.author.send(embed = embedtyping)
                    except discord.Forbidden:
                        pass

                    await creator.send(embed = embedtypingperso)
                    print (f"\nTYPING\nGuildname = {guildname}\nChannel name = #{channelname}\nUser = {user} / {userid}\nDate infos = {infojour}")
        except AttributeError:
            return
earnest phoenix
#

@pure lion string.split(/,+ */); should split the array like string to an array

dusky sundial
pure lion
leaden lake
#

@dusky sundial yes it finds it, but not on their server. On mine and all others, it works, but it stops working on their server

leaden lake
#

yeah

dusky sundial
#

Hmm

earnest phoenix
#

@pure lion well Array.from(str);?

#

maybe that would work

#

or literally just eval the string

#

🧠

leaden lake
#

It works in on_member_state_update event, but not in on_message event on their server @dusky sundial

cinder patio
#

why parse and stringify it yourself when you can use JSON.parse & JSON.stringify

#

JSON.stringify on frontend, JSON.parse on backend, that's literally the point of those two

pure lion
#

hmm

#

think time

dusky sundial
leaden lake
#

yeah it has all perms

earnest phoenix
#

Why does it show null :/

eternal osprey
#

@dusky sundial

cunning shell
#

How to find a bot owner with the bot id

zenith terrace
#

@earnest phoenix send dm real quick

earnest phoenix
#

Alr

quartz kindle
#

that shouldnt even work, db is not defined

sacred aurora
#

:V

#

its defined as eco

eternal osprey
#

``could anyone help me on how i can implement a command like this: have this text file. i wan't a command to add a message to this text file. How would i do that?

like !add (message)
and it will get on place number1
annd !add (message) will get to message 2 etc etc.

cinder patio
#

why not use a database

slender thistle
leaden lake
#

@slender thistle but I have to, because I need to search the guild id

quartz kindle
#

use prepared statements

stuck pike
#

My bot rn is in 60 servers does it depend link one guy owns 5-7 of them)

#

Will it make a difference?

quartz kindle
#

possibly yes

#

you will know when you try to verify with discord

stuck pike
#

At 75 servers it starts right? @quartz kindle

zenith terrace
#

yes

stuck pike
#

Hm I need 15 more

tribal siren
#

How to make a bot create a category?

tribal siren
lethal trout
#

i edited a package but nothing changed

#

idk is it because of that

earnest phoenix
zenith terrace
#

there is no wdym, the category that channels go into

earnest phoenix
#

oh i didn't understand

#

just read the docs of the lib you're using

lethal trout
pure lion
#

can express send text as a download in a named file (e.g send the string a in the file a.cgp)

quartz kindle
#

set content type to octet stream

pure lion
#

reading docs

lethal trout
#

?

quartz kindle
#

wdym you edited a package? how did you edit it?

faint moth
quartz kindle
#

missing access means your bot cannot access something

#

for example a message in a channel with no view_channel permission

faint moth
#

It may be from a server where the BOT is located.

zenith terrace
#

any of the servers yes

lethal trout
faint moth
#

@zenith terrace ty

lethal trout
#

when i restarted my bot there is no changes

tribal siren
#

i can't find it in the discord.js docs

earnest phoenix
#
tribal siren
#

are you serious

#

i read it all like 5 times

#

i can't find how to make a bot create the category

quartz kindle
#

what cant you find?

#

i can find it in 5 seconds lol

#

i'll get it for you

tribal siren
#

oh

tribal siren
#

ok thanks

quartz kindle
earnest phoenix
#

fuck u got here first

quartz kindle
tribal siren
earnest phoenix
#

options.type

quartz kindle
#

categories are channels

tribal siren
#

oh are they

earnest phoenix
#

yeah

tribal siren
#

bruh im dumb

#

thanks

lethal trout
#

but it did not change

tribal siren
#

🎫

spice compass
#

I am trying to remove all reaction from a message using message.reactions.removeAll().then(***) but getting error UnhandledPromiseRejectionWarning: TypeError: message.reactions.removeAll is not a function . It does says removeAll() is a method in guid though.

quartz kindle
lethal trout
quartz kindle
quartz kindle
true cosmos
#

Hello. When someone votes for my bot, I want them to send him a special congratulatory message. How can I do it?

quartz kindle
spice compass
#

can I put long code here?

quartz kindle
#

better in a hastebin or pastebin

quartz kindle
# lethal trout yes

make sure you changed the right things and not the wrong things
start a new cmd window in your bot's folder and run node
in node's interactive command line try requiring the module then console.logging the function you edited as a string

#

something like let g = require("discord-giveaway"); console.log(g.someFunctionHere.toString())

unique temple
#

ThunderX

quartz kindle
#

and see if the functions stringified code shows the changes you made

unique temple
#

where ı vote bot

spice compass
#
            if(this.topClans.length < 1) return;
            message.react('▶️')
            const reactCollector = message.createReactionCollector(
                (reaction, user) => ['◀️', '▶️'].includes(reaction.emoji.name) && user.id === author.id, 
                { time: 600000 }
                )
            let currentIndex = 0;
            reactCollector.on('collect', reaction => {
                console.log(Object.keys(message.reactions));
                message.reactions.removeAll().then(async () => {
                    reaction.emoji.name === '◀️' ? currentIndex -= 1 : currentIndex += 1
                    message.edit(this.generateEmbed(currentIndex))
                    if(currentIndex !== 0) await message.react('◀️')
                    if(currentIndex < this.topClans.length) message.react('▶️')
                })
            })
        })```
#

In this code, I am getting error that TypeError: message.reactions.removeAll is not a function...

tribal siren
#

message.reaction.remove('🎫') will remove the \🎫 reaction from the message?

tribal siren
cinder patio
#

There's no message.reaction

#

to remove a reaction you have to get the reaction and then call the remove method on it

#

message.reactions.cache.get("emoji")?.remove() for example

spice compass
#

i saw this

#

to remove all reactions from a message, i want to remove all reactions from the message i sent, On collection the reaction

earnest phoenix
#

are you on v12

spice compass
#

no 11.6.4

earnest phoenix
#

update then

spice compass
#

ok

earnest phoenix
#

if you do

#

you're going to experience breaking changes

#

just a heads up

cinder patio
#

in v11 there's message.clearReactions()

spice compass
misty sigil
#

dont use v11

#

please

earnest phoenix
#

Lol

last geyser
#

im confused

wanton knoll
#

Which Discord Bot should I make?
Need Idea

No Music Bot

tired panther
#
TypeError: Class constructor handling cannot be invoked without 'new'
``` whats the meaning of the error?
pale vessel
#

Try reading it again

tired panther
#

and whats the error?

cinder patio
#

Are you using typescript or babel? @tired panther

tired panther
#

node js lol @cinder patio

zenith terrace
earnest phoenix
#

There's a lot of people still using v11 and don't know what's gonna happen to it PepeLaugh

tribal siren
#

So uuh

#

How to make the bot remove your reaction once you react on it?

#

reaction.remove() doesn't seem to work..

cinder patio
#

it should

#

something's wrong with your code

tribal siren
#
await e.awaitReactions((reaction, user) => reaction.emoji.name === '🎫')
        .then(collected => {
          reaction.remove()
        })
#

all correct?

cinder patio
#

where do you define reaction?

tribal siren
#

first line

cinder patio
#

That defines it only for the function it's used in because it's a function argument

tribal siren
#

so

#

how to do it correct?

cinder patio
#

collected is a collection with all reactions that got collected. You could get the first reaction from the collection and call the .remove method on it

tribal siren
#

so

#
await e.awaitReactions((reaction, user) => reaction.emoji.name === '🎫')
reaction.remove()        
        .then(collected => {
        })```?
#

or wait no

#
reaction.remove()
await e.awaitReactions((reaction, user) => reaction.emoji.name === '🎫')
        .then(collected => {
        })```
#

all good?

cinder patio
#

no? How is that supposed to fix anything, you're just moving reaction.remove()

tribal siren
#

i thought the problem is in moving the reaction.remove()

cinder patio
tribal siren
#

collected.first().reaction.remove()?

cinder patio
#

try it

#

hint: collected.first() is already of type MessageReaction

#

so just .remove()

stuck pike
#

my bot hitted 76 servers damn op

elfin marsh
leaden lake
#

Hi, I know it isn't about discord or dblpy, but I am in programming class, and I got a problem.
Here is my code, and Idk why my code keep the 0 at the end of the table. But the code below says it doesn't keep it... Can anyone help me ?

    cout << "Entrez votre valeur numero " << Indice+1 << " du tableau : ";
    cin >> Valeur;

    while (Valeur != 0 && Indice < 25)
    {   
        if (Valeur != 0)
        {
            Tableau[Indice] = Valeur;
            Indice++;
        }
        cout << "Entrez votre valeur numero " << Indice+1 << " du tableau : ";
        cin >> Valeur;
    }
earnest phoenix
#

READY undefineduser, undefined channels, undefinedservers , done.

sudden geyser
#

Not a glitch error. Just your code having bugs.

solemn jolt
#
let member = message.guild.members.cache.get("759508632626528308")
if (member.kickable) {
guild.members.kick(member,{reson:`delete 10 channel`})
} else {
console.log("hello")
}

Error in kickable

earnest phoenix
#

fetch the member

#

instead of getting

sudden geyser
solemn jolt
earnest phoenix
#

take a guess

rocky hearth
#

for ts, I want to store an array of Child classes of a parent class. What type should I define for the array?

solemn jolt
earnest phoenix
#

okay

#

but i asked you to take a guess

solemn jolt
#

fetch message

leaden lake
earnest phoenix
sudden geyser
solemn jolt
#

I say how i can fetch message

rocky hearth
solemn jolt
#
let member = message.guild.members.cache.get("759508632626528308")
if (member.kickable) {
guild.members.kick(member,{reson:`delete 10 channel`})
} else {
console.log("hello")
}```

Why i have Error in kickable
earnest phoenix
#

can someone help me?

umbral zealot
earnest phoenix
umbral zealot
#

if you can't help them, don't reply

earnest phoenix
#

how can i make an embed change page with reactions?

solemn jolt
earnest phoenix
#

Show some respect

earnest phoenix
umbral zealot
#

How about you show some respect and don't call people stupid first?

#

The hell is wrong with you

earnest phoenix
#

How about you keep your mouth shut? I'm trying to help someone here

#

And you're getting in the way of that

scenic kelp
#

No need to be rude here

umbral zealot
scenic kelp
#

Don't call people stupid, simple as that

earnest phoenix
#

You're right @scenic kelp

#

Sorry

#

I think we got off on the wrong foot

umbral zealot
#

await guild.members.fetch("759508632626528308") should do the trick

strong fjord
#

Javascript

#

!rank

umbral zealot
umbral zealot
solemn jolt
rocky hearth
#

@solemn jolt

// This will always work, but remember member can be null sometimes, if the id is not correct.
const member = await <Guild>.members.fetch("759508632626528308");
earnest phoenix
#

Yes thank you for spoon feeding him the code now he will use it without understanding

stark abyss
earnest phoenix
#

This is outrageous

stark abyss
#

this is allowed right?

earnest phoenix
#

yes

stark abyss
#

ok

umbral zealot
#

like... what are you importing at the top to use discord

#

library, module, import, whatever your language uses for "external stuff you get to help using the discord API"

earnest phoenix
#

@umbral zealot I need your help with my bot actually

umbral zealot
#

Or maybe just ask your question and someone will answer.

earnest phoenix
#

No I want you

umbral zealot
#

You cannot demand my help, kid. Ask your question, if I can help I will.

stuck pike
earnest phoenix
#

What's with the attitude?

#

You're obligated to help me

#

Why else are you here?

stuck pike
#

my bot exploded in popularity today

earnest phoenix
umbral zealot
stuck pike
#

3k users 30 servers

earnest phoenix
#

That's nothing

stuck pike
umbral zealot
earnest phoenix
#

After @umbral zealot helps me with my bot, It will have a million users

zenith terrace
#

bruh u cant say someone is obligated to help you

earnest phoenix
#

🗿 This chat is currently a certified bruh moment

umbral zealot
#

Or, tbh, I can just block you.

zenith terrace
#

it is not a bot reviewers job to help you with your bot

earnest phoenix
#

Stop

earnest phoenix
#

My bot depends on you

zenith terrace
#

no it doesnt

earnest phoenix
#

I actually need someone to write it for me because I'm not that good at programming

#

so I came here looking for someone

#

and I think Evie is the guy

umbral zealot
earnest phoenix
#

Bro

#

spoonfeed much?

zenith terrace
#

that doesnt mean they are obligated to help you KEKW

umbral zealot
#

"Evie is the guy" ok you're definitely a troll.

#

Or a moron, your pick

#

Either way, blocked.

zenith terrace
#

why not both Evie?

umbral zealot
#

Probably both yeah

earnest phoenix
#

ok fine damn lol u could've just said no

#

She literally did?

#

anyways

zenith terrace
#

or you could of taken the hint knowing they wouldnt of helped but you kept saying you needed them KEKW

earnest phoenix
#

If I was a good programmer I would help anyone write their bot

#

I guess some people aren't that kind

umbral zealot
#

It's funny when people act like assholes and then expect something like respect in return

#

Stop being a damn Karen.

earnest phoenix
#

"You're obligated to help me"
"My bot depends on you"
"I need someone to write my bot for me"

Complains about spoon-feeding

#

Makes absolute sense

earnest phoenix
#

I'll DM you the bot details

umbral zealot
#

Nah you won't

#

you can fuck right off with that, child. 😂

earnest phoenix
#

So rude loool

zenith terrace
#

you do know Evie can still read blocked messages KEKW

earnest phoenix
#

🗿 What do you expect for saying "You're obligated to help me"

zenith terrace
#

^

earnest phoenix
#

Ok sorry

#

I apologize

#

Can you help me now?

#

Ah yes, 2 words will change their mind surely

umbral zealot
#

Moving on now

#

anyone actually need help? lol

earnest phoenix
#

I didn't want it to come to this but I will pay you

zenith terrace
split siren
#

r/choosingbeggars

umbral zealot
#

I offer my help for free for those who ask and are deserving 😄

zenith terrace
earnest phoenix
#

🗿 Loggers bro

#

I asked you and I think I'm deserving

#

i AM deserving

#

that's an undeniable fact

zenith terrace
earnest phoenix
#

laugh at me all u want

lusty quest
#

idk if this is now meming or being entitled af

earnest phoenix
#

im gonna go ask somewhere else

#

When you ask, be gentle, and don't beg someone for their help, saying "you're obligated to help me" already means you don't deserve it

sudden geyser
# leaden lake Hi, I know it isn't about discord or dblpy, but I am in programming class, and I...

Since I'm not fluent in C++, I tried writing the same program in Python. The if (Valeur != 0) {...} is redundant since you're already checking it in the while condition, but C++ may play differently with loops (run before check vs. check before run)

Program: https://hatebin.com/wbqvdqffqu
Output: https://hatebin.com/fvinphbzqp

A 0 key is at the front of the array because index starts from 0 and is incremented for each time the while loop is run. If I wanted to change it, I could start index with 1 instead.

Is this helpful, or am I off?

zenith terrace
earnest phoenix
sudden geyser
umbral zealot
#

Pure Karen vibes.

earnest phoenix
#

will never be true

#

because you just checked against that in your while loop condition

#

Use your head

#

What?

umbral zealot
#

there he goes again insulting people

earnest phoenix
sudden geyser
#

I mentioned this:

The if (Valeur != 0) {...} is redundant since you're already checking it in the while condition, but C++ may play differently with loops (run before check vs. check before run)

rocky hearth
earnest phoenix
#

I am just helping him (something you refuse to do)

sudden geyser
#

He's not lying.

zenith terrace
#

dude really said for someone to use their head but couldnt use their own when evie rejected helping him 🗿

sudden geyser
#

You can be helpful and still be insulting at the same time.

umbral zealot
#

Y'all really need to get the contextual cue that my name is "Evie"

earnest phoenix
#

Show me how I insulted him?

#

Because I couldn't have been any nicer

sudden geyser
#

Use your head

earnest phoenix
#

Yes

#

🗿 Ah yes, misinformation is really helpful isn't it, "if value != 0:", "will never be true"

#

Voltrex you're just hating at this point

#

Please don't let your anger blind you

umbral zealot
#

Alright can we please just stop feeding this troll

earnest phoenix
#

Wtf is this guy talking about

#

Karen level boss

#

I don't even want Evie's help anymore so can we just get past that

umbral zealot
#

just let him flail around, he'll eventually get tired.

solemn latch
lusty quest
#

oAuth

earnest phoenix
#

you can't

#

Go through the member list

#

Its to the right of your screen

umbral zealot
#

You said "without bots"

#

Oh you mean

#

actually get the user count

earnest phoenix
#

Use the logical NOT operator

sudden geyser
#

Caching the entire member list to filter out some bots is expensive.

umbral zealot
#

That's a thing that's not very useful to be honest and you can't do it without the GUILD_MEMBERS intents

solemn latch
#

That also only gets people in cache

lusty quest
#

you could get the guilds with oauth then make API calls with the guild ID to get the members

fair axle
lusty quest
solemn latch
#

Read their troubleshooting page

sudden geyser
umbral zealot
earnest phoenix
#

oh man if only the error messages said something helpful!

quartz kindle
#

pretty sure node-gyp supports vs2017 now

umbral zealot
#

Also sqlite3 is literally the worst sqlite module

quartz kindle
#

no need to specifically install vs2015

lusty quest
#

2017 is supported

zenith terrace
#

TIM

earnest phoenix
#

Hi tim

umbral zealot
#

I dunno man as long as it works I'm not messing with that command 😂

fair axle
#

what should I do exactly?

quartz kindle
#

also add python to path is on by default im pretty sure

umbral zealot
mild vortex
#

why someone called this channel meme lelKEK

umbral zealot
#

run that command in an admin prompt

fair axle
#

but he said it supports vs 2017

earnest phoenix
#

JavaScript developers at work lol

umbral zealot
#

doesn't matter

earnest phoenix
#

What a mess

umbral zealot
#

it's gonna work anyway

quartz kindle
#

npm i -g windows-build-tools

#

in most cases that is enough

umbral zealot
#

If it were only that simple

quartz kindle
#

it has to be run from an admin powershell

umbral zealot
#

trust me I've been dealing with sqlite for 4 years, it's rarely that simple

zenith terrace
#

@quartz kindle hows that tim.sex domain KEKW

earnest phoenix
#

🗿 Woah

fair axle
#

I will try this 🙂

mild vortex
#

e__E

quartz kindle
mild vortex
#

wth

zenith terrace
#

Tim vs Evie KEKW

umbral zealot
#

I mean... flexing on my creds here, but 1.5 million downloads for enmap means I pretty much know this install method works a whole lot better than just instlaling the build tools alone

earnest phoenix
#

Hmm, is that the new alias domain for a horny site or something

umbral zealot
#

Please, trust me on this one 😄

earnest phoenix
#

Interesting

lusty quest
#

enmap is nice, until you realize that it stores everything in memory and it uses already 1GB

quartz kindle
umbral zealot
quartz kindle
#

but it most cases under normal circumstances and in a normal machine, the build-tools command alone should work

umbral zealot
#

You're right there's edge cases, which the whole thing I use covers, like up to 99.9%

lusty quest
#

used enmap when i started with bots, until my VPS ran out of ram

quartz kindle
#

so i usually ask them to try the normal way first

#

and if it doesnt work, then try something more specific

umbral zealot
#

the only thing that breaks nowadays is people with weird unicode folder names

lusty quest
#

i still think its funny that people ask stuff here that ive also ran into and googled it for 2 hours and found 6 Stackoverflow pages that where somewhere between 2-8 years old

#

sure its slower but you learn something in the process

quartz kindle
#

xD

umbral zealot
#

"this might take quite some time, depending on your internet connection"

#

¯_(ツ)_/¯

quartz kindle
#

yes but you know how stupid peple are

#

:D

lusty quest
#

expect people reading the page are donkeys

quartz kindle
#

people dont even bother reading these days

#

they just scan a website for code blocks and copy them

lusty quest
#

like you have to design software already in a way a 3 years old could use it otherwise some people will start complaining bcs they dont read stuff

solemn latch
#

Reading is hard

#

Heck quickly skimming is hard

umbral zealot
#

I've learned to just deal with it tbh

#

people occasionally join my support server and ask questions clearly answered in the docs and I let them know it's clearly written in the docs

quartz kindle
#

ye thats annoying

fair axle
lusty quest
#

make it simple, minimize codeblocks and to maximize them you have to answer a simple question where the answer is in the text above

sudden geyser
#

It can take a while

umbral zealot
#

After it's finished installing

#

restart your PC

fair axle
#

okey

umbral zealot
#

And yes I know it's not necessary

quartz kindle
fair axle
#

yes

quartz kindle
#

did you wait until it said "ALL DONE"

#

?

earnest phoenix
#

does anyone know how to make the bots activity be watching and the amount of servers its in?

#

discord.js

fair axle
quartz kindle
#

no

umbral zealot
#

no that's not done

quartz kindle
#

you have to wait until it says "ALL DONE"

earnest phoenix
earnest phoenix
#

can u help me please?

#

I'm busy right now

#

-_-

umbral zealot
#

Such a useless interaction.

earnest phoenix
fair axle
earnest phoenix
#

thank you

fair axle
#

also client.guilds.cache.size

umbral zealot
#

was about to post that, hehehe.

earnest phoenix
#

problem

lusty quest
#

someone should make a bot that posts matching docs/guides to basic coding questions in here

earnest phoenix
#

how do i make it detect the amt of servers its in tho

#

<client>.user.setActivity('<activity>', { type: 'WATCHING' });

#

that doesnt do much

lusty quest
#

sounds stupid but it could help users that get overlooked if a lot of traffic is in here

umbral zealot
#

already answered: client.guilds.cache.size

quartz kindle
#

the discord.js server's bot has commands for their entire docs

earnest phoenix
earnest phoenix
umbral zealot
#

yeah but why stop at discord.js we'd need commands for every single library and every single programming language docs, right? lol

lusty quest
#

lol i could do it myself

earnest phoenix
#

Can you help me write my bot too?

umbral zealot
lusty quest
#

depends, i prefer a non toxic work enviroment

umbral zealot
earnest phoenix
lusty quest
#

also im currently quite busy with work

earnest phoenix
#

If you're so busy then why are you wasting time chatting on Discord?

#

I don't appreciate your lies

lusty quest
#

bcs im done and want some human interaction?

earnest phoenix
#

You could've just said no

#

Oh so you're done

#

Can you help me now?

quartz kindle
#

LOL

lusty quest
#

depends

earnest phoenix
#

Ok depends on what

lusty quest
#

what did you have in mind?

umbral zealot
#

Maybe one day this guy's actually going to ask a programming question, who knows? We're all hoping for that.

earnest phoenix
#

Evie I have replaced you

quartz kindle
#

with some luck, maybe, just maybe

earnest phoenix
#

You have to move on

quartz kindle
#

oh wow

earnest phoenix
umbral zealot
#

Good freakin' riddance I say.

earnest phoenix
#

I know you'll be back soon

#

With some smart comments at something I say

sudden geyser
#

This is why white names are superior to green names

lusty quest
#

lol Lime Green is superior to Green

sudden geyser
#

anyway when are they going to be muted

lusty quest
#

and lime Green is superior to white

quartz kindle
#

there are two types of white names

earnest phoenix
#

I just came here for help like everyone else

sudden geyser
#

Don't play dumb.