#development
1 messages ยท Page 1452 of 1
does someone here know how to get the webhook url in dblpy? since it has an already built-in webhook system to check for votes
i just can't find it
your server ip and port
oh? ok then
a webhook is nothing more than just a reverse API; instead of you making a request to a website, the website makes a request to you
in order to accept said requests, you need a webserver open on a specific port
the lib you're using probably creates a webserver for you and is listening on that port
Yeah Thank You
Any ways to show your bot's statistics like server & members count on a website??
either server-side render your website
or
have an api exposed on your backend that the frontend can call
weres the gamesZ?
IMAGINE USING A PACKAGE
were they post game at in here?
what are you talking about
Heyo

anyway
you did something wrong with ur code above since it shows the text as white
u are missing a }
MessageEmbed now, RichEmbed is v11
their still using v11
yee
does someone know if there is a way to see if a user is verified?
in the apidocs there is a verified property in user model
https://discord.com/developers/docs/resources/user#user-object
but in the libraries for c# and js this property only exists on the bots user model
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
i think thats oauth2
do you mean these authorization windows of discord or is there a way to make oauth2 requests with a bot?
entry = guild.audit_logs(limit=1, action=discord.AuditLogAction.bot_add)
how to i get a user from action
in audit logs
basically
yes
google's servers are having a stroke
so inherently discord is having one too
discord just wanted to join the fun
lmfaoo discord joined the fun
still can't get into the dev portal either
or connect my test bot
stuck at trying to start a new client 
Yeah I was testing my bot and suddenly my bot left
yep, same here, i went to restart and was like
wtf so first thing i did was check status, they didn't update it so thought it was on my end lmao
went to dev portal and couldn't load it
so i thought "impossible, no way i got locked out, wasn't breaking rate limits :("
so i went to gmail
unlucky
lmfao
gmail was down so i'm like "oH cRaP"
bad order of events tbh, thought i was getting attacked
And you looked at the gmail and couldn't enter
How can i log the image if the message has an image?
like on message delete?
even my message goes late: D
now my top.gg bot is offline they will reject
I'm very unlucky
they're aware of when discord has outages and won't deny it when you're not at fault
ฤฑ hope
does anyone know a good host 24/7?
check pins
I wonder why your bot is offline. The gateway is still online.
uhm, guys, my bot isn't starting anymore
it listens to POSTs
but bot.on(ready, {}) just stopped executing
yep servers are nah rn
no no, that happens locally too
what do you mean by that
or should node have problems?
if I try to host my bot on my PC, bot.on(ready, {}) still doesn't haPpen
well considering discord server are not working it makes sense that your bot can't connect
Welcome to Discord's home for real-time and historical data on system performance.
what happen
Error fetching applications. Please reload page, or click here to contact support.
__There was a massive outage on Google's side, half the internet was down including Discord. Everyone is still recovering, please be patient until it comes back __
https://discordstatus.com/incidents/9hcyj1v9qft9
๐
my server just crashed because of #googledown (yes, i use google server)
and my bot doesnt start anymore (I doesnt get any response of the Api)
what should i do? i dont get any errors or something like that.
__There was a massive outage on Google's side, half the internet was down including Discord. Everyone is still recovering, please be patient until it comes back __
https://discordstatus.com/incidents/9hcyj1v9qft9
lol
imagine using gcp tho
whatever works tbh
yours work but mine not?
hate my life xD
got it online?
nope
gg
Which database management system is best for discord bots and why?
the shardRecconect event keep getting emitted
I use sqlite
mine doenst get an answer from the api, gotta wait till they fix it
is there any request traffic problem with sqlite
quick.db is slow and bad.
mysql is the best at general for me
sqlite is perfectly fine, mysql is the worst
I'm not beginner at this. I used too many database management system but I don't know which one is the best
I used mysql, sqlite and mongodb before
What do you mean by "Database management" then
is enmap persistent?
yes
so its essentially a light db
Enmap a wrapper around sqlite with caching. meant for absolute beginners.
oh
What if I send 50+ request in a second with sqlite
sqlite is good for "lots of reads, a lot less writes"
Do you know what is the limit for writing
HOi
it's not a hard limit, it depends on a lot of factors
so
if you're worried about it, maybe use a real database server like postgresql
Is there any documentation about that
Do i have to put https://glitch.com/edit/#!/hello-express for te express ting
I Feel we're going in the wrong direction. What exactly is your question?
thing
What "the express thing" are you talking about
the web hook
No, because that's your editor's URL, not your publicly accessible URL.
this
have you tried asking google that question?
Yes but I couldn't find anything about comparison with other systems
As many as you want? Local dbs arent limited
Yeah but you won't hit that limit
And it depends on the exact implementation
It's not something to worry about
and it depends on the speed of the disk
and it depends on the operating system
and it depends on the size of what you're writing
Okey relax
Anyone who knows py plz dm me i need help
See the thing is there is no one universal solid answer to the question, so, why are you asking about sqlite write limits?
I will post a screenshot when discord servers came back
It will be more explanatory
I got an error about limits
Ok so clearly you have reached them and you have an issue
and sqlite is no longer appropriate for you
You should consider switching to postgresql.
you like postgresql?
It's a great database, yes.
When the bot joined the server, I tried to create a special line for each users
so what do i have to put
click this. that's going ot be the "public" URL for it, from there you can guess what endpoint you'll need to reach.
That was an error on command line about limits
live code or code
"in a new window" lol
@umbral zealot live code or code
it'll be something like http://myservername.glitch.me/
thats live code
I'll ask again when discord servers came back
:o
lol
const Topgg = require('@top-gg/sdk')
const app = express(Do i have to put here) // Your express app
const webhook = new Topgg.Webhook('topggauth123') // add your top.gg webhook authorization (not bot token)
app.post('/dblwebhook', webhook.middleware(), (req, res) => {
// req.vote is your vote object e.g
console.log(req.vote.user) // 221221226561929217
}) // attach the middleware
app.listen(3000) // your port```
then https://your-app-name.glitch.com/dblwebhook is going to be your URL
it does
pretty sure that's the example provided in the docs
you could use the bot as a gate, store votes or something in database
i dont remember epxress being there
lemme double check
it does
huh thats odd
the old way was to simply re-emit it or store in database/cache for an easy fetch when the website requests it
@umbral zealot
bo
bro
when i put the express code the link behind // go grey
What.
Those are called "comments"
Maybe you should learn a bit more JavaScript before proceeding.
Yeah... That's how JavaScript works...
๐
I'm sorry I don't think I can really assist you.
my bot dont want to go online ?
__There was a massive outage on Google's side, half the internet was down including Discord. Everyone is still recovering, please be patient until it comes back __
https://discordstatus.com/incidents/9hcyj1v9qft9
my bot didnt go offline at all, which is odd as fuck, i was monitoring the connection and i didnt see any DISCONNECT event
my twitch bot went down for a couple mins, but my discord ones didnt
Twitch runs on aws then?
i just know they probably dont like the fact that i made a very aggresive lib

100% doesnt help my case
I mean it IS owned by amazon
Existing gateway connections are working fine. It just happens to new connections.
Type: close
Code: 4000
Reason: Unknown error.```
if(message.author.bot || !message.content.startsWith(global.Ayarlar.Prefix)) return;
let args = message.content.split(" ");
let commandName = args[0].substring(global.Ayarlar.Prefix.length);
args = args.splice(1);
let command = global.Commands.get(commandName);
if(!command || !command.conf.enabled || (command.conf.guildOnly && message.channel.type != "text")) return;
if(command)
command.run(message.client, message, args);
help me
How to prefix with spaces
example: owo
command example: owo help
args[0].substring(global.Ayarlar.Prefix.length).trim()
ah, that makes sense
Trim the whitespace excess
yeah i didnt get socket closing
otherwise it would've shown on my panel since i monitor status every 15 seconds
Trim the whitespace after slicing your prefix
"owo help".slice(prefixlength) would be help so trim the string so that it becomes help, making it detect the command properly
Prefix length would be 3, assuming that the prefix is owo without space
oh well
how to get port
What port

Elaborate?
Can someone help me with this error? "Unexpected token."
console.log
Ohhhhh mg ty lol
@pale vessel to make web hooks
LMFAO
Its said i need port
so idfk whats my port its
Ahhh yes my favourite const.log
yes the more solid version of var.log
@queen hamlet u an use const log too
nothing can beat AAAAAA string in c
n.tag learn js
fuck #commands
Before you make a Discord Bot, you should have a good understanding of JavaScript. This means you should have a basic understanding of the following topics:
- proper syntax
- debuging code
- basic features (vars, arrays, objects, functions)
- read and understand docs
- nodejs module system
As much as we d like to assist everyone with making their bots, we rarely have the time and/or patience to handhold beginners through learning javascript. We highly recommend understanding the basics before trying to make bots, which use advanced programming concepts.
Here are good resources to learn both Javascript and NodeJS:
Javascriptinfo: https://javascript.info/
Codecademy: https://www.codecademy.com/learn/javascript
FreeCodeCamp: https://www.freecodecamp.org/
Udemy: https://www.udemy.com/javascript-essentials/
Eloquent JavaScript, free book: http://eloquentjavascript.net/
You-Dont-Know-JS: https://github.com/getify/You-Dont-Know-JS
NodeSchool: https://nodeschool.io/
CodeSchool: https://www.codeschool.com/courses/real-time-web-with-node-js
Evie s Accelerated JS: https://js.evie.dev/
Please take a couple of weeks/months to get acquainted with the language before trying to make bots!
@queen hamlet
Bro why don't they let us remove embeds on mobile
thats too much links embeds to my screen!
it lets me autherize, but this comes up after
how to get ur bot's portt
@earnest phoenix are you making a bot named botghost 
yes
@earnest phoenix u mean dbl api?
app.listen(3000)
^example
yes
im making it with the site yes
are you using the dblapi.js module or just using the api webhooks normally
ig normally
auto thingy
im using it normally
i installed that
hes talkig to me .-.
oh ok sorry
glitch uses process.env.PORT
yes, glitch only gives you a single port
no nitro moment
dw I wont
@quartz kindle yo .-.
^
my server still no work
what packadges do i needa install for discord.js
discord.js
the package
its your project url
https://YOURPROJECTNAME.glitch.me/dblwebhook
discord.js doesnt require any other package for basic functionality, it autoinstalls everything it needs
what other packages are you thinking about?
@quartz kindle its just said starting andnothing else
Starting
To keep Glitch fast for everyone, inactive projects go to sleep and wake up on request
packages
EXPRESS
show code
package.json is the only thing you need
but i dont wanna leak my project name
when you do npm install discord.js, a package.json file is created if it doesnt exist, a node_modules folder is also created if it doesnt exist
then you just need to create your js file and start coding
you dont need to write your project name in your code
@earnest phoenix i beg you to stop using glitch before the FBI comes and breaks your front door and sues you and puts you in jail ๐
just show your express+top.gg code
package.json isnt created unless you use npm init I thought
it is in npm v7
const { Client, RichEmbed } = require("discord.js");
const bot = new Client();
const token = "Nz-OMCQkr
switch (args[0]) {
case "poll":
const Embed = new RichEmbed()
.setColor(0xffc300)
.setTitle("Intitled Poll")
.setDescription("p!poll to make a simple yes or no poll.");
if (!args[1]) {
message.channel.send(Embed);
}
break;
}
});
bot.login(token);```
There seems to be a problem and it is not sending the embed, can someone help?
const Topgg = require('@top-gg/sdk')
const app = express('projectnamne.glitch.me')
const webhook = new Topgg.Webhook('My bots api key')
app.post('/dblwebhook', webhook.middleware(), (req, res) => {
console.log(req.vote.user)
})
app.listen(process.env.PORT) ```
go reset your token. Now.
nice token
you dont write your project name
hippity hoppity your token is now my property
lmao rookie mistake
They literally have no message event listeners and aren't even deleting their message after leaking the token
OH
what's the problem
damn it invalid
you write your project name and url in your top.gg edit page
const { Client, RichEmbed } = require("discord.js");
const bot = new Client();
const token = "ThisIsAGoodToken";
const PREFIX = "p!";
bot.on("ready", () => {
console.log("Bot is ready!");
});
bot.on("message", message => {
let args = message.content.substring(PREFIX.length).split(" ");
switch (args[0]) {
case "poll":
const Embed = new RichEmbed()
.setColor(0xffc300)
.setTitle("Intitled Poll")
.setDescription("p!poll to make a simple yes or no poll.");
if (!args[1]) {
message.channel.send(Embed);
}
break;
}
});
bot.login(token);```
It's not sending the embed.
i mean maybe maybe not
RichEmbed -> MessageEmbed
whats your discord.js version?
Discord.MessageEmbed
How do I check?
define Discord
its in your package.json
^12.5.0
RichEmbed doesnt exist in v12+
they don't have any message listeners
yes
Tyty
Nevermind it was the old message
Tim you should add RichEmbed to discord.js-light
why lol
go to top.gg, go to your bot's page, click the edit button, click the webhooks menu
where
ok
i just told you
in the webhook url i have to put?
You can run another script on their bot
Hoow about in the Authorization?
new Topgg.Webhook("YOU_CAN_WRITE_WHATEVER_YOU_WANT_HERE_AS_LONG_AS_YOU_WRITE_THE_SAME_THING_IN_AUTHORIZATION")
have the bot create random servers and spam them
and ban the owner from them
bots... can create servers???
yes
they can own servers?
no
they can
only if they are in less than 10 servers
and the first person to join will be owner
bruh thats epik
hey what command do i use to start the bot im using discord.js
can u transfer ownership to them? i think you could
node yourfile.js
yea
might I suggest learning node js
do u have index.js?
aight
thank you!
lets see
@quartz kindle the webhook still dosent post anything in my server or smth
does anyone know how to make the discord bot have there own custom status im using discord.js
might I suggest learning node js 
does anyone know how to make the discord bot have there own custom status im using discord.js
help
Bruh
i have a code but it dont work
if you did everything correctly, once you press the test button it should show in your glitch console
https://anidiots.guide/
https://discordjs.guide/
Plenty of code examples and tutorials for common things to get started with code.
bots cant have custom statuses, not the ones users can
Yo tim is alive
bots can only have playing/watching/listening/streaming
TBH nobody reads these
show your code
k
` setInterval(() => {
let activity = activities[Math.floor(Math.random() * activities.length)];
client.user.setActivity("All Server!", { type: "WATCHING" });
}, 20000);
};`
prob
wrong
i got from yt
yes!
You could've just done <link> instead of putting it in a code block to remove the embeds
is your bot connected and online? does your console say anything?
That's a thing?
and it doesnt say anything
Yeah
add a console.log inside the interval
how?
for example console.log("setting activity")
sorry im new
It keeps the links clickable
ok
to make sure the interval is actually running
Api token/(key?) @earnest phoenix
did you not read what i showed? neither of them
lemme tryna put token ig
notEnoughCaps
read what i said
Yeah, Tim is starting to lose it
`needsmorecaps
nothing showed in colose
So let's see what's going on
shiv
then the interval is not running, can you show more of your code?

what part of this did you not understand?
does your index.js call ready.js?
learning js would be good
no i have two different
folders
i just wanted it to be organized
how you expecting it to run if you never run it?
isnt that glitc?
when you do node index.js that doesnt automatically include all other files and folders, unless you have code inside your index.js that explicitly imports the other files
I agree
yes
oh ok
@quartz kindle
and?
I assembled a drone but it's not working, guys. The power button is off but I think the company forgot to ship some important details.
did you fix your authorization? did you press the test button?
thats all
this guy is literally not reading my messages
wots array.some
i bought a car tire but the ferrari didnt come with it, guys, pls help
Ignore them until they do
You can ride on a tire
try picking up chicks with a tire
i did

Oh dw they'll be running after my 200 iq
ok
const Topgg = require('@top#2386-gg/sdk')
const app = express()
const webhook = new Topgg.Webhook('my thingy not showing')
app.post('/dblwebhook', webhook.middleware(), (req, res) => {
console.log(req.vote.user)
})
app.listen(process.env.PORT) ```
lmao
require('@top#2386-gg/sdk') wait..is this right?
`@top#2386-- yeah
lmao
bruh
I have the same question
show error
k
@earnest phoenix
breathes in
WHAT THE FUCK
breathes out
how dare you not know my error
did you put my thingy not showing in your Authorization in top.gg?

i dont understand
yes
where did you even get that number from
ReferenceError: activities is not defined
cuz you dont get that number
remove that line
What about your URL
ok
if you dont have an activities array
and your URL is correct?
cuz some donk has the TOP name
wait if i remove the lin it will only be ` console.log("client.user.setActivity")("All Server!", { type: "WATCHING" });
}, 20000);
;`
yes ig
wtf
wtf...
just @ them anyway, if they have that name they deserve it
@quartz kindle my glitch's project name its long tats why?
the living hell is that
dm me your project
you should learn at least a bit of js before making a bot
when i told you do add console.log, that doesnt mean you have to remove whatever was there
we have two impostors among us
console.log("this is a test")
client.user.setActivity(...)
@quartz kindle check dm when
when i want to
imagine being impatient

console.log("this is a test")
client.user.setActivity("...", {type: '...'})```
ayyyy
i got it
how to i make the status show the amount of severs
its in
@quartz kindle
@lost isle google discord.js how to add server count on status
thanks
we cant hand held you all the way thru learning js and making a bot
The first is existing in 2020
The second is using discord
1.Google was down Discord bots dont work. Servers locked ๐ก
2.Tomorrow in our country second lockdown starts....
bruh
ok but why are you telling this in #development
cuz the other ones are slowmode 
#development good #general bad
install ffmpeg
what ffmpeg? ffmpeg static?
@earnest phoenix yes
no lol
yep, i tried
If so, you can't install that yourself.
I use repl.it for the host. i have everything what i need. I can do anything
You cant use FFMPEG on repl my boi
how do i get the amount of vc channels my bot is connected to?
discordp[y
hi, i added a index.js file and a test.js
in the test.js i have :
if (!message.content.startsWith(config.prefix) || message.author.bot) return;
if (message.content.startsWith(config.prefix + "ping")) {
message.channel.send("pong!");
} else
if (message.content.startsWith(config.prefix + "foo")) {
message.channel.send("bar!");
}
});```
and the bot goes online but when i do the command nothing shows up
what should i do
what can i use then?
Get a new host
I don't use FFmpeg I use web-audio-api npm package so i dont have to deal with that shit
@earnest phoenix #development message
@lost isle are you running index.js or test.js?
index.js
Put the code into the index file
it works like that
but i want it to be cleaner
liike all commands
in a command file
Then make a command handler
how do i do that
U code it
learn it then
learn
discordjs.guide has a nice guide on it
am I allowed to post sample command loader?
@lost isle Before you make a Discord Bot, you should have a good understanding of JavaScript. This means you should have a basic understanding of the following topics:
- proper syntax
- debuging code
- basic features (vars, arrays, objects, functions)
- read and understand docs
- nodejs module system
As much as we d like to assist everyone with making their bots, we rarely have the time and/or patience to handhold beginners through learning javascript. We highly recommend understanding the basics before trying to make bots, which use advanced programming concepts.
Here are good resources to learn both Javascript and NodeJS:
Javascriptinfo: https://javascript.info/
Codecademy: https://www.codecademy.com/learn/javascript
FreeCodeCamp: https://www.freecodecamp.org/
Udemy: https://www.udemy.com/javascript-essentials/
Eloquent JavaScript, free book: http://eloquentjavascript.net/
You-Dont-Know-JS: https://github.com/getify/You-Dont-Know-JS
NodeSchool: https://nodeschool.io/
CodeSchool: https://www.codeschool.com/courses/real-time-web-with-node-js
Evie s Accelerated JS: https://js.evie.dev/
Please take a couple of weeks/months to get acquainted with the language before trying to make bots!
hello Erwin how is work
O h n o t h i s
they are just copypasting at this point, its a vampire
they sure as hell aren't gonna learn js tho
yea
DID YOU KNOW?
Nobody reads these
No fucking human reads these
Yeah they do
actually I read evie's and its pretty hot
actually good information about how everything works
yup, nobody reads rules, pins, replies, responses for their questions, tips and some other important things they should
and how to write code more efficiently
Do you have any idea how many beginners have thanked me for forcing them to learn javascript and stop mashing away at the keyboard? Hundreds.
I don't understand tbh
this
the first place should be google
you're basically saying what we're doing tho
and if google can't help ask someone to explain in english and supply sample (not working) code
not sure what you mean by that
alright why does 0/0 throw an exception?
0/0 is undefined
we're literally doing what you are telling us to do with that message but you don't see it
doing js without learning it first is shooting your own foot, you're just inducing yourself to keep copying code until you eventually try to do something that someone hasnt done before and theres no easy snippet for you to copy. It just produces a shit ton of bad habits and dependency on either stackoverflow or some glorious channel like this
@umbral zealot by the way https://million.is-a.computer/files/CCTThc9btNZsbhb.png
oh god
85kb pog
you're correct
Nah, jason
no
I fuckin use yml
\Code\good
๐ถ On the first day of christmas Jason gave to us ๐ถ
P O G G E R S 85KB FILE PROMOTING HIM IN FILE EXTENSION
yes
you made it as a joke?
yep
Yml database is the best imo
honestly helped me learn about typings
So fine, let me bring the metaphor I always use: It's like trying to learn cooking by making Beef Wellington as your first recipe.
"How do I use promises" = "What does 'chop finely' mean?"
"I use notepad to edit" = "A chef's knife? You mean, like, butter knives?"
"I'm getting a syntax error on this code" = "What's a food processor? what does it process? Where do I get one?"
"Sorry I'm a noob" = "I literally just moved into my first apartment from mom's house, I don't know how to read a recipe"
"I'm following this tutorial and it doesn't work" = "I'm following this recipe and I don't understand most of the words"
Trying to make beef wellington as your first recipe and the instructions be like:
To prepare the beef: Tie the tenderloin in 4 places so it holds its cylindrical shape while cooking. Drizzle with olive oil, then season with salt and pepper and sear all over, including the ends, in a hot, heavy-based skillet lightly coated with olive oil - about 2 to 3 minutes. Meanwhile set out your prosciutto on a sheet of plastic wrap (plastic needs to be about a foot and a half in length so you can wrap and tie the roast up in it) on top of your cutting board. Shingle the prosciutto so it forms a rectangle that is big enough to encompass the entire filet of beef. Using a rubber spatula cover evenly with a thin layer of duxelles. Season the surface of the duxelles with salt and pepper and sprinkle with fresh thyme leaves. When the beef is seared, remove from heat, cut off twine and smear lightly all over with Dijon mustard. Allow to cool slightly, then roll up in the duxelles covered prosciutto using the plastic wrap to tie it up nice and tight. Tuck in the ends of the prosciutto as you roll to completely encompass the beef. Roll it up tightly in plastic wrap and twist the ends to seal it completely and hold it in a nice log shape. Set in the refrigerator for 30 minutes to ensure it maintains its shape.
And not knowing what the words "drizzle", "sear", "shingle", "duxelle", "twine" mean.
I see this as an absolute win
this is perfect ty for sending it
thank god you didnt publish on npm
no
i was about to screech
bruh what
he published it
you actually published it?
we need this on starboard because their not gonna put it in pins
ye
link that shit pls
that is unfortunately 2 messages, guys
you fucking moron
I'm a contributor
does that mean that I'm a degenerate too
im not quite sure why there are 500 downloads
Then compile it to one
scrapers
563 users using this garbo wtf dude

can't, it's 3000+ characters.
why even publish a shit package?
dw Erwin its just because its new
Just star both 4head
delet that shit
soonโข๏ธ
or put a warning or something
alr gimme a sec
Star both plz guys
im sure theres people who unironically download that without knowing its a troll package

hopefully not

they should use enmap
"I made this package and published it because I am a retard. This package is prone to corruption, use this at your own risk."
dont put harmful shit out there to begginers
lol if you add a warning saying "Yo this is not a package you should use if you want an easy solution use enmap" that would be grandiose.
dw I will
lmao
what should I say "If you need a simple DB use enmap" or something?
ok
USE THIS GARBAGE INSTEAD OF ANYTHING ELSE YOU'LL LOVE IT

||you welcome wink wink||
@umbral zealot send link
This package stores JSON data which is prone to potential corruption and data loss. I used it to learn various things and published it by mistake. I strongly suggest you do not use it. If you want an easy storage solution please take a look at Enmap.
nvm
perfect, no? ^_^
LOL
The fuck you tell me evie just sent a link that shows up as the text Enmap and not the link URL
This package stores JSON data which is prone to potential corruption and data loss. I used it to learn various things and published it by mistake. I strongly suggest you do not use it. If you want an easy storage solution please take a look at
Enmap.
i fixed it

Since when were we able to mask links outside embeds?
No add # to the description too
Oh because it's mobile, probably, code?

Some clients show the proper markdown link
yep
i mean its just a title header
Androids
@blissful coral hi weeb

No
Oh well
No it doesn't
can we spam npm with shitty modules just to advertise our main one, kinda like a one sided campaing?
Lemme try

that would be extremely funny
[https://cringe.tf](FREE BOBUX)
more json dbs
bruh momento
JASON.db
Erwin.db
EvieCode.db
Best.db
and then all of them foward to enmap
I'm not going to actually advise or support that advertising method - just so we're clear it's a joke ๐
wink wink
its updated

How to suggest things
Like?
@earnest phoenix ?
suggest to whom
fuck I messed up
what did you do
how can i get how many vc channels the bot is connected to?
Where is code
dpy
Create an issue in https://github.com/top-gg/issues/issues
Yep

cheetor
On earth
emails go brrr
i think i should read the docs before making a bot ye?
how bout npm delete self?
Yeah
So yeah, len(bot.voice_clients)
uhh im running certain shards, itll show the list of vcs those shards?
imagine not using a proper database in a container for easy deployment
i added a command handler and i went to run the bot and an error pops up
error:
ReferenceError: fs is not defined
command handlger
files.forEach((file) => {
if (!file.endsWith(".js")) return;
let props = require(`./commands${file}`);
let commandName = file.split(".")[0];
client.commands.set(commandName, props);
console.log(`๐ Command loaded: ${commandName}`);
});
});```
actually
Are you using autoshardedclient?
learn js and stop being a vampire
yes but no
l
Please go learn javascript.
k
once I corrupts im adding atomic writes
i found it
whatever it's called
nvm
then I will be deleting it after
im doing autoshardedclient, but im doing wonky stuff
not even the basics, you just copying code
im running like 10 total shards but only runnning a couple shards on that proccess
clustering
https://million.is-a.computer/files/WSMjCdhUWcKjqzu.png ty Erwin for the best response ive ever seen
My new code:-
msg = None
athr = None
dsc = None
snipe = None
@client.event
async def on_message_delete(message):
guild = ctx.guild.id
global msg
global athr
global msg_id
msg = message.content
athr = message.author.id
msg_id = message.id
if message.id != guild:
msg = None
athr = None
msg_id = None
@client.command()
async def sn(ctx):
snipe = msg
author = athr
snmsg = snipe
id = msg_id
if snipe is None:
await ctx.send("There's nothing to snipe!")
else:
embed = discord.Embed(title = "Last Deleted Message" , colour = ctx.author.colour , timestamp = ctx.message.created_at)
embed.add_field(name = "**โขMessage Content**" , value = f"{snipe}")
embed.add_field(name = "**โขAuthor of that message:**" , value = f'{author}')
embed.set_footer(text = f"Requested by {ctx.author.name}" , icon_url = ctx.author.avatar_url)
await ctx.send(embed=embed)```
Error - **Cannot send an empty message**
yeah I know that code is literally stolen from things I wrote, too ๐

wat line
bruh i swear, js community is a shitshow
if you search it up, you will find like 100 stack overflow questions with that code
it should tell u
js is way too easy to learn, makes people cocky thinking they know it when they declare a variable
It's a snipe command
CONSOLEEEEEE
js isnt easy at all to learn
basic js is imo
Stop joking ๐ฅบ
@lost isle you haven't required fs
PROPERLY learning js, people be using vars/arrays/functions and think they know js, they dont
That could be biased since you already learned it
Helpp meeee
i started js, its ez but doenst make too much sense
this tbh
PLEASE ADD A THIS TBH EMOJI
๐ฅบ
WHAT FUCKING LINE?*
please: let us know where is the error
Let's not polute this channel with language wars.
brainfuck is best and if u disagree just leave
I didn't mean to start a language war sorry
issa joke
every single language is bad
What's a joke?
except scratch
Scratch op
py
scratch is the ultimate lang
wait
Got em
i think its been done
has it?
i believe so yes, i remember someone in DAPI mentioning it after i joked about it 2 months prior
ok im naming my clusters! @oak cliff whats the first word sylvia said?
dada lol
cluster name boutta be: mommy i pooped in the floor
scratch is basically js btw

yea i addded that
still same error?
yo seriously go learn js
LMFAO
this
Stop expecting us to handhold you through making a bot
I don't think anyone here means to be especially rude but you should at least know nodejs basics before this
k
Oh trust me I mean to be rude and direct and authoritative because people sometimes need the tough love.
the webhook might work or wot
i doubt anyone here will have the patience to guide you throughout both learning js and making a discord bot
what did you end up doing?
It showed nothing
et props = require(`./commands/${file}`);
i frogto the /
xddd
why did you need the /?
et
idk
LMAO
wrong answer
guys what its the webhook url if i host on glitch
who?
enough seeing cringe vampires in chat
the answer was supposed to be "because X"
we have told you this already 3 times.
k
much cleaner chat now
imo blocking someone just makes chat dirtier
ik u answered ands another one answered u both not same answer
like how the blocked messages are displayed
rather seeing that than the same person asking for the 12th time stuff they would know if they listened to what we are saying
true
https://your-url.glitch.me/dblwebhook was the answer from both people @earnest phoenix
that's the URL
with YOUR site name of course
And your web server must be setup to work with glitch itself
What did you say? Just copy and paste? Sure.
honestly they need to learn about webhooks first
this isn't about learning webhooks
they already have a webhook running from what i got
this is about understanding some basics of http and web servers and that's not really a "clear" path of learning
they just dont know how to point to it
idk python but thats where the error should be
you have ports iirc
@earnest phoenix you also need to adjust one line: app.listen(process.env.PORT); instead of app.listen(3000)
due to the glitch inner workings.
oh i see
it's bound to a specific port on http





