#development

1 messages Β· Page 1045 of 1

pure lion
#

fetch the bans from the audit logs

misty sigil
#

fetch the bans audit

strong fjord
#

Logs

wheat hornet
#

audit log

strong fjord
#

Hahahaha

slender thistle
#

Well it falls under development and the channel topic does say "channel for chatting about (bot) development"

autumn summit
#

how can the bot check audits

misty sigil
#

idk

strong fjord
#

Fetch from APIs

#

What else

pale vessel
#

audit log might update slow

ebon kelp
#

check docs

misty sigil
#

you can fetch ban

pale vessel
#

so it's not reliable

strong fjord
#

I don't know.. but that's a way to go probably

misty sigil
#

or maybe they might have a modlog channel

strong fjord
#

Mee6 bot does it

pure lion
#

mee6 bad

wheat hornet
#

how can the bot check audits
@autumn summit i think thats available in discord.js docs

strong fjord
#

It stores logs in specific channel for logs

#

@pure lion actually it's quite good. And you can choose what logs to show..and where.

pure lion
#

h

autumn summit
#

im py and I se it now

strong fjord
#

Py?

ebon kelp
#

python

autumn summit
#

yeah

wheat hornet
#

python

ebon kelp
strong fjord
#

Oh. I didn't learn python yet

ebon kelp
#

Python syntax is shit

strong fjord
#

It's like i know i should. But no time

#

Brushing up on c# and java

ebon kelp
#

No {}, no ;

#

They use : to open a function

strong fjord
#

@ebon kelp right. It sucks

#

It's like u learnt {} these..
And then they removed it

ebon kelp
#

import
@wheat hornet javascript also uses import and export

strong fjord
#

And made it a bit more complex for experienced coders to understand

wheat hornet
#

@ebon kelp yup squlize.import

strong fjord
#

Like it's not good as 1st language.

wheat hornet
#

wait its depricated

strong fjord
#

I suggest people to go for C language to learn coding.

ebon kelp
#

Like it's not good as 1st language.
@strong fjord It is actually, it's simple. But you don't get the basics of other languages

pure lion
#

js was my first lang, no regeats

strong fjord
#

Python makes everything easy

wheat hornet
#

python was my first language

stuck compass
#

personally i've found python easier to understand than other languages

strong fjord
#

It's like it hides background details

#

Like

Var somename;

U cannot say what variable it is.. by just looking at it

ebon kelp
#

Python is an easy language to learn, but some syntax is really different compared to other common languages

strong fjord
#

U won't learn difference between basic data types

#

@ebon kelp it is easy. But C is super easy as well.

wheat hornet
#

debugging in python is hell

strong fjord
#

Just syntactical sugar is much complicated for newbies to look at.

#

I mean to say.. they get frustrated when they see all the brackets or possibly every key getting used.. in a language.

#

πŸ˜ΉπŸ™ˆ

#

Python allows you to code.. without knowing programming.

modest maple
#

i mean not really lol

stuck compass
#

^

golden condor
#

TypeScript is basically JavaScript with strong types so

strong fjord
#

I know it doesn't make sense to you.. but it's true. I believe we all need basic and strong foundation to develop upon

wheat hornet
#

honesty i find debugging in js 100* easy than python

ebon kelp
#

Python allows you to code.. without knowing programming.
@strong fjord It's not like those block codings, python can be complex

slender thistle
#

well it's easier to work with Excel sheets without having to worry about memory pointers

strong fjord
#

C language and after that c++ gave me that foundation which allowed me to learn more

modest maple
strong fjord
#

@ebon kelp yes. It is a lot complex to read

#

Because u have to check declaration and assignments

ebon kelp
#

Python command syntax pepeSpit

strong fjord
#

And u cannot know datatype in dry run just by looking at declarations.

#

@ebon kelp I don't like tab logic

#

They could have used normal {}

modest maple
#

even tho c++ and c are strictly typed bloblul

strong fjord
#

@modest maple they are awesome and powerful

stuck compass
#

i mean each to their own right

modest maple
#

i mean im Rust and Python bases so lol

ebon kelp
#

Rust? damn

strong fjord
#

C and c++ is much better than python in my opinion.

But python is good for artificial intelligence and Machine learning and Many more things

#

U can do complex stuff easily in python.

modest maple
#

you are comparing two native languages with a high level language tho lol

strong fjord
#

I never learnt rust.

#

@modest maple i know.

modest maple
#

Python lends itself to rapid developement

strong fjord
#

I like JavaScript more

stuck compass
#

they're just not comparable

strong fjord
#

It's near to java and c++

stuck compass
#

every language does different things

ebon kelp
#

Go learn Kotlin boys

#

Is the future

strong fjord
#

Actually every programming language does almost the same things.

modest maple
#

i mean any program that is turing complete can in theory do the same thing as any other language

strong fjord
#

@ebon kelp man.. these trends are making me sick. I spent years learning languages and then cotlin is trending

stuck compass
#

Β―_(ツ)_/Β―

strong fjord
#

I believe JavaScript is the future

stuck compass
#

people have their preferences

slender thistle
#

Delphi gang

ebon kelp
#

They all output 0/1

strong fjord
#

@stuck compass sure u are right. But JavaScript is gonna explode

stuck compass
#

well, it's always good to know several languages

#

afaik it's a good asset

amber fractal
#

Try making good games in js

strong fjord
#

I am not JavaScript developer though.

But with MERN AND MEAN stack .. it says it has a lot of potential

#

What do u like more? Mean or mern?

pseudo quartz
#

JS ain't gonna explode, it's been around and used as a primary common language so long that there is no way for it to "explode" at this point

amber fractal
#

^

#

It's used basically everywhere already

strong fjord
#

@stuck compass learning is good. As technology keeps on changing. Worst nightmare for developers

amber fractal
#

if any lang is gonna explode soon it's gonna be rust

pseudo quartz
#

Rust, go, something like these

strong fjord
#

@pseudo quartz i know. But now u can use nodejs

#

Because of V8

#

@pseudo quartz maybe. No one knows.

#

Vb.net didn't work though. Maybe. 😹

#

I have learnt that but I don't even remember it's syntax

#

It was a bit confusing.

stuck compass
#

no but i'm learning it in college

slender thistle
#

How helpful/useful is it

strong fjord
#

I think c#.net would be better. Maybe. Still digging upon it.

slender thistle
#

We are going to learn C# in college this year but never touched VB

stuck compass
#

i'm jealous honestly

strong fjord
#

It doesn't matter what primary language you choose for coding. But i still would prefer c++ or java or maybe c#

#

@stuck compass of what?

slender thistle
#

If you consider learning PascalABC for 2 years, maybe

stuck compass
#

of shivaco going to learn C#

strong fjord
#

I'm also learning c#

stuck compass
#

C# is commonly used still, VB.net is not afaik ):

slender thistle
#

I already know some part of it to write simple console applications and I like it so far

strong fjord
#

C++ has been language of gods uptil now.

#

It's perfect blend between highs and lows.

stuck compass
#

I want to learn C++ eventually

strong fjord
#

Do learn. It gives u control over memory.. unlike java or c#

#

Maybe c# doesn't let you interact with memory as well

#

Play with*

slender thistle
#

Honestly C++ is very confusing to me

misty sigil
#

same

strong fjord
#

@slender thistle it's easy if you learnt c language

slender thistle
#

which I never did KEKW

strong fjord
#

U must try C language.

signal wagon
#

Just learn it 4head

strong fjord
#

It's gonna be as easy as slicing butter

#

I mean c++ was tough.. until i learnt c language

#

Which made me believe that c is the best language for beginners

#

C introduces you to all the basic foundation to learn further.

slender thistle
#

I started programming with discord.py (yes, not Python itself) and slowly moved to learning other languages catshrug

strong fjord
#

I am also learning assembly

slender thistle
#

been thinking about learning C# first and maybe moving to C

#

oof

strong fjord
#

Because i wanted to write into memory, so i wanted to know the details

#

Like i wanted to try hacking.

#

And game hacking

earnest phoenix
#

ah who can fix his

#

this

#

I could not join the voice channel: Error: FFMPEG not found

misty sigil
#

ffmpeg not found

strong fjord
#

Apt install ffmpeg

earnest phoenix
#

i have ffmpeg

#

i have fluent ffmpeg

#

the static ffmpeg

#

non work

misty sigil
#

have you tried npm i ffmpeg idk

strong fjord
#

I don't know lol. Btw i am new to discord bots coding

#

I don't know nothing about it

earnest phoenix
#

let me try that real quick

strong fjord
#

If someone can help me learn it would be great

#

I didn't read anything about it yet. As i didn't get time

earnest phoenix
#

i dont know alot also

strong fjord
#

If you want to learn game hacking or development.. you should learn c++ and/or c# ..

earnest phoenix
#

it didnt work

strong fjord
#

What distro are u using

#

I could not join the voice channel: Error: FFMPEG not found
@earnest phoenix what were you actually doing

earnest phoenix
#

i am trying to do music command

#

play

#

stop

#

skip

#

etc

marble juniper
#

is there a reason why discord.js message collectors are so slow

#

like idk it takes like 4 or 5 attempts untill it finnally collects my message

torn ravine
#

@earnest phoenix are you using heroku?

#

because you need ffmpeg installed on the machine aswell

summer frigate
#

MessageCollectors are instant for me

#

It’s either a bad host or you need ffmpeg for heroku

lusty spade
#

I am working on a guildMemberUpdate event but only the change nickname part works the other two doesn't work and it doesn't give any errors
code: https://hastebin.com/uyefinijus.js

viral spade
#

anyone experienced with mongodb here?

torn ravine
#

sligthly. I use it for my prefixes (which are now broken)

gray zealot
#

πŸ˜„

earnest phoenix
#

what is mongodb

#

and why does everyone hate quick.db

small prairie
#

whats the ratelimit of changing server banner?

#

ping with reply please

topaz fjord
#

quick.db

marble juniper
#

mongodb is a database
and idk why everyone hates quick.db probably becuz they are bored and have nothing better to do than complain about people using it
@earnest phoenix

topaz fjord
#

more like

#

shit

#

quick.db is just an sqlite wrapper

#

use sqlite

#

adds an extra dependency for nothing

marble juniper
#

quick.db is made for easy use
so people with no experience can also use it

topaz fjord
#

shouldn't be using a db if you don't know how to use it

marble juniper
#

shitting on a db is kinda dumb ngl

#

if they wanna use quick.db let them use it

topaz fjord
#

quick.db isn't a db

#

it's a wrapper

marble juniper
#

and you can use mongo or whatever

#

who cares

#

they use it anyways

#

so

#

what u gonna do

#

u aint choosing what they choose

topaz fjord
#

shit on them until they cjange

#

mmLol

marble juniper
#

ok if you got nothing else to do

topaz fjord
#

basically

lusty spade
#

thats just pure toxic

marble juniper
#

like who the fuck cares who uses what db

topaz fjord
#

*wrapper

marble juniper
#

yeah who cares

#

dude

topaz fjord
#

it isn't toxic if I haven't done it yet

#

memeing in dbl is fun bc of all the heat that gets generated

lyric mountain
#

convert it to electricity

topaz fjord
#

"I don't like X"
"wHaT tHe FuCk DiD yOu JuSt SaY"

fringe axle
#

Can someone help me with HTML on the top.gg website?

tight plinth
#

is there a reason why discord.js message collectors are so slow
@marble juniper well no but actually yes: discord.js sucks with message collectors

fringe axle
#

Ping me if someone can help

lyric mountain
#

help? yes
give code? no

trim saddle
#

@tight plinth they fucking stole my commands in testing

tight plinth
#

Wut

trim saddle
#

can't have shit in detroit 😒

lyric mountain
#

how does one even steal a command?

fringe axle
#

help? yes
give code? no
@lyric mountain okay, wait <p style="color:pink;"><b>Wawa's Commands</b></p>

#

Its not bold :/

sudden geyser
#

we don't say steal

#

we say borrow

lyric mountain
#

try not using <b> inside a paragraph, or use font-weight: bold inside style

fringe axle
#

Oh,okay

#

Like <p style="font-weight: bold;color:pink;">Wawa's Commands</p>

#

?

#

@lyric mountain

lyric mountain
#

no need to ping me dude

slender thistle
#

aye

fringe axle
#

Okay

#

And? Isit right?

lyric mountain
fringe axle
#

No

#

Not working

lyric mountain
#

try putting bold inside ''

sterile minnow
#

hi. can some1 help? I wanna do sth like track Invites. Now i wanna know how i do like on the guildMemberAdd event how i see who invited the person.

Discord.js 12

fringe axle
#

Okay

#

Still not working

lyric mountain
#

weird

#

try using markdown instead

#

**bold text**

#

# title

#

## smaller title

#

### even smaller title

fringe axle
#

uhm

#

Whut?

gray zealot
#

Hi πŸ˜„ I feel like this would be simple, but how do I get it so when a user types !prefix It changes the prefix to their input πŸ˜‚Its probably very simple

lyric mountain
#

two * around a text will make it bold

fringe axle
#

Im a noob in HTML

gray zealot
#

πŸ™‚

#

what do u need help with?

lyric mountain
#

like, if you want to make Wawa's Commands bold, just use **Wawa's Commands**

viral spade
#

I have a statistics bot that tracks the amount of textmessages sent per user per channel in a discord server.

Using mongodb (node.js driver), i have a collection guild, which has an array field members. Each array element member has a textMessageChannels array. Each textMessageChannel has 4 int fields representing the amount of messages sent in the past timeframe: total,yearly,monthly,weekly,daily.

Assume i dont save every textmessage event directly to the database, but cache them within the clients and save only every other minute, all at once. It would be an array of the form:

          textMessageChannels: {
            bsonType: "array",
            required: [ "channelId","alltime","year","month","week","day" ],
            properties: {
              channelId: { bsonType: "number" },
              alltime: { bsonType: "number" },
              year: { bsonType: "number" },
              month: { bsonType: "number" },
              week: { bsonType: "number" },
              day: { bsonType: "number" }
            }
          }

Now i have a lot of textmessage count values that need to be added onto their database counterpart. These counterparts are scattered accross (guild) collections and (members, channels) arrays.

My question is

  1. Is there a / What is the most efficient way of updating multiple rows with different keys and different values in one query?
  2. Is there a different sharded database system more fitting for my needs? (Keep in mind the saved values will be used for various statistical calculations, also needing a lot of grouping sums)
fringe axle
lyric mountain
#

if Wawa's Commands should be a title, put # and a space behind it like # Wawa's Commands

sterile minnow
#

if u need a title: <h1>TEXT</h1>

gray zealot
#

^^^

fringe axle
#

I know

lyric mountain
#

just use markdown smh

gray zealot
#

up to <h6> πŸ˜„

lyric mountain
#

== <h1>

gray zealot
#

Hi πŸ˜„ I feel like this would be simple, but how do I get it so when a user types !prefix It changes the prefix to their input πŸ˜‚Its probably very simple
@gray zealot

fringe axle
#

<p style="color:pink;">**Wawa's Commands**</p> villager_huh

gray zealot
#

yes...

sterile minnow
#

oof

earnest phoenix
#

** ?

lyric mountain
#

no, remove the <p> wrapping else it'd not work

sterile minnow
#

No p only h1

fringe axle
#

Okay?

lyric mountain
gray zealot
#

just use the style in <style>

#

πŸ˜„

sterile minnow
#

ah okay

lyric mountain
#

he ain't making a website

gray zealot
#

πŸ˜„ ok

lyric mountain
#

just writing bot desc

gray zealot
#

ohhh

#

ok

fringe axle
#

Kuu can you edit my code right and send it? ;-;

sterile minnow
#

then #

gray zealot
#

Kuu can you edit my code right and send it? ;-;
@fringe axle I could try πŸ˜„

lyric mountain
#

Kuu can you edit my code right and send it? ;-;
@fringe axle absolutely not

fringe axle
#

D:

gray zealot
#

^^^^ 😬

fringe axle
#

@fringe axle I could try πŸ˜„
@gray zealot thanks ^^

lyric mountain
#

rule 7

gray zealot
#

oop

fringe axle
#

D:

gray zealot
#

πŸ˜„ Ill walk you through it?

lyric mountain
#

7.a actually

gray zealot
#

lol ok

#

can I have help? 😬

slender thistle
#

tfw long description is already bold

lyric mountain
#

it can be bolder with **text**

fringe axle
#

it worked

slender thistle
#

will font-weight: bolder; be the CSS equivalent?

fringe axle
#

With a HTML school xD

slender thistle
lyric mountain
#

I guess so

gray zealot
#

I think so...

slender thistle
#

**** is <strong> apparently

gray zealot
#

πŸ˜„

slender thistle
#

I think I realized what went wrong

earnest phoenix
#

Thia channel is off topic now smh.

gray zealot
slender thistle
#

I'm not actually doing the <b> crap in the HTML tag

earnest phoenix
#

Because we ain't talking about bots

#

We HTMLing

#

(bruh moment)

lyric mountain
#

still development stuff

gray zealot
#

πŸ˜„ yeeah

solemn latch
#

i feel like i tested a lot.
bot gets added to a server, and suddenly i got 5 new errors i never had before πŸ€”

lyric mountain
#

welcome to development

gray zealot
#

πŸ˜„

#

but can someone answer my question? 😬

solemn latch
gray zealot
#

I have 😐

#

@gray zealot
@gray zealot

#

oops

gray zealot
#

Hi πŸ˜„ I feel like this would be simple, but how do I get it so when a user types !prefix It changes the prefix to their input πŸ˜‚Its probably very simple
@gray zealot

#

ty

#

πŸ˜„

slender thistle
#

Generally what you would do is have a map with key being the server ID and the value being the actual prefix
on sent message, get the message guild ID and check if it exists in the map

gray zealot
#

😬

solemn latch
#

also, should store that in a database

gray zealot
#

...

#

ok πŸ˜‚

solemn latch
#

Added some checks to my code to find these errors, and the errors stop

restive furnace
#

try/catch PES3_SusAlt?

#

i hope no

#

it slows down your code

sterile minnow
#

hi. can some1 help? I wanna do sth like track Invites. Now i wanna know how i do like on the guildMemberAdd event how i see who invited the person.

Discord.js 12
@sterile minnow still need help. if u know sth pls ping

solemn latch
#

no, just logging info before the error.

#

wasnt awaiting adding something to the database, so it was running two creates of a user

#

dumb mistake

earnest phoenix
#

How to create a channel? Tell me the syntax please for perm overrides

magic jackal
#

What is the proper way to get a random voice channel?

regal schooner
#

yes

magic jackal
#

message.guild.voice.channels.cache.random() ?

sudden geyser
#

message.guild.voice represents the bot's voice session. You'd need to filter the guild.channels.cache collection for only voice channels, then call the random method.

sonic lodge
#

beat me to it lol

sudden geyser
#

fast fingers

still merlin
#

How to create a channel? Tell me the syntax please for perm overrides
@earnest phoenix #ReadTheDocs

slender wagon
#

how come everytime i try to install quick it comes out with a error

solemn latch
#

The error likly says whats wrong

digital ibex
#

bit hypocritical, amazarisf

earnest phoenix
#

@earnest phoenix #ReadTheDocs
@still merlin #IAlreadyDidAndMyShitBrainSucksAtUnderstandingStuff

regal schooner
#

ok

sudden geyser
#

Are you using Discord.js

earnest phoenix
#

Yes @sudden geysercoin

#

Litecoin is a cryptocurrency

sudden geyser
#

Look at the docs for guild.channels.create for the structure

earnest phoenix
#

ok

#

thx

frosty swan
#

Hi

hallow crane
#

whats the error

#

thats not a error

#

are you starting the right program?

earnest phoenix
#

@earnest phoenix did you install node.js and discord.js

#

You gotta install both

#

Go to your terminal app and do npm install discord.js

hallow crane
#

npm install discord.js

#

ye whats the error than?

pure lion
#

Npm install discord.js-light

peak badger
#

help me
discord rigenerate any sec my discord bot token

pure lion
#

Npm uninstall discord.js

peak badger
#

i don't know why

earnest phoenix
#

@earnest phoenix did you use the terminal app to start the code?

opaque bolt
lyric mountain
#

using css

opaque bolt
#

i tried but no changes

pure lion
#

@opaque bolt css

lyric mountain
#

how exactly did you try?

opaque bolt
#

i tried but no changes

#

how exactly did you try?
i added a button with html and css

#

but it is only in the text box

earnest phoenix
#

@earnest phoenix ok close vscode and go to terminal and do cd Desktop also make sure to have a folder created on your desktop called the bot name

#

@earnest phoenix you need a token

misty sigil
#

he doesn't want it fp

earnest phoenix
#

I told you that you need one

#

@earnest phoenix did you use the terminal app?

#

Yes use cmd and do cd Desktop

#

@earnest phoenix ok if cmd is in the folder now do code .

#

Ok do code .

#

Wait no

#

Ok nvm do npm init

#

My bad

#

@earnest phoenix

#

Now hit the enter key for all the questions

#

Now do code .

hazy jungle
earnest phoenix
#

What file did you put the code in?

misty sigil
#

package.json???

lyric mountain
#

always quals ture. why?
@hazy jungle what is always true?

misty sigil
#

what? why

lyric mountain
#

and why aren't u using else if?

misty sigil
#

thats not code

earnest phoenix
#

@earnest phoenix did you use main.js for the code?

#

Go to that file and do node .

#

Bro

#

Rename main.js to index.js and try it again

#

Its looking for index.js

ebon kelp
#

He didn't save his package.json, that might be the case why it searched for index.js instead of main.js

earnest phoenix
#

Try node . Again

#

Oh yeah make sure to save it as well

#

Bruh

fallow sentinel
#

I run my bot in 1 file lol

ebon kelp
#

ctrl s

fallow sentinel
#

And cntrl q to quit

ebon kelp
#

I run my bot in 1 file lol
@fallow sentinel twomadyikes

tulip ledge
#

Is there a way to check if 2 or more items are the same in an array? Without if stacking

fallow sentinel
#

Gg

#

<3

ebon kelp
tulip ledge
#

Alright

#

Ty

ebon kelp
lyric mountain
#

I need help
@earnest phoenix and we need a question

#

wanna trade?

crimson vapor
#

wdym

radiant skiff
#

Sa

tulip ledge
#
            function hasDuplicates(array) {
                let amount = 1;
                let valuesSoFar = Object.create(null);
                for (var i = 0; i < array.length; ++i) {
                    var value = array[i];
                    if (value in valuesSoFar) {
                        amount++
                        return amount;
                    }
                    valuesSoFar[value] = true;
                }
                return false;
            }

This is slow af
It takes like 2 seconds to return a value

fallow sentinel
#

Like command trigger on a user reaching a number of invites?

#

Idk

#

I'm not exactly a skilled dev

radiant skiff
#

Sa

ebon kelp
#

@tulip ledge try

function hasDuplicates(array) {
    return (new Set(array)).size !== array.length;
}
crimson vapor
#

you would need to save every user that invited a user and im not sure how to do that tbh

#

then you would need to watch every user for passing a certain amount

fallow sentinel
#

Try it like an economy system?

#

But gain "cash" When a user invites people

ebon kelp
fallow sentinel
#

@earnest phoenix

ebon kelp
#

This might have the amount of joined people from a link

fallow sentinel
#

^^^^^^

pure lion
#

i believe it does, along with timestamps of the links creation and when they're supposed to expire/weather they're expired or not

ebon kelp
#

Ah oke, never used it

strange trout
#

Just look at the link properties

tulip ledge
#

@ebon kelp That is faster but i need to find wich one is duplicate and how many duplicates there are (it's for a slot command)

ebon kelp
#

Just look at the link properties
@strange trout ah yes; .uses or .memberCount

strange trout
#

Mhm

spare mirage
#

hmm

#

:/

#

probably something with the commandhandler

#

anyone know a fix?

pure lion
#

uh

solemn latch
#

where are you collecting responses

#

πŸ€”

pure lion
#

^

#

You gotta awaitMessages

spare mirage
#

ah ok

pure lion
#

You're setting the user answer to a message object

#

Do message.content

#

Then slice off what's unneeded

tulip ledge
#
            function count(array) {
                array.sort();
                var current = null;
                var cnt = 0;
                for (var i = 0; i < array.length; i++) {
                    if (array[i] != current) {
                        if (cnt > 0) {
                            return [current, cnt]
                        }
                        current = array[i];
                        cnt = 1;
                    } else {
                        cnt++;
                    }
                }
                if (cnt > 0) {
                    return [current, cnt]
                }
                else return false;
            }

Any idea why this is counting wrong?
it should've said 2 πŸ₯

spare mirage
#

thats cool but idk

quartz kindle
fast glen
#

Is there any way to get reaction on message by its emoji name? In d.js

tulip ledge
#

I don't see the issue tim

quartz kindle
#

you have a banana, therefore
cnt is now 1;
array[i] (kiwi) != current (banana)
AND cnt > 0 (true)
{ return current (banana) and cnt (1) }

tulip ledge
#

Oh

#

So I only add count if it exists?

quartz kindle
#

you probably dont want to return there

#

instead of current = null, do current = []

tulip ledge
#

The thing is

#

It also needs to return false if there are no duplicates

#

Wich doesn't work

quartz kindle
#
if(i === 0 || current[0] === array[i]) {
  current.push(array[i])
}
#

after the loop ends, check the length of current

#

or even better

#

to account for separated matches

spare mirage
#

How do I use awaitMessages?

quartz kindle
#

do this

spare mirage
#

it just doesnt make sense in the docs

tulip ledge
#

Actually it does

spare mirage
#

||for you||

#

Better question: How do I await an specific awnser

quartz kindle
#
// assuming array = [banana,kiwi,kiwi]
result = array.filter(t => array.filter(x => x === t).length > 1)
// result is now [kiwi,kiwi]
tulip ledge
#

Wait

#

So

#

I don't need the function?

#

I can just use that?

quartz kindle
#

yup

#

that basically filters out anything that doesnt exist more than once

tulip ledge
#

Ayy

#

It works now

#

What would happen

#

If there were no dupes?

quartz kindle
fast glen
#

Is there any way to get reaction on message by its emoji name? In d.js

quartz kindle
#

@tulip ledge result will be an empty array []

tulip ledge
#

The array is empty then

#

Tim big brain

quartz kindle
#

@fast glen to react or to obtain it?

fast glen
#

obtain it, there is already an reaction

tulip ledge
#

Woop woop

quartz kindle
#

message.reactions.cache returns a collection of reactions in a message

spare mirage
#

@quartz kindle
do I put the code here? ```js
let answer = await channel.awaitMessages(msg => {
msg.author.id === message.author.id
//code here
},{
time:10000,
max:1
})

quartz kindle
#

then you can find reactions by their properties

#

such as name, id, etc

fast glen
#

Ok thanks I didn't knew that

hollow saddle
#

Does anyone else have problems of rate limiting when using ytdl-core?

quartz kindle
#

almost everyone that uses ytdl lol

pure lion
#

ffmpeg sexc

wheat jolt
#

am I still able to listen to a voice channel through my bot using discord.js v12?

spare mirage
#

imma remake this im too dumb

honest perch
#

Tim, the stackoverflow guy

pure lion
#
                let filebin = fs.readFile(attachment.attachment, () => {})

attachment.attachment is the url to the attachment but its not reading, and it says that filebin is a void

crimson vapor
#

can you read a url? I thought you could only do a local file

pure lion
#

yeah, it says on the opts

crimson vapor
#

so are you using the file: protocol?

#

im not sure how to use fs.readFile on urls

pure lion
#
            if (attachment.name.endsWith('.txt')) {
                fs.readFile(attachment.attachment, function read(err, data) {
                    if (err) {
                        throw err
                    } else {
                        bin = data;
                    }
                }
            }

it says there needs to be a comma on the last }

pale vessel
#

attachment.attachmant? wtf

pure lion
#

yes

pale vessel
#

it's attachment.url

pure lion
#

no

pale vessel
#

uwot

pure lion
#

they both work

pale vessel
pure lion
#

anyway why is it broken now

#

nvm fixed

#

its looking for it as a file location bloblul help

quartz kindle
#

the file protocol is still a local file

#

just in url form instead of path

#

readFile cannot read remote data, you need http for that

pure lion
#

fuckfuckfuck

#

ejs time?

quartz kindle
#

no?

#

http.get()

pure lion
#

oh

quartz kindle
#

or https.get()

pure lion
#

what does it get?

quartz kindle
#

it loads an url

#

as if you opened it in a browser

pure lion
#

okay

quartz kindle
#

you can also use any other easier to use http lib

#

such as node-fetch, got, axios, superagent, etc...

pure lion
#

okay

#

installing node fetch<

#

>hasnt read the docs<

wheat jolt
#

why does the speaking event doesn't work for voice connections

#

for d.js v12

quartz kindle
#

it should

wheat jolt
#

it does join the channel

earnest phoenix
#

why i get this error ?
(node:10280) UnhandledPromiseRejectionWarning: SqliteError: database disk image is malformed
code :

 let default_prefix = "$"
    let prefix = await db.get(`Prefix_${message.guild.id}`) || default_prefix; //here
    console.log(prefix);
quartz kindle
#

your database is broken

wheat jolt
#

it's already corrupted

quartz kindle
#

let me test

pure lion
#

@earnest phoenix you're fucked, reinstall quick.db or learn sql

#

x)

wheat jolt
#

why would you reinstall it

#

you just have to delete the sqlite file

earnest phoenix
#

i deleted it, and i got the same error everytime

wheat jolt
#

urgh

quartz kindle
#

which version of quickdb?

earnest phoenix
#

7.1.1

wheat jolt
#

you prob should reinstall it or install an older version

quartz kindle
#

what team

mystic comet
#

Pm me

wheat jolt
#

lmao

earnest phoenix
#

Ok, so i solved that error, if i log the prefix i get the correct one but the bot don't run any command

this it the code:

module.exports = async (bot, message) => {  

      if (!message.guild) return;
    
  let default_prefix = "$"
    let prefix = await db.get(`Prefix_${message.guild.id}`) || default_prefix;
  
      if (message.author.bot) return;
      if (!message.member) message.member = await message.guild.fetchMember(message);
    
      const args = message.content.slice(prefix.length).trim().split(/ +/g);
      const cmd = args.shift().toLowerCase();
      
      if (cmd.length === 0) return;
      
      let command = bot.commands.get(cmd);
        if (message.content.startsWith(prefix)) {
    if (!command) command = bot.commands.get(bot.aliases.get(cmd));
  
      if (command) 
          command.run(bot, message, args);
        }
  
  }```
wheat jolt
#

🀑

surreal jay
#

hi could anyone help me

#

My code for getting server count member count all broke now

wheat jolt
#

how could we help you if you didn't provide any code

#

also what lib?

surreal jay
#

One sec

quartz kindle
#

@wheat jolt i just tested here and its not working for me also, maybe post an issue in the discord.js github or ask in their server

wheat jolt
#

oh, thanks

#

prob it's known

surreal jay
#

I use discord bot maker and just use the run script command most of the time so here was the code I was using for the server count
${this.getDBM().Bot.bot.guilds.array().length}

wheat jolt
#

is dbm using discord.js?

surreal jay
#

yes

wheat jolt
#

what version

surreal jay
#

Um one sec

#

12.2.0

wheat jolt
#

then you have to use ${this.getDBM().Bot.bot.guilds.cache.size()}

#

you can also use .array().length

#

but why would you do that if you have .size()

surreal jay
#

thx

wheat jolt
#

np

earnest phoenix
#

how can i check if the channel have the permission SEND_MESSAGES deny for everyone?

wheat jolt
#

what lib

earnest phoenix
#

Can someone setup some webhooks for me n also show how πŸ˜‚

sudden geyser
quartz kindle
#

what kind of webhooks tho

solemn latch
#

^

#

webhooks are a broad subject really

quartz kindle
#

"webhook" is a general term to describe being sent data without asking for it

earnest phoenix
#

Basically I need like 5 one or memes another for gifs another for NSFW stuff and last of all animals

quartz kindle
#

wtf why

earnest phoenix
#

For my server

pure lion
#

hey its me again

quartz kindle
#

you want your server to automatically post memes 24/7?

earnest phoenix
#

It’s like a hangout room so it’d be auto posting non stop

#

Yes

quartz kindle
#

lmao

#

well idk if meme webhooks exist try finding it

pure lion
#

how would i properly assign something in a .then() block? i log the var and it returns undefined

#
                fetch(attachment.attachment)
                .then(res => res.text())
                .then(body => bin = body)

it logged the console when i did console.log(body)

sudden geyser
#

If you mean assign a variable outside the .then method, It's executed "later", which is likely undetermined when it'll be called. You could use async/await or have your code to run in the .then function instead.

pure lion
#

a h

#

not sure how to async/await node-fetch

quartz kindle
#

you can await a chain of promises

#

var b = await a.then().then().then()

#

and it will still work

pure lion
#

oh

earnest phoenix
#

Tim would it be hard to setup one if u have no clue what ur doing?

pure lion
#

hovering over then shows 'any'

quartz kindle
#

not hard

#

you can setup a loop that fetches random memes periodically

#

and resends them as webhooks

#

or even have a bot post them directly, but webhooks works too

earnest phoenix
#

could it be any bot

quartz kindle
#

you want to make it to be used in more than one bot?

pure lion
#

Yooo my bin command works

quartz kindle
#

or even make it public webhooks?

pure lion
#

Thanks tim

earnest phoenix
#

Clarify what u mean?

quartz kindle
#

you asked if it could be any bot

#

what do you mean exactly by that?

earnest phoenix
#

If I was to do it by a bot would it have to be one of mine?

quartz kindle
#

yes

earnest phoenix
#

Would you mind just setting em up lol n record how u did it n then I’ll know how to

slender wagon
#

is there a chance that i can manually install quick.db

#

it is a pain in the ass like literally after an error it will throw another one

quartz kindle
#

depends

#

what errors?

slender wagon
#

let me show u

quartz kindle
#

and what version of quick.db?

#

and where is your bot hosted

slender wagon
#

it is not hosted

#

i'm on vsc

pure lion
#

ffs

slender wagon
#
npm ERR! errno 1
npm ERR! integer@3.0.1 install: `prebuild-install || npm run build-release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the integer@3.0.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.```
pure lion
quartz kindle
#

thats not the error, show more logs

earnest phoenix
#

^

#

Theres more above that

slender wagon
#
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if the py launcher can be used to find Python 2
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python checking if Python is C:\Python27\python.exe
gyp ERR! find Python - "C:\Python27\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Python37\python.exe
gyp ERR! find Python - "C:\Python37\python.exe" could not be run
gyp ERR! find Python 
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
gyp ERR! find Python   (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python   npm config set python "C:\Path\To\python.exe"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use```
#

it does have lots of these

quartz kindle
#

you dont have python installed

slender wagon
#

i did install it

quartz kindle
#

what operating system are you on?

#

windows?

slender wagon
#

ye

quartz kindle
#

install windows build tools

slender wagon
#

i did

quartz kindle
#

npm install -g windows-build-tools

slender wagon
#

i'll try it again

earnest phoenix
#

If that doesn't work try running it in a admin cmd

slender wagon
#

i always run it on admin

pure lion
#

smort

shy turret
#

(I reccomend enmap instead of quick.db)

earnest phoenix
#

Either is just fine

slender wagon
#

oh hey two

quartz kindle
#

they're both the same thing, and both rely on better-sqlite3

slender wagon
#

i think i should switch to mongo

shy turret
#

I couldn't find a way to install quick.db lol

pure lion
#

@slender wagon yes

#

switch

earnest phoenix
#

Mongo is a better option

slender wagon
#

is it complicated?

pure lion
#

kinda

earnest phoenix
#

Not really

pure lion
#

ill help

slender wagon
#

i've just heard it is way better and faster

pure lion
#

it is

earnest phoenix
#

How to delete some specific data from mongodb?

pure lion
#

findOneAndRemove

earnest phoenix
#

Well yeah its faster. sqlite is meant for small stuff

#

Ok, thank you

quartz kindle
#

its not way better nor faster, it depends on the use case

pure lion
#

np

#

noSQL can be more organised imo

placid iron
#

Sqlite says it on its website tho ;-;

#

Smh my head

pure lion
#

sqlite is...

l i t e

quartz kindle
#

yes sqlite is meant for small stuff, but "small stuff" is still wayyy bigger than the average discord bot

slender wagon
#

is it really my head neccesary after smg

#

smh

pure lion
#

head my shake

quartz kindle
#

sqlite can easily handle databases bigger than 10gb and thousands of queries per second

pure lion
#

OVERKILL IS THE BEST KIND OF KILL >:CCCC

slender wagon
#

turns out i never let the windows build tools to install

#

XD

#

so stupid lmfao

quartz kindle
#

lmao

pure lion
#

x)

earnest phoenix
#

That'll do it

slender wagon
#

i always closed the terminal thinking that it was finished

quartz kindle
#

Lol

pure lion
#

x))))

quartz kindle
#

well, lesson learned

slender wagon
pure lion
#

can someone give me a crash course on xml

slender wagon
#

ty Tim

quartz kindle
#

xml?

#

why do you need xml

pure lion
#

idk

quartz kindle
#

aka: you dont

pure lion
#

basically i want to learn front end

quartz kindle
#

you mean html

#

lmao

pure lion
#

but jsjsjssj

quartz kindle
#

front end is html+css+js

#

xml is old and nobody uses it anymore

#

and xml is more like json

pure lion
#

i have β‚€3 and a learning attitude :D

earnest phoenix
#

use it on learning something else

pure lion
#

also noted

#

also why

quartz kindle
#

use it on food

pure lion
#

i dont need to pay for that

quartz kindle
#

not yet :3

pure lion
#

i kn o w s h u t u p

#

:c

slender wagon
#

uhm i'm back

#

always with another error XD

#
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).```
earnest phoenix
#

Yikes

slender wagon
#

i'm unsure of what i should reinstall

pure lion
#

Yeesh

#

(I know my username is incorrect shut up)

earnest phoenix
#

Try removing node_modules and reinstalling

slender wagon
#

isn't that like the place with all the dependencies

pure lion
#

No that's the place with all the node modules

quartz kindle
#

@slender wagon npm rebuild quick.db

slender wagon
#

ah ok

#

nop

quartz kindle
#

did you downgrade node?

slender wagon
#

no

quartz kindle
#

whats your node version

#

try npm rebuild better-sqlite3

still badge
#

wats better a normal help command or a page help command

slender wagon
#

^14.5.0

#

try npm rebuild better-sqlite3
@quartz kindle trying that rn

cunning gorge
#

Hey I need some help:

    if(!levelColorDat.levelBar){
        bar = "#E063FC"
    } else {
        bar = levelColorDat.levelBar
    }

I am trying to check if someone has a certain field with the first if statement, however, it sends an error cannot read levelBar of null since there is no field, but the whole point of the if statement is to check for that. Anyway to check for it differently?

#

This is a mongodb field*

#

nvm i found a way around that

crimson vapor
#

I think it is saying that levelColorDat is null and you cannot read property levelBar of null

cunning gorge
#

yea thats why i was trying to check for that with the first if statement

#

would this work:

    const bar = levelColorDat.levelBar.catch(() => {
        bar = "#E063FC" 
    })
#

rip also didnt work

crimson vapor
#

not if levelColorDat is null

#

can you show what you are defining it as?

cunning gorge
#

Sure

const levelColorDat = await levelCardCollection.findOne({ "userId": member.id })
crimson vapor
#

mongodb?

cunning gorge
#

yea

crimson vapor
#

well it is returning null, can you show your model for levelCardCollection?

cunning gorge
#

sure

crimson vapor
#

the only thing I can see that might be an error is the " around userId

cunning gorge
#

Oh thats fine

#

sorry I should be more clear

#

I purposely deleted it, basically my goal is if it doesnt exist, so if a user didnt save a levelBar it would set it to a default hex code

#

Apologize for the confusion

crimson vapor
#

yea I get that, I did a similar thing for my rank card

cunning gorge
#

heroku @earnest phoenix

crimson vapor
#
const levelColorDat = await levelCardCollection.findOne({ "userId": member.id })``` is what is returning `null`
cunning gorge
#

Ah ok I see

#

But Im trying to test the fields within it

pure lion
#

@crimson vapor get rid of the ""

crimson vapor
#

I assume that is because you deleted it so you need to do a js if(levelColorDat) { if(!levelColorDat.levelBar){ bar = "#E063FC" } else { bar = levelColorDat.levelBar } } else { bar = "#E063FC" }

#

not my code, I do not use "" in objects

cunning gorge
#

ah ok

#

thanks ill try that

pure lion
#

Why and how would you make a parameter a string

crimson vapor
#

I do not think it is the most efficient way to do it but it would work

pure lion
#

:o

crimson vapor
#

responding to saber, but I think mongo does work with "s

#

but I could be wrong

pure lion
#

It's a constructor

#

Using paramaters

cunning gorge
#

works thanks adorable number

crimson vapor
#

np

pure lion
#

Bruj

cunning gorge
#

Yea, well everything else has been working with that

pure lion
#

Well the more you know I guess

cunning gorge
#

that format at least

still badge
#

Should I make a normal help command list or help pages?

slender wagon
#

How many money, a server computer? I wanna host my bot.. now my computer is a shit.
@earnest phoenix heroku for free

pure lion
#

Up to you @still badge

crimson vapor
#

And ovh has a really good value vps for like 3.5 a month

#

1 vcore and 1gb iirc

still badge
#

@pure lion idk tho

crimson vapor
#

depends on how many commands u have

still badge
#

I’m aiming for 50+

crimson vapor
#

if you have a lot, probably more efficient to do pages instead of one list

still badge
#

I have like 20-30rn

pure lion
#

What's the package everyone uses for npmjs info commands

still badge
#

But I need to get music commands

#

And Spotify and translate commands

earnest phoenix
#

How can I fix this code?

    const users = await message.guild.fetchBans()
    for (const user of users.array()) {
        await message.guild.members.unban(user, { reason: "reason" })
    }

the console error is Uncaught Promise Rejection Error [BAN_RESOLVE_ID]: Couldn't resolve the user ID to unban.

pure lion
#

Did you

earnest phoenix
#

I'm kind of a noob at these things :/

pure lion
#

read

misty sigil
#

Use a if(!ban)return or smithing

pure lion
#

Jeremy what does everyone use for npm commands

misty sigil
#

idfk

earnest phoenix
#

@misty sigil didn't work

#

btw i'm trying to unban all the users that have been banned in a guild

crimson vapor
#

why would you want to do that?

misty sigil
#

what why

earnest phoenix
#

cus someone nuked my server

#

and banned 200+ members

crimson vapor
#

did you report the person and/or bot that did that?

misty sigil
#

?wouldn’t that be api abuseΒΏ

earnest phoenix
#

i searched it up and uh some other guy did it lmfao

#

that's where i found the code

#

and uh idk

slender wagon
#

it is still considered api abuse

#

no matter who did it

earnest phoenix
#

ah

misty sigil
#

oh god, copy paste without understanding yay blobcat

earnest phoenix
#

yes GWmiyanoPeek

slender wagon
#

@earnest phoenix try starting and learning some js first then start slowly building ur dreams bot

earnest phoenix
#

i do know some js ;-; but okay

misty sigil
#

Do you have a token?

still badge
#

I need that Spotify command

misty sigil
#

I need that Spotify command
@still badge cAnvas

#

a token yes a bot token

still badge
#

@misty sigil do u need an Spotify API

misty sigil
#

ok

#

what language and library

#

fp that’s not what I meant by language

#

And wdym by application bot

#

js is the language

still badge
#

@misty sigil do u need an Spotify API

misty sigil
#

wdym? depends what you want

#

music or status?

still badge
#

For album and song stats

misty sigil
#

from someone’s status?

still badge
#

No

misty sigil
#

no idea on that
probably don’t need canvas

still badge
#

Wat about music then

#

API key needed

misty sigil
#

I don’t know @earnest phoenix
and probably yes @still badge

still badge
#

Ok

misty sigil
#

@misty sigil how can I make it?
@earnest phoenix make a command that dms and then listen to dms in that dm channel I think

earnest phoenix
#

@earnest phoenix Can you please not spam?

misty sigil
#

Also that. Once is enough for us

stable nimbus
#

Is there a header option with message embeds in v12? Wondering as I want to set a header.

earnest phoenix
#

wdym header?

stable nimbus
#

Like something that appears at the top of an embed, before the title.

summer torrent
#

setAuthor

stable nimbus
#

Thanks.

#

Okay, that works. Now I need it to show the author display name, so how do I do that next lol

earnest phoenix
#

message.author.displayName?

stable nimbus
#

Did that with only a undefined to exist in its place.

earnest phoenix
#

message.member.displayName

#

^

stable nimbus
#

Ah that might help.

earnest phoenix
#

i accidentally put author lmao

#

and it should work

#

if there's no nickname it'll just put the member's username in its place

cunning gorge
#
  const collection = db.db(config.database).collection(config.collection.levelCard);

  await collection.updateMany( {}, { $rename: { "levelColor": "levelBar" } } )

Would this work for renaming levelColor to levelBar in all documents in mongo db?

green kestrel
#

Yay!!! I just got my first premium subscriber, I'm on cloud nine pepewonder

earnest phoenix
#

noice m8

#

@green kestrel grats

green kestrel
#

Thanks 😊

earnest phoenix
#

mhm

quartz kindle
#

ayy :D

stable nimbus
#

Now I need to put the author avatar in there, how do I do that? I did member.displayAvatar and member.avatar, but unsure how to add it.

earnest phoenix
#

idk why the bot save |

#

i want |,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|

#

:c

#

I do that in snipe command:

                let separador = data.snipe.split('|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|')
                let embed = new Discord.MessageEmbed()
                    .addField('Mensaje', separador[0])
                    .addField('Autor', separador[1])
tight plinth
#

what

earnest phoenix
#

wat

quartz kindle
#

you are splitting on it lol

#

"a@@@@@@@@@@@@@@@@@@@@b".split("@@@@@@@@@@@@@@@@@@@@") = ["a","b"]

#

if you want to display the separator, dont split

earnest phoenix
#

wat

#

@quartz kindle wdym

quartz kindle
#

you said you want to display the separator

#

but if you split, the split removes it

weak parrot
#

So this is the second time I've encountered this issue (first with Python now with PHP and on two separate machines). Whenever I try and do stuff with Discord (in this case using CURL/PHP to get an avatar url from Discord) I get certificate errors (Error in question: Curl error: SSL certificate problem: unable to get local issuer certificate).

Tried manually installing the certificate as recommended here: https://github.com/Rapptz/discord.py/issues/4159#issuecomment-640107584 but that doesn't help. Tried updating Open SSL (currently have version 1.1.1) as recommended later down in the thread https://github.com/Rapptz/discord.py/issues/4159#issuecomment-650508443 but that doesn't help either. I'm aware the links have to do with d.py rather than PHP but it seems the root issue is the same. I believe I fixed it last time on my server (the other machine I had the issue on) but I really don't remember how. Any ideas?

quartz kindle
#

on windows or on linux?

weak parrot
#

Windows

quartz kindle
#

dumb question, but is the system date and time correct?

weak parrot
#

Date from Windows itself? Then yes

quartz kindle
#

just checking, as thats the number one cause of ssl errors lmao

#

you're making a curl request directly to discord correct?

#

through php hosted on windows

earnest phoenix
#

are we looking for 300 words

#

or characters

#

300

quartz kindle
#

characters, not counting spaces and new lines afaik

weak parrot
quartz kindle
#

what about this

weak parrot
#

Openssl is already enabled in the php.ini file. Am using the same script on a different website which runs just fine. As far mod_ssl don't use it on there and am using the PHP Server extension for VSC. Want to try with Xampp to see if it has the same issues but for some reason the entire site won't load when using Xampp

quartz kindle
#

well another thing you can try

#
//Tell cURL where our certificate bundle is located.
$certificate = "C:\wamp\cacert.pem";
curl_setopt($ch, CURLOPT_CAINFO, $certificate);
curl_setopt($ch, CURLOPT_CAPATH, $certificate);
#

or add the file path to cainfo in your php.ini

weak parrot
#

I'll give it a try

#

Well would ya look at that. That works πŸŽ‰

quartz kindle
#

ayy

earnest phoenix
#

hi who has small commands for a bot that are cool ?

weak parrot
#

Still sucks that I have to go this round about way of getting it though.....

rain cradle
#

I made pseudo custom status:

await bot.change_presence(activity=discord.Game(name="something text"+"β €"*100))

⠀← This Space is very important,It's a braille space.

#

Braille space is very useful:

  • Can delete iphone's folder name.
  • Can delete Microsoft's account's family name
lost rover
#

what does it look like

pure lion
#

braille space

crimson vapor
#

β €

#

you can also send it by its self as it is a character

pure lion
#

Sensnrsnned

#

I'm on mobile so I can't highlight it

rain cradle
lost rover
#

what about the playing part?

rain cradle
#

Playing went away...

sudden geyser
#

What library are you using

rain cradle
sudden geyser
#

I'm surprised it didn't just trim the leading whitespace

earnest phoenix
#

who would have the command to display someone's profile picture with my discord bot? under discord.js

misty sigil
#

<user>.displayAvatarURL

earnest phoenix
#

If possible to have the complete order, I begin ... @misty sigil

misty sigil
#

wut

earnest phoenix
#

?

rain cradle
earnest phoenix
#

I already have the code to show the profile picture, but I would like to show someone's picture by mentioning it ? @misty sigil

misty sigil
#

message.users.mentions.first idk

obtuse jolt
#

Genuinely curious not intending to advertise plus it’s a 503 page but will someone test how fast this loads for them just got a new host and I wanna see if it’s good and I can’t because I have like 3MB/s internet https://vurighosting.com/

misty sigil
#

nope

obtuse jolt
#

How fast was it

#

I put the code for the 503 there

#

It’s not a response code

#

@misty sigil

#

Why I put the 503 is a long story

misty sigil
#

instant

#

almost instant

obtuse jolt
#

Epiccc

#

Maybe it’s giving cached responses

misty sigil
#

nah

#

just first load

obtuse jolt
#

You from the US?

misty sigil
#

UK

obtuse jolt
#

Huh

#

Maybe I’m just trying to find something to explain it when it’s probably just fast

#

Good to know

#

It must be good because it hasn’t suspended me yet for overusing my stuff

open silo
#

d

earnest phoenix
#

Basically im trynna add bots to some of my servers but the options are limited what can i do to fix it bcuz i want to add bots to someother server not only about 4

sonic lodge
#

you need to have admin permission in a server to add bots there

earnest phoenix
#

I do its my server @sonic lodge

#

But for some reson top.gg has started limting the server you can add bots to

topaz fjord
#

are you signed into the right discord account in the browser

earnest phoenix
#

Yes

#

@topaz fjord

#

This comes up then it limits my server down to 4

misty sigil
#

fp did you read it

opal plank
#

lemme help a bit more

sonic lodge
#

there's a big blue button too

earnest phoenix
#

I did

#

Press it but look

#

Only 4 servers but i have mod in way more servers

#

@sonic lodge @opal plank

sonic lodge
#

is that your correct account

#

MrBoss

earnest phoenix
#

Ohhhhhhh im sooo dumb

#

No

#

I hate my life

opal plank
#

Absolutely fine on mobile