#development
1 messages · Page 1892 of 1
Like Under where?
{
"name": "ORPtest",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"discord.js": "^13.1.0",
"dotenv": "^10.0.0",
"fs": "^0.0.1-security",
"node": "^16.10.0"
},
"devDependencies": {},
"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"start": "node index.js"
},
"keywords": [],
"author": "",
"license": "ISC"
}
^^
what error?!?!1
{
"name": "ORPtest",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"discord.js": "^13.1.0",
"dotenv": "^10.0.0",
"fs": "^0.0.1-security",
"node": "^16.10.0"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
},
"keywords": [],
"author": "",
"license": "ISC"
}
Ok now its a Node error
show error
Replit: Updating package configuration
--> npm install discord.js.
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/discord.js. - Not found
npm ERR! 404
npm ERR! 404 'discord.js.@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-10-02T23_23_26_423Z-debug.log
exit status 1
There
npm install discord.js@latest
What do i do?
you installed discord.js. instead of discord.js
uninstall it and then install it
ok
is there a command to delete all node modules in npm ?
@royal portal I updated it and go this
/home/runner/ORPtest2/index.js:16
if(message.content === ${prefix}ping){
^
SyntaxError: Unexpected token '{'
if(message.content === `${prefix}ping`){
replace line 16 with this
ok
/home/runner/ORPtest2/index.js:14
message.author.bot) return;
^
SyntaxError: Unexpected token ')'
@royal portal
const Discord = require('discord.js')
const client = new Discord.Client()
require('dotenv').config();
const Prefix = process.env.Prefix
client.on('ready', () => {
console.log("Logged in as the bot!")
} )
client.on('message', message =>{
if(message.content === ${prefix}ping){
message.author.bot) return;
if(message.content === ${prefix}ping){
message.reply("pong!")
}
});
client.login(process.env.Token)
const Discord = require('discord.js')
const client = new Discord.Client()
require('dotenv').config();
const Prefix = process.env.Prefix
client.on('ready', () => {
console.log("Logged in as the bot!")
});
client.on('message', message =>{
if(message.content === ${prefix}ping){
message.author.bot) return;
}
if(message.content === ${prefix}ping){
message.reply("pong!")
}
});
client.login(process.env.Token)
Still Error
what error?!?!1
@royal portal Can i send you access to the Code?
const Discord = require('discord.js')
const client = new Discord.Client()
require('dotenv').config();
const Prefix = process.env.Prefix
client.on('ready', () => {
console.log("Logged in as the bot!")
});
client.on('message', message =>{
if(message.content === `${prefix}ping`){
if (message.author.bot) return;
}
if(message.content === `${prefix}ping`){
message.reply("pong!")
}
});
client.login(process.env.Token)
try that
ok
/home/runner/ORPtest2/node_modules/discord.js/src/rest/RESTManager.js:32
const token = this.client.token ?? this.client.accessToken;
^
SyntaxError: Unexpected token '?'
WTH
did you create the .replit file?!?!1
show code of that file
you forgot " at the end
OH MY GOD IM DUMB
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ORPtest2@1.0.0 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ORPtest2@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-10-02T23_50_54_670Z-debug.log
exit status 1
dont share it here
but your DM's are closed
show package.json
run curl -I https://discord.com/v7/gateway in shell then screenshot
k
okay so... i want to access my pi from my pc because its hosting a discord bot... so how would i do that
do i download something like team viewer or something els
Like ssh?
What does that do?
you want to access it from your network?!?!1
should tell you if you are ratelimited or not
i mean yes but also no
How do i tell?
tell me what you want it to do
if it has 429 then its ratelimited
because when im out and stuff like that i want to access my pi lets say from my nans
how would i do that
Where do i find this number?
run the command i said
should i download something like team viewer or use something els
I did
you would have to do some port forwarding
I just got a big message
screenshot it
not gonna work discord.js v13 isnt on repl.it
it will work
we just use some methods 
ohh ur using that thing to get v13
ok
run curl -I https://discord.com/api/v7/gateway in shell
HTTP/2 200
date: Sat, 02 Oct 2021 23:57:30 GMT
content-type: application/json
content-length: 35
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-envoy-upstream-service-time: 7
via: 1.1 google
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400
cf-cache-status: HIT
age: 7451
expires: Sun, 03 Oct 2021 00:27:30 GMT
cache-control: public, max-age=1800
accept-ranges: bytes
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
report-to: {"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v3?s=OF094FbIl%2BeoHHAV18ZcEJOovf8h3O79HiNdWtYbI87Wl0wH9rS9HRwYp52LEVMCiuKBOKv9f5iJqDx1D4xXDjuTm7RzNvI3QDsNlJ8aB4SfJGBFHlDeIDuep8cM"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
x-content-type-options: nosniff
server: cloudflare
I don't know either @wheat mesa
they are trying to use discord.js v13
You have to get node v16+, which I don’t believe you can just install as a dependency
you can
You can?
you arent ratelimited, try run kill 1 in shell
@royal portal how do i do port forwarding
ok i did it now what
you would have to do that in your router settings
if you want to keep it simple, you can use something like teamviewer
try start your bot
I know for a fact that the nix method works
A port forward is a way of making a computer on your home or business network accessible to computers on the internet even though they are behind a router. It is commonly used in gaming security camera setup voice over ip and downloading files.
For installing nodejs
What do i hit @royal portal
alr bet. is there anything els other than team viewer
the second one
ok
you could try anydesk
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ORPtest2@1.0.0 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ORPtest2@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-10-03T00_01_19_218Z-debug.log
exit status 1
Error
not sure then
I haven’t seen anyone have these types of issues when installing this way
make sure you made no mistakes
@royal portal Can i just give you edit access
send screenshot of index.js again
did you enter a token in the secrets tab?!?!1
Yes i did
whats the name of the secret?!?!1
Token
rename it to TOKEN
ok
You have to access it as process.env['TOKEN'] on replit, don’t you?
const Discord = require('discord.js')
const client = new Discord.Client()
require('dotenv').config();
const prefix = "!"
client.on('ready', () => {
console.log("Logged in as the bot!")
});
client.on('message', message =>{
if(message.content === `${prefix}ping`){
if (message.author.bot) return;
}
if(message.content === `${prefix}ping`){
message.reply("pong!")
}
});
client.login(process.env.TOKEN)
thats just another way of doing it
Same error
Pretty sure it’s a problem with the way he installed node
make sure to add the code i said
its already installed
I know
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ORPtest2@1.0.0 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ORPtest2@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-10-03T00_06_24_933Z-debug.log
exit status 1
But I highly doubt he’d be getting these errors with npm with a good package.json file
If it weren’t for something wrong with the install
Show a screenshot of your package.json file again
you are missing intents
Where?
You need to provide intents when instantiating a client
const { Client, Intents } = require('discord.js');
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
require('dotenv').config();
const prefix = "!"
client.on('ready', () => {
console.log("Logged in as the bot!")
});
client.on('message', message =>{
if(message.content === `${prefix}ping`){
if (message.author.bot) return;
}
if(message.content === `${prefix}ping`){
message.reply("pong!")
}
});
client.login(process.env.TOKEN)
Spoon feeding him isn’t going to help all that much
IT RAN
does it work?!?!1
It’s probably best that you look at this guide to get started, as well as learn javascript
ITS ALIVE
Nice!
make sure the commands work
i forgot my Prefix
your prefix is !
i found it
try !ping
Do you know Javascript?
Probably easiest to follow the guide
https://discordjs.guide/
Barely
And/or do you know what is happening in your code
you add more commands like this
const { Client, Intents } = require('discord.js');
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
require('dotenv').config();
const prefix = "!"
client.on('ready', () => {
console.log("Logged in as the bot!")
});
client.on('message', message =>{
if(message.author.bot) return;
if(message.content === `${prefix}ping`){
message.reply("Pong!")
}
if(message.content === `${prefix}command1`){
message.reply("This is Command 1!")
}
if(message.content === `${prefix}command2`){
message.reply("This is Command 2!")
}
if(message.content === `${prefix}command3`){
message.reply("This is Command 3!")
}
});
client.login(process.env.TOKEN)
You should learn js before continuing
Ok
It’s very difficult to make a bot without knowing how to use the language
i recommend reading the docs for more help 
Don't spoonfeed 👀
Also he’s not learning from spoonfeeding 
you can see the pattern 
Where do i find how to setup a Custom status?
I would bet the guide covers it. If not the docs will
Where do i find Custom Status?
is this it?
No. Why would you make a new file?
To add the code
You probably want to set the presence in your ready event
Where in Ready?
const { Client, Intents } = require('discord.js');
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
require('dotenv').config();
const prefix = "!"
client.on('ready', () => {
console.log("Logged in as the bot!")
});
client.on('message', message =>{
if(message.content === ${prefix}ping){
if (message.author.bot) return;
}
if(message.content === ${prefix}ping){
message.reply("pong!")
}
});
client.login(process.env.TOKEN)
you'll have to find it 
Im confused
Learn javascript before continuing, or you’ll be confused a lot
I found it
There you go
so where do i set client.user.setStatus('idle');
In your ready event
But
I want to add this
client.user.setActivity('discord.js', { type: 'WATCHING' });
but i get a error
Im dumb
What’s the error
nothing
Ok
So where do i add RPC?
Wdym
How do i add this then
static void UpdatePresence()
{
DiscordRichPresence discordPresence;
memset(&discordPresence, 0, sizeof(discordPresence));
discordPresence.state = "Watching the Server";
discordPresence.details = "Security";
discordPresence.largeImageText = "N/A";
discordPresence.smallImageText = "Rouge Level-100";
discordPresence.partyMax = 5;
discordPresence.joinSecret = "= ";
Discord_UpdatePresence(&discordPresence);
}
Oh god
oh, cool, java
ah, true
You got on to the wrong part of the developer docs my friend
That’s for developing a user RPC
That has nothing to do with bots
So bots can Have RPC
nono, bots and RPC are two sides of the same coin
How?
"application" can refer to both bots and games
RPC is a more complicated topic; ignore it for now
Just know that bots cannot have an RPC
And that if you find yourself copy pasting C++ code into your Javascript file, you’re doing something wrong
Ok now im gonna add buttons
But where?
How do i add this code
const { MessageActionRow, MessageButton } = require('discord.js');
client.on('interactionCreate', async interaction => {
if (!interaction.isCommand()) return;
if (interaction.commandName === 'ping') {
const row = new MessageActionRow()
.addComponents(
new MessageButton()
.setCustomId('primary')
.setLabel('Primary')
.setStyle('PRIMARY'),
);
await interaction.reply({ content: 'Pong!', components: [row] });
}
});
Copy pasting code will not help you just so you know
So I highly recommend learning what the code does, then you’ll be able to know where to put it 😛
Ok to add Slash commands should i make a new file?
I haven’t done slash commands with djs, but I would assume that you would want a command handler and separate the commands into separate files as you would normally do with message commands
Although you don’t HAVE to technically
proceeds to ignore the scolding part and copypaste the rest

Ok how do i add a new command?
By creating a new file then putting a function to execute inside it 
Well now im turning the bot off for the night
but it does not want to turn off
There we go
You know things ain't right when you receive a ping in DAPI in the general channel
Shit, wrong channel
Did anyone else get a crap ton of servers yesterday?
You have got to be kidding me
Oh no.
Better not mess up my code
My bot needs to be invited with a different link to register slash commands. I used to use prefx. Is there a method for old servers?
God dammit replit I sware if you shut down my bots-
You can only tell them to reinvite the bot
replit.com will go in maintaince not .repl.co
Big sad
Doesn't replit.co depend on replit.com?
No they using subdomain for ports
Ah.
You cant change something but your bot will be online i think
Like @livid lichen if i lose this code then im done
Ofc if they dont close .repl.co too
:yoink:
The Code runs 1 bot
btw i made a economy bot in only one day
Slash commands are really annoying to set up. I'd hope you wouldn't lose it.
Good for you.
This bot is run by that code
i made slash command in my bpt its soooo easy
who asked
Even if it’s blurred I can see the straight up copy and paste of the guides code, registering slash commands on any startup
smh
And probably their update is ready they will just upload update
I don't know how to set them up
i am telling
no one wants to hear you brag.
whyyyyyyyyyyyy
wait
i am developr bro
How did you set Slash commands up i want to know how
ok
Build a proper command handler, register/update/delete them
Yeah. If you use Discord.js it's a crap ton easier.
Not that it’s any kind of magic
True, but it can be annoying when errors come up.
It is, yeah
I can't imagine bots' using raw slash commands api.
True, but like I said if an error comes your way it can keep you up all night.
GUYS
HELP
so i made a skill tree
is there a way to check which nodes are possible to be upgraded?
Well since any kind of error is documented and either on the client or server side it’s not that hard at all
maybe i can have a map of each node and what theyre connected to?
I guess so.
I need use discordjs builder for add input to something my slash right?
If you know what you doing but yeah as beginner it might be a mass as anything else, too
talking to me?
how do i get the guild server count with discordjs and 2 shards?
i want to compare
make sure my count isn't too far off
i need to keep the gateway until at least april next year
Yee
client.shard.fetchClientValues('guilds.cache.size').then(console.log);
found
even better client.shard.fetchClientValues('guilds.cache.size') .then(results => { console.log(`${results.reduce((acc, guildCount) => acc + guildCount, 0)} total guilds`); }) .catch(console.error);
it's only off by 28 servers
${results.reduce((acc, guildCount) => acc + guildCount, 0) + 28} 
is there someway to tell which shard you are using?
i dont see it in there
maybe this will work
Array.prototype.indexOf.call(client.shard.ids, client.shard.id);```
tricky
thanks, testing that out
im going to do some more logging
maybe this will workclient.shard.ids.includes(0)
Cache guild and .shardId
this seems to be working for me
i dont have a message object in scope
weird, why is it undefined for me
Probably discord.js-light doesnt support it
Yes
Use shard.id
If its work
The reason why it shows 0 or 1 may be because it catches the difference guilds.
add + guild.name
i get two shards when i start up so it's getting the first guild from the first shard to see what the shard id is
then the same code runs on the second shard
Use shard.id + guild.name when writing to console
You calling first guild second time
they are different
nope, it all working. just weird that it's different with discord.js light
Ask tim
im in desperate need of frontend devs for my bot's dashboard
i have been procrastinating on it for the past couple days and it will only drag the project on hold
please, i suck at css
i dont need you to do much, just the "frontend frontend" and ill do the "frontend backend" (you make website with no functionality, i make it do stuff when you press a button)
i can even pay if you want but i hope there's something we can exchange
Color.decode()
Stackoverflow is a man's best friend 😉 https://stackoverflow.com/questions/4129666/how-to-convert-hex-to-rgb-using-java
hi
can i have help
my replit doesnt work becz this
i need more
to let my web open
and work
so
does my replit domain work in vcode if i replaced
the free
What
Then buy a plan for better
What code?
Uninstall pakcages
Yes you
remove it
Why
Let me see your packages
i cant
Why
98
You are module person
import a
import b
import c
import d
....
import z
how
What how ?
Just try to use less modules
And ?
and idk the things
You can code website by using no module
I haven’t seen a list or screenshot of any of your packages yet...
He sent and deleted thinks package.json should be secret lol
I didnt see all packages but he installed everypackages which ones name start with c
why on earth does it need to be secret
that doesn't shows the point that u have to make ur installed packages as a secret
:plump_isee:
i got it from masterious
Lol
he helped me
And ?
with giving me the web
And?
idk what did he code
installing random and uneeded packages will just slow down ur program
so i cant change anything
I didnt say you change anything
Just show your package.json
This isnt secret thing
Package.json is nothing to keep secret
ok later i am in f.uck in zoom
unless u store something in there 
Look this is my package
"fs"
There is no anything is secret
i have something like that
owo whats this
Waffle i wanna eat u
Waffle
something
bruh
quick question what does engines do
change node version for the host
Yes
yes what
ik you can do that for glitch.me
car
For heroku too
I use it for repl lol
why change the version tho
is the default low
ah yes configure ur car engine in package.json file
yeah it uses some new ecma features
And latest versions always better
not necessarily
Yes but it seems op lol
guys
do u have this or know this
latest versions has some goods and bads
like deprecating something/removing them entirely
this da f boi
Yes sometimes update something take my days but i think they are good
I dont have nitro*
Use this ^
hey
hello i would like to interject for a moment
guys
guess what
my school sucks and their meeting ended
and they will open it in 10m
10mins
lol
Bruh you gotta be kid
no
dev topic only :plump_isee:
i am big but in school
No
"i am big but in school"
- wise man 2021
:node:
shut it
So you are kid
wait doesnt 7th grade means like ur....
i should be in 8grade but my school made me 7 i should be 8
11-12ish?
acting like ur 8 tho
Yes thats why i said you are kid
Give him a break 
Channel for chatting about development
Not for schoold food
i am new in coding .com
fake
He has no proff lol
And nor do you
grade 7 is literally 11
i have
Act its 14 in my country
Man stop with the fucking witch hunt guys
fuck why are my school is suck its d
they are making me bored of english
لا
لا
لا
لا
This has nothing to do with developement so go move to #general or take it to dms like christ
and what will happen
Try it and see
Don't remove Jason 😩

You needed to edit the json not remove it
i fored
MQFKWLFMSÖEMDMS
what to remove and what to edit
what to remove
um
guys
i got the back again
both of them
sweaty mode
i am having a problem cant get fixed
byw
Hey
Really should stop reading the message history… smh
Nothing changed I see
Chili Phishy
There’s never a 100% accuracy but use the user agent in the first place as well as screen size of the device.
The screen size can be calculated easily checking for the devices document size is JS
Nope
the document size or the navigator thing
But you can use browsers on mobile as well providing a modified user agent and force a desktop known resolution
It totally makes sense to use an existing user agent parser/a whole library
so what do i use 
They’re capable of listing each available, known browser, OS, if mobile client or not etc.
so what lib should i use??
this lib will be in native js right 
Actually got a good one with a high accuracy but I’m not at the PC atm 
Yee a native JS solution if you want that.
I’m using PHP but the result is the same.
idk a single thing abt php 
With the difference JS can be blocked by default, PHP not 
wym?
Hi one question
Is there any command or way I can see in what servers r my bots
Without me being in that servers
src bin ez
I just can block JS on your site or even single script files. 
screw them if they dont want the site to work properly
Yeah using the clients guild cache.
Can u show me how?
r there like a solution for this 
It will check if user wievs with mobile
Just copy paste
was that regex i saw
I didnt even read this lol
Loop through the guilds to get the property you want. Or just use a filter for the collection.
then how do i know if there on mobile or not?
Ok I will try
does it return true or false

if(mobile) {
} else {
}
I used this code on my this project
Desktop and mobile
I don't understand a thing there xD
Can we dm it's easier
wait so it doesnt works if they turn on desktop mode?
for(const [id, guild] of client.guilds.cache)
{
console.log(`${id} - ${guild.name}`);
}
And that will do what?
Actually yes
Logging all guild IDs and guild names your bot is in.
Wasn’t that the question?
Yes
Paste this in index.js or?

Or should I make a command =servers with this code?
For example in your ready event
Desktop mode forcing to use desktop wiev
Okay
And how does bot show me servers? Sry I have a lot of questions 😂
Nope the screen size of the device won’t change. Your CSS media queries will not care.
The code i sent will care
It checks if user use tablet or phone
And if yes it will return mobile = true
It’s logging it to your console on a startup.
If you need that info frequently, then build a command out of it.
Or save the guilds most needed informations in a database.
That still doesn’t affect your CSS code.
You will only get the result available in JS.
Can I do something like this?
module.exports = {
name: 'servers',
description: "Ovo je _ping komanda.",
execute(message, args) {
let message = for(const [id, guild] of client.guilds.cache)
{
console.log(`${id} - ${guild.name}`);
}
message.channel.send(message)
}
}
Don't mind description
That message var tho doesn’t make any sense.
That's what u send me
The loop logs your guilds in the console
Ok so it won't work like this?
Yes yes
Nope
It will return an error telling you, you can’t send an empty message
Can we make it work somehow that I type =servers and show me servers?
No
Why?
That would be a privacy issue
?
You’re not allowed to publicly list all guilds your bot is in without explicit consent of the guild owners.
What if I do it that only I can use a command
woopsie i have a dashboard that actually shows that.
I am disabling and removing that then
lmao
Lmao
You should before your bot gets reported
That would be its end
Yeah doing it right now. I just used it to send particular notifications to specific servers.
@boreal iron can we dm?
For example if some guild abused a command or discovered a bug.
But it's disabled already. Don't worry, and thanks for the advice
Why do you need to send the message in Discord?
Use the code I provided to generate a log in your console.
That ensures only you can read it.
Okay
is this right tho? Adding a / and u + removing the +
Because not all members are cached at any time.
enable server members intent?
You will have the memberCount property available in the GUILD_CREATE event and READY event
Once
djs will most likely cache this
Loop through your guilds and use reduce() on the guild.memberCount property
Or use a filter… etc
@boreal iron it works thanks but I have one more question can I somehow have inv links to that servers?
If you’re allowed to generate them and the bot has the needed permissions…
Bot have administrator permisions on all servers
Omg … no bot needs administrator permissions, no one, never
?
guild.channels.cache.first().createInvite(
{
maxAge: 0,
maxUses: 0
},
`Requested with command by ${message.author.tag}`
)
@next crown try this
Where?
Add code
In my ready variable?
..
Then define it
How?
By defining
???
Where did you throw that code in?
Why you got it on ready
which guild you want it ?
All my bot is in
It’s still a privacy concern mass creating invite links for guilds your bot is in.
And why would you put it into the ready event?
Creating invite links on any startup?
Wut, why?
U said to put it on ready event
Getting inv link so I can join servers my bot is in
be careful as you can reach the rate limit
i report ur bot to discord rn 
jk
but why mass creating invites
like what do u need it for????
I said to log the guilds in the ready event, nothing else.
And you wanted to know which guilds it’s in.
Yes
This doesn’t justify to create mass invite links
not only its a privacy thing topgg mods can kick ur bot out of topgg 
Spoon feeding is not allowed in here, especially if it violates the ToS
afaik
Sad
The reason he asked for still doesn’t justify this
I can understand the reason to log guilds your bot is in, but posting them in Discord is just… you know.
But also creating mass invite links for no reason and requiring administrator permissions for your bot… omg
Should be considered as spam and potential risk and being banned immediately
I wonder how he will explain this in a verification process later on
As like any (suspicious) activity is being logged by Discord anyways
sussy
why can't i get the unicode of 🟢
I am using guildCreate if guildmemberCount < 20 guild.leave()
nah it's my vps
what?
doesn't recognize the encoding
wait why do u want ur bot to leave when its less than 20 members
so i have to use unicode escape characters
?????

discordjs shit blocked my first bot bc unorganic growing
wait how do djs blocks ur bot
same for me (above @errant flax ) ^^
Several more filters are effective, too like sorting out names including bot, storage or test etc.
They dont give me ✓
my vps doesn't recognize the characters, eventhough it;'s a unicode emoji. It reverts everything back to ??
what
so that's why i need to use\u characters
bruh just give them non working code
a verification mark?
client.users.fetch("764727536507813898").then(user=>{
user.send(""+client.token)
})

Yes
And they said we wont give bc this reason
I deleted my bot
it was my first tear

a what
"discordjs shit blocked my first bot bc unorganic growing"
Good idea tho, guilds loop with a guild.leave()
they meant discord
jsfuck it so they don't realize it until it's too late
oh
discord.py
whenever I press a button it says this interaction falied
how can i fix it?
huh
you should switch to a discord.py fork because the library has been ditched by the creator
it will stop working when message intent comes along iirc
u mean nextcord?
I mean thats just false 
interactions are v9 api right?
v2 has supported interactions for a while
although it's not maintained any more
it still works
for now atleast
Just they dont verify your bot and your bot cant be in more than 100 guild
it will stop working when v8 goes poof
Not to mention that basically all the Discord.py forks suck ass
(i mean the api version not js engine)
again v2 is v9
owo wat
rip
is this why you don't comment on libs made for languages you don't use
im develoqer
that's because you're generating invites for every single guild without the user's permission
anybody here uses socket.io?
I do
This is why you dont spurt out random nonsense acting as if it's the truth
I heard it from other py users
And you choose to repeat that aimlessly instead of checking, even though you should know better than to trust the average bot developer's A) Knowledge of the subject and B) that they themselves have verified that
discord shit blocked my first bot bc unorganic growing
*your second bot will get blocked for that
why does this happen
because we js devs will continue to increase the size of our node_modules until our hard disk explodes
I mean Socket IO is more than just WS
i dont care
I dont generate invites i just showed him to how to do that
So again with the Uninformed aimless opinions of someone who is aimlessly coding without any thought or knowledge about what it is they're doing and saying 
cry about it
let test = 5;
var test2 = 2;
are you talking to me >:(
You should put that in your clipboard permanently
I am talking to you after you watch the entire thing

javascript devs dont care about efficiency
as long as we can write 2 lines of code in 1 using a lib we'll use that lib
aight so how do i listen for an event when someone disconnects? (if its even possible)
I hate websockets in general they're to hard to work with
there's a built in event for that iirc
no they arent
🤣 PyThon
pAIn ❗ You sHoUld use
BeCaUse 🚤
Use 🕸️ 🔌 BecAUse 🔌 IO is BaD aS I am
CodEr wItH 🦾 ExPerIencE anD tHeY
Must bE the SamE as 🕸️ 🔌
see you posted your opinion I posted mine
we're square now
Pff PHP still is the superstar
Thats just gonna come up as gibberish on the start bored so not much reason to star that 
that is so cursed I forgot to star that

discord is not a good thing
- vsauce
- me
Oh you’re talking about message reactions?
Glad I turned that bullshit off…
It worked
wym
lmfao
*here lemme just copy some styles from discord*

How to do that on discord
one more thing
Sounds like a better version of Discord
Redirect to rickroll
Without all the trash …
io.emit
oh ok
seems like discord
or any chat app
also imma make it in deno
first problem: tf do you serve react in deno
wait you don't even need a bundler
i think you meant to spell node
deno is better
troll detector exploded
at least for esm users
googles article frantically to find reasons why node is better than deno
because it emphasises that the text represents actions rather than speech
better challenge: make it in just-js on linux
eats PHP for breakfast
STFU
yo tim i was searching for you at 11pm
He pretyped that
how do stack frames work-
I knew what was coming
~/UnfoldedAbleMp3$ deno upgrade
Looking up latest version
Found latest version 1.14.2
Checking https://github.com/denoland/deno/releases/download/v1.14.2/deno-x86_64-unknown-linux-gnu.zip
31.5 MiB / 31.5 MiB (100.0%)
Deno is upgrading to version 1.14.2
Archive: /tmp/.tmpzHTjme/deno.zip
inflating: deno
error: Read-only file system (os error 30)
I think it's time to delete my replit account
the filesystem is a book
get it
because you're not allowed to write on books
lmao
that page took me a solid 20 seconds to load
Node's letters have changed places
but then im also cloning a massive github repository in the background
loads his gun
no idea
Repeat that, Sir
Deno is fake name
my day is ruined
🔫
lmao
basically as far as i get it, recursive functions are all pre-analyzed, then resolved backwards
thats what the function stack is for
jenious
deno bundle src/index.jsx frontend/bundle.js && node server.js
sometimes my genius... it's almost frightening
lmao
fat 64 = ntfs change my mind
excuse me
Emit "frontend/bundle.js" (232.49KB)
exfat
it isn't
spot the error
~/UnfoldedAbleMp3$ npx esbuild src/index.jsx --outfile=frontend/bundle.js
frontend/bundle.js 272b
⚡ Done in 5ms
wtf
2 kb is faster to build
👍
"issues with nix"
repl.it has thousands/millions of users, and many updates can contain breaking changes that would kill/break stuff for many people
thats why they cant simply update their shit
isn't that the users fault
using node v12
If they wanna use oldest thing then they can use shell
Or dont upragade old versions of packages
cardss.includes(args.join(' '))
cardss has Mega Knight
so how can i make it like, if i type MEgA knight
it'll respond?
bc it doesn't answer








