#development

1 messages ยท Page 1116 of 1

earnest phoenix
#

yeah

#

love it

quartz kindle
#

check your /var/log/nginx/ale-bot.xyz.error.log

earnest phoenix
#

and it's so much more lightweight than chrome's pip extension

pure lion
#

okay

solemn latch
#

back to firefox i go

dire obsidian
#

is just that

quartz kindle
#

you are creating a new discord client there

#

basically a non-logged-in user

dire obsidian
#

well if i dont declarate it will say: client is not defined

#

i'll see bot.js

pale vessel
#

easy fix: define it.

quartz kindle
#

you need to get your existing client

#

you can get it from the message object

dire obsidian
#

jaja tons of tons of devs and me starting in a new languaje

pale vessel
#

and please don't create a new client again

quartz kindle
#

all discord.js structures have a property linking back to the client

#

for example message.client

slender thistle
#

Why is my settings.py file from default Django project pointing at sqlite3 ๐Ÿค”

dire obsidian
#

ok sorry

pale vessel
#

even client has a setTimeout/setInterval function, which is crazy

dire obsidian
#

ยฏ_(ใƒ„)_/ยฏ

pale vessel
#

client client client

pure lion
#

its up

#

but

#

its meant to prompt the user for shit

#

nvm im stupid

dire obsidian
#

On indie accent: hellou yoour computer hav client?

solemn latch
#

message.client

#

message.client will give you your actual logged in client

pure lion
#

tim it shows the site

dire obsidian
solemn latch
#

i meant <Client>

#

ie, you have to get client yourself

fathom jetty
#

i need help

dire obsidian
#

dont aks to ask

faint prism
#

@faint prism you're blocking the handler for more than 3 seconds
@earnest phoenix Oof, forgot to add Task.Run(() => TimeConsumingFunction) for every message (Passive user data update)

fathom jetty
#

for ./config isnt working for me

#

it said error

dire obsidian
#

what kind of error?

solemn latch
#

do you have a file named config at that location?

#

with no extension

fathom jetty
#

wait let me take a pic of it

earnest phoenix
#

Hello why bot offline in my server ?

warm marsh
#

it can have ext

solemn latch
#

whos bot

earnest phoenix
#

My english very bad sorry

dire obsidian
#

yes maybe

const config = require('./config.json');
fathom jetty
#

same

earnest phoenix
#

Invite manager

pure lion
#
Refused to execute script from 'https://ale-bot.xyz/script.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
earnest phoenix
#

go complain in their support server

pure lion
#

how to disable strict MIME type

solemn latch
#

so fast @earnest phoenix

warm marsh
#

are you doing this in browser? Asterki

solemn latch
#

i just barley got the link

earnest phoenix
#

lmao

fathom jetty
earnest phoenix
#

have you tried reading the error

fathom jetty
#

yeah

earnest phoenix
#

and what does it say

fathom jetty
#

it said "Cannot find module './Config' or its corresponding type declarations.ts(2307)"

earnest phoenix
#

do you understand what that means

fathom jetty
#

nope

earnest phoenix
fathom jetty
#

there wasnt an error for the yt person

earnest phoenix
#

beuh

#

yeah i was about to pull up the image

#

lmfao

solemn latch
#

i havent been filling it out

topaz fjord
#

pls enable esModuleInterop and I think it's syntheticdefaultimports

#

typescripts import syntax is pure aids

earnest phoenix
#

i'm pretty sure it's all good except they're copypasting from a tutorial and importing is case sensitive

solemn latch
#

i dont see the config file at the location they are getting it from tho

earnest phoenix
#

@scenic kelp car soccer?

scenic kelp
#

sir this is development

slender thistle
#

What's the advantage of using Django over Flask? nekothinking

topaz fjord
#

so that you can do ts import { Client } from 'discord.js' instead of ts import * as Discord from 'discord. js'

pure lion
#

im so close to having my website up plij tell how to
Refused to execute script from 'https://ale-bot.xyz/script.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

earnest phoenix
#

so is that a yes or no

scenic kelp
pure lion
#

*cri*

#

Refused to execute script from 'https://ale-bot.xyz/script.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
pls say how fix

wild adder
#

d!help

faint prism
#

@earnest phoenix Hm. If I spam one of my bot commands, I eventually hit a A MessageReceived handler is blocking the gateway task
But I'm sure not why totally... All the command calls are to async functions and that is called only from a delegate subscription

earnest phoenix
#

offload your entire logic to another task

golden condor
solemn latch
earnest phoenix
#

if you spam you hit the ratelimit, if you call a method that's on a ratelimit it will block until the ratelimit expires

#

chances are you hit one in a command

#

the command is blocking

#

so either offload that to another task or you can set the default runmode to Async in the command service config

#

RunMode.Async basically does the former

#

executes the command in another task so it doesn't block

faint prism
#

I suspect that is the area that causes the blockage

earnest phoenix
#

a

#

correct

#

you can either run that logic in another task or use RunMode.Async

#

keep in mind if you use RunMode.Async the result will always return successful and you will have to handle from the events instead

faint prism
#

Hm

#

The repo is the logic/implementation, and returns the reply string

#

I'm a bit slow rn, didn't sleep enough. I'll probably just come back to it later

earnest phoenix
#

the easiest solution is to:
run the filtering logic first (if message is in dm, if the author is bot etc.)
if the message passes the filter then run the rest of your logic in another task, easiest way being to use Task.Run

#

we filter first then offload to another task so we avoid wasting resources on messages we're not going to do anything with

faint prism
#

so for example instead of:
await ReplyAsync(commandLogic())
it should be:
Task.Run(() => ReplyAsync(commandLogic())) ?

earnest phoenix
#

yes but to avoid effort of replacing it in every command you can just do it in your event handler

faint prism
#
                if (!result.IsSuccess) _logger.Log(LogSeverity.Error, result.ErrorReason);```
#

Which is this area

earnest phoenix
#
Task Handler(message)
{
//filtering logic
  _ = Task.Run(async () => {
      //executeasync and all of that nice shit
  });
}
#

correct

faint prism
#

aha, the async () => answered my next question ๐Ÿ˜›

pseudo harbor
#

these serever for wahat

earnest phoenix
#

have you tried reading the channel that's literally fucking named faq

#

under the category that's literally named information

sterile minnow
#

Hi,

Does anyone know how i Convert: 2020-08-04T16:54:23.993Z

To a normal readable time in Javascript?

#

have you tried reading the channel that's literally fucking named faq
@earnest phoenix chill

earnest phoenix
#

i'm pretty sure you can just use the Date's constructor

#

Date's constructor properly parses ISO strings

sterile minnow
#

But how?

earnest phoenix
#

...by passing the string in the constructor

slender thistle
#

seriously

faint prism
#

wow

earnest phoenix
sterile minnow
#

Sorry that i never worked with dates ๐Ÿ™„

faint prism
#

Appreciate it btw, Cry

earnest phoenix
#

that's not never working with dates, that is not knowing javascript, you should know what passing in the constructor means regardless of the object type @sterile minnow

tight plinth
#

so I'm trying to do some shit with my bot. if I do!help, that should trigger the help command, the first console.log returns me an object with help: "help" in it, but the second console.log returns undefined, even if client.commands.get("help") works. any idea why

faint prism
#

Ah shit. I have to handle database locking now @earnest phoenix

sterile minnow
#

Ah this thing. I'm not native english so i dont understand some things

tight plinth
#

yes code sucks and could be optimized but whatever

#

oh wait a second

solemn latch
#

whats the point of evaling here?

tight plinth
#

k I'm definitively dumh

#

*dumb

earnest phoenix
#

SQLite? @faint prism

#

Doesn't SQLite not have any decent async libraries in Python? (asking for myself)

vestal star
#

Isn't sqlite a bad idea for bots?

earnest phoenix
#

Depends on what its going to be doing

vestal star
#

sqlite is made for storing configs/settings

pure lion
#

Refused to execute script from 'https://ale-bot.xyz/script.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

earnest phoenix
#

SQLite can't do concurrent database writes without locking or forming a queue

#

But reads are infinite

faint prism
#

It's C#, and I'm actually still on JSON serializing... My SQLite Database context ran into some dependency issues on my Linux-arm64 server, so I had to failover to my json ugh

solemn latch
#

you need to set the mime type to the relevant type

pure lion
#

how

earnest phoenix
#

why not use efcore with sqlite

#

Efcore?

#

whatthat

#

entity framework core

#

an ORM

#

it handles all of the sql and the binaries for you

#

Never used it, lol

#

i love working with it

pure lion
#

woooooooooooooooooooooooooooooooooooo

#

what do i doooooooooooooooooooooooooooooooooooooo

earnest phoenix
#

And I'm currently relying on Djangos ORM to handle the raw SQL for me, when it comes to SQLite

faint prism
#

I should consider efcore. I went with sqlite just because it looked light and simple

earnest phoenix
#

I'm switching to Postgres here soon anyways since I have multiple origin servers, & SQLite can't be connected to remotely

solemn latch
vestal star
#

@pure lion what do you need help with?

#

And please don't spam letters

delicate shore
#

Ther is a problem

#

My bot says playing with 34033 members

placid iron
#

Post gres post gres post gres

misty sigil
#

bcuz thats whats in cache @delicate shore

delicate shore
#

But this server alone

placid iron
#

I need to actually work out a better database solution

delicate shore
#

How to fix that?

placid iron
#

My one currently it's so bad

delicate shore
#

Jeremy

earnest phoenix
#

What are you using currently? @placid iron

placid iron
#

Fit every script I have it creates a new connection

#

@earnest phoenix sqlite3

earnest phoenix
#

Oh god

delicate shore
#

bcuz thats whats in cache @delicate shore
@misty sigil
Ant way to clear cache

misty sigil
#

no

vestal star
#

@delicate shore you won't be able to efficiently get the member count

delicate shore
#

And

sterile minnow
#

Okay other thing:

How do i like make a image out of these things: spotify:ab67616d0000b27391f5ee49ad8fa5da6f4bcfcf

Because i wanna make like a RichPresence Command where i set the Image of the Game or sth like that as a embed thumbnail

Discord.js

earnest phoenix
#

Oh, yee, might wanna move to Postgres or something & implement connection pooling

delicate shore
#

ok

#

;-;

misty sigil
#

infact client.users.cache.clear()

placid iron
#

And as you can see the gives me more of database locked problems

#

I'm going to rework the whole thing to pool connections

vestal star
#

@misty sigil I think they're asking how to get the correct member count of all servers

earnest phoenix
#

If you have multiple writes a second, yee

solemn latch
#

probably should look at the spotify api docs @sterile minnow

placid iron
#

Ye

sterile minnow
#

ty

earnest phoenix
#

Just switch to Postgres & use connection pooling, switching to Postgres alone would be fine even without the connection pooling, in order to fix DB locks

sterile minnow
#

i thought i can get that with discord itself but makes sense

solemn latch
#

discord doesnt host images for spotify

sterile minnow
#

ty

pure lion
#

@solemn latch it doesnt cover how i can actually set it up to execute the file

placid iron
#

I use postgres for my other project so it wouldn't be hard for me to do tbh. I'll look into it as idk the performance differences

vestal star
#

@pure lion what are you using, php?

solemn latch
#

your header should include the correct content type

earnest phoenix
#

Postgres can serve 100k+ reads/writes a second typically, pretty easily, if not millions

#

I don't think you'll ever need to worry about it

delicate shore
#

@delicate shore you won't be able to efficiently get the member count
@vestal star
Then why is server count perfect

vestal star
#

Servers arn't cached @delicate shore

placid iron
#

Ah ok then Pogpega

delicate shore
#

Ok

placid iron
#

I have already moved all the SQL stuff into a single file, I just need to configure it to create a single connection then give each script the same connection

vestal star
#

Yall need to learn how to use google...

solemn latch
#

people get used to others googling for them

pure lion
#

@vestal star nope, express

vestal star
#

Ok

sterile minnow
#

What is the best Spotify npmjs thingy without token to search like a track or sth?

vestal star
#

Tayron use the spotify api

pure lion
#

:l

solemn latch
#

are we going on a lmgtfy rampage rn?

vestal star
#

Probably, idk why ppl don't bother to just use google

solemn latch
pure lion
vestal star
#

not funny

sterile minnow
#

I searched for it on google and only web client things came up but thanks for help not

vestal star
#

YOU NEED A WEB CLIENT

#

THATS WHAT YOU ARE ASKING FOR

solemn latch
#

lol

sterile minnow
#

No i need that to just fucking get information abt the song and make a embed with this shit

solemn latch
#

you need to request from the spotify api

vestal star
#

THIS IS FOR CHATTING ABOUT BOT DEV, NOT USING US AS MACHINES TO GOOGLE SHIT FOR YOU. IDC ABOUT PEOPLE NEEDING SERIOUS HELP ABOUT SHIT THEY ACTUALLY DID RESEARCH FOR

slender thistle
#

you people need to calm down

vestal star
#

k

sterile minnow
#

I NEED HELP THATS WHY I FUCKING ASK

earnest phoenix
#

How i can check does number is a number

vestal star
#

K

#

did you use google

sterile minnow
#

@solemn latch ty

#

I searched for it on google and only web client things came up but thanks for help not
@vestal star

golden condor
#

Petition to add an lmgtfy command to luca

solemn latch
#

it would be mod only

vestal star
#

The web client is what you fucking need...

golden condor
#

No make it public

earnest phoenix
#

How i can check does number is a number
so ? why u guys are mad

slender thistle
#

You need to use the official API and send a request to a certain endpoint to get information

#

it's not that hard tbh

vestal star
slender thistle
#

@earnest phoenix Could you elaborate?

vestal star
#

typeof

earnest phoenix
#

for exmaple

#

@vestal star huh

#

no

solemn latch
#

isNaN ?

vestal star
#

also works

earnest phoenix
#

yes but not woriing

vestal star
#

what is ur number?

earnest phoenix
#

i tried

solemn latch
earnest phoenix
#

oh no

#

i made a mistake

vestal star
#

I need a fucking therapist after looking at this channel.

earnest phoenix
#

๐Ÿ˜‚ ๐Ÿ˜‚

#

you can always go full gordon ramsay

earnest phoenix
#

call anyone who asks a stupid question a fucking donkey full of yanky danky doodle shite

#

LoL

#

smh i forgot my question

vestal star
#

you

fucking donkey full of yanky danky doodle shite

pure lion
#

i set the content-type to text-js but it also renders the html as plain text so how do i make this fucker work

restive furnace
#

this channel is becoming gordon ramsay ๐Ÿ‘€

vestal star
#

you need to set it text/html if you want to deliver html

pure lion
#

but i want to also execute the js

vestal star
#

Is the js in a <script > tag?

opal plank
#

Oh god that was a fat rip

pure lion
#

its from a src

vestal star
#

it is still html

#

It would still runb

#

you are delivering html code, right?

pure lion
#

open a new room first

opal plank
#

just witnessed a guy in Testers do an eval with

for (g in client.guilds.cache) {
g.leave();
}

Rip his 44 servers

placid iron
pure lion
#

LmAo

vestal star
#

you are delivering js as html

restive furnace
#

lol @opal plank

pure lion
#

so what do

lusty quest
#

when you have copy/paste code and dont know what it does

vestal star
#

deliver js as js and html as html

opal plank
#

exactly

#

oh god thats painful to watch

pure lion
#

h o w

#

*criyig*

zenith terrace
#

just witnessed a guy in Testers do an eval with

for (g in client.guilds.cache) {
g.leave();
}

Rip his 44 servers
@opal plank did he just make their bot leave all guilds

placid iron
#

Could you just have the js in a static file

opal plank
#

yeah @zenith terrace

vestal star
#

-_-

#

fucking donkey full of yanky danky doodle shite

opal plank
#

all 44 servers

placid iron
#

And link it in a script tag

solemn latch
#

wouldnt js be application/javascript

zenith terrace
#

rip for that user

pure lion
#

i d k

vestal star
#

yes it would

pure lion
#

imnotsurehowtosenditasthat

restive furnace
#

as the content-type

pure lion
#

yes

restive furnace
#

fucking donkey full of yanky danky doodle shite
why

pure lion
#

but you can only have one unless im mistaken

near ether
#

is there a method to remove a reaction based on the reaction itself?

solemn latch
#

one per request

#

if someone requests
index.html
then later requests script.js
they can have different headers

vestal star
#

Someone fucking help this lost soul

pure lion
#

e

restive furnace
#

eval this this.client.shard.broadcastEval('for (let g in this.guilds.cache) g.leave()')
hypening#4183, is this the guy who did dis or what? Not Erwin

vestal star
pure lion
#

:d

#

wait what

#

nono

#

thats not how the story goes

solemn latch
#

wait, your script.js file is actually html?

placid iron
pure lion
#
const socket = io('/');
const videoGrid = document.getElementById('video-grid');
const peer = new Peer(undefined, {
    host: '/',
    port: '3001'
});

const myVideo = document.createElement('video');
myVideo.muted = true;
const peers = {}

navigator.mediaDevices.getUserMedia({
    video: true,
    audio: true
}).then(stream => {
    addVidStream(myVideo, stream)

    peer.on('call', call => {
        call.answer(stream)

        const video = document.createElement('video')

        call.on('stream', uStream => {
            addVidStream(video, uStream)
        })
    })

    socket.on('user-connected', userID => {
        connectToUser(userID, stream)
    })
})

socket.on('user-disconnect', userID => {
    if (peers[userID]) peers[userID].close()
})

peer.on('open', ID => {
    socket.emit('join-room', connection.IDs.room, ID);
});

function connectToUser(userID, stream) {
    const call = peer.call(userID, stream)
    const video = document.createElement('video')
    call.on('stream', uStream => {
        addVidStream(video, uStream)
    })
    call.on('close', () => {
        video.remove()
    })

    peers[userID] = call
}

function addVidStream(video, stream) {
    video.srcObject = stream
    video.addEventListener('loadedmetadata', () => {
        video.play()
    })
    videoGrid.append(video)
}
#

this is my script.js file

solemn latch
#

whats your domain again?

pure lion
#

no retar

vestal star
#

its the same fucking thing, except my link skips a step

placid iron
vestal star
#

Also you really need to fix ur styling

pure lion
#

i d c

#

:)

restive willow
#

is there a discord library for Brainfuck

vestal star
#

nop

pure lion
#

at least im not using !important

placid iron
solemn latch
#

yeah, looks like your your script.js isnt what you think it is

pure lion
#

oh yeah idk how to mobile theres probably a meta tag

vestal star
restive willow
#

Not optimal
@placid iron but it's OK he's not using !important

vestal star
#

it's offcenter because of the screenshot

solemn latch
#

if you look in your browser, and press f12, and look at script.js its not what your screenshot shows

pure lion
#

but thats fucked

solemn latch
pure lion
#

what the fuck

solemn latch
#

oop

vestal star
#

LMAO

solemn latch
#

and it just crashed firefox

#

lmao

pure lion
#

lmao

placid iron
#

There is no mobile meta tag

#

At least what I know

vestal star
#

some people should learn how to use css before using it

pure lion
#

<meta isthisbitchmobile?>

vestal star
#

nop

pure lion
#

navigator.something

vestal star
#

just write good responsive css

placid iron
#

How do you expect meta tags to help anyway

pure lion
#

idk

#

x)

restive furnace
#

or use bootstrap or react

vestal star
#

meta tags are just for "meta"

pure lion
#

m e t a

placid iron
pure lion
#

but yeah what the fuck do i do

placid iron
#

http://egg.rovi.me/ meta if I don't say so myself

pure lion
#

because thats the room.ejs file

placid iron
#

@pure lion get it to send the js as js would be a start ๐Ÿ‘Œ

pure lion
#

ok but how do i send the fucking file as its own soidguoshndfhunad;fbh

vestal star
#

this man is a lost cause

placid iron
#

Maybe ok

#

Show is your code

#

Which servers the files

earnest phoenix
#

@placid iron You should see me site on mobile then

#

Its AIDs

#

Actually

#

My entire frontend is dogshit

vestal star
#

its aids on pc too

earnest phoenix
#

I spent like 10 minutes slapping it together

#

Yee

pure lion
placid iron
#

@earnest phoenix I love my front end, my backend is aids. Together we can combine and become trash at both ends ok

earnest phoenix
#

Is it? @vestal star

#

Sounds good @placid iron

placid iron
solemn latch
#

.ejs

vestal star
placid iron
#

Right so first of all I see that isn't a .html or a .js

pure lion
#

oh no you cut off the margins

earnest phoenix
#

Oh, thats not my site

#

I thought you were talking about mine

vestal star
#

I did not

earnest phoenix
#

https://nekos.club is mine @vestal star

vestal star
placid iron
#

Why can't I access l e w d n e k o s

vestal star
#

I could help you make it better

earnest phoenix
#

You can't? @placid iron

solemn latch
#

you cant access lewd nekos, oh no

earnest phoenix
#

Ehh, whats wrong?

placid iron
#

Error 1020

pure lion
#

*cri*

earnest phoenix
#

Oh, I implemented new Cloudflare rules last night

#

I'll fix it now

placid iron
#

F

earnest phoenix
#

ยฏ_(ใƒ„)_/ยฏ

pure lion
#

so ignoring the mentally disabled everything else :)))))))))))))))))))))))))))))))))))))))))))))))))))))))))

vestal star
#

Aight my power went the fuck out

placid iron
#

What is .ejs

pure lion
#

wdymwhatis.ejs

vestal star
#

Ejs is a template renderer

#

I think

pure lion
#

yes

placid iron
#

Ah ok

pure lion
#

you think good

solemn latch
#

what are you actually using ejs for?

vestal star
#

Tamplating

pure lion
#

room ID template black magic fuckery (not clickbait ๐Ÿ’ฏ%) (definitely real) (also definitely braindead) โ„ข๏ธ

solemn latch
vestal star
#

Is a uiidv4

solemn latch
#

couldnt you just use js to display it rather than templating it into the page?

vestal star
#

Uuid

pure lion
#

it is a uuidv4 and i dont fucking know woo

earnest phoenix
#

Okay, try it again https://nekos.club/lewd @placid iron @solemn latch

vestal star
#

It's the uuid stack overflow answer

solemn latch
#

yeah its working

pure lion
#

oh

placid iron
#

Works perfectly

#

Thank you

earnest phoenix
#

About to test maintenance mode using Cloudflare workers, hopefully this works

#

What about now, receiving maintenance message when trying to view the site?

solemn latch
#

yeah

earnest phoenix
#

Still need to work on the maintenance page but its working, so thats good

placid iron
#

Pog

earnest phoenix
#

I have so much work to do, I'm almost done filtering loli images, images that are too small, & images with text/web links on them out of the API/site

#

Then I have to rewrite the front end

#

Then work on the API some more

#

@earnest phoenix ._. loli image

#

U are HENTAI

pure lion
#

HA I FIXED IT

#

HAHAHAHAHAHAHAHHAHAHAHHA

#

IT STILL DOESNT WORK

#

FUCK

solemn latch
#

oof

pure lion
#

So for peerjs (installed globally so I can start a server on a port from the console) what the fuck do I do to make it work

queen hearth
#

It's a hacker themed bot but it's only for moderation lol

pure lion
#

Noice

quasi bear
earnest phoenix
#

1-2 weeks

#

if u lucky 3-7 days

solemn latch
#

3+ weeks

earnest phoenix
#

No

solemn latch
#

??

earnest phoenix
#

my bot it takes only 4 days

earnest phoenix
#

yes for now

#

but during the corona it takes fast

#

like 1 week min

#

nvm i am dumb

#

ok it takes 3 weeks +

#

My options don't seem to work

#

.

placid iron
#

@earnest phoenix i dont know if you care that much but i think i have the connection pooling groundwork layed out, i just need to edit the scripts to implement it

earnest phoenix
#

oh i am not good in music

#

@earnest phoenix What's the problem tho

#

literaly i dont know anything about music

#

Confused

#

the options dont do anything

#

They do, you can't notice them

#

i changed the volume to 0.5 and nothing changed

#

didnt hear any difference

#

That doesn't change the volume of the dispatcher

solemn latch
#

i dont even see the volume option in ytdl

earnest phoenix
#
<StreamDispatcher>.setVolumeLogarithmic(<Volume>);```
#
const options = { seek: 2, volume: 0.5, bitrate: 192000, filter: 'audioonly' };
d.dispatcher = await d.connection.play(ytdl(url, options));
#

volume is not an option in ytdl

#

ok ๐Ÿ‘

#

Even if it's, it wouldn't affect the volume of the dispatcher

#

yes i understand that now ty

#

what does seek do exactly

solemn latch
#

i dont see the seek option either

#

where are you getting your options from?

dire obsidian
#

how to declarate a global variable who can use in all the files?

earnest phoenix
#

I saw them in a youtube video when i just started learning discordjs and i have never changed them

solemn latch
#

hmm

earnest phoenix
#

(module.)exports

solemn latch
#

well i dont see seek as an option

sonic lodge
#

the global object is exposed to every file in your program

earnest phoenix
#

every bot i ad is in this

#

my bad then sorry

sonic lodge
#

type global.my_property = 5, and my_property is available in all your files

earnest phoenix
#

bitrate is an option though isnt it

solemn latch
#

i see quality as an option, but not bitrate

earnest phoenix
#

Please don't use the global object to set variables

queen hearth
dire obsidian
solemn latch
#

why do you need to require discord?

dire obsidian
#

embeds

earnest phoenix
#

weird

#

how can i change the bitrate then

heavy marsh
#

In discord.js v12.2.0 is there a way to fetch any user information by there ID?

earnest phoenix
#

<Client>.users.fetch(<id>);

heavy marsh
#

Any user?

earnest phoenix
#

you forgot the cache manager change

solemn latch
#

you can just build embeds yourself, theres no real good reason to use the lib embed builder

earnest phoenix
#

@heavy marsh yea

#

nevermind

#

i'm

#

ignore what i said

solemn latch
#

ive done the same

#

a lot

heavy marsh
#

Even if the user is not sharing a server with the bot?

dire obsidian
#

you can just build embeds yourself, theres no real good reason to use the lib embed builder
@solemn latch if i dont it will say: Discord is not defined, i think is because i use const embed = new Discord.MessageEmbed()

queen hearth
dire obsidian
#

3+weeks

earnest phoenix
solemn latch
#

the discordjs embed builder just builds an object

earnest phoenix
#

@heavy marsh <client>.users.fetch(<id>) would fetch every user no matter what

queen hearth
#

Oog

heavy marsh
#

OOh ok let me check

earnest phoenix
#

there's literally a damn channel for questions under a category that's literally fucking named INFORMATION in bold capital letters and you couldn't be bothered to skim through that?

misty sigil
#

lmao

earnest phoenix
#

ohhhh Chill man

misty sigil
#

i feel the same way

dire obsidian
#

please everyone here have questions

earnest phoenix
#

a lot of dumb ones which they could answer themselves lol

dire obsidian
#

but yes someones have to piss off the others

pure lion
#

What is 2 + 2? thonkku

earnest phoenix
#

1

#

69

#

boolean's logic mmLol

dire obsidian
sonic lodge
#

true + true = 2

misty sigil
#

hey devs of luca

heavy marsh
#
${client.users.fetch(`xxx`).username}
#

Like this?

earnest phoenix
#

no

#

fetch returns a promise

#

^

heavy marsh
#

ahhh

#

await

earnest phoenix
#

correct

heavy marsh
#

I am dum

#

let me recheck

dire obsidian
#

no, me is dumb, i write emebd and thats why some of the embeds dont work

solemn latch
#

you can just build it yourself

#

no need to use discord.messageEmbed

dire obsidian
#

huh, maybe but i think ill declarate discord on all commands

#

actually isn't to hard, is just anoying

solemn latch
#

well the discord.messageEmbed is slower

earnest phoenix
#

It's not slower, just longer

dire obsidian
#

Read conseption time

earnest phoenix
#

You can just extend MessageEmbed from discord.js and export through all files

dire obsidian
#
        if (command.aliases) data.push(`**Aliases:** ${command.aliases.join(', ')}`);
        if (command.description) data.push(`**Description:** ${command.description}`);
        if (command.usage) data.push(`**Usage:** ${prefix}${command.name} ${command.usage}`);
        data.push(`**Cooldown:** ${command.cooldown || 3} second(s)`);
        const embed = new Discord.MessageEmbed()
        .setDescription(data, { split: true})
        .setColor('#7288da')
        message.channel.send(embed);
``` well i use this and i have no problems
#

like i just copy paste from the discord.js guide

#

i only add the embeds

strange trout
vestal star
#

Aight I have a quick question, what is best practice for keeping "global" variables, classes, and functions?

dire obsidian
#

i have the same question...

lusty creek
earnest phoenix
#

1- Declare the variable/class/function
2- export it through all files using module.exports
3- There

vestal star
#

Example?

earnest phoenix
#

You declare them in your main file?

dire obsidian
#

thats the main

#

wat

vestal star
#

Like this?
app.js

require('vars.js').var

vars.js

module.exports.var = "foobar"
strange trout
#
//functions.js
module.exports = {
  myMethod() {

  },

  myOtherMethod() {

  },
};

// command.js
const { myMethod } = require('./functions');

myMethod();
#

There's a lot of ways to do it

vestal star
#

K, but what if it's not static

still merlin
strange trout
#

K, but what if it's not static
What do you mean

solemn latch
#

dont you just pass the variable?

vestal star
#

I mean, I have a list of links, and I need to refresh it every 15 minutes and I need to be able to access this list from other files

#

And set it

sonic lodge
#

the semicolons don't matter

#

they're just inconsistent

dire obsidian
#

@still merlin well look ok, but line 24 needs a ;
also line 19 dont need a ;

#

that can be one of the problem

earnest phoenix
#

@still merlin

message.channel.send(`\`\`\`โŒ Error preforming eval command\`\`\` (${err})`)``` try this?
still merlin
#

But i want the text block like this

earnest phoenix
#

It's already doing that

strange trout
#

Then you can do something like

const links = require('path-to-links');

module.exports.refreshLinks = () => {
  // Logic here
};
```@vestal star
#

Unless I'm understanding incorrectly lilyHmm

vestal star
#

So I should store shit in modules?

torn ravine
#

@still merlin wym poll not working

still merlin
#

Poll doesn't respond

#

Nor does eval

dire obsidian
sonic lodge
#

the semicolons don't matter

solemn latch
#

^

strange trout
#

How else would you export it then @vestal star

dire obsidian
#

well in java yes, im traumed with java

vestal star
#

K

sonic lodge
#

not in js

dire obsidian
#

@still merlin read the console and copy & paste here the first line of the error

#

sometimes looks like this: SyntaxError: Unexpected token '.'

#

well you understand me rigth?

still merlin
#
Server count posted! x40 more times
Server count posted!
Server count posted!
Server count posted!
DiscordAPIError: Missing Permissions
    at RequestHandler.execute (C:\Users\Jon\Desktop\SpiderBot Project\node_modules\discord.js\src\rest\RequestHandler.js:170:25)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  method: 'delete',
  path: '/guilds/734421364710309969/members/397195869738500116',
  code: 50013,
  httpStatus: 403
}
Server count posted!
#

that is all my console has

torn ravine
#

@still merlin it doesnโ€™t have permission to react

dire obsidian
#

yep

torn ravine
#

bot doesnโ€™t

still merlin
#

My bot has admin permissions

torn ravine
#

does it have every perm tho

still merlin
#

Yes

dire obsidian
#

try cls the screen, then executing again the command

still merlin
#

Also my bot is trying to delete a guild I think

misty sigil
#

anyone know how i can get actual member count instead of cached member count?

dire obsidian
#

thath should show the error

#

anyone know how i can get actual member count instead of cached member count?
@misty sigil ${client.members.size}?

solemn latch
#

guilds have a .memberCount property

#

you could just add all of them together

still merlin
#

and console is empty

misty sigil
#

so just a forEach?

dire obsidian
#

try changing th let embed for const

solemn latch
#

you could map and reduce it aswell

dire obsidian
#

nothing is sending

earnest phoenix
#

@misty sigil

<Client>.guilds.cache.map(g => g.memberCount).reduce((a, b) => a + b);```
still merlin
#

Let and Const don't matter do they?

#

I mean there both variables except you can't change const's

placid iron
#

when you have over 10 different connections to a database and each one blocks when they are using the databse (and i have some on message listeners) and then i pool them all into one

earnest phoenix
#

@still merlin js const args = message.content.split(" ").slice(1); switch (args[0]) { i see the problem

still merlin
#

?

placid iron
#

the feeling of no more conflicting commits

#

so nice

earnest phoenix
#

args[0] !== <poll
args[0] === Test

#

You've completely set all commands to first argument

#
switch (args[0]) {```
Should be
```js
switch (message.content.split(" ")[0]) {```
still merlin
#

OH thanks

earnest phoenix
#

Any errors?

still merlin
#

No

strange trout
#
const args = message.content.slice(1).split(' ');
const command = args.shift().toLowerCase();

switch(command) {

};
earnest phoenix
#

@placid iron Congrats

placid iron
#

thank you

#

i tried to use postgres

#

but it kinda didnt want to work

strange trout
#

Postgres is hot

earnest phoenix
#

@still merlin oh wait omg... I just realized

placid iron
#

so i just have a connection function where i can pass a connection into and that overides the default one

still merlin
#
:\Users\-- name --\Desktop\SpiderBot Project\index.js:951
  const command = args.shift().toLowerCase();      
                              ^

TypeError: Cannot read property 'toLowerCase' of undefined
    at Client.<anonymous> (C:\Users\Jon\Desktop\SpiderBot Project\index.js:951:31)
    at Client.emit (events.js:327:22)```
placid iron
#

and then the bot class has a connection variable

earnest phoenix
#

You literally set the commands to poll or eval without the prefix

#

Postgres has a connection limit among other things you need to learn, compared to something like SQLite

still merlin
#

I'm just doing what I always do ๐Ÿคท

placid iron
#

mmm, also you have to have a server or something. i didnt realise that (even if it is localhost)

earnest phoenix
#

Make sure you go through & understand how it runs, or else you'll have problems later down the rode

#

@still merlin change it back to what i said and try changing

case "poll":```
To
```js
case "<poll":```
And
```js
case "eval":```
To
```js
case "<eval":```
still merlin
#

I do case: and then just ignore anything in the start that isnt the prefix

strange trout
#

SQLite doesn't scale well

solemn latch
#

or removing < from your command variable

strange trout
#

It's not good in the long run

earnest phoenix
#

Depends on the use case

placid iron
#

yeah but like...... i dont think im going anywhere with this either lmao

earnest phoenix
#

Then SQLite would be fine

#

How do I get data from a Object.

solemn latch
#

.property

strange trout
#

@still merlin Did you define args the same way I did

earnest phoenix
#
<Object>.property```
For string properties such as `'dist-tags':`
```js
<Object>[<property>]``` @earnest phoenix
misty sigil
#

i am bored

earnest phoenix
#

Thanks.

misty sigil
#

what shall i add to my api

still merlin
#

Idk but i fixed it

strange trout
#

rate limits

earnest phoenix
#

So .property is the property I am looking for?

misty sigil
#

rate limits

still merlin
#

Internet went down for a moment

earnest phoenix
#

Yea

strange trout
#

Debouncing for data that doesn't change very often

#

Authentication

#

Try to improve your error handling

#

If your API is in a single file then try to separate it and check out how to implement common practices such as controllers and services

earnest phoenix
#

how would i add multiple requests to a command on python

#

like

#

.mute @/test 20 rude

sudden geyser
#

wdym by "requests"

#

do you mean multiple arguments

earnest phoenix
#

yes

sudden geyser
#

If you're using Discord.py's command framework, you can use that * syntax like this: py @commands.Command() async def mute(ctx, member: discord.Member, time: int, *, reason)

#

I think

earnest phoenix
#

alright

jagged sun
#
        var userbank
        try {
            userbank = db.getData(dbpath.bank + userid)
        } catch (err) {
            console.log(err)
        }
        var multiplier = this.getMultiplier(userid) (Multiplier value is 1.05)
        if(Math.sign(value) === 1) {
            value = value * multiplier
        }
        userbank += value
        db.push(dbpath.bank + userid, parseInt(userbank))
        return userbank
    }```Guys can someone please please help me, js is confusing me again. This is a function, where a value with a multiplier should be pushed into a database, but the multiplier should only be used, if the value of value is > 0. But somehow the multiplier is always getting used, even if the number is negative, it smh ignores the if
sudden geyser
#

are you using your control statement (if) properly? I assume db.push is where you push to the database some more data, but you never tell it to exit or not run it.

jagged sun
#

It should work, idk because it always has worked, but smh the multiplier does not work

still merlin
#

Does anyone know how to use custom emojis when trying to display a users status, I tried this .addField("Status", message.author.presence.status + \ :${message.author.presence.status}:`)` but it just said :dnd:

jovial nexus
#
  if(reaction.emoji.id === "740293919820218478") { // -
                message.channel.send("Hola")
```  gives me ```ReferenceError: reaction is not defined```
#

but i have the id

sudden geyser
#

reaction is supposed to be a reaction (probably) yet it's clearly not defined

jagged sun
#

var reaction = collected.first() add this @jovial nexus

solemn latch
#

๐Ÿค”

earnest phoenix
#

` } else
if (command === 'kick') {
const userKick = message.mentions.users.first

    if (userKick) {
        var member = message.guild.member(userKick);

        if (member) {
            member.kick('you have have been for breaking the rules.').then(() => {
                message.reply(`kicked user ${userKick.tag}!`);
            }).catch(err => {
                message.reply('I was not able to kick that user.')
                console.log(err);
            })
        } else {
            message.reply('that user is not in the server.')
        }
    } else {
        message.reply('you need to state the person you want to kick.')
    }
}

})

bot.login(token);`

#

oops

sudden geyser
#

Does anyone know how to use custom emojis when trying to display a users status, I tried this .addField("Status", message.author.presence.status + \ :${message.author.presence.status}:`)but it just said :dnd\: @still merlin you'd need to look in themessage.author.presence.activitiesarray and see if.typeis equal toCUSTOM_STATUS`

earnest phoenix
#

this wont work discord.js

sudden geyser
#

You can then do .emoji on the activity

solemn latch
#

```
```

sudden geyser
#

but you also need to be in the server the emoji came from

#

jeez what won't work about it.

earnest phoenix
#

ill give you the error code or something

#

(node:8508) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions

solemn latch
#

your bot needs permission to kick a user

earnest phoenix
#

it is above the role

#

it has

solemn latch
earnest phoenix
#

ok

jagged sun
#

What means UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Access?

earnest phoenix
#

you're missing access

#

๐Ÿง 

jagged sun
#

But what is Missing Access???

earnest phoenix
#

take a shot at guessing

jagged sun
#

Bro I would not ask if i knew it..?

earnest phoenix
#

it's self explanatory

jagged sun
#

When does this apper?

earnest phoenix
#

โœจ brain exercises โœจ

jagged sun
#

When does this appear?

earnest phoenix
#

when you're missing access

#

let's try this, when you try to enter a locked door, you're missing what?

misty sigil
#

access

earnest phoenix
#

im teaching you how to read and understand your own errors

#

and yes

jagged sun
#

pls just tell me to what it has not got access?!

earnest phoenix
#

when you're missing access

#

i will refuse to give you any other answer until you start thinking

#

im teaching you how to read and understand your own errors
@earnest phoenix

#

Learn to Google, read, & think for yourself

jagged sun
#

I would not have asked, if i knew the result...

#

How does this appear?

earnest phoenix
#

Some people are beyond help. We also must learn to accept this.

#

when you try do to an action you're missing access for

jagged sun
#

I know that

solemn latch
#

im not sure how it can be explained more clearly than that

jagged sun
#

But it somehow it happens at every command?

earnest phoenix
#

Like I said

Some people are beyond help. We also must learn to accept this.

glass steeple
#

How to set time in tasks.loop ? , i don't want to run it daily after 24h , i want to run it daily at 12 am. how can i do that

solemn latch
#

schedulers

earnest phoenix
#

in what language

#

i lost my crystal ball, can't read minds anymore sorry

#

I got mine right here

#

Lemme see... Hes talking about Python

solemn latch
#

magic

sudden geyser
#

i lost my crystal ball, can't read minds anymore sorry
how much will a replacement cost

#

and don't say anything about a brain

faint prism
#

about tree fiddy

jagged sun
#

Ok, I will tell it like that: My bot has never made any problems, but just now a guy added it to his server, and at every command he used, there was UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Access? Does anyone have an idea why this appeared?

misty sigil
#

its a permission error

faint prism
#

permissions

solemn latch
#

your bot is doing something it doesnt have access to

misty sigil
#

he hasn't given the bot all the perms it needs obviously

jagged sun
#

But it's not Missing Permissions

earnest phoenix
#

debug it then

jagged sun
#

it's Missing Access

earnest phoenix
#

see from which line the error is coming from

misty sigil
#

which line is it coming from

jagged sun
#

Just from discord.js files

faint prism
#

@jagged sun
You need include in your code to check for permissions prior to executing a privileged command. And then make sure your invite link includes them.

solemn latch
#

missing access is a form of missing permissions

jagged sun
#

@jagged sun
You need include in your code to check for permissions prior to executing a privileged command. And then make sure your invite link includes them.
@faint prism I did that

#

missing access is a form of missing permissions
@solemn latch Do you know which permission?

solemn latch
#

depends on what your bots trying to do

jagged sun
#

just sending messages lmao

solemn latch
#

then it probably doesnt have access to those channels

earnest phoenix
#

^

jagged sun
#

But if it has permission read messages but not send messages it is Missing Permissions

solemn latch
#

sometimes

dire obsidian
#

so i make a meme command with snekfetch and randompuppy, but when i try it whows this...

solemn latch
#

does this server have a reaction role bot?

#

ie you need a role to access channels?

earnest phoenix
#

snekfetch is deprecated

#

use node-fetch

hybrid roost
#

my discord.js bot stops playing a track three seconds before the end. The most interesting thing is that it works on my windows10 computer, and such a bug occurs on the Linux Ubuntu server.

There are no logs, or events..

earnest phoenix
#

yeah give me a sec i need to borrow a ๐Ÿ”ฎ to pull all relevant info out of your mind with โœจ magic โœจ

solemn latch
#

maybe a buffering issue of some kind?
ie it stops playing if its not loading something, so once the rest of the audio is loaded it stops playing?

dire obsidian
#

use node-fetch
@earnest phoenix work at thesame way or i need chane the code?

earnest phoenix
#

every lib is different

misty sigil
#

it's pretty similar tbh

hybrid roost
#

Maybe, my server not so powerful

earnest phoenix
#

look at the npm page for respective methods and samples

dire obsidian
#

ok ill see

hybrid roost
#

maybe a buffering issue of some kind?
ie it stops playing if its not loading something, so once the rest of the audio is loaded it stops playing?
I think so. I am loading audio from YouTube using Ytdl-core. What i have to do for fix, or just catch this bug in code?

earnest phoenix
#

does the same happen for longer audio tracks or does it cut off really early

hybrid roost
#

whether it's a bohemian rhapsody or a one-hour version of Never Gonna Give You Up, the mistake happens at the end (yes, I did listen to the one-hour version of this track)

solemn latch
#

the github issues page for this issue seems to have a few fixes

errant perch
#

if i want my bot to send a message that is greater than 2048 characters how do i delete the other chracters

#

like if the message was greater than 2048 how do i delete the excess

solemn latch
#

depends on your language

hybrid roost
earnest phoenix
#

take the first 2048 characters in the string

#

๐Ÿง 

#

there are multiple ways to do this

#

a lot of which are documented and explained online already

errant perch
#

discord.js

solemn latch
#

discordjs is a lib, not a language

earnest phoenix
#

you don't delete characters because that's not how programming works

errant perch
#

javascript

earnest phoenix
#

a string is already allocated

#

a lot of which are documented and explained online already
@earnest phoenix

#

learn to use tools available to you to resolve your issue

solemn latch
#

id look into substring

errant perch
#

ok

#

thank you at woo i got it working

small prairie
#

Can i send a message to a channel in every server regarding a poll/change in my bot?

sonic lodge
#

you can, but you shouldn't

small prairie
#

i aint asking how
im asking if i can

#

Why not?

sonic lodge
#

it might be api abuse

solemn latch
#

it is api abuse

flat hollow
#

Hi

small prairie
#

If i add a timeout?

solemn latch
#

its api abuse by nature

small prairie
#

Oh API abuse as in privacy?

solemn latch
#

if you want to poll something, poll it in your support server

earnest phoenix
#

No, it spams the API with useless requests

#

Even if spaced out over time

small prairie
#

1 well every 15 seconds is useless wew

misty sigil
#

anyone know how to stop setTimeout from firing the first time

small prairie
#

set Timeout doesnt fire first time afaik

flat hollow
#

@small prairie how to get bot developer badge?

misty sigil
#

get a verified bot

small prairie
#

@flat hollow make a bot, get it to 75+ servers organically, apply for verification, Wait an eternity , get your badge

flat hollow
#

@small prairie k

solemn latch
flat hollow
#

Ty

halcyon ember
#

if I have a json like this { halp: "help",haop:"help"} how can I make it so a variable will find either halp or haop from user input in js?

faint prism
#
 "halp": "help"
}```
solemn latch
#

like variable.halp

earnest phoenix
#

how i can do a minigame like Sokoban?

#

i dont know, you tell me

amber fractal
#

this pains me

halcyon ember
#

how do you do that

earnest phoenix
#

that

#

@halcyon ember you probably want to structure your json as an array instead,

{
"help": [ "haop", "help" ]
}
faint prism
#

Mmm

#

Yeah

#

An array is a probably better idea

solemn latch
#

i thought that was just an example object

faint prism
#

๐Ÿคทโ€โ™‚๏ธ

earnest phoenix
#

How do I make my discord py bot dm someone when they add my bot to their server?

solemn latch
#

just for an example
json Example vvvvv


{
  "testVar": "somestring",
  "otherVar": "A string"
}

js v

const test = "testVar"
jsonExample[test]

would return somestring

#

right?

earnest phoenix
#

you cannot @earnest phoenix

#

lol

#

you can

dire obsidian
#

well i make a meme command but yeet

module.exports = {
    name: 'meme',
    aliases: ['Meme', 'memes', 'Memes'],
    description: 'Send a meme.',
    guildOnly: false,

    execute(message) {
        const Discord = require('discord.js');
        const Puppy = require('random-puppy');
        const reddit = ['dankmeme', 'dankmemes', 'me_irl', 'memes']
        const subreddit = reddit[Math.floor(Math.random() * reddit.legth)];
        const img = random(subreddit);
        const embed = new Discord.MessgeEmbed()
        .setImage(img)
        .setTitle(`From /r/${subreddit}`)
        .setURL(`https://reddit.com/r/${subreddit}`)
        message.channel.send(embed);
    },
};
``` says random is not defined
earnest phoenix
#

no, you can't

#

yes you can

#

yunite does

#

you can't get who invited your bot

#

Yunite Does

#

You can, wym

#

Just have it DM the guild owner

#

kk

solemn latch
#

^ thats not who invited it

#

thats just the guild owner

earnest phoenix
#

its not

#

Exactly

#

Its not but its the best you'll get

#

ok

#

Unless you make it check audit log

#

And grab the user from there, idk if discord.py supports that though

solemn latch
#

does audit log have bot invites?

earnest phoenix
#

Yeah

#

oh yeah, they recently added that

solemn latch
#

ah cool

earnest phoenix
#

unless you go through oauth2 or query audit logs, you can't get who invited the bot

#

safest bet would be to go through oauth2 since audit log perms can still be turned off regardless whether you ask for it or not

#

but oauth2 requires more effort

#

oauth2 is shit

#

no it isn't

solemn latch
#

Oauth2 is used everywhere for a reason

digital ibex
#

????

#

how is it tho

halcyon ember
#

@earnest phoenix if I do that how can I take a variable say command that has value of "haop" how can I make it find within the array and return "help"?

earnest phoenix
#

are you trying to add multi language support?

halcyon ember
#

no

earnest phoenix
#

then what are you trying to do

solemn latch
#

I think the object method was right

halcyon ember
#

im trying to make it so if you make a typo it will execute the right command

earnest phoenix
#

uh

#

you probably don't want to do that

solemn latch
#

Or a map

halcyon ember
#

well i mean like a message like unknown command, did you mean this command

thick gull
#

there's a tutorial for aliases in the discordjs.guide

#

you can add a couple typos

#

if you want

halcyon ember
#

hmm

solemn latch
#

Might want to have two types of aliases, actual aliases, and typo aliases

#

A bit more work, but would allow you to display proper aliases separately from typos

halcyon ember
#

hmm

earnest phoenix
#

how do i make it so only a certain role can use a command in python

#

loop through the user roles and check for the name/id

#

can i get a code rq lol

misty sigil
#

no

solemn latch
#

the code to everything is 42

misty sigil
#

Rule 7.
a. Donโ€™t spoon-feed or attack beginners.
Everyone starts somewhere and asking questions is smart. Do not attack people for not knowing how to code. Point them to great learning sources and help them with problems.
However, you shouldnโ€™t just give them finished code because then they only learn to copy more.
b. If you are a beginner, have a will to learn and do not expect to be spoon-fed.

pure lion
#

Is there any black magic fuckery I need to use to make peerjs work because it's not working properly

digital ibex
#

yeah, its ez

sterile minnow
#

Hi
i use quickdb to store my radios and f.e. i have radio1 radio2 and radio3

And it is stored like this:

[
{name:"Radio1"}
{name:"radio2"}
{name:"radio3"}
]

How do i delete radio 2

Google didnt help just made me more confused then before

digital ibex
#

say mother trucker ur moms a sucker, go to sleep b4 i go to sleep peerjs peejs work or dont work, peerjs peerjs, live or die!

#

e๐Ÿ…ฑ๏ธpic

sterile minnow
#

i need that for quick db tho

honest perch
#

...

solemn latch
#

fetch it from quickdb and then delete it from the array?

sterile minnow
#

Like i said idk how to delete it from the array

#

Oh

solemn latch
#

that link says how

#

๐Ÿค”

sterile minnow
#

I just didnt understood u

#

lel

digital ibex
#

has anyone here used contabo and galaxy gate?

solemn latch
#

i have 2 vps's on galaxygate rn

pure lion
#

yeah, its ez
Share so I can sleep

digital ibex
#

i want to get a gg vps or contabo, dk which one, im swaying more to galazy gate but idk

solemn latch
#

contabo is known to oversell

digital ibex
#

oversell?

#

like give too much?

pure lion
#

Probably

#

But also how peerjs nginx plij

digital ibex
#

ur prob better off going to stackoverflow.com since it seems not many people have used that here

pure lion
#

Ayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

digital ibex
#

now someone who has used it will say something now

pure lion
#

Please^^^

honest perch
#

Contabo is bad

#

Gg is good

digital ibex
#

why tho

honest perch
#

Workbenches

#

On shelves

pure lion
#

No

hardy vector
#

vxhelp

honest perch
#

You get what you pay for

digital ibex
#

wrong channel

#

idiot

pure lion
#

You're doing it wrong

#

Idiot

hardy vector
#

oh

digital ibex
#

:)

hardy vector
#

lmao

#

sorry about that

pure lion
#

It's vx_kick me

digital ibex
#

lol

sterile minnow
#

Nope doesnt do shit

earnest phoenix
#

Do anyone knows how can I add a server count in my bots status?

pure lion
#

Yes

digital ibex
#

but why is conbato shit

noble parrot
#

Hey, does anyone know how to get user badges?

digital ibex
#

?

hardy vector
#

contabo is good

sterile minnow
#

Do anyone knows how can I add a server count in my bots status?
@earnest phoenix client.user.setActtivity(client.guilds.size) | In JS

digital ibex
#

what language

earnest phoenix
#

@noble parrot wdym?

honest perch
#

@digital ibex you get what you pay for

earnest phoenix
#

@sterile minnow OK thnx

digital ibex
#

thats not a bad thing tho

honest perch
#

Unorganised computers

noble parrot
#

So from the user id, is there a way to get the badges on the user profile?

digital ibex
#

oh

honest perch
#

Makes the company look rookie

#

Setup fees

digital ibex
#

what language?

#

oof

honest perch
#

Slow write speeds

noble parrot
#

js

honest perch
#

Slow Internet speeds

digital ibex
#

library?

#

damn

#

probably will just get a gg vps den

noble parrot
#

discord.js

honest perch
#

Gg has great Internet speeds from what I've seen

sterile minnow
#

i still need help the thing on stack didnt do shit

digital ibex
#

client.users.get(user id).flags

noble parrot
#

thanks

digital ibex
#

n-p

pure lion
#

i still need help the thing on stack didnt do shit
This is a very big mood

fringe jackal
#

How i can be bot developer

pure lion
#

Learn language of the computers

digital ibex
#

๐Ÿ˜ฉ

pure lion
#

Also coder โ‰  hack

#

Idito

sudden geyser