#development

1 messages · Page 1162 of 1

amber fractal
earnest phoenix
#
let msg;
  user.send(`Incomming short message from ${message.author.tag}!\n\n**${m.content}**`)
    .catch(() => msg = `${user.tag} DM is currently closed!`)
    .then(() => msg = "Your message has been sent!")
knotty steeple
#

🤦

#

look at the example properly

#

.then((msg) => do x).catch((e) => do x)

amber fractal
#

if you're setting a variable, use await.

earnest phoenix
#

yup that's what i mean

#

it worked now

knotty steeple
#

pog

regal jacinth
#

hey so i made a website where any user have to login via discord so after he authorize he will be moved to my website and a code will appear in the URL like thishttp://example.com/cover?code=123456789 that ?code=123456789 discord adds it to my original url which is ``http://example.com/cover` and it changes if i login in again so after the user is moved to my website i use this code to get his information like name, id and etc
but if i moved to another page the code disappears and i can't get the user information
i tried to store his/her information but i can't connect it to the other pages since there is nothing to identify that this information belongs to this user
can someone tell me a way to keep the user information in all pages ? (ping me)

quartz kindle
#

cookies

regal jacinth
#

?

misty sigil
#

web cookies

quartz kindle
#

store a session cookie

misty sigil
#

^

regal jacinth
#

oh

#

i don't even know what is that but
i will google it

quiet topaz
#

could someone hep me, I would know, how to join a VoiceChannel (by the channel name) on an specific guild(I know the ID)

#

discord.js

pale vessel
#

grab the guild using your client by id (client#guilds#cache#get()), find the voice channel (guild#channels#cache#find(function)), and join the channel (channel#join())

quiet topaz
#

ok, thanks

pale vessel
#

the function for find can be something like find(channel => channel.name === "General")

earnest phoenix
#

crhello, im using opusscript for my music system, while im playing music and there is error , and no matter what error, even one that doesnt matter, opusscript making the app to get crashed
anyone here have a solution ? (discord.js)

#

this is a part of an error :

"]=asm["V"];var dynCall_viiiiiii=Module["dynCall_viiiiiii"]=asm["W"];Module["asm"]=asm;Module["setValue"]=setValue;Module["getValue"]=getValue;Module["then"]=function(func){if(Module["calledRun"]){func(Module)}else{var old=Module["onRuntimeInitialized"];Module["onRuntimeInitialized"]=function(){if(old)old();func(Module)}}return Module};function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}ExitStatus.prototype=new Error;ExitStatus.prototype.constructor=ExitStatus;dependenciesFulfilled=function runCaller(){if(!Module["calledRun"])run();if(!Module["calledRun"])dependenciesFulfilled=runCaller};function run(args){args=args||Module["arguments"];if(runDependencies>0){return}preRun();if(runDependencies>0)return;if(Module["calledRun"])return;function doRun(){if(Module["calledRun"])return;Module["calledRun"]=true;if(ABORT)return;initRuntime();preMain();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else{doRun()}}Module["run"]=run;function abort(what){if(Module["onAbort"]){Module["onAbort"](what)}what+="";out(what);err(what);ABORT=true;EXITSTATUS=1;throw"abort("+what+"). Build with -s ASSERTIONS=1 for more info."}Module["abort"]=abort;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}Module["noExitRuntime"]=true;run();```
tight plinth
#

excuse me wtf

misty sigil
#

escuz me what

quartz kindle
#

this part of the error is not very useful

west agate
#

I’m making a bot for my friend so he can get commissions. I got the message collector working but I want the bot to personally DM the user. But the collector only works in the channel? Anyone knows how to fix my problem? Sorry if it doesn’t make sense.

fringe axle
#

Any error/any code?

west agate
#

Uhm.

earnest phoenix
#

what did i mean, that every single error the app got crashed

west agate
#

I’m on my iPad rn.

earnest phoenix
#

because of opusscript

west agate
#

Sleeping.

earnest phoenix
#

JS arrays are treated as objects wtf

#
let anArray = [];
typeof anArray: // returns "object"
pale vessel
#

well yeah

#

use Array.isArray() to know the difference

solemn latch
#

If I have an object, with normal object properties.
Does object[0] get the first property

#

🤔

#

(Js)

earnest phoenix
#

Nope

pale vessel
#

is that a rhetorical question

earnest phoenix
#

If I have an object, with normal object properties.
Does object[0] get the first property
@solemn latch it returns undefined

#

Btw I have a status ad is that allowed

pale vessel
#

your name isn't hoisted so it's fine

earnest phoenix
#

k

regal jacinth
#

does anyone know how to use cookies in aiohttp_jinja2 ?

earnest phoenix
#

mods have status ads too

regal jacinth
#

?

earnest phoenix
#

Tf is that pfp

regal jacinth
#

what?

misty sigil
#

bruh

#

he literally didnt ask to ask

#

he said what he wanted

regal jacinth
#

^^

royal portal
#

@misty sigil hey u dontasktoask.com even tho i dont know what that is but here it is

solemn latch
#

Code does that when he doesn't know what something is

pure lion
#

sockey.iowo not lwoading uwu owo

#

im including the src too

#

y it !work

#
    <script src="/socket.io/socket.io.js" defer></script>
regal jacinth
#

wth are u saying

pure lion
#

it is not working

#

trying to do socket.io, its installed on my machine and shits not working

quiet topaz
#

Hi, how to make [function], when a user joins a voicechannel? (discord.js)

solemn latch
#

You mean this event?

pure lion
#

wwoooo do you know how to help with socket not loading?

quiet topaz
#

yes

#

i mean

solemn latch
#

Like on your webpage?

quiet topaz
#

no, for my discord bot

pure lion
#

yes

#

im getting a 404

quiet topaz
#

You mean this event?
yes

solemn latch
quiet topaz
#

how to do that

pure lion
#

@solemn latch spaghetti

solemn latch
#

Mmm sounds delicious

#

Nah that's just what that path would have given

pure lion
#

doesnt log anything

solemn latch
#

I dont know what I'm looking at in the hastebin

pure lion
#

neither do i

#

its trying to load the same thing over and over but not ig?

#

nvm its different every time

solemn latch
#

<script src=chttps://cdn.jsdelivr.net/npm/socket.io-client@2/dist/socket.io.js"></script>
You swapped your source over to this right?

#

Sorry about the random c

#

Kek

pure lion
#

yeah thats done

#

but its defered

#

because yes

solemn latch
#

I have no idea then

pure lion
#

fuc

ionic dawn
#

Give me minecraft command ideas

#

im out

pure lion
#

no

ionic dawn
pure lion
#

s y n t a x e r r o r

frigid rivet
#

ya

#

i have to sleep

dreamy cedar
#

how can i print the information of specifc user that i stored in mongodb
i mean if the user in 2 guilds i get the 2 Schema

viral iris
#

any1 know how to remove folder on github ?

solemn latch
#

remove the folder, and push the new commit without it?

viral iris
#

the folder has a lot of images

solemn latch
#

@dreamy cedar find

earnest phoenix
#

Can someone explain how shards work?

viral iris
#

remove the folder, and push the new commit without it?
@solemn latch idk how to push and commit etc

thick gull
#

idk anything about schemas but

#

or mongo

thick gull
#

but fairly certain that

earnest phoenix
#

U use github

#

or

viral iris
#

yes github

misty sigil
#

Schema would mean they're using mongoose?

thick gull
#

you could store guild IDs under the user and use that if needed

earnest phoenix
#

U need desktop app

solemn latch
#

each shard handles a set number of guilds

thick gull
#

but find is probably a better method

earnest phoenix
#

u have that?

thick gull
#

kek

solemn latch
#

thats pretty much it

viral iris
#

U need desktop app
@earnest phoenix then ?

earnest phoenix
#

Oh

#

Create repo

#

put all ur foles in

#

and then publish it

viral iris
#

i already have

#

i need to remove the folder

earnest phoenix
#

Remove?!

viral iris
#

yes

solemn latch
#

git rm directory
git commit -m "removed directory"
git push

#

?

viral iris
#

where can run this ?

solemn latch
#

any terminal with git?

viral iris
#

yes

dreamy cedar
solemn latch
#

whats your code look like?

viral iris
#

i got them on folder form github desktop

solemn latch
#

i dont know github desktop

dreamy cedar
#

just remove it from your pc

#

then go to github desktop

solemn latch
#

git doesnt like when you just randomly delete stuff

viral iris
#

how to save ?

#

cuz the folder still appear

dreamy cedar
#

remove then push

solemn latch
#

you have to push it

dreamy cedar
#

am using github desktop too

viral iris
#

i did

dreamy cedar
solemn latch
#

it says it returns all matching documents

#

🤷‍♂️

viral iris
#

@dreamy cedar can i rename images without remove and re-add it ? on github desktop ?

#

like only rename

#

is it gonna work ?

dreamy cedar
#

use i think you can
i didnt try to use images but i removed before some files

earnest phoenix
#

Why I installed FFmpeg to my pc and fixed path but it still not wroking

#

why

dreamy cedar
#

it says it returns all matching documents
@solemn latch 🐸

fringe axle
#

Do you use VSC (Visual Studio Code)? If yes, just type in the Terminal npm i ffmpeg if you have NPM. @earnest phoenix

earnest phoenix
#

i will try

#

still not wroking

#

@fringe axle

fringe axle
#

Any error?

#

You have NPM?

earnest phoenix
#

ye

fringe axle
#

And you did what I said?

#

Did the package (FFmpeg) installed successfully?

earnest phoenix
#

yes

fringe axle
#

And what‘s the error?

earnest phoenix
#

FFmpeg not found

fringe axle
#

Can you show the code?

viral iris
#

what should i do after push ?

fringe axle
#

Can you try npm i ffmpeg --save?

viral iris
#

@dreamy cedar

dreamy cedar
#

use deploy in ur host

viral iris
#

the files still on github website

#

why

hazy girder
#
const modlog = require("../../models/modlog.js")
modlog.findOne({
    guild: message.guild.id
    }), (db, err) => {
db.collection.deleteOne()
#

that not works why?

wind oracle
#

can i create a bot that would welcome my memebers into my servers

fringe axle
#

Of course.

wind oracle
#

i don't know how to

#

so

#

could you creat one

dreamy cedar
#

you didnt delete them u just rename i think

fringe axle
#

Of course not

viral iris
#

you didnt delete them u just rename i think
@dreamy cedar i tried to remove

fringe axle
viral iris
#

nothing happened

quartz kindle
#

your file exists on your github but not on your pc?

dreamy cedar
#
const modlog = require("../../models/modlog.js")
modlog.findOne({
    guild: message.guild.id
    }), (db, err) => {
db.collection.deleteOne()

@hazy girder
const exp = await mdlog.findOne({
guildID: message.guild.id
});

viral iris
#

your file exists on your github but not on your pc?
@quartz kindle yes

dreamy cedar
#

nothing happened
@viral iris it works for me

hazy girder
#

ty

quartz kindle
#

and github desktop doesnt show any changes?

dreamy cedar
#

wlcm

quartz kindle
#

send a screenshot of your github desktop

viral iris
#

no there's changes but there's no new hsitory

#

history*

quartz kindle
#

if there are changes you have to commit them

viral iris
#

no

quartz kindle
#

write a summary then press the commit button

viral iris
#

what is it ?

quartz kindle
#

what? a summary?

viral iris
#

yes

quartz kindle
#

its a small decription of what changed

viral iris
#

what to write ?

quartz kindle
#

something like "deleted unneeded images"

dreamy cedar
#

use commit to master

viral iris
#

still can't

#

use commit to master
@dreamy cedar how ?

#

oh no

#

it's worked

#

by bad lol

quartz kindle
#

you need to check all boxes

dreamy cedar
#

ok nice

green kestrel
#

Hmm

#

You think I'd get in trouble if I made a bdscript interpreter for Linux?

dreamy cedar
#

so anyone know how i get all the collection of specif schema in mongodb

green kestrel
#

As a way for newbies to port their bots to proper hosting?

quartz kindle
#

highly doubt it

viral iris
fringe axle
#

You think I'd get in trouble if I made a bdscript interpreter for Linux?
@green kestrel strictly forbidden in BDFD if you mean that.

viral iris
#

the rarities folder not here but it still on github

green kestrel
#

Forbidden by what, their TOS?

#

But I wouldn't be using their service

fringe axle
#

They‘re rules, yea.

proven vector
#

has anyone had a problem with discord bots just chomping through bandwidth? a bot i have in 80 servers is on track to use about 250 gigs of data this month, which is really rough since i have a 1tb cap, considering just buying a cheap vps to run it off

viral iris
#

ok worked

green kestrel
#

I'm thinking I could make a blackbox implementation using just their docs

#

Or even just people's bots

fringe axle
#

You are allowed to host the BDFD bots on other hosters because the commands won‘t work but if the commands are working in other hosters then it‘s forbidden.

green kestrel
#

I'd like to see them enforce that

#

🤣

modest smelt
#

lmao

green kestrel
#

That's like saying I can't make a PHP interpreter

fringe axle
#

I was BDFD supporter for long time. I know many things about it. xD

viral iris
#

@quartz kindle commit then push right ?

quartz kindle
#

yes

viral iris
#

thx worked ❤️

green kestrel
#

I can look at a language and make a compatible interpreter that can be run on any Linux box, I doubt any way of accusing someone of a tos breach for a service they've never even signed up for an account for on is not feasible especially if it was an open source project

quartz kindle
#

what can bdfd do about it tho? did they copyright their bd-script "language"?

#

can they sue you for it?

green kestrel
#

That's the question

#

I doubt that

#

You can't copyright a programming language

fringe axle
#

what can bdfd do about it tho? did they copyright their bd-script "language"?
@quartz kindle no, bot they will ban you. xD

misty sigil
#

How though?

green kestrel
#

You can copyright source code which would mean I can't steal their code and wouldn't

misty sigil
#

How can they enforce against their code being run on other boxes

#

It's like hackintoshing

green kestrel
#

Yeah

fringe axle
#

Hm

green kestrel
#

This is what I'm thinking

misty sigil
#

They probably run on some linux box themselves

quartz kindle
#

they cant ban you if you move out of there and shut down your account

misty sigil
#

Yea

green kestrel
#

It's a simplistic language anyway

fringe axle
#

they cant ban you if you move out of there and shut down your account
@quartz kindle they will ban you on BDFD and ban you on the app. weirdsip

modest smelt
#

i have a question

quartz kindle
#

i dont use either

modest smelt
quartz kindle
#

neither do people who move out of their service into a proper vps

green kestrel
#

But if there's a third party interpreter you don't need their app

misty sigil
#

@fringe axle but if you've moved onto another box you don't need the app

fringe axle
#

That‘s true

modest smelt
#

????????

earnest phoenix
#

No

fringe axle
#

And I watch YT now. xD

modest smelt
#

dang it

misty sigil
#

403

#

only you and the web mods can see it

modest smelt
#

oh ok

quartz kindle
#

if thats your bot and you just added it, you need to wait for it to be verified

modest smelt
#

oh ok

#

can anyone here join my discord bot server?

misty sigil
#

no

supple sail
#

How to create category channel in v12?

misty sigil
#

rule 4

quartz kindle
#

what category?

#

category channel?

misty sigil
#

yes

supple sail
#

category channel?
yes.

gleaming island
#

from #support , how do i fix the caching issue? this is the only server pulling up null

quartz kindle
#

the same way you create a normal channel

supple sail
#

Can you send an example?

quartz kindle
#

set the type to category

misty sigil
#

from #support , how do i fix the caching issue? this is the only server pulling up null
@gleaming island <guild>.ownerID is always defined

#

you can fetch from there

tawny oasis
#

i'm pretty new to python but I don't know what the issue is

python main.py
  File "main.py", line 9
    bot.run("TOKEN", bot=True, reconnect=True)
    ^
IndentationError: expected an indented block
misty sigil
#

@tawny oasis try indenting it using tab

modest smelt
#

yeah

#

it says ```IndentationError: expected an indented block

tawny oasis
#

im an idiot, i didnt close off the function above it

modest smelt
#

lmao

misty sigil
#

oH

tardy hornet
earnest phoenix
#

with magic

tardy hornet
#

thx

earnest phoenix
#

on a serious note, we need more context in order to help you

pure lion
#

Message is meant to be passed in or defined somewhere

earnest phoenix
#

remember that we can't read minds

pure lion
#

on a serious note, we need more context in order to help you
^^^^ covid broke my crystal ball

#

On a more serious note

#

My source to socket.io is at about 200 404 get errors and counting

eternal osprey
#

hey guys

#

i am kinda stuck with a problem right now

#

i just made an autoreaction bot

#

but i started off slowely.

#

now it sends the word test everytime you write something down in the chat

#

is there any way to remove that word test, but add a reaction instead?

pure lion
#

Firstly

#

no

#

Secondly

#

message.react("😔")

earnest phoenix
#

if you're using djs that is

eternal osprey
#

could i send my code through hastebin?

#

pastebin**

earnest phoenix
#

and you cannot use discord client names for the emojis, you need to use their unicode counterpart

eternal osprey
#

i know

pure lion
#

Do you want to be murdered by discord API staff?

eternal osprey
#

but when i use message.react

#

the bot stops after 1 message that i send

#

Do you want to be murdered by discord API staff?
@pure lion i can put lowmode on that channel

earnest phoenix
#

discord api staff

eternal osprey
#

slowmode

earnest phoenix
#

that entire snippet you shared is just a mess and not following any good practices

eternal osprey
#

yeah sorry for that

pure lion
#

This is the only time good practices account

#

Ever

#

Congratulations

#

Your code is so pasta you broke es

eternal osprey
#

bro

#

what the fuck are you even saying

thick basin
#

Is there any bot programmer and full server? And linking with a website?

eternal osprey
#

and i know my code is a complete mess

#

but i am just asking for any help

pure lion
#

@thick basin that'll be me

#

Gimme meoney

eternal osprey
#

if anyone could provide that, gladly appreciated!

pure lion
#

Okay sorry

#

Basically

thick basin
#

Read privatr message

pure lion
#

Alr

thick basin
#

@pure lion

pure lion
#

@eternal osprey firstly to stop further confusion, please install the prettier code formatter and format your code

eternal osprey
#

is that on the vsc martketlace?

#

it is downloaded

#

how do i use it now

pure lion
#

Yeah

#

Right click => format document

#

Then format with prettier

eternal osprey
#

okay done

pure lion
#

Send your sexy code and I'll do stuff

eternal osprey
#

can send it in a text file?

#

cuz it is too big for dc

misty sigil
#

is this a json database

eternal osprey
#

yes

#

i also have 2 more files

#

Ardata.json

#

which contains these:

#
{
  "AR_Channel": "",
  "AR_Message": ""
}```
#

and ofc my config.json

pure lion
#

Okay don't use json

#

Also please bin your code

eternal osprey
#

okay

misty sigil
#

Okay don't use json
@pure lion json is fine, as a config file

#

it gets bad when you start using it as a database

eternal osprey
#

😉

pure lion
#

Oh yeah

#

Also you can extend client

eternal osprey
#

are you looking through my code rn?

pure lion
#

No

#

I need it binned

eternal osprey
#

binned?

#

pastebin

#

there you go

gusty steeple
#

${client.ws.ping} returning NaNms value how can i solve that?

eternal osprey
#

i am trying to autoreact with an emoji i had

#

but it just issn't working

misty sigil
#

custom?

eternal osprey
#

yeah

#

'<:cris :744521843964379138')

misty sigil
#

its message.react("ID")

eternal osprey
#

i know

#

but in my code

#

it add it to only 1 message i send

#

then the bot exits

#

i want it to stay

#

and add reactions to every message

#

but i have no clue tbh, cannot find anything in the docs either

pure lion
#

client.on('message', message => {
message.react('ID')
})

#

Also is there a way to interact with phpmyadmin through node?

eternal osprey
#

client.on('message', message => {
message.react('ID')
})
@pure lion how do i make this work with a !channel set autoreact command

pure lion
#

Use an if statement

eternal osprey
#

ah

#

could i use if (message.content == 'text')

#

no right

jovial frost
#

in discord.js using reactionscollector#collected method i get reacted emoji name
👍

how can get it in array ['👍', '✅']

pure lion
#

@jovial frost push into array

jovial frost
#

then i get two arrays

pure lion
#

let a = []

#

Push into a

eternal osprey
#

my bot still only sends 1 reaction

#

and then stops with thiss error code:

#

SyntaxError: Unexpected end of JSON input

jovial frost
#

i tried and i get
[ '👍' ]
[ '✅' ]

pure lion
#

@eternal osprey line?

#

@jovial frost show

eternal osprey
#

att json.parse

pure lion
#

Why

eternal osprey
#

idk

#

what went wrong

earnest phoenix
#

you corrupted the file

eternal osprey
#

maybe i should create a new databse for the emoji send

earnest phoenix
#

this is why we don't use json as a database

eternal osprey
#

@earnest phoenix no

karmic compass
#

finally got config thing working, its in a .txt and requires some other plugin tho

#

lmfao

eternal osprey
#

congratz

pure lion
#

....

#

Why

#

?!

eternal osprey
#

what

#

i cannot

#

get

#

my

#

shit

#

working

jovial frost
faint prism
#

SyntaxError: Unexpected end of JSON input
@eternal osprey json serialization is so fragile

earnest phoenix
#

that is indeed invalid json

#

check it out manually but i told you

#

you probably corrupted it

faint prism
#

{
}

#

Isn't that required?

earnest phoenix
#

oh no not talking about that

#

i think the bin shared is just the result of logging to console

#

i don't understand where's the problem anyways

#

it does what it's supposed to

topaz fjord
#

is that hell's kitchen

earnest phoenix
#

yes lol ive been stuck on a binge

topaz fjord
#

lmao

pure lion
#

Hey so

#

Is there a way to interact with phpmyadmin through node?

tight plinth
#

what is phpmyadmin

pure lion
#

A client is using that as their db for a site and aUgh

#

Sql db

tight plinth
#

i mean

#

if its a sql db

#

a normal sql wrapper should work

pure lion
#

Oh cool

#

Including login + pass?

tight plinth
#

notice how i used should

#

and idk i never used a sql wrapper in my life

pure lion
#

Me neither x( sorry qt

supple sail
#
 message.guild.channels.create('「▶️」youtuber', {type: 'text', permissionOverwrites:[{
  id: message.guild.id,
  deny: ['READ_MESSAGES']
    }]})``` isn't it true? (V12)
tight plinth
#

wut

prime storm
#

...

tight plinth
#

wdym

cunning gorge
#

Does anyone know of a npm package that can render gifs?

#

Real time

#

kinda like canvas with js

supple sail
#
 message.guild.channels.create('「▶️」youtuber', {type: 'text', permissionOverwrites:[{
  id: message.guild.id,
  deny: ['READ_MESSAGES']
    }]})``` isn't it true? (V12)

It's not giving an error, also not working.

tight plinth
#

make sure youre using it properly

real thorn
#

hi

earnest phoenix
#

those symbols more than likely aren't allowed in the text channel names

real thorn
#

how are you all

#

??

earnest phoenix
#

also it probably throws an error you just arent handling it properly

real thorn
#

😋

earnest phoenix
real thorn
#

any one her me

#

!!

earnest phoenix
#

fuck off to shitpost

real thorn
#

you talk !

#

@earnest phoenix bad gay

#

@earnest phoenix

earnest phoenix
#

@slender thistle deal with

slender thistle
#

last warning

real thorn
#

WHY ,,

#

??

#

FUCK YOU @slender thistle

tight plinth
#

ok goodbye

#

rule 1

real thorn
#

@slender thistle fuck you mom

#

r

#

fuck your mom

#

sex

slender thistle
#

There we go

modest smelt
#

lmao

honest perch
#

@slender thistle how do you deal with these people

modest smelt
#

@honest perch muted

slender thistle
pure lion
#

Nvm lag

honest perch
#

Why

#

Jk

#

No ban

earnest phoenix
#

bruh dude said "sex"

modest smelt
#

lmao

earnest phoenix
ionic dawn
#

If im building a "pet" thingy that storage user data/leveling and other stuff should I use any kind of sql db or I can still using JSON? any experienced dev opinion or tip to storage?

honest perch
#

Don't use json

#

It will corrupt

#

I suggest using an sql or no sql database like mongo

slender thistle
#

Local files are generally a bad idea for dynamic data storage

#

You have to be exceptionally careful to not destroy it along the way

honest perch
#

Make weekly backups

earnest phoenix
#

i would suggest postgres

ionic dawn
#

Nice, i can now apply my sql knowledges from school

slender thistle
#

If it wasn't filled with outdated bloat

#

:^)

earnest phoenix
#

postgres is heavily used in the game industry whenever there's an inventory system, or just in general

honest perch
#

Bla bla bla

#

Sql

#

No sql better k thx

earnest phoenix
#

imagine having to write sql

this post was made by ORM gang

slender thistle
#

NoSQL gang can't hear you

placid iron
#

Just store in .txt

pure lion
#

Nosql is sexy

#

You can't change my mind

quartz kindle
#

sqlite > all

torn ravine
#

I mean I ain’t gonna lie, SQL is smexy

#

but

#

damn

thin tapir
#

i wanna restrict this command to a role can someone help me

#
module.exports = {
  name: "skip",
  aliases: ["s"],
  description: "Skip the currently playing song",
  execute(message) {
    const queue = message.client.queue.get(message.guild.id);
    if (!queue)
      return message.reply("There is nothing playing that I could skip for you.").catch(console.error);
    if (!canModifyQueue(message.member)) return;

    queue.playing = true;
    queue.connection.dispatcher.end();
    queue.textChannel.send(`${message.author} ⏭ skipped the song`).catch(console.error);
  }
};
torn ravine
#

the website is ancient

solemn latch
#

am i the only one who loves sql? its just nice

quartz kindle
#

check if the message's member has the role

thin tapir
#

how do i do that, i'm not very good with js sry

thin tapir
#

message.member.roles.cache.has('role_id')

#

where does that go

#

and it needs an if statement right

solemn latch
#

yeah, so you can put that at the beginning of the function and return if its false.

thin tapir
#
    if message.member.roles.cache.has('role_id')
    {
        return;
    }
     ```
#

i have a sinking feeling thats not right

#

i need to put the role id

quartz kindle
#

if statements require parentheses

#

if(condition)

thin tapir
#

ah

solemn latch
#

and you want to invert it iirc

#

! inverts it

honest perch
#

sqlite > all
@quartz kindle no

quartz kindle
#

yes

honest perch
#

No

#

Its bad

thin tapir
#
    if (message.member.roles.cache.has(!'733777623154557008'))
    {
        return;
    }
    
#

no? yes? idk

#

np

#

++ doesnt tell errs like vs

solemn latch
#

(!condition)

thin tapir
#
    if (!message.member.roles.cache.has('733777623154557008'))
    {
        return;
    }
    ```
solemn latch
#

should work

thin tapir
#

all together my code is this

#
module.exports = {
  name: "skip",
  aliases: ["s"],
  description: "Skip the currently playing song",
  execute(message) {
    if (!message.member.roles.cache.has('733777623154557008'))
    {
        return;
    }
    const queue = message.client.queue.get(message.guild.id);
    if (!queue)
      return message.reply("There is nothing playing that I could skip for you.").catch(console.error);
    if (!canModifyQueue(message.member)) return;

    queue.playing = true;
    queue.connection.dispatcher.end();
    queue.textChannel.send(`${message.author} ⏭ skipped the song`).catch(console.error);
  }
};
#

unless somethings messed up

#

@solemn latch New question

#

can i get by role name instead bc this bot is one my server, and a couple of friends

#

like a "dj" role

#

like ryhtm

#

rythem*

solemn latch
#

same thing really, but it takes a function, the example kinda shows it.

thin tapir
#

@solemn latch or wait, can i check for multiple ids

#

bc my bot is on only 3 servers

quartz kindle
#

you can use the .find function to find the role by name

placid iron
#

Using the inbuilt search would way cleaner too

thin tapir
#

how would i use it

#

saw this in the docs

#

collection.find(user => user.username === 'Bob');

#

i assume it works on role names

solemn latch
#

yeah

unreal bluff
#

A typical bot is self assigned to a bot role when they are invited to a server in the mange role list or? is that the bot creating a role and self assigning.

thin tapir
#

yep @unreal bluff

solemn latch
#

discord adds a role to bots when they join

quartz kindle
#

a bot gets a self-assigned role if its invite link contains a defined set of permissions

unreal bluff
#

Do I need to create the check if premission and create the role to assign the bot role auto like most bots?

solemn latch
#

oh, its only if it has perms, intresting

thin tapir
#

How do u use collection.find(user => user.username === 'Bob'); on roles

unreal bluff
#

I setup the code but doesnt seem to request or self assign

quartz kindle
#

if your invite link has &permissions=somenumberhere discord will create the role and assign it automatically when it joins

unreal bluff
#

ohhhhh

#

bet ty

tribal tinsel
#

O

quartz kindle
#

@thin tapir message.member.roles.cache is a collection

earnest phoenix
#

I just added a database to my bot, what should I use it for? My bot is CommunismBot (not yet approved), and has basic political and fun commands. An economy in the bot wouldn’t make sense, and idk what else a database can be used for

thin tapir
#

i use databases in cs for warnings / ban / mute logs

earnest phoenix
#

for anything that you want to be persistent data

#

It’s not much of a moderation bot either

thin tapir
#

What databasedo u use

#

i use sqlite3

earnest phoenix
#

MongoDB

thin tapir
#

used to use a cloud based db until trial ran out

quartz kindle
#

sqlite3 as well (better-sqlite3)

earnest phoenix
#

Maybe i could use it to better store information on political ideologies and famous communists because the bot does that too

#

That would clean up the code a ton

thin tapir
#
execute(message) {
    if (!message.member.roles.cache.find('DJ'))
    {
        return;
    }
#

like that

solemn latch
#

it takes a function

quartz kindle
#

if its static data, its better stored in config files for example

earnest phoenix
#

Like a json?

quartz kindle
#

databases are better suited for dynamic data, user-generated data, caches, etc...

#

yes

thin tapir
#

databases are better suited for dynamic data, user-generated data, caches, etc...
@quartz kindle true

quartz kindle
#

data that never changes is better suited for json files or similar

thin tapir
#

like my ban logs

#

i can do ?bans and it displays why they were banned, when, reason, etc

#

@quartz kindle is this how u do it

#
execute(message) {
    if (!message.member.roles.cache.find('DJ'))
    {
        return;
    }
quartz kindle
#

.find takes a function

#

like in your collection example

#

.find(item => item.something === something)

thin tapir
#

what do i change

quartz kindle
#

you want the role name right? so check if the name property equals the name you're looking for

#

and optionally check for case sensitivity

thin tapir
#

Honestly i know so little abt js, this is an example i found online to kinda see how js ticks

#

i made my own music bot in cs

quartz kindle
#

for example

thin tapir
#

ik how to do all of this in cs kek

quartz kindle
#

message.member.roles.cache returns a collection, which is essentially a Map/List/Dict/Object/HashMap

#

the .find function iterates over the list and compares every single item

#

so ...roles.find(item => )
the item is the current item being evaluated, in this case, each item is a Role object

#

the Role object contains a name property, so you're looking if item.name equals someting

#

therefore ...find(role => role.name === "dj") for example

thin tapir
#

damn this is alot simpler in cs all i have to do is " [RequireRoles(RoleCheckMode.Any, "dev", "OWNER")] "

quartz kindle
#

but thats a case sensitive lookup, so you need to check for casing

thin tapir
#

or dj in my case

quartz kindle
#

you can for example normalize the case of the name property before comparing

#

role.name.toLowerCase()

thin tapir
#
 if (!message.member.roles.find(role => role.name === "dj"))
    {
        return;
    }
#

???

quartz kindle
#

yes

thin tapir
#

nice

#

lemme try it

quartz kindle
#

you forgot the cache property

#

.roles.cache.find

thin tapir
#

oh

#

ah

unreal bluff
#

if your invite link has &permissions=somenumberhere discord will create the role and assign it automatically when it joins
@quartz kindle #502193464054644737 this

quartz kindle
#

the find function will return the first role that passes the test, if it finds one, otherwise it returns undefined
since a role object is truthy and undefined is falsey, it will work correctly as a condition for the if statement

unreal bluff
#

const permissions = new Permissions(269479104);

#
var role = message.guild.roles.cache.find(role => role.name.toLowerCase() === "dj");
if(role){}
#

you mean something like that?

#

opps

#

lol

quartz kindle
#

hmm?

#

that was for IC

unreal bluff
#

the lowercase

quartz kindle
#

but yes, the lowercase part is correct

unreal bluff
#

cool I actually used that just now as your tips are pretty spot on.

#

I was forcing a single cap on roles.

solemn latch
#

o i think i found a bug with the docs

#

hype

#

bug hunter

#

kek

quartz kindle
#

and every leads to an empty line in the middle of reduce

#

lmao

solemn latch
#

docs unusable

quartz kindle
#

there was an update to collections a little while ago i believe, i guess the docs werent regenerated so the lines are all off

unreal bluff
#

this is sorting the arrays you need to input proper values.

earnest phoenix
#

huh

unreal bluff
#
var blah = discord.reduce((acc, guild) => acc + guild.memberCount, 0);
console.log(blah);

what is the results of this query ?

quartz kindle
#

what is discord supposed to be?

unreal bluff
#

discord,js requrement

#

request *

quartz kindle
#

then the result will be an error

#

lol

sick cloud
#

hey tim do you know much about CSP/security

#

i'm having issues where it just refuses to load anything inline, including script tags, onclick code as well as SVGs inline on the page

unreal bluff
#

So what is the true request of the array to ?

const { Permissions, Client, MessageAttachment } = require('discord.js');
const bot                 = new Client();
bot.on('guildMemberAdd', (data) => { /*data.guild.recude(); console.log('what?');*/  });
//?data.guild
sick cloud
#

what's that http element that adds dotted lines under an element and when you hover it shows a popup

ionic dawn
#

http element?

sick cloud
#

yea

#

something like it

#

dont remember

ionic dawn
#

you mean html/css element? you have any example? i dont really undrstand what you asking for

opal plank
#

:hover: in css can do something similar

#

but not dot it

quartz kindle
#

@sick cloud are you using nginx?

unreal bluff
#
text-decoration: none;
border-bottom: 1px dotted #000;

as a css work around to any html elements.

sick cloud
#

nope

ionic dawn
#

Tony you mayb asking for tags?

sick cloud
#

wdym tags

quartz kindle
#

whats your webserver?

#

do you have any csp headers?

ionic dawn
#

sry titles/tags, that message box that pops on hover things

sick cloud
#

title thats it, ty

ionic dawn
#

but with css you can do whatever you want talking about popups

sick cloud
#

and tim

#

express, and yes i do

#
<meta http-equiv="Content-Security-Policy" content="default-src *; img-src data: 'unsafe-eval' * 'self' 'unsafe-inline'; style-src * 'self' 'unsafe-inline'; script-src * 'self' 'unsafe-inline' 'unsafe-eval';" />

basically trying everything to allow it all lmao

#

i got data: working

#

but i still can't have inline js

ionic dawn
#
<h1 title="Hi">Lorem ipsum</h1>
quartz kindle
#

but what about in the headers

#

you can add csp as a header, no need for a meta tag

sick cloud
#

wdym Thinkeng

quartz kindle
#

res.set("Content-Security-Policy", "bla")

#

for example

#

this is what i have on my nginx Content-Security-Policy "default-src 'self' http: https: data: blob: 'unsafe-inline'" always;

#

you can also try adding 'Access-Control-Allow-Origin' '*'

astral yoke
#

boys just got updated

#

it took eight weeks but we did it

#

verified i mean

#

woooo

sonic lodge
#

congrats 👏

astral yoke
#

ty 🥺

regal saddle
#

1%

#

Charge your Phone buddy

astral yoke
#

it’s at 5 now

sinful belfry
astral yoke
#

its development and being verified from a discord bot is development 🐐

sinful belfry
#

(i was referring to the comment about charging your phone, but you're just making things worse now lol)

earnest phoenix
astral yoke
#

oof

ionic dawn
#

@astral yoke I did apply 3d ago, when did you apply? like month and a half ago?

astral yoke
#

i applied june 8 😐

ionic dawn
earnest phoenix
#

Having an issue using a json API. If I type in a certain football team, the json API will show {"country":"england"} etc, but if I enter an incorrect team, it responds with "Not a valid team". How can I use this to notify the message author?

#

If condition

#

If the respond is that do smthing

#

But the API has over 200 teams

#

Wait wait wait

#

So if you put an invqlid team

#

What is the response?

#

Invalid team

#

no the json

#

Did it return json or just text

#

Actually, the invalid team text would be the same

regal jacinth
#

can someone tell me how to use cookies in my website using aiohttp ?

earnest phoenix
#

So just use if condition

#

@sick cloud yo aiohttp expert

regal jacinth
#

OoO

earnest phoenix
#

So if (response == "Invalid team") return sorta thing?

#

Better use ===

#

Tried that + if (response.body == "Invalid team")

#

Alright, lemme retry

sick cloud
#

wdym

earnest phoenix
#

@earnest phoenix show me the response

#

console.log(response);

regal jacinth
#

hmmm so i made website where the user have to login via discord
and discard adds ?code=123456789 to my original url
i use that code to get the user info like name , id and etc
but it only works in one page
if i go to another page the code disappears and i lose the info
so i tried to store the info in a db but i can't get define that this info belongs to this user
so i asked her before and someone told me to use cookies
so i searched but i didnt get how to do it

#

@sick cloud sorry to ping

chilly bison
#

Tried that + if (response.body == "Invalid team")
@earnest phoenix what are you using? fetch or request?

sick cloud
#

why mention me

earnest phoenix
#

@chilly bison Request

chilly bison
#

k

regal jacinth
#

hayper pinged u soooo i thought u r willing to help
sorry

chilly bison
#

just use the responsetext

#

thing

#

do something like this

#
if(response == "invalid request"){
//do something
} else {
response = JSON.parse(response);
}
sick cloud
#

i dont know python

#

so

regal jacinth
#

oh sorry

hasty mulch
#

How install dbl on Raspberry Pi via terminal?

dusky mason
hasty mulch
#

Currently downloading the npm thing mentioned in #support

#

@dusky mason Can you not troll?

dusky mason
#

how am i trolling

#

you asked me for the dbl library

#

idk the exact name

hasty mulch
#

Domain is not available

dusky mason
#

well its prob not .com

#
hasty mulch
#

Then don’t help if you don’t know what you’re talking about

dusky mason
#

i know what im talking about

#

youre the one who never heard of pypi

regal jacinth
#

bearic is right XD

hasty mulch
#

Well, I’m stuck with this npm download that was recommended in #support

regal jacinth
hasty mulch
#

I was told to come here

#

-_-

faint prism
#

what is your issue?

dusky mason
#

@hasty mulch npm is for javascript

#

pip is for python

hasty mulch
#

Oh

#

@faint prism Installing dbl

sharp thicket
#

uh hello
how do i make it so if message.guild.rulesChannel is null make it say none/not setup ?

#

i have it like

faint prism
#
if (message.guild.rulesChannel == null)
 someMessage
sharp thicket
#

if(message.guild.rulesChannel === null){
message.guild.rulesChannel = 'none'
}

#

i am using that e.e

faint prism
#

Uh, does message.guild.rulesChannel have an available set accessor...?

sharp thicket
#

yea

faint prism
#

Interesting

sharp thicket
#

it works when i have it on a server with a rule channel e.e

#

wanna see my code ?

faint prism
#

So the d.js docs say that's a readonly property

#

Is rules channel something that is created when making a guild a community guild?

sharp thicket
#

yes

faint prism
#

@sharp thicket Since it's readonly, you'll have to keep another variable if you really want something that says "none"

hardy vector
#

hey there so i have a messageUpdate event which looks like this

 public async exec(oldMessage, newMessage) {
    try {
      let channel = this.client.settings.get(oldMessage.guild.id, "messagelog")
      
      if(channel === null) return;
    
      const embed = new MessageEmbed()
      .setColor("RANDOM")
      .setTitle(`A message was edited`)
      .setDescription(`${oldMessage.author.tag} edited a message in <#${oldMessage.channel.id}>`)
      .addField("Old Message", oldMessage.content, true)
      .addField("New Message", newMessage.content, true)
    
      // @ts-ignore
      this.client.channels.cache.get(channel).send(embed)
      } catch (e) {
        this.client.logger.error(e)
      }
  }```
 and when i edit a message it sends the embed but i get an error saying messageEmbed field values may not be empty but hows that possible if the fields are filled in with content?
sharp thicket
#

uh

#

try use name:

#

wait

#

@hardy vector here

#
 let Embed = new discord.MessageEmbed()
        .setTitle(`Help`)
        .setDescription(
          `Hey \`${message.author.tag}\` Here are the help commands `
        )
        .setColor(`RED`)
        .setThumbnail(message.author.displayAvatarURL({ dynamic: true, size: 256 }))
        .addFields(
          { name: "a!help-moderation", value: `Sends you the moderation commands!`, inline: true },
          { name: "a!help-info", value: `Sends you the information commands!`, inline: true },
          { name: "a!help-fun", value: `Sends you the fun commands!`, inline: true },
          { name: "a!help-utility", value: `Sends you the utility commands!`, inline: true },
       );
      
      message.channel.send(Embed);
}}
``` this is how i usually add fields
#

see i did name: "something" value: "something"

hardy vector
#

hm

#

ok

#

i'll try this

sharp thicket
#

oki

#

gl!

#

tell me if it works

hardy vector
#

same issue

#

oof

sharp thicket
#

what

#

how

#

hmm

hardy vector
#

idk but the thing is its sending the embed and showing the oldmessage and new message but i get that error stack

sharp thicket
#

od

#

odd*

#

is your bot starting ?

#

what

hardy vector
#

sending an embed also fires the messageUpdate event when Discord renders it. Its responding to its own embed and trying to log its own content

#

i fixed it

sharp thicket
#

Oh

hardy vector
#

i added if (oldmessage.author.bot) return

sharp thicket
#

was your bot starting ?

hardy vector
#

yea

#

how else was it sending the embed

sharp thicket
#

lol

#

what is ur bots name ?

frigid rivet
lucid coyote
#

I have made a bot through discord developer portal and added it to a server ... But I couldn't understand how to add commands to that can anyone help me please

#

🙂

frigid rivet
#

you have to code the commands

#

choose a langage

#

learn it

#

and code your bot

earnest phoenix
lucid coyote
#

@earnest phoenix
Where I could learn this programming knowledge ?/ I mean to say that from where I could get a guide on how to code a bot and add commands to it ?

solemn latch
#

typically, its expected you know a programming language before you make a bot.

earnest phoenix
#

"a programming language" isn't a specific thing, it isn't a "this"

there are many of them, you'd use one which you have the most experience with if there's a wrapper for it

#

if you don't know any languages my suggestion is not to faceplant straight into bot making but rather learn and get to know the language you're planning to work with

as an alternative you can use those bot makers or simply pay someone else to make the bot for you

faint prism
#

Tl;dr Watch a YouTube tutorial, for questions Google it and click on links from StackOverFlow or something that says "discord library" or "docs"

#

The internet is a public library. Learn something new by searching it.

solemn latch
#

🤔 youtube tutorials are not a good idea imo

lucid coyote
#

@faint prism
Thanks Dude :)

opal plank
#

though, for real tho, always check the docs instead of youtube vids

faint prism
#

It's not gonna be easy, and definitely helps to actual learn a programming language you'll be writing the bot program in

opal plank
#

youtube videos get outdated quite easily

#

dosc are always up to date

solemn latch
#

i found a mistake in the djs docs today

#

🤔

opal plank
#

djs IS a mistake

solemn latch
#

docs is now unusable now

opal plank
#

how come?~~ i hope that wasnt a joke that went over my head~~

solemn latch
#

if you click the link that takes you to the github, it takes you to the wrong part

#

it does it for a lot of stuff on the collection page

opal plank
#

oh yeah you right

fluid basin
#

lol they messed up the docs in the source code

#

submit a PR

solemn latch
#

COMPLETELY unusable

opal plank
#

ive been meaning to check another lib but effort

solemn latch
#

i finished battleship

#

or i finished it for now

#

too lazy to do pvp

opal plank
#

i need to finish my pipeline

#

and add parsers

#

but theres some anime i need to catch up

#

¯_(ツ)_/¯

#

priorities, i guess

solemn latch
#

lmao

#

yeah

#

also might take a few days off from programming too. then move on to connect 4 or something

faint prism
#

ive been meaning to check another lib but effort
@opal plank fall back on making http request directly to the API :^)

gilded plaza
#

Why does it show red text?

#

I added that I am from Vietnam

delicate shore
#

ok

#

@gilded plaza idk that langauge but it looks like it's saying that bot is private and only owner can add it

sonic lodge
#

@gilded plaza you need your email verified to add the bot

delicate shore
#

oh

gilded plaza
#

Verify Stars?

sonic lodge
#

you need a verified email on your account

#

lol i speak vietnamese but the main giveaway was the word "email" in the middle

gilded plaza
#

E-mail I Don't Have A Code From Discord

sonic lodge
#

look around your inboxes, spam, updates, etc.

solemn latch
#

Also, double check you used the correct email

gilded plaza
#

No I Watched It Very Close

#

So You Can Add For Me The On Bots Essential For A Sever discord

edgy sparrow
#

.

opal plank
#

go dot elsewhere @edgy sparrow

fluid basin
#

tried to triage the issue, but it seems to be an upstream issue with babel and how it parses the typescript @solemn latch

#

don't think its gonna get fixed anytime soon ¯_(ツ)_/¯

shut temple
#

idk if this is something i should know or not, but does anyone know how to invite a user when my bot is added to their server? with a few bots i use they have done that bit idk how to do it

solemn latch
#

You mean inviting the bot owner?
Thats a massive privacy concern. Any bots that you know do this should be reported to mods and discord.

shut temple
#

no i mean, when the bot is being invited you go through the usual process and than you get the option to join the support server

opal plank
#

you mean a redirect url?

#

in the oauth?

shut temple
#

i think so, im not to sure

opal plank
#

you click to add bot(oauth) then it redirect you to the bots support server after you added it?

shut temple
#

yeah

opal plank
#

what you want is to generate an oauth link with a redirect uri in it

shut temple
#

ok cool ill go have a look at that

verbal kiln
#

hi guys

#

@gilded plaza oh vietnamese

gilded plaza
#

Yes

verbal kiln
#

@gilded plaza nó nói là bạn phải verify cái email của bạn

gilded plaza
#

So You Can Add For Me The On Bots Essential For A Sever discord

verbal kiln
#

wut?

gilded plaza
#

Ê người Việt Nam à

vast solar
#

VIET NAM

verbal kiln
#

ừa

#

việt nam đây

vast solar
#

Its near my contry

opal plank
#

english here btw

gilded plaza
#

Ê thêm vài con bot được ko

verbal kiln
#

english here btw
@opal plank sorry

#

are we allow to add bot in here?

gilded plaza
#

Thêm vài con bot giúp tui được ko

opal plank
verbal kiln
#

Ê thêm vài con bot được ko
@gilded plaza i have the same question

vast solar
#

You guys speak viet nam I speak Chinese

verbal kiln
#

haha sorry

gilded plaza
#

No

verbal kiln
#

so we can't?

gilded plaza
#

Ê thêm vài con bot được ko

@DoggyEggVN i have the same question

sonic lodge
#

bạn không nói tiếng việt ở đây được, hãy đi qua #memes-and-media nếu muốn nói tiếp

worthy glacier
#

why is it that when i try to use this in a embed desc. it says data is null even tho i declare newData right before it

sonic lodge
#

data is not newData

worthy glacier
#
userID: message.author.id,
        }, (err, data) => {
            if (err) console.log(err);
            if (!data) {
                const newData = new Data({
                    name: message.author.username,
                    userID: message.author.id,
                    lb: "all",
                    money: 200 + reward,
                    daily: Date.now(),
                })
                newData.save().catch(err => console.log(err));

                embed.setColor("00ff00");
                embed.setDescription(`You created a bank account and collected your daily reward of ${reward}. Current balance is ${data.money} ${config.currency}.`)
                return message.channel.send(embed);
sonic lodge
#

yes, data is not equal to newData

ionic dawn
#

wrong var names

#

well no

#

he got it right

#

oh no

#

nvm

sonic lodge
#

you're checking for the existence of data; if it doesn't exist, you create a new one called newData, and then proceed to use data, which doesn't exist, at data.money

worthy glacier
#

oh got it thx

#

also

#

it keeps giving me this error when i try to reload it

#
try {
    const newCommand = require(`./${command.name}.js`);
    message.client.commands.set(newCommand.name, newCommand);
    message.channel.send(`Command \`${command.name}\` was reloaded!`);
} catch (error) {
    console.log(error);
    message.channel.send(`There was an error while reloading a command  \`${command.name}\`:\n\`${error.message}\``);
}```
cinder patio
#

It doesn't look like the error is coming from there

#

Also that's not how it's done, you need to remove the file from the require cache before you require the command file again

low phoenix
#

How can I make an API JSON query in discord.js?

runic dragon
next arrow
#

wdym

worthy glacier
#

client.guilds.cache.size

weak rain
#

if ("message.author.id" === "554185890453389322") return message.reply("I m sorry but this is a owner only command")

#

everyone can use this command

#

why

earnest phoenix
#

Bruh

#

===

weak rain
#

wtf

#

lol

earnest phoenix
#

@weak rain you can't use the command yourself right

weak rain
#

i can

pure lion
#

@weak rain

earnest phoenix
#

Wtf

#

Dudr

pure lion
#

See how there are ""

#

That's called a string

earnest phoenix
#

You should use !=

pure lion
#

That is plain text

earnest phoenix
#

To check if the user id is NOT the owner id

pure lion
#

^this too

weak rain
#

hm

#

if i use backticks

#

will that work

ionic dawn
#

he stringed the thing