#development
1 messages · Page 1642 of 1
check
regex
or cooldowns
or permission check
none of that, it does it by itself
detritus pog

why would it do that tho
why would it not?
its providing support for literally everything you would need for a discord bot
oh you mean features the library supports
yeah
was thinking like why it would all be baked into that single function
i think ive sent before, sorry if its beating a dead horse
but here
almost everything you would want for a discord bot it has already internally
also
1 line
this scans command folder and auto imports all your commands
and to reload? well, thats a bit harder
its 2 lines then 
is it possible to reload a specific command
yeah
nice
ree
looks like erwin found another person
im always recruiting 
what's the requirements for submitting a bot
thats more like converting people from discordjsism to detritusism
to submit? have a bot, be in this server.
absolutely
you can submit any bot, not sure if it will be verified
#rules-and-info for bot rules
alr
#502193464054644737 can help too
I'm making a bot so I'm gonna submit it
erwin
now i am confused, to use discord.js or detritus for me new bot exdeeee
tel em to giv me bot role 
i have give role perms 👀
''
thanks
likely not. do it. no balls
why you using quotation marks in urls?
you using a chromebook? keyboard layout may have changed from US to international
bru
if you didnt buy a barbie plastic laptop for $30, any computer/laptop you buy will have quotation marks
it's like 200$
ç
ikr
io
im serious tho, it doesnt have quotation marks https://i.ebayimg.com/images/g/OwgAAOSwXkRf2n~h/s-l640.png

wtf is that letter after L?
ççççç
thats HUEHUEHU keyboard
well, at least that barbie book is stereo
im amazed no one stared that for the fact that i, for some reason, knew that barbie keyboards didnt have quotation marks
That's what they want you to think. There's one speaker somewhere in the middle which just leaks out of the left and right speaker holes
lul
http://travaux.ovh.net/?do=details&id=49484&
OVH servers are burning down 
literally
kuu
We have a major incident on SBG2. The fire declared in the building. Firefighters were immediately on the scene but could not control the fire in SBG2. The whole site has been isolated which impacts all services in SGB1-4. We recommend to activate your Disaster Recovery Plan.
[''] for a gif?
"We recommend to activate your Disaster Recovery Plan."
I love this sentence
no
Everyone who thought "Nah, why would we need this" is seriously F'd now if this takes longer
we sure hope you have insurrance level of sass
bru
I've tried img gif image
got it
it's link
['link']
thanks lmao
figured it out
lmao
You probably can't without passing a parameter.
Yeah was just making sure lul
Though, why would you want to do that?
I don't think I can but it was worth a try to see if it was somewhere inside of class
It is a npm package
so
The files it needs to read aren't in the dir as it would do it in so
Actually wait if I do a function it would execute the directory path inside of the class where the class file is or where it was executed at?
The class file, not where it was executed.
You could always pass a parameter like __dirname or __filename since Node.js makes those global
yeah I am doing that instead
Just gonna pass a process.cwd() and then use path
or dirname
idk yet I am figuring it out still 
@lyric mountain I figured it out
I recommend one of the two examples I pointed out
I can't confirm but process.cwd probably makes a system call, but who knows
message.channel.me.hasPermission(command.permission)
whats wrong in this?
lol he dipped out
because the docs is bad right now
^
does channel.me even exist 👀
guild.me.permissionsIn(channel).has()
message.channel.guild.channels.cache.fetch(message.channel.id).guild.me?
wait i messed up
whatever
<member>.can(PERMISSION)
interesting
i will maake another bot breh, on 27th march
make*
i already explained the perks of detritus lul, its worth it on the long run
actually, bullshit, its worth on the short run too
fuck writing unecessary code

everything lmao
no man
no
fuck breh
now erwin will not stop for 12 hours
command Handler is shipped in internally, caching is customizable like d.js-light, its lighter, its typescript lib, literally everything
caching customizable is a huge one when comparing to djs 👀
@solemn latch read after this
here we go again
oh pog
googlefeud, feel my pain
no, i am the one who heard erwin the most in past 3-4 days
detritus is fine and all but what about discord rose mmlul
im simping for detritus, its good, period
i even started detrutus
imagine mentioning a lib thats not even out
you can control caching, interact with the raw API and only cache needed properties
aw cake is so nice
and i gave up after writing 3 lines
because i got an error in the third line
We do not recommend creating a production bot with the library just yet.
imagine recommending this
then why have they given people the lib?
dunno, ask flaz
he's the one advertising it
im at least adveritising a fully fledged lib

woah advertising?
👀 thanks google https://woo.pics/images/0b3d8d4229.png
here
i never even tried their boilerplate code, just from the front it looks interesting
i'm still using discord.js-light 
do you have the code of the server printed in your brain?
yes he did
i sent you a fully working example lmao
meant discord rose
o
it's not even v1 yet so
honestly, even i am not that interested in a lib with so few downloads weekly.
even djs light is cutting it close, and i know the dev of it 👀
with how fast new discord api versions come out
yeah exactly why I still use d.js light for my typescript rewrite
It just works and it uses less memory than eris
hmm
this is precisely why im talking about it, since ive used both i can give personal input on it
detritus, in every sense, beats d.js
and if the dev team bolts?
the only thing detritus loses against d.js is in downloads
next api version comes out and your dead in the water
For detritus, I might migrate IF they have a good lavalink wrapper (might also just fork shoukaku and make it work with detritus)
i am just waiting for detritus' good docs
they have been an official lib on Discord APi for a while now
or at least a youtube tutorial
its not a small thing to get it there
I know detritus since last year when using Jacher's Assyst bot
He got banned unfortunately
what it a good bot?

but it was crazy light and I bet it still is
NotSoBot is using detritus btw
yea
notsobot isnt dead? 👀
my question is how in the world did berry's bot crash when running detritus
What did he do wrong
👀
I'm pretty sure notsobot's getting rewritten
was it a good bot?
i didnt like notso 👀
Are you sure cause notsobot has 100+ commands but the repo doesn't include that many
the repo is just a base guide for people to write in detritus, if you check the commands, a lot of them are blank
the point of the repo is to give a framework for people
you could very well fork it and add your own commands ontop
is there a way in discord.py to still have the bot respond if a valid command was used, but a check failed?
like, I want to tell a user that the reason the command did nothing was because they don't have the permissions to use it.
that's dumb
nevermind - found it. it's just a matter of using on_command_error
show the code 
the code, which is not working 
lol sorry i dont understand
Did you make your bot yourself?
Half of them make from open github repo
true
We can not help you, when you do not have basic coding experience 
thats id
need some help with laravel
When trying to run composer install, I get an error which just says "Class <class name> does not exist" even tho I have the dependency and I can see it in /vendor
isnt it was python?
hey has anyone made a dashboard here?
im looking into making one that uses oauth but im trying to figure out how some other bots have their oauth token not show up on the url
im using angular 😄
You dont use the secret in the redirect url
If you're talking about sending the token from 5he client side then you cant hide it because browsers be open™️
check 2pg github they have a nice one made with angular
welp already left
idk if we are talking about the same thing XD im talking about how the auth code doesnt show in the url
It's just taken away by the server on the redirect
Login - > redirect callback - > redirect back to site
Code only makes it to the first redirect when the user data can be fetched
Can I be the TS there
right so rn
im going to the discord login -> then it goes back to my callback (in that callback i hold onto the code) -> then im basically refreshing the page without the param
im just trying to understand how other apps are able to authorize and not have it in the url XD

I mean you need to go to a redirect and refresh the page anyway to get the login info
Th3 code itself tells you nothing
yeah i kowwwww XD im just being a child about it showing in the url for like a second XD
litterally doesnt matter and cant be done sanely

u right XD ty
can someone else please do me a favour and try to open https://brainboxdotcc.chargebeeportal.com/portal/v2/
its not opening for me, i want to know if its a local issue or if chargebee are having issues, because their service status page says theyre fine
because the redirect is seemless
that's why
@earnest phoenix thanks, its just me - local problem
@sleek orchid This isnt a #support issue though
9p
Why this error?
Access to XMLHttpRequest at 'https://top.gg/api/bots/722557087221153853' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
hi guys. which discord bot hosting do you recommend for a budget at around 5 dollars? i also want to connect to github for version control
hmm tired waiting
?
is that an answer to my question? it doesnt seem like it 😂
Who says it was an answer?
lol im actually dumb in thes topics
which color should i choose for the forms?
how can I make the font darker?
color:black or for bold font-weight:bold
I can help you with hosting if needed.
@spiral tinsel yes im not really knowledgable about it at all
Today i learned: Merging a branch via git commandline thats part of a pull request on github automatically closes that pull request
which is kinda neat
😄
Wew
Cors
No 'Access-Control-Allow-Origin' header is present on the requested resource.
but it didn't work
Then??
it says requested resource..
The response to the CORS request is missing the required
Access-Control-Allow-Origin header, which is used to determine whether
or not the resource can be accessed by content operating within the current origin.
You litterally cant fix that
Its top.gg not allowing your request via cors so your browser wont accept the response unless you're on the same host name
You're on localhost
It expects top.gg

So just grt your server to send the requests and use ss rendering or a wrapping api
Again, you cant use anything client side that doesnt implement cors or match the same host name
why it isn't working?
@rustic nova i need a advice.I have coded 2 bot,which has different commands but same feature. So the bot i applied works with commands. My other Bot works with the dashboard(already on top.gg). But since the dash will be offline for more then 1 week.I want to the add the commands only temp to my other Bot. But the problem now is that both bot has same commands and top.gg would decline. Sorry really complicated.
bit confused what you mean
thats not how to check for numbers, if thats what youre trying to do
I forgot this was my note for tim
if(isNaN(text here))
thank you :D
lmao
why are you yellow?
is it your birthday?
\🍰
<@&330168063729074177>
oh no
does this work
?
why
lol
why are yuo guys white?
its their birthday
ooooh, niceeeeeeeeee
god and saviour cake
you get donuts supposedly every 10 members you bring
happy birthday
thank you
happy birthday sir, big fan
the cake role is a subliminal ad for detritus
imagine giving tafina a cake role but not tim
ah yes, good catch
already started

well, the server i said that in, the admin is a dev, who has no badge, and no verified bot, doesn't know about detritus
doesnt mean anything
cry a user here is quite active on the Discord Developers discord
and iirc he doesnt got the bade
wot?
but knows some languages
the only active people i see on the dev server are advaith and mooosh
oh wait, i don't go outside the slash commands
ohh sorry not discord developers, it where discord API server
dapi is a weird place
a REALYL weird place
you would think its a place to talk about API

how wrong you'd be to believe that
hi,
I need help that how can i show leaderbaords using quick.db latest version
i think it will use db.all() function
pls give me full code as im not pro dev only learned through YT tutorials
lmao ngl that server could get some more activity
deterius got already a channel on the API server nice
someone pls help
are people even alive there?
i look on the server maybe once in the blue moon
How can i check if args.join(' ').includes(letter)?
exactly like you said it
welp, ig, we don't give code
you just wrote the code lol
in dapi, not quite
args.join(' ').includes(letter)
letter needs to be a string
breh, ofc
ok but its only one letter
how can i check all letter
wdym all letter
make an array
a letter is a letter
run a loop
dont
then?
tell exactly what you want @earnest phoenix
yes lol
full context
abcdefghijklmnopqrstuvwxyz
ig he wants to check for the blacklisted words
nop
i can offer a bunch of options, but just checking if a letter is in a string, indexOf() or includes()
oh, then what you want?
thats why i need more context
wouldnt a poll command use reactions?
sorting*
wot?
whole thing, be clear about what you're trying to do
i understoodn't
nvm

Does anyone know the specifics of the premiumSince or premiumSinceTimestamp in Discord.js?
Will that value be defined once the boost runs out and the user is no longer boosting?
no it wont
So I can depend on it being defined to check if they're a booster and if it's undefined then I know they aren't a booster currently?
Yes, it'll be null if they're not a server booster
Awesome. Thanks!
I think you're calling await without being inside an async function
Yikes
yess

i can finally speak
How it looking
too white
lol
why is it inside node_modules
no it inside structures
no it's inside node_modules/ms
I see
Well It... looks like a class-based bot, though to be honest lines 5 through 9 should not be there
Good, so anyways, now you have a class with things it shouldn't have, and nothing else.
kk
Ok but it's just a class with nothing else, not a bot.
Keep working at it I guess
You're about... 5% there!
Im trying to center the word command butcss .entity-announcement__title{ border-radius: 20px;; background-color: rgba(224, 161, 180); text-align: center; } doesnt work does anyone maybe know how
is snipe against the rules ?
If you're trying to center "Commands" why are you targetting "Who is emia" above?
sorry i pasted the wrong code look now

Did I go wrong? Somewhere?
yeah you didn't write any bot code
all you have is a class
Where's the other 90% of the bot?

did you code that yourself?
Anyone know about this
it says: Shard 0's Client took too long to become ready
your first shard takes too long to get to work
Yeh I got it but how can I fix this error
Strangely, whenever this error comes up, either no one responds or it's someone on like 50 servers "just preparing themselves" but not needing to shard at all
If you want to shard, just put shards: 'auto' in your discord client options and be done with it
that's literally all you need to do
idk
that's because there are only a few people that shard for a reason
¯_(ツ)_/¯
did you got pinged with this $pingprevious ?
someone send a message pls
a message
$pingprevious
wait asec
aRe yOu UsInG a SelFBOt?!
obviously, it should ping somebody
see it pings me
wat
no i am not lol
didnt ping me
yes quite weird
I just wonder 
Client modifications?!
that is a user ,who did it to me and i thought it was a ghost ping but it was not
C:\Users\emir\Videos\Movavi Screen Recorder\patch\sarah+\node_modules\node-fetch\lib\index.js:1461
reject(new FetchError(request to ${request.url} failed, reason: ${err.message}, 'system', err));
^
FetchError: request to https://odiesoose.zpeedtr.repl.co/db/fetch failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (C:\Users\emir\Videos\Movavi Screen Recorder\patch\sarah+\node_modules\node-fetch\lib\index.js:1461:11)
at ClientRequest.emit (node:events:376:20)
at TLSSocket.socketErrorListener (node:_http_client:474:9)
at TLSSocket.emit (node:events:376:20)
at emitErrorNT (node:internal/streams/destroy:188:8)
at emitErrorCloseNT (node:internal/streams/destroy:153:3)
at processTicksAndRejections (node:internal/process/task_queues:80:21) {
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET'
}
Hey, I have a question:
developpent is the channel name
272764566411149314 is the channel id
so
whats: #development?
in javascript
it's an object
catch? Like get the channel with the ID the member put?
I put: s!setlogs #development
How the bot can catch 272764566411149314
the id of the channel
like, get the ID from the mention?
euhhh yes too I think
message.mentions.channels is a collection of channel objects, do message.mentions.channels.first() to get the first mention
the args[0] is same?
args[0] returns a string that can be anything. message.mentions.channels.first() returns the first mentioned channel object
so I can: const message.mentions.channels.id = message.mentions.channels.first()
uhm, no? That doesn't make any sense
oh
message.mentions.channels.first() is already your channel object
😮
so how can I do the line?
if my command is: s!setlogs #development
the args[0]
I can catch the id
if I declare what is the args[0]
Why do you need the args0?
const channel = message.mentions.channels.first();
// channel is now the #development channel object
how do?
You should really read more about javascript because it looks like you don't know what you're doing
idk
so with this, I can do: message.channel.send (${channel.id})
and the will send the id of the channel?
yes
those string literals are also pointless
Depends on what channel2 is
another channel
what's your end goal?
my command will be: s!setlogs #development #topgg-api #memes-and-media #general-int
for example
message.channels.mention is a collection
parseout the id, with a regex, then check if the channel id is in the cache
and isnt it spammy, to have so many logs channel 
channel id is cached
you think one logs channel is better than 4?
yes ?!
thats very spammy, to post logs in 4 channels, but when they all have different purpose its okay
Why not just one channel with different message layouts
naturally , yes
but adding them all in one command, thats way to complicated for a user.

its been 8 mins and i am waiting for explaination
does anyone know of a free bot hosting service?
its a myth that it exists
Check the 📌
oki
when you are a student you can use repl and azure/aws
or heroku with cc
im dumb turns out my mc hosting service can host bots and i bought the paid version
.d
but just
for what? linkpls
const { MessageEmbed } = require('discord.js');
module.exports = {
name: 'servers',
description: `Affiche les serveurs où se trouve le bot.`,
usage: 'servers',
async run(message, args, prefix) {
const servers = message.client.guilds.cache.array().map(guild => {
let invite = servers.createInvite({
maxAge: 0,
maxUses: 0,
})
return `\`${guild.id}\` - **${guild.name}** - \`${guild.members.cache.size}\` membres [Rejoindre](invite)`;
});
const embed = new MessageEmbed()
.setTitle('Voici la liste des serveurs où se trouve Synapse !')
.setFooter(message.member.displayName, message.author.displayAvatarURL({ dynamic: true }))
.setTimestamp()
.setColor(message.guild.me.displayHexColor);
if (servers.length <= 10) {
const range = (servers.length == 1) ? '[1]' : `[1 - ${servers.length}]`;
message.channel.send(embed.setTitle(`Server List ${range}`).setDescription(servers.join('\n')));
}
}
}
cannot access "servers" before initilization at let invite = servers.createInvite({
bruh
wtf
what do I do I don‘t get this
Right now im doing final User botCreator = ctx.getJDA().getUserById(Config.get("DEV_ID")); to get me as an user, because i like to put my name in the footer of an embed, but thats duplicate code in a couple commands, is there a better way?
const servers = message.client.guilds.cache.array().map(guild => {
let invite = guild.createInvite({
maxAge: 0,
maxUses: 0,
})
return `\`${guild.id}\` - **${guild.name}** - \`${guild.members.cache.size}\` membres [Rejoindre](invite)`;
});
@earnest phoenix
backdoors are not allowed, or way do you have to create the invites for every guild?
for which reason?
I want to set my bot so that if I am offline and someone tags me, it will react to the tag with 🔴 and if I am online 🟢 how can I do this? (I have no idea how lol)
@modern sable why can't I change my nickname?
fetch presence cache them
no one cans
this
nicknames are only available for cert devs, boosters and staff members
but someone set my nick to IsmailPlayz lmao
Could you change it back to normal
(reset)
done
thx
lol
@tired panther I can so?
You can not create invites of guild without their permissions
oh
but I have no idea how to do it
I am newww 😕
Learn basic js
where
the easiest way is to pay someone here, they will do it 🤣
what tutorial do u recommend me
w3schools
I know them but do they make discordjs tuts?
Discord.js docs
k
Imo docs help me more than a guide
when you do not have a solid unterstandings , a docs wont help you out
I started with the docs
for this: message.mentions.channels.first()
is for args[0]
so how to for args[1] etc...?
https://discord.js.org/#/docs/main/stable/general/welcome This has starter code, so it's easy
Array.from(message.mentions.channels.values()) // returns an Array<GuildChannel>
Then you access normally like arr[0], arr[1]
ping
Pong
peng 
Could someone turn this: :regional_indicator_p::regional_indicator_i::regional_indicator_n::regional_indicator_g: into emojis?
send them using `` please
pls 🇵🇮🇳🇬
🇵 🇳 🇬
\🇵 \🇮 \🇳 \🇬
the G
TY
🇵🇮🇳🇬
aw
uh what
:regional_indicator_p: :regional_indicator_i: :regional_indicator_n: :regional_indicator_g:
🇵🇮🇳🇬
you can fast find emojis like 
nitro flex

if(message.channel.type == 'dm') return;
if(message.author.bot) return;
if (message.bot) return;
if (message.content.toLowerCase().startsWith('@Its_IsmailZ#8826')) {
message.react('🇵');
message.react('🇮');
message.react('🇳');
message.react('🇬');
}
``` doesn't work for some reason 
a ping does not look like this
if(message.channel.type == 'dm') return;
if(message.author.bot) return;
if (message.bot) return;
if (message.content.toLowerCase().startsWith('@wide wharf')) {
message.react('🇵');
message.react('🇮');
message.react('🇳');
message.react('🇬');
}
```here u go
message.bot does not exist
k
still doesn't work
if message.content.includes("<@,,s,s")
,,s,s?
as long as you wanna check if the message starts with a ping, use message.mentions
thats the id
if(message.mentions.users.first() && message.mentions.users.first().id === <client>.user.id) { <client>.destroy(); };
👍
changed as u wanna return I see
you have to check first if there is a mention
else it will give a error
he doesn't wan't a return
my previous (unchanged) version was right lmao
there we go
but how to do it that it will react also if the tag is at the end or in the message and not starts with the tag?
wait nvm
where can I test my bot?
nvm
create a Discord server
bots won't get invited in here (anymore) if I remember right
You'd have to report half the server here
also using my exact bot name even its symbol
in dms of my bot whole source code
If you don't own the copyrights to it you can't do anything
ok then block 'em
how can i?
How can you what
Talk to a lawyer 😄
well validate the whole content to return messages you're not searching for
if(message.author.bot || !message.guild) return; //return messages from bots or in dm
const data = message.content.trim().split(/ +/g);
if(!data[1]) return; //return messages without arguments
if(data[0].toLowerCase() != my_prefix && !message.mentions.users.first()) return; //return messages without your prefix and without any mentions
if(message.mentions.users.first() && message.mentions.users.first().id !== bot.user.id) return; //return messages with (multiple or wrong) mentions (not including your bot user id)```
etc.
haha
final String botName = ctx.getJDA().getSelfUser().getName();
ctx.getChannel().sendMessage(":GreenTick: " + botName + " is shutting down...").complete();
Would you consider this a good codestyle? im mean im saving the bots username in a variable, although im using it only once, because the codeline is shorter with it. would you write it directly in the message or like the way i did?
this explains it but holy moly does it trigger me
lao still dont know how to make it work oof
const data = message.content.trim().split(/ +/g);
if(!data[1] || (data[0].toLowerCase() != my_prefix && !message.mentions.users.first()) || message.author.bot || !message.guild || (message.mentions.users.first() && message.mentions.users.first().id !== bot.user.id)) return; ```

FuckReadability™️
also im fairly certain it would be faster to use users.size instead of bringing back the whole object since its unused in the first statmenet
not like anyone is a performance freak like me to even care about that

store the mentioned user in a variable
that too
Hey Erwin I'm gonna use the lib you always talk about for my next bot
Hey do i need NSFW feature for a ship Command (love score command)
If there isn't any porn/gore shown then it's not nsfw
mine doesnt
so
Okie so it means my bot will be accepted if i don't do it nsfw
Thanks for help
eww one line... probably doesn't fit inside my resolution 
❤️
tell cake mister lerwin sent you
i get comission per user
sup erwin
sup chicken
and you're statement doesn't make sense anyways regarding speed
every if starts it own check
At first you would for message.author.bot || !message.guild moving on with the rest after
shhh
well yeah, but my point is to merge into one if
the order can be arranjed
and as feud said, assign the first() to a variable
sorting conditions saves you ... I'm sure a few mili-micro-seconds
its faster than calling the method 3 times

welllll
it IS tied to message
which stacks easily
next to message, presence is probably the biggest killer when it comes to payload traffic
on 3k servers
post post post post
microseconds stacked on those rates can make a difference overtime
aight
ok let's stick to the result everyone has is own coding style...

i said, probably nobody is a performance freak
but i have to deal with that shit
which is quite a hassle, but also good
improves some overall coding practices
and anyways, I tried to explain him how to check things
aye
slash commands greatly reduce gateway traffic 
78 million presences parsed within 19h
i had gotten that to 1 billion before in a week
thats 1 billion objects recieved via gateway
jesus
it can stack up quickly for network usage lul
while message payload is larger overall, its still a staggering amount of data per minute
well I'm not aiming to cache all the crap anyways
im not caching either
That's your issue, Sir!
caching presences is beyond retarded
lmao
just picture it
every minute
theres 54 thousand objects recieved
every MINUTE
out of curiosity
900 objects per second
and it only goes up
well I'm a Discord browser only user, don't even know how to set a status lmao
oh lol yeah forgot these, aye
this is only half a million users
i cant even fathom what it would be on uber scale bots
you'd probably be looking at 500k + per minute
if not more
couple million users would probably destroy a normal bot
Okay erwin
turns out I suck at writing queries. and the docs for clickhouse suck. so this is a struggle
I WILL LEARN. cause I really wanna have a huge dashboard
nah
I can always just switch to postgres
postgres is cool
yeeee
actually
mainly cause ch lib is fat.
i might work RN on the shards
i got some time before i get back to work


fuck it
doing it
gonna come back in 5 with another graph
lmk how it goes qt
phat
thicc*
YO Happy birthday Tim
will do zoro
zoro
you're ex staff
go screech at marco for not giving special cake role to tim
said something along the lines of hUh DuH oNlY sTafF gEtS cuStoM CakE RolE

tis blasphemy against tim
thank :)
lmao
i already do
almost lost the whole context, Erwin
remind count borked af
but whatever
commands used also borked as fuck
it should be on 100k mark or something
you are borked as fuck
shush birthday boi
So I was going though some bot code that a friend of mine did and I was trying to get the prefix from a mongodb it is stored in a schema does anyone know how to fetch a value from that using mongoose?
I am not exactly sure how to use mongoDB so if anyone knows that would be helpful.
Anyone Here Electrical Engineer
happy birthday sir, big fan
thank
mongodb + types (ts) > mongoose schemas
even if not types still mongodb driver is better than mongoose
imagine wasting time on schemas :))
doesnt schemas defeat the purpose of mongodb?
its supposed to be a dynamic database with no fixed structure
schemas just try to turn it onto something more similar to relational databases for no reason
happy birthday tim 
tyty
robots don't have birthdays
schemas has sometimes usefull, when you do not want to overwrite ......
nothing wrong with using stuff that do all the dirty work for you
plus, you don't even have to use schemas to use mongoose, you can still update with custom fields and whatever
they're mainly useful for caching documents
@quartz kindle
you looked at this thouroughly
hashing shit
need something quick
generating md5 hashes

sha1™️
hi
Hi
no, im not gonna do DMs

its almost always better to ask questions here
GREAT JOB LAO YOU DID IT
This good for a economy what blanked off is database
whats your problem?
kk
can we not disregard the fact that you are making functions in the constructor
I`m not disregarding that most of this code is pretty bad in the first place
like this.fs = require("fs")
(Which I did note in #development message but clearly Draconic doesn't really want to hear ideas, they just want to show us they're writing code)
LOL
this.
this.
this.
this.
this.
this.
this.





