#development
1 messages · Page 1628 of 1
idk..
The error is this:
DiscordAPIError: Invalid Form Body DICT_TYPE_CONVERT: Only dictionaries may be used in a DictType at RequestHandler.execute (E:\Program Files\smug\code\node_modules\discord.js\src\rest\RequestHandler.js:154:13) at processTicksAndRejections (node:internal/process/task_queues:93:5) at async RequestHandler.push (E:\Program Files\smug\code\node_modules\discord.js\src\rest\RequestHandler.js:39:14) { method: 'put', path: '/guilds/774085711791783998/bans/388452965884755970', code: 50035, httpStatus: 400 }
sharex
Are you-
smart? Totatly.
?


Poor flazepe
As he said and don’t forget the key "reason"
Question: what about some anime themed bots?
Answer: Pick Crunchy
Question: give me dank memes
Answer: Pick Dank memer
Man you know when you're pro-procrastinating when you make a natural language search engine for bots 
Remember this guy was banned 6 months ago from my server for not wanting to learn simple JavaScript. And, ironically, it was because he was begging for a ban command. So we used ours 🤣
HEY HEY HEY HEY
The world is small, hmm
That was 6 months ago!
Hasn't evolved at all in 6 months. It's a shame.
I actually feel bad
not at all.
6 months ago?
Yeah exactly in 6 months you should have made SOME progress.
I DID
I actually feel bad
So why are you still stuck on a ban command.
I said that twice now
Hopefully those aren't copy-pasted
And yet you don't know the difference between a string and an object.
Because.. I mostly learn on my own?
Clearly you vampired your way through all of those. Poor souls you sucked dry.
Object: Has mass.
Don't make excuses
String: Is a string.
There's lots of resources around in the internet
Ok so change the string to an object. Let's goooo
I learned everything by just googling
Man ive learnt Rust to a intermediate to advanced level in the time it's taken you to write a command 
most people here have learned on their own tbh, one of the smartest people here is entirely self taught
no tim
No... Hahahahahahahabahahahahahahah

The Karen is strong in this one.
👀
Lurker
Karen?
you are the holy mother of #development
😐
Yeah Tim is awesome.
no u
😁
Dude go Google "what is an object in JavaScript".
Seriously.
JavaScript is designed on a simple object-based paradigm. An object is a collection of properties, and a property is an association between a name (or key) and a value. ... In addition to objects that are predefined in the browser, you can define your own objects.19 февр. 2021 г.
arent you that santa claus dude?
yes, wasnt your name santa claus at somoe point?

or was that someone elsew
Make that an object.
lmao
He actually got his answer a few times already and did ignore it
Didn't ignore it. He doesn't understand the answer. it's not the same.
const reacson is defining a variable not an object
then how?
He's going to ask until someone spoonfeeds him the full answer
Hmm probably a little bit of anything 
this is a yikes, im not even a JS dev and i know this 
google "js object literal"
i am a js dev and i now want to consume multiple pints of beer just from looking at this conversation
Same.
beer tastes like soap
A JavaScript object literal is a comma-separated list of name-value pairs wrapped in curly braces. Object literals encapsulate data, enclosing it in a tidy package. This minimizes the use of global variables which can cause problems when combining code.
I'll take an Ale ty
Ok fine. Some great apple cider.
Eh, some Scotch whiskey then
Well coding JS after 14 years of php actually requires hard drugs... trust me
Keep reading and actually try to learn something for once.
We're not giving you the answer this time. I think we're all done doing that
objects are what, an hour long subject if your just learning about it the first time
I dont know how to make an object..
dude
So keep reading and learn.
didnt you see a single example?
Don't just read the first sentence.
when you googled them?
LEARN.
cough
He doesn't understand this code.
He has no idea what any of this is unfortunately.
You’re reaping yourself
Bec all of those cmds are copied n he claims he learned it all.
no
Huh wtf is reaping
siriosly
i mean, hes clearly worked with objects many times making those commands
I came up with some
Damn auto correction
Objects can be initialized using new Object(), Object.create(), or using the literal notation (initializer notation). An object initializer is a comma-delimited list of zero or more pairs of property names and associated values of an object, enclosed in curly braces ({}).
since djs is entirely object based
Objects is like day 1 JavaScript... This guy has been at it for years.
oh god
not years
how long then
Hi, how do you make it so in my warning system I also send it to a specific channel? like guild.channels.cache.get('channelid').send(message) but how do I get it to send it in that channel?
What error?
long..
maybe not nvm

i object to your object
Let's just all agree to stop the spoonfeeds.
function createObject() {
return {};
}
const object = createObject();```

can you modify a const object?
👀 silly question
const objects can be modified but you cannot add new methods/properties right? 
So much for that.
You can
You can't redefine it. But you can modify them.
const objects can be modified but you cannot add new methods/properties right?
Only if the object is sealed
You can't do const thing = blah twice. But if an object is in a const you can edit its prooerties.
coolio, i dont know why i never bothered to learn it
wow... Thats how you do that?
Yes
😐
flaz please
How else am I supposed to do it?
no other way
idfk
Exactly.
Poor thing is even more confused now.
did you read the link i sent?
ok yeah its not working
ok i found out why
wtf tim
Wtf
LOL
rn I am.
I didn't know that was possible 
no
Yes
i didn't have a clue i could do that i was always doing
const object = function () {return {};}()
At least one normal person in here...
does createObject has to have Object or create there?
nvm
it still doesnt work
is php even installed ?
That name
im getting the error that guild is not defined
Ok so define the guild
x2 it happens to me too, what I do it’s put a html file that redirects to the php XD
Or get it from whatever event you're in
You told your webserver to how to deal with .php files?
how do I do that?
var/www you using apache?
probably message.guild
ok
thank you

Is this how it should be?
function reason() {
let reason = args.slice(1).join(' ');
if (!reason) reason = 'Unspecified';
}```
Errr Unix or Windows?
?
it should be an object, not a string

Woo still trying.
Try cd httpd/conf
Just to make sure you’re using php tags in your php file, hmm?
No they just mashed the keyboard from copy pasting flaz' joke. They don't understand any of this.
Before going on
yes but they are overcomplicating by thinking its something complicated
lmao
Literally has no idea what any of this JavaScript even means, after 6 months...
what do u mean @quartz kindle ?
It might have been my fault
do you know what a variable is?
I don't often say someone doesn't have the mental capacity to do programming but this is clearly an extreme case.
this is clearly a case where you need to say taht
Check console?
/etc/apache2/httpd.conf
nothing in console
Usually
What FakeE said, my bad
@umbral zealot its nothing to do with listing
I know I was joking 🤣
Check your code and debug
also, it's because top.gg is unstable
that's the joke
White page is weird. Look at the source?
What about etc/httpd.conf
Well
I console.log()ed used on my backend and it is all there
I don't see why it would work for 1 user and not another
I have catches in place to redir back if it can't find the user
Installing it on Linux should usually add the handler to the webserver conf
const (this) = ..
oh lord
🙄
Just ls your etc folder and search for apache2 and/or httpd
Depending on the package it may uses different directories, who knows
Looks inside apache2
May it’s a symbolic link only
do you know what const stands for
constant
ya
isnt it
constantin
yes, and you know what are data types?
yes
Oh there we go, it’s called apache2 conf in that package
how would you create a string
I forgot.
6 months of javascript?
Isnt string a number?
BAHYSAGYH
The rest of the configuration files can be found in conf-enabled
string, number???
String, Boolean, Number, Map, Object, Array
And mods-enabled
What about Function
that...
some of those aren't primitive though
so show me how would you create a string
Shush matthew
ok ok
Actually need to unload my car
message.channel.send("stuff")
I’m back soon
thats not creating a string
that's creating a promise
well, its sending a string
const (something) = "stuff";
yes
now an object is also a data type
just like a string
so how do you create an object?
Make sure to add the file handler
<FilesMatch .php$>
SetHandler application/x-httpd-php
</FilesMatch>
brb
no...
you need to relearn how variables work
fuck i need at least 2 bottles of whiskey at this point
const abc = "something"
^ variable declaration
^ variable name
^ value
declaration and name work the same way everywhere.
you just change the value
So...
Getting a whitescreen for searching for a certain user: https://i.imgur.com/dIJKacO.png
When I go for myself: https://i.imgur.com/fGfJZJQ.png
Both of us are in the server, and he passes all catches to render the user page but when it is rendered nothing is loaded in the head or body for some reason
framework, language, render type etc... no errors in console on server etc...?
oh
No errors, using javascript with ejs and express
When I pass user into the header, the header is being loaded because I can console.log(user) and it sees it
isnt that what I said tho?
And there are catches for the header partial that make sure it doesn't error out
no where near
you were focusing on the wrong part, thinking you need to change const, or change to function
ok..
its as simple as this
the left part, declaration and name are the same for everything
the right part, the actual value, is all you need to change
ur name is John Doe?



ok now this is trolling

He's copying from a tutorial you should have read 6 months ago.
lmao
bHFUHUAIHIHIU
you missed out of the face palm list
tim is revealed as John Doe
change that to a face palm
oh, alr.
Tim revealed as a const
hey guys i had trouble in the code machine?? what is an object?
im john const
const tim = {firstname: 'John', lastname: 'Doe'}
```?
john constantine
Anyone wanna help me now 
From hit cartoon network series bottum gg
first message of the month 
well you've given very little to work with 
and now i sleep
Whatcha need
bye
code ig, logs etc...

the Unspecified one
Seeing you struggle is so.... Painful
how... how are you like this
You. Need. To. Use. An. Object.
It literally hurts my soul.
😦
lmao
I'm physically pained by your inability to seriously want to take the time to learn.
can't hurt my soul if i drink it away
I am rn..
Goto codecademy or something and take the JS corse.
Please read #development message @quaint wasp
Speaking of which I need to get alcohol to cope tonight.
I DID..
clearly you need to take it like 5 more times.
😐
at LEAST 5 more times
Or come to terms with the fact that if you've been trying to learn 6 months and can't understand even objects, you should find another hobby.
But I dont have lots of free time like u guys have..
Seriously, 6 months...
what makes you think we have free time 
I don't think time is the problem.
Its not even my hobby. My hobby is to watch netflex and breath..
the thing is, you are either willfully ignoring or skipping the base rules of javascript
I have a full time job and a kid. What's your excuse?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
@modest maple
or.....?
i could pick a random programming language right now
programming languages have a very clear set of rules
Hi
if you know the rules, everything becomes easy
well i cant really judge any of that because i dont do js 
probably want @quartz kindle or someone to look at it
Tim knows the rules, and so do I.
Ayo @quartz kindle https://pastebin.com/EEiF3NKm
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Do I still can use the BDscript in glitch & heroku?
For some reason when I do it with my user profile, it works fine
No
where are the rules of Discord.js then?
And when I do it for someone else it goes blank
whats the issue again?
I don't think so
But some users work some don't
Bruh
Discord js is not a programming lang
Extreme are you sure you're not silently dismissing errors somewhere?
I know lots about BDscript and Java %0
@umbral zealot I just made a final check of the one thing that it could have been but it didn't fix it so I am pretty sure it isn't that
any errors on client side console?
Nope
nothing on server side console either?
Well now that I did a check on the level thing for incase they didn't have the roles it fixed most
But a few still don't work
Wait let me see something
Is guildMember#roles always populated?
For djs
it mwould be with the guild id right?
if member exists then yes
Yeah
And also one question do I can use heroku to host my bot without any use of git hub and also make the commands of the bot designer for discord to work perfectly i mean heroku hosting the bot without ads and BDFD will manage the commands if it not so I had to watch a lot of ads per day
BDFD can only be used for BDFD
do you have fetchAllMembers:true?
its their whole marketing model
in client options?
yes
Extreme aren't you using master
if you dont wanna watch ads buy a vps and actually code a bot 
actually, coding a bot would be a good solution to imediate issue
I only know BDscript and I don't know about the Java script so for now am officially saying I will be watching lots of ads per day to keep it online
do you actually need fetchAllMembers tho?
I guess
handwritten codes are ads-free
it will kill your ram
Discord.js master
yikes....
and totally free
Yeah
So no fetchAllMembers option 
ye master removed fetchAllMembers
How did it work then
well, that's what you pay for choosing the easy route
Ah
For this project
"When a product is free, YOU'RE the product"
you should probably remove it anyway
and fetch the member instead
member = await guild.members.fetch(id)
user = await client.users.fetch(id)
just as a note, by going full-code way your bot will become 100% lighter and 200% faster
Welp Usieng Java and learn them can watse my whole day it requires like 1 month of learning about it it's not easy at all my freind sent me a code for an a unused the commands first time I saw the real Java coding so I said this is my hell

java or javascript?
please, both are like car and carpet
Could you solve it, I’m back at least a bit
also, it's never a waste of time when you're learning a prog lang
consider it an investment
huh
also no, when you learn what everything do it becomes really easy to understand what's happening
js is among the easiest langs
php-curl is probably not installed
Aye
Well I use the BDscript beocuse it can shortcut the commands from 100 words to 1 word and find the error easy and the js it would be very very hard to find the erorr between 1M words
It’s not only curl
There are lot of additional package required
But I’m unable to help while driving
For that error it's just curl missing
Can help u in a few hours
If you have 1M words in a file you're clearly doing it wrong
And no, JS tells you exactly the line and column where the error is
You can create a php file with this content in the same directory:
phpinfo();
?>```
and check if it's being loaded
indeed BDScript was designed for people who are new to coding
but the drawback is exactly that
it only works for BDFD
and nowhere else
CTRL+F through it and search for curl
Just think about it, you can spend time both learning BDFD or JS, but you can't put BDFD in your resumee
And also look at this bds right here what if you trun it into Java I probbly don't know a single command of Java
Aren't those just the credits
As I said, you'll need to love with the ads then
if you can't find this, then it's not installed
I didnt have it installed on my server. After installing it this showed up:
Try some apt install php-curl again
and maybe restart your webserver afterwards
Like, not even a crisscross game is possible with that tool
If i chose a Java a really huge problems & mistakes that I really hope'nt happin to me ever 
Javascript
You're installing PHP 8.0 curl but your webserver is using PHP 7.0
🙂
php7.0 modules being loaded
You should upgrade to PHP 8 anyway, it's a huge improvement
yeah use php8 if your script supports it
hi Tim
you have to change your webserver configuration for that domain to use the PHP8 engine
Just remove the whole installation and reinstall it including your needed extensions
^or that if it's fresh I guess? 😄
Don’t forget apache2-php
Remember, bdfd knowledge has 0 value in the market, you're trading freedom for easiness and performance for simplicity
Dude now what should I chose?!?
It's your choice, but don't regret futurely
Javascript is the one that has most tutorials out there
you can make a bot better than most on top.gg with basic js knowledge and understanding of how to google things ngl
Don't watch videos tho
If i chose Java I would live in pain and a huge deamge to me
Js okay?
Yes, it'll be a pain
videos aren't bad as long as you are watching the correct ones. Don't watch tutorials. Do watch videos explaining the concepts.
U need to remove all installed packages
I'd say 90% the time you need to make a bot is the time you take to do the first step
Everything after is faster and easier
Then search a LAMP stack install guide without actually installing MySQL
If you don’t need it
D: Dont just delete the directory
If you're talking me... Whatever happens I won't use js beocuse I told you it can deamge me!
No it cant
Oh huh don’t delete directories... it’s not Windows
No programming lang can damage you
Use apt remove php7* --purge
^this also deletes files
Just look at this script holy hell and what even is this {}?
That's a scope
And how mcuh spaces did he spam
That's no spam, that's formatting
And it's very long I couldn't even take screen shot of it all
It's not long
does the phpinfo() output PHP8 now?
Actually it's because ur cellphone breaks the lines
The actual code is way shorter
Well now it's not using PHP at all
Did he worte that all with his self?
Not at all
Most of it is generated by ctrl + space
Or by the IDE itself
Like the imports
What to do now?
How did you resize it
Wrong
Disable interpolation
Don’t get me wrong but you need to listen to the tips
Not technically wrong but it's not everything he needs
A lot
It’s technically wrong
Install all required package regarding apache2-php, curl etc.
I dont waana learn Js due it can demage me or harm so important and can get me at least in the hospital
As I said above
java is not javascript
Java is not jav-
its two different things
two very different things
like cry said
java and javascript are like car and carpet
they have 0 relationship with each other
with gif-frames
Why?
sudo apt install libapache2-mod-php8.0 php8.0-curl
idk what other extensions you need

@earnest phoenix sudo apt-get install -y php-{bcmath,bz2,intl,gd,mbstring,mcrypt,mysql,zip} && sudo apt-get install libapache2-mod-php -y
my IDE is registering this commented out python code as SQL 
js is like a foreign language, it may not be easy to learn, but once you learn, you have access to a lot more possibilities in life
doesnt even have to be JS
check your site if it loads now, where you got the curl error before
most popular languages have a discord lib support
Did you read the reason?
Reload the webserver
yes
how can programming possibly damage you?
lmao
gets put in hospital because of js?
Yeah because you installed the package without the required ones I mentioned before
i was just answering your questions lol
It's 3 am and I just waana go to my bed take some rest and wake at I don't know maybe 12 pm
If you wanna be a bdfd slave....to each it's own
Google for install LAMP on Debian AND install it as explained without MySQL actually
But make sure to remove all packages before
Can’t actually write any commands while driving dude, it’s just a little bit of work for you to do
If you can’t do it you will have to wait until I’m at home
Why not
?
Can’t actually read it but it should be up to date, skip the MySQL part and packages
Did you install a phpxx-curl package?
Did you reload the webserver?
wdym
Changing extensions for php or the webserver will always require a reload of the webserver - keep that in mind
Alright

@earnest phoenix Did you enable cumulative for gif-frames?
Nope
Change disposition mode to replace
when {cumulative: true}
Don't use cumulative
, ok
Cumulative stacks frames
The one on top is a cumulative gif
The one below is a replace gif
Both will give u the same quality, but the one above will be smaller
Also, depending on color count, the one above will have more colors available

that's called crossfade btw
If only discord supported apngs...
Trillion colors, small af sizes, translucent pixels, smoooooooth
I don't know if this is a thing yet but, is there a something that tracks issues on github repo and sends a message when an issue is made to be sent to a set channel?
you dont need a bot for that
Webhook?
yes
How?
create a webhook on your discord server
then go to github, and create a webhook there
and put the discord webhook data into the github webhook configuration
Cheers Tim, I think I got the rest now
the api blocks cross origin requests
is the api yours?
add a Access-Control-Allow-Origin header
how do I make a simple blacklist? and also have it shift to lowercase? currently I have this:
client.on(`message`, message =>{
if(message.author.bot) return;
const command = message.content
if(message.content.has('word')){
message.delete({ timeout:50 })
message.reply(`that word is not allowed`)
}
});
my issue is that is says message.content.has is not a valid function, so how do I make it a valid function and also shift it to lowercase?
so i want my bot to be able to delete the trigger for the command, so would i make that command require the bot to have manage_messages or how should i go about it
ye
Why would the bot require manage message for deleting a database related info?
Just rewrite the user to have it, not the bot
no like i type the command, and i want it to delete the command i sent
Ah, then require manage msg
and should i do that per command or globally
Per command
ight thanks :P
Np
Instead of adding the headers you can also curl localhost/path/file.php
But not your php path directly
If you wanna block external access make sure to throw a htaccess file into the directory your php files are in with "Require local" for the directory directive
Or creating a virtual host
Or even more simply just don’t add the webserver to your firewall exceptions
Dropping all incoming connections on port 80
Be careful not to lock yourself out of the vps tho
Which shouldn’t be opened up by default anyways
This said I would never recommend Linux without 100% knowing what u do
Your server will end up as bot server anyways without any exception
Like, one wrong step
Just keep the ssh port open
Everything else is optional
If u wanna use voting webhook, open port 80
If wanna switch to ssl, close 80 and open 443
That won’t work
Https still requires 80?
443?
Creating ssl certificates will require to identify your host at least once which will happen on 80
Which was it?
As long as you’re using providers like let’s encrypt etc and don’t buy domain based certificates etc
yeah it's 443
Or wildcard certificates... whatever
Yep, just confirmed
Cloudflare origin cert 
Best cert
Well if you like to use Cloudflare, I don’t
The blocking policy of CF would fuck up my infrastructure and lots of clients relaying on my DNS resolvers without getting blocked
If you know what you do then host your own dedicated firewall and secure all your dedicated/cloud servers behind it
Relying on a good provider, load balancing your services and host your services on different locations worldwide, and you won’t get downed by anyone
More and more services are relying on CF and other service providers and we saw what happen if one DNS resolver is sharing wrong data
But to keep on topic if you’re not experienced enough stick to services which will actually deal with security stuff like managed servers
That’s my opinion
And regarding the growing amount of bot servers, attacks and scans on my servers every day I see I’m right
But yeah ...
Could you actually fix your request error?
And watch out for a dude called @quartz kindle
He acts like he would help you but actually throws complicated phrases around to frustrate you ending up in a DM with him, he will ask you for your bank ID and PIN.

very scary dude
yes
Hey guys
as you can see I have a folder named well-known and I have this file in it
but my domain just redirects me to the home page
I am using ReactJS'
nvm, I had to put it in /public
Is there a way to get this cooldown thing in d.py to show days, hours, minutes instead of just seconds?
with a little math yeah
Do you know the formula by chance?
https://pypi.org/project/humanreadable/ @hasty mulch
If the value is 0, does it appear?
you're gonna have to test it i dont use python i just know people who do who use the package
Dunno why Discord doesn’t allow me to jump to the message.
What’s the issue?
Hmm I’m not allowed to jump to my own answers/messages... 
Hmm how did you build the request?
Using localhost ... ?
Yes
Brb
Divide by 60 and you have the minutes
Divide by 24 and you have hours
And then round the hours off
No need
You're supposed to subtract the seconds from minutes, and minutes from hours
So it'll all be integers
I want it to show hours AND minutes
Read my message above
Subtract seconds from minutes, and minutes from hours
Seconds = millis / 1000
Minutes = (millis - seconds * 1000) / 60
Hour = (millis - minutes * 60000) / 24
does anyone knows how to fix this? having a hard time with gradle
No
Actually, your IDE was supposed to be screaming at you at this point
Doesn't it show any error?
Like, a big red error
I use CacheFlag on the main to register the events
nope, debug of intellij runs super fine
nope no errors
how would i make my discord js bot send posts from reddit into discord
ive tried using random-reddit library
What is yout jda version?
jda?
Not u
4.2.0_230
Did u reload ur gradle file?
Also, if u try to build it, does it point at the issue?
when i try to build buy running the jar at the build.gradle it doesnt prompt any errors
hmmm how could I do it? xD
I’m back
first time using gradle btw
Click gradle tab at the right
Then press the round arrow icon
My guess is that your modules are configured wrongly
Btw, that code won't initialize the bot
You need to add awaitReady after build
no same error again
That's really weird because intellij wouldn't even let you run the code
Like, it would point at the error
At the toolbar, press code -> analyze
Then select whole project
did and even after it intellij runs it super fine
Success then?
i wonder if there is anything wrong with my gradle
i mean before i could run too
but it always fails after compiling
it compiles without error but it simply wont run
But it is running
this was on my mac terminal
Oh
Did u install gradle on ur mac?
Like, both jdk and gradle
Or are you packing into a jar?
first time I use gradle, just saying again... I had no clue i needed to install gradle to run the .jar xD
Yep
yes trough the jar on gradle.build
No, it won't work like that for gradle
Because it won't include dependencies into the jar
You need to build a fatjar
Search "shadowjar gradle"
Follow the setup and build a jar with it
okie I"ll give it a try
I build the fatjar, the old error now is gone but now it seems it cant find the path to my .env
Uh
How are you getting the path to the env?
Also, you don't need .env for java, you can use java's vanilla support for properties file
But that's another story
Show me how ur defining path to the file
When I want to get something from the .env I use Config.get("parameter")
it calls my class that calls the .env
Go to the folder where the fatjar is
Extract it
Note where the .env file went
You may need to configure a path to it
yeah .env is not included actually
it seems that shadow also as gradle is not including it
when compiling
A bit longer code, but is vanilla
I just want to say this from the bottom of my heart no disrespect to anybody in the general public haters come a dime a dozen because in layman's terms my approach was correct and the approach of the other incorrect inappropriate disrespected to themselves you don't have to prove anything to me because I never had intentions of approving myself to anyone my approach today is because the approach and an inappropriateness of our community
Env files are just property files that are excluded from git
No copypasta
You guys might have heard from my story on TV and etc lately I have no family and friends and not too desperate or hard up for a family member or a friend to like me or love me cuz unconditionally I love me always
@oak cliff this is like the 100th time he has been told not to copy pasta
I'm not a thief I don't steal I believe in treating a person equal I am open-minded I wondering too many I get things done ain't no such thing or word of trying
@stone quest it's kinda late now, try using that method from the link I sent u, tell me if it works tomorrow
Note that you're supposed to have the properties file in resources folder, not project root
ty xiuh 
idfk what he was saying but his whole history is wack
ya multiple channels and all
was warned multiple times yeah
surprised he wasn't yeeted a bit ago
its bad enough for me to think thats auto generated text
Could be some weird self bot shit
wouldnt doubt tbh
Oh it works! The bot is finally running, now I can export it to my vps. Really! Thanks for the help, i was stuck trying to figure all this stuff out for hours! Thank you!
hey could i get some help with a command im trying to make? I'm using node and im trying to make a command where if someone doesnt have admin, it sends an error.
I've had it so it does like:
if (message.member.hasPermission('ADMINISTRATOR')) {
code here for the command
}
if (!message.member.hasPermission('ADMINISTRATOR')) {
send error
}
``` I've seen that the condition in the 2nd if is supposed to send the code if they dont have admin, but when the user doesnt have admin, the code for the first if doesnt run, but the 2nd if doesnt give the code either. any help would be great
assuming you're using discord.js. node is too vague for this
instead of that
you should return instead of scope it
It is in node.js
indeed, but there are dozens of libraries
sorry im really new
at the start of my code i have
const Discord = require('discord.js');
const client = new Discord.Client();
``` so i think yes i am using discord.js
you are, yes
Yeah ive done coding before just not the bot stuff
let me get you a link rq
how would I fetch all of the members in the guild
i dont really know js that well, i started this bot yesterday lol
without them being cached?
i know python a lil
this is an unvaluable tool for developing
take a look at this
what is
what i just sent
debugger on vsc
you can add a breakpoint on the line you think something is wrong
sorry wait im not using vscode
and when the code passes on that line, it stops the bot, giving you all current values
does that matter
oh
rather than assuming whats going wrong
vsc is awesome
im using a repl for rn
you can see real time whats going on
ouch
is that bad
security flaws
idk where to start with hosting it on vsc
Repl has a really really easy way of comprising tolens
tokens*
Especially if its stored in .env
let me get an example for you
could i use the hostingf stuff with the app / port stuff on vsc?
or do either of you have a guide to hosting my bot on vsc
I need help asap, how would I fetch all members in the discord without them being cached?
@simple zodiac check gif
you can stop code mid way through execution, and check real time values of your variables
could you help me/send a guide (whatever) on how to host the bot using vscode
Do you have mac or windows?
windows
pleeeaasee
oh
download it here
in vsc you need to add a debugger
i have vscode alr
the idea isnt to host the bot btw
you’ll have to install node from https://nodejs.org/en/
sorry






