#development
1 messages ยท Page 1007 of 1
prob a much smarter choice to use ID's btw
yes
u are comparing a whole 50 line collection with 1 word
yes
we know
it will be like
lemme double check something
taggedUser.tag === ""๐๐ป๐ป๐ธ๐ป ๐ธ๐ท ๐ญ๐ฒ๐ผ๐ฌ๐ธ๐ป๐ญ "#2048"

lol
n.eval console.log(message.mentions.users.first()) // @restive pebble
still say the same think
ok
wait
indeed
:O
@placid cobalt sir what are u trying to do..
makes my life easier to show stuff like this instead of going to testing
it wont output genius
yes
log it
ik
@finite bough thx now it's work
fb.eval this.client.logger(this.client,"hi")
np
owo works
uwu
So, i have a webhook running in my vps, in /webhook endpoint i done nothing but using dblpy i can do right? or in /webhook endpoint i need to do some?
what
think i might try making a library
@placid cobalt sir what are u trying to do..
@finite bough i want to create a category and then make a channel then move the channel into the category
why not make a channel inside a category?
system
how do you do that? i didnt know you could
g
whats the benifits of making a ticket system?
nothing
you make what you need tbh
if you dont see a point doing it, dont
oh im not on it
documentation on what?
@opal plank nvm
cant u push a channel inside a category using <channel>.setParent()?
docs will teach you the basics and how the library works, it wont tell you how to make something like a ticket system
ยฏ_(ใ)_/ยฏ
that isnt what i wanted tho
what is that you want then?
i find the documentation useless because it doesnt show you practically how you do the things it shows
does anyone have the link for the djs server?
it has snippets on mostly everything
ratelimit{?}
hmm
Is there a way to find the closest match of a string? Like "helo" will return "hello", I am using JavaScript.
wdym closest?
if you mean first, you can use regex without g, g is global and without it it'll return the first match it finds
if you mean closest as fuzzy, use a library for fuzzy search
@earnest phoenix
node package manager
i use fuse for fuzzy search
:O
check permission from author
but
if they have admin or specific perms for what you want, let the code run
otherwise return
that reminds me, i should export my functions for that
@earnest phoenix https://fusejs.io/
Lightweight fuzzy-search library, in JavaScript
bots dont work here
a
also your bot isnt here
otherwise you'd have the role
oh ok
my bot have to be approved
indeed
I donโt think putting ur prefix as >>> would be good
ยฏ_(ใ)_/ยฏ
set it to ! and watch the world burn
because if you put a space, itโs a quote
prob the most overused prefix
quote
enderbot have > like prefix
and 3 is continuous
thi
help
one does quote too
>>> type this
> what about this
isnt 2 one liner and 3 continous?
that might be on the code side though
not on client
i dont have idea of a prefix
i cant choose $ ! ? & . , ' - >
probably better off with a mention
Most of my prefixes are customizable and the default is just the first letter of the botโs name and !
so like d!
its too basic
ive noticed n is quite underused, so i went for n.
Why not just make ur prefix customizable @earnest phoenix
๐
Can I have some help, Whenever I save my bot my embed .settitle goes onto a thingy like this
/ just looks really weird in my opinion as a prefix
@still merlin
?
@still merlin MessageEmbed()
.MessageEmbed()
its a constructor
You beat me to it
gg too ez no re
so i need to add upvoted user data to db, for that i need a webhook?
or i can do that without webhook server
first i want to see if / are occuped
it works!
if i need a webhook server, what should i do with that
sorry for that, but i am french
What's the problem?
me?
i am french ๐
but i can speak english
good
so its normal if i am doing faults in english
because i am a noob
i just started to dev in JS
i want that badge ;-;
verified developer badge?
yeah
you will likely not get it if you make a bot only to get it
discord is rejecting bots that have suspicious growth, ie grows too fast or is added to a lot of servers owned by the same people
@quartz kindle can i ask something about verified developer badge?
sure
me gusta comer un hamburguesa Iโm waiting for people to ask questions
i like hamburgers too
Tim when did you certify
hmm, let me check
*get certified
can team members take it?
Discord
how do i edit embeds
@misty sigil .edit
@empty owl
but what do i .edit
oh nice con grays congrats
embed
little tip:
does anyone know how I can set ssh on google cloud properly? hmu if you do
@misty sigil what Lang
d.js
client.on('message', message => {
if (!message.guild) return;
if (message.content.startsWith(`${prefix.prefix}help`)) {
message.channel.send(`> __${prefix.prefix}kick__: Ejecter un membre du serveur`)
message.channel.send(`> __${prefix.prefix}ban__: Bannir un membre du serveur`)
message.channel.send(`> __${prefix.prefix}ping__: Verifier la connexion du bot`)
message.channel.send(`> __${prefix.prefix}invite___: Inviter Quantum sur votre serveur!`)
message.channel.send('Bot fait avec plaisir par __YuryHackgamer21#0540__!')
}
})```
you have to get the message and .edit(embed)
@earnest phoenix idk about teams, never used teams before, but pretty sure they can
okey
you can just import the prefix from a file named prefix.json
and type ${prefix.prefix}
Wait give me a second
to edit the pings
you will just have to edit prefix.json to change the prefix of the bot
@misty sigil you need to get the message, then you get the embed from the message, then you create a new embed based on the existing embed, then you edit the fields, then you edit the message with the new embed
ah
for example
yes sent.edit(theNewEmbed)
let msg = await channel.messages.fetch(messageid)
let embed = new MessageEmbed(msg.embeds[0])
embed.setTitle("bla")
msg.edit(embed)
Or th at
how to remove embed from message
bec bot send messages
with embed
what i mean links
shows embed
<linkHere>
anyone know how to like check db ping
to make not send embeds?
ye
const ms = require("moment")
var span = document.getElementById("text")
setInterval(()=>{
var time = ms('h:mm:ss a')
span.innerHTML(`${time}`)
}, 900)
``` it just wont detect span
<html>
<head>
<script src="script.js"></script>
<link rel="stylesheet" href="app.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@1,600&display=swap" rel="stylesheet">
</head>
<body>
<span id="text">Date</span>
</body>
</html>```
maybe you try to load it into memory when the document didnt load yet
try putting it all into a 10 ms timeout
how can i ๐
setTimeout(()=>{
// js code
},10)
uhh ok
its stupid but it works
setInterval(()=>{
const ms = require("moment")
var span = document.getElementById("text")
setInterval(()=>{
var time = ms('h:mm:ss a')
span.innerHTML(`${time}`)
}, 900)
}, 10)
``` this?
oop
how do i measure database ping
you.. ping it
didnt work
it still says span.innerHTML is not a function lol
jfgmldsj
no seperate files
i just realizued
Hi
Whats this
reponse timestamp - sent timestamp @misty sigil
fu-
innerHTML = <time>
me = stupid
==
==
i cant figue out whats wrong with my code and why it is not responding
const Discord = require("discord.js");
module.exports.run =async (bot, message, args) => {
let inline = true
let resence = true
const status = {
online: ":online: Online",
idle: ":idle: Idle",
dnd: ":dnd: Do Not Disturb",
offline: ":offilne: Offline/Invisible"
}
const member = message.mentions.members.first() || message.guild.members.get(args[0]) || message.member;
let target = message.mentions.users.first() || message.author
if (member.user.bot === true) {
bot = ":bottag: Yes";
} else {
bot = ":user: No";
}
me equals(==) stupid
me set(=) stupid
me equal and type(===) stupid
const embed = new MessageEmbed()
.setAuthor(member.user.username)
.setThumbnail((target.displayAvatarURL))
.setColor("#00ff00")
.addField("Full Username", `${member.user.tag}`, inline)
.addField("ID", member.user.id, inline)
.addField("Nickname", `${member.nickname !== null ? `:yes: Nickname: ${member.nickname}` : ":no: None"}`, true)
.addField("Bot", `${bot}`,inline, true)
.addField("Status", `${status[member.user.presence.status]}`, inline, true)
.addField("Playing", `${member.user.presence.game ? `๐ฎ ${member.user.presence.game.name}` : ":no: Not playing"}`,inline, true)
.addField("Roles", `${member.roles.filter(r => r.id !== message.guild.id).map(roles => `\`${roles.name}\``).join(" **|** ") || ":no: No Roles"}`, true)
.addField("Joined Discord At", member.user.createdAt)
.setFooter(`Information about ${member.user.username}`)
.setTimestamp()
message.channel.send(embed);
}
module.exports.help = {
name: "b!userinfo"
}
wherr
oh
also embed builder is bad
....
channel.send({embed: embed})
what did you change
log time on response
๐ฆ
let startup = Date.now()
call mongo
mongo.on('res') finished = Date.now()
console.log(finished - startup)
@misty sigil
wouldn't the start logging be done by the message
use a callback or a resolution
hm
usualyl the gist of what you want is
the DB call
finished time
finished - startup```
you can either call the finished time after the DB call or do it on a callback
Wot
Are you sure you are not using the client secret?
which token
bot token
Are you sure you are not using the client secret?
@slender thistle yes i am damn sure
oh
lol
i had open wrong prokect
project*
is that ratelimit?
yes
You got ratelimited by YouTube
oh yeah the quota
the annoying pice of shit youtube built into their servers
hey guys hope everyone is doing fine and is having a good day, i seem to be getting this error and im not to sure where it is going wrong in that eval would be great if someone could help :)
client.shard.broadcastEval(`
const partnerGuild = this.guilds.cache.get('${row[i].guildid}');
if (partnerGuild) {
const partnerChannel = partnerGuild.channels.cache.get('${row[i].partner}');
if (!partnerChannel || partnerChannel.type !== 'text' || !partnerChannel.permissionsFor(partnerGuild.me).has(['SEND_MESSAGES', 'VIEW_CHANNEL', 'EMBED_LINKS'])) {
con.query('UPDATE testing SET partner = null WHERE guildid = ' + partnerGuild.id, (err) => {
if (err) console.log(err);
});
}
else if (!${result[0].nsfw} || partnerChannel.nsfw) {
partnerChannel.send(${partnerMessage});
}
}
`)```
``Error [SyntaxError]: Unexpected identifier``
(!${result[0].nsfw} || partnerChannel.nsfw)
dont use template literals inside that dude
let output = new Promise(async (resolve, reject) => {
teamArray.forEach(val => {
let guildMember = message.guild.members.cache.find(v => val === v.user.tag)
if (!guildMember) reject("Fail")
})
let idArray = teamArray.map(val => message.guild.members.cache.find(v => val === v.user.tag).id)
finalOutput["memberIDs"] = idArray
finalOutput["teamNumber"] = parseInt(number)
resolve(finalOutput)
}).catch(_ => {
return simpleEmbed(message.channel, "Setup", `${val} isn't in this server.`)
})
return output
im totally doing something wrong am I?
thats in a function
you need `` for template literals @earnest phoenix
@empty owl why dont you simply return the promise
but save it in a variable
also that doesnt even need to be in a promise
you dont need a promie for that
What is up
Hi shitdev how u doing do u need assistance with smthing
No, does anyone need help tho?
like this?
teamArray.forEach(val => {
let guildMember = message.guild.members.cache.find(v => val === v.user.tag)
if (!guildMember) throw "Error"
}).catch(_ => {
return simpleEmbed(message.channel, "Setup", `${val} isn't in this server.`)
})
let idArray = teamArray.map(val => message.guild.members.cache.find(v => val === v.user.tag).id)
finalOutput["memberIDs"] = idArray
finalOutput["teamNumber"] = parseInt(number)
resolve(finalOutput)
return finalOutput```
array.forEach(functio)
It's easy
oh yea
@misty sigil ```js
function daFunction(someParamNoOneNeeds=null) {return new Promise((res,rej)=>{setTimeout(function() {res(someParamNoOneNeeds)},2000)})}
daFunction("E").then(console.log) // Will log "E" after 2 secs
explained promises in both ways
let m = await message.channel.send('pinging...').then((m) => m.edit(pingtime))
why did you declare it into a var if you have the same var in a then function
Shitdev :D
Bro idk
I didn't learn core JavaScript, I learnt it all through discord.js :')
same
same
but I made a javascript npm package
let teamArray = teamMembers.split("\n")
teamArray.forEach(val => {
let guildMember = message.guild.members.cache.find(v => val === v.user.tag)
if (!guildMember) throw "Error"
}).catch(_ => {
return simpleEmbed(message.channel, "Setup", `${val} isn't in this server.`)
})
let idArray = teamArray.map(val => message.guild.members.cache.find(v => val === v.user.tag).id)
finalOutput["memberIDs"] = idArray
finalOutput["teamNumber"] = parseInt(number)
resolve(finalOutput)
return finalOutput```
in fact, i made 4
its not catching ;-;
@earnest phoenix
sync code cannot wait for async code or wait for promises with .then
async code can wait for sync code but cannot wait for promises .then
promises with .then can wait for async and sync iirc
this is the general rule
i didnt understand a single letter
ยฏ_(ใ)_/ยฏ
Yo how the balls do you make an npm that works and is useful
magioc
:0
you mean you wanna make a package right?
Yeah
make an 'npm' is a node package manager
Epicccc
So i got this for Join position and works but sometimes it gives
can't read the property 'user' of undefined``` for some reason as always... Even though every member cached and stuff
let JoinPM;
switch(message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp).findIndex(m => m.id === useri.id)){
case 0:
JoinPM = ${useri.user.tag} <724948450428452905> ${message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp)[message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp).findIndex(m => m.id === useri.id) + 1].user.tag};
break;
case message.guild.memberCount:
JoinPM = ${message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp)[message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp).findIndex(m => m.id === useri.id) - 1].user.tag} <724948450428452905> ${useri.user.tag};
break;
default:
JoinPM = ${message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp)[message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp).findIndex(m => m.id === useri.id) - 1].user.tag} <724948450428452905> ${useri.user.tag} <724948450428452905> ${message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp)[message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp).findIndex(m => m.id === useri.id) + 1].user.tag};
}```

What's a package that nobody else wants to make?
@opal plank i tried what you said and its still saying it
...............
...................
ok screw db ping
if(!result[0].nsfw)
eval
confused you first check if the result isn't nsfw and send it and secondly you're checking if the channel is nsfw
^
Why tho 
! reverts the signal
Await, set time-out and delete @delicate shore
how
@delicate shore
msgToDelete.delete({ timeout: <time in ms> });
});```
or in dumfuck mode <send the message>.then((m)=>{setTimeout(m.delete,<time in ms>)})
Well that isn't efficient at all tho lol... Like you said dumfuck mode
it works
and its basically the same, as the delete function utilizes setTimeout aswell
or in dumfuck mode
<send the message>.then((m)=>{setTimeout(m.delete,<time in ms>)})
@earnest phoenix
this code workes?
Well that isn't efficient at all tho lol... Like you said
dumfuck mode
Oh hey it's me
it works
bro thats what i need rn
or you can use voltrex' code
Ik, just saying that might sometimes throw an error not utilizing the timeout @earnest phoenix
tnx so much
@earnest phoenix what
@earnest phoenix becuase my bot doesn't send messages to nsfw servers lol
So yea... I tried yours a long time ago and sometimes it didn't utilize the timeout and threw an error of <message>.delete() is not a function... Confusing isn't it? @earnest phoenix
That's why it checks
@opal plank tried that and it still saying unexpected error
send code
that is the dumbest error message i've ever seen and i cant imagine it throwing an error because of that @earnest phoenix
Identifier sorry
send code
client.shard.broadcastEval(`
const partnerGuild = this.guilds.cache.get('${row[i].guildid}');
if (partnerGuild) {
const partnerChannel = partnerGuild.channels.cache.get('${row[i].partner}');
if (!partnerChannel || partnerChannel.type !== 'text' || !partnerChannel.permissionsFor(partnerGuild.me).has(['SEND_MESSAGES', 'VIEW_CHANNEL', 'EMBED_LINKS'])) {
con.query('UPDATE testing SET partner = null WHERE guildid = ' + partnerGuild.id, (err) => {
if (err) console.log(err);
});
}
else if (!result[0].nsfw || partnerChannel.nsfw) {
partnerChannel.send(${partnerMessage});
}
}
`)```
I'm sure that's shown in the documents
@earnest phoenix dude
As flags
what
template literals
oh
......
1 problem,
how can i delete bot's Reply.?
Await and delete
Go up and look ehat code i sent
Or .then
*what
Await and delete
@pure lion
toss the code plz
spoonfeeding at its finest
๐
@balmy nimbus literally go up... Look at my code
Lollll
if you dont have the motivation to go up and get a premade code, why should we have motivation for you?
^^^^
ok
Maybe something to do with user?
You can't turn a user/member to a profile object
Profile object has been removed
Listed but deprecated
Hi
It is right ??????
message.languages = languages
if (message.guild) message.languages = require (`../../assets/languages/${getLanguage(message.guild.id)}`)```
@earnest phoenix doesn't mean it's working, you can't access to user's profile object without oauth2
i believe ive done what you have said now @opal plank
try it and see it it errors
client.shard.broadcastEval(`
const partnerGuild = this.guilds.cache.get('row[i].guildid');
if (partnerGuild) {
const partnerChannel = partnerGuild.channels.cache.get('row[i].partner');
if (!partnerChannel || partnerChannel.type !== 'text' || !partnerChannel.permissionsFor(partnerGuild.me).has(['SEND_MESSAGES', 'VIEW_CHANNEL', 'EMBED_LINKS'])) {
con.query('UPDATE testing SET partner = null WHERE guildid = ' + partnerGuild.id, (err) => {
if (err) console.log(err);
});
}
else if (!result[0].nsfw || partnerChannel.nsfw) {
partnerChannel.send(partnerMessage});
}
}
`)```
correct?
So I know that I need to measure the time of my db call but how
i do
'row[i].guildid' => row[i].guildid
'row[i].partner' => row[i].partner
partnerMessage} => partnerMessage
but nothing came up for that lol
please tell me youre not using some stupid stuff like notepad
atom, vim, vsc, anything of that caliber should tell you syntax error properly
but i had it in string that why it didnt come up lol
yeah i deleted the first one and forgot that one too haha
i told you not to use template
you just converting it into strings
you literally removed ${} from everything i pointed out
this wont work at ALL
'row[i].guildid' => row[i].guildid
'row[i].partner' => row[i].partner
partnerMessage} => partnerMessage
how to purge messages from my bot
[LIBRARY] discord.js
@misty sigil you mean from cache or...
fetch messages and then filter author
just messages sent by my bot
ยฏ_(ใ)_/ยฏ
seems to be working fine @opal plank
no errors and everything is doing as it should
@misty sigil just filter the messages by your bot and then bulk delete them
its not beacuse it didnt error that it will work @earnest phoenix
dude literally it fetched it from the db and did everything its mean to lol
this is whats passing on your code
thanks for the help
.get('row[i].guildid')
there isnt a guild with the id 'row[i].guildid'
there are guilds with '1287647815682764'
Sometimes I wonder how people get verified but don't know how to use arrows 
aka 90% of this guild, im fine with helping, but sometimes it just amazes me
๐
Yes
do disable slowmode
Dude hover over setRateLimitPerUser
0?
Yes 0
ok
Is this correct? And if so, which one should I use ?
message.languages = languages
if (message.guild) message.languages = require (`../../assets/languages/${getLanguage(message.guild.id)}`)```
Or
```let languages = require ("../../assets/languages/english")
if (message.guild) languages = require (`../../assets/languages/${getLanguage(message.guild.id)}`)
message.languages = languages```
await message.delete()
@robust moth both will cause an error if there is no language set for that guild id
but if the getLanguage function automatically falls back to english if no language is found, then you dont need the first line in the first place
command message?
let teamArray = teamMembers.split("\n")
teamArray.forEach(val => {
let guildMember = message.guild.members.cache.find(v => val === v.user.tag)
if (!guildMember) throw "Error"
}).catch(_ => {
return simpleEmbed(message.channel, "Setup", `${val} isn't in this server.`)
})
let idArray = teamArray.map(val => message.guild.members.cache.find(v => val === v.user.tag).id)
finalOutput["memberIDs"] = idArray
finalOutput["teamNumber"] = parseInt(number)
return finalOutput``` It throws the error, but doesnt catch
yes
message.delete()
message.delete() lol
lol
@empty owl you're mixing up a bunch of stuff
yea?
.catch() only exists in promises, and forEach() is not a promise
ah
also if you throw an error inside the forEach, it will stop looping
if you want all members to be available, use .every()
okay
you dont need the first line in the first place
@quartz kindle I make this code DM and guild
First line use in DM
wait but i want it to check if at least 1 isnt a guild member
and send an error emessage
@robust moth then you can do this message.language = message.guild ? require(guild lang) : require(dm lang)
Ok
@empty owl array.every() returns true if all items pass the filter, and false if one of them doesnt
okay thanks
does anybody know how play songs with a spotify link with ytdl or sth else? I couldnt find anything googling :/
@hidden lynx is ez
spaghetti code
what in spagetti codes hell is this
i dont have a link for it anymore, i took a screenshot of it
those }'s aren't even linear
nah, my ternary chain is worse
worst part is that somehow this shit worked
reminds me on a command ive made but scraped again in favor of a switch case , there where like 40-50 else if statements
Lol
chained together
jesus fucking christ
You may not understand it, but I do 
r/softwaregore
how can you live with that
Kill it with fire before it reproduces
I couldnt
i would choose 50 switch statements/else ifs instead of that...
but the api I worked with wasnt in JSON so I had to do some weird stuff
I wasnt going for readability.

I was working with an api that returned xml data and the xml converter I had was garbage
the api was made in like 2008
no code is that complex that you'd need 50 ternaries or if elses lmao, there is always something you can put into an array or modularize it somehow
complexity = bad
what happens when the brain finally understands itself
what
smart people are lazy
if you want work get done efficent get a lazy person to do it
Wierd I get this error only on my clients computer? https://cdn.discordapp.com/attachments/720231918528102461/727547081119629342/unknown.png
postStats requires 1 argument
if you want work get done efficent get a lazy person to do it
as a lazy person, can confirm
@lusty quest i wrote about 10 lines of code in the last 3 days
const postStats = () =>
dbl
.postStats(guilds.size)
.then(() => log("Posted Stats", "DBL"))
.catch((err) => handleError(err, "Posting stats to DBL"));
postStats();
setInterval(() => postStats(), 1800000);```
@quartz kindle pff pleb, i've only copied snippets from here and told them where the syntax error is
@quartz kindle I tried to modularize it, but I made this in like 2018 when I had no idea what I was doing I made it public in 2019 though :P
I probably could if I went back to it, but like nah
how do i make the yarn generated setup exe trusted by windows
i privated my shit on git for that specific reason
Anyone?
if they just made their api in json it would've been so much simpler
do they use d.js v12?
@daring musk discord.js? which version?
@daring musk guilds.size
What should i use instead of calculatedPosition in v12? (For roles)
usually you'd want client.guilds.cache.size
^
@pure lion how do i do that? with spotify
anyone?
Eris
const { guilds } = bot;
doesnt it need to be on cache?
Tim, you dont by anychance know how top.gg updates the server count and vote count
like what placeholder its trying to target
@earnest phoenix I just use <Role>.position
@daring musk is that in your main file? the same file where you do bot.connect?
you could use rawPosition too
@amber fractal rawPosition?
Yes
okey
I just use position though
is the code inside the ready event? @daring musk
i would use rawPosition
I've never seen a difference in the two
Yes
can you console.log(guilds.size)?
0
also, you shouldnt use an interval on that
@modest maple which placeholder?
use on guildCreate event to update it
What should I be using instead?
guildAdd, i forgot
@daring musk show full code
You sure bout that?
Trying to get it to update the server count and Vote count properly
use on guildCreate event to update it
To update server count on top.gg, it's better to use an interval instead
atm theyre just sitting there
@daring musk
?
is it not better to update that value only when the guildCreate event is emitted instead of wasting process looping when the bot likely wont be updating that quickly?
@modest maple do you use ejs?
no, but that doesnt matter
Im not talking about posting the data or getting it from the api
Eh?
@opal plank not exactly
unless theres a ratelimit in place that might be abusable, i dont see why you'd use interval instead of guildCreate @slender thistle
hi
guildCreate fired more than 60 times per minute = ratelimit
ah, figured
It makes more sense if you want to respect the API as well
how do i get the id of the mentioned user in a message
i see
go ham
hamburger
btw, your thing doesnt work on light theme @modest maple
or didnt
wtf now it does 
how can i list this way
also, doesnt that remove the report button?
its missing alot atm
F
report button
2 ads missing
upvotes not live
server count isnt live (I think)
content bellow isnt set
i mean
ive mostly done it
It would of been easier had i been able to remove the nav
๐ฉ
so i just need the id points
you'd need js to get it from the original
i dont rlly care about how it updates it
but i just want that little span to update
but its going nani to it
๐ฉ
wtf sort of js are they running to have it not update it when the Ids are the same
because its in the html source code lol
its not js
the numbers are built into the html when the page is downloaded
they are added server side
๐ค Theyre templating?
yeah
fucking since when?
since always?
lool
๐ฉ of all the things they could of done, they went with templating on somthing that would of been better todo with js when moved
why would js be better
so you finna dont have this issue
that would just make it need an extra ajax request
maybe they could cut out one of their 4 spamming ads out then :P
lul
Dont give us js access but dont use js to update dynamic things because that would be too kind
they want to to style the original elements, not replace them with your own
well tough lol
Ive hacked this far enough
Im just gonna replace them with custom SVGs
lmao
nothing is ever simple ๐ฉ
give the originals position:absolute lol
I mean if we do allow replacing elements with your own
so you can move them anywhere
do you think it won't be abused
ive removed them entierly
to get rid of all the other html and stuff
i just went "display none that, display none this, hide this margin 0"
50 lines of CSS of just hiding dbl's html ๐
its against the rules to hide some stuff
xD
just give all the required stuff position:absolute and lock their position on the top or bottom of the page lol
their bulma css is also fucky wucky my tables
they're doing the big weird and going bg white on hover
๐ฉ
dafuq is quick.db-plus
quick.db but better
hi, how can I add role to mentioned user?
I want the mentioned user gets role Muted GG but I can't figure how to do it. Google can't help in this case (at least for me).
That's what I actually have:
client.on('message', message => {
if (message.content === 'c2?mute') {
let role = message.guild.roles.find(r => r.name === "Muted GG");
let member = message.mentions.members.first();
member.addRole(role).catch(console.error);
}
});
guys how i make to make a count of all the members?
guys how i make to make a count of all the members?
@dire obsidian wait, I'll give you code
๐
@worn niche member.roles.add if youre using v12, member.addRole if youre using v11
๐
@dire obsidian
`${message.guild.memberCount}`
i tried console.log params.id, and this is what i got https://lumap.is-inside.me/BZa2pwXk.png
@worn niche member.roles.add if youre using v12, member.addRole if youre using v11
@tight plinth thanks
dont question messy code
@worn niche you save me the day
np
@earnest phoenix no
that code is being executed multiple times
What's wrong @tight plinth
@earnest phoenix it changed if youre on v11
but it doesnt occur if i just execute the code in eval
idk somewhere that params.id is being turned into boolean
thats a recursive function isnt it?
so it can parse each property
hm
aaand turns out the error was because of me! apparently no one noticed that this parenthesis was not at the right place https://lumap.is-inside.me/mbck4frC.png
quick.db but better
@tight plinth just dont use quick.db :)
ah lul
lol
Is anyone seeing a 5 Minutes + Latency?
what is this, how do i fix it?
No one?
5 minutes of latency?
IDK, I dont see tests coming at all
Can Anyone Say Me How Can i Know How Many In How Many Server Run My Bot
welp
you could see that from top.gg if your bot is in there
dont know of any other method
@jaunty junco what library
@quartz kindle discordia
/app/events/message.js:12
let perms = client.elevation(message);
^
TypeError: client.elevation is not a function
at Client.module.exports.message (/app/events/message.js:12:22)
at emitOne (events.js:116:13)
at Client.emit (events.js:211:7)
at MessageCreateHandler.handle (/rbd/pnpm-volume/9049f060-35cf-41d7-ad03-5f6a3b852cd1/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
at WebSocketPacketManager.handle (/rbd/pnpm-volume/9049f060-35cf-41d7-ad03-5f6a3b852cd1/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:105:65)
at WebSocketConnection.onPacket (/rbd/pnpm-volume/9049f060-35cf-41d7-ad03-5f6a3b852cd1/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
at WebSocketConnection.onMessage (/rbd/pnpm-volume/9049f060-35cf-41d7-ad03-5f6a3b852cd1/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
at WebSocket.onMessage (/rbd/pnpm-volume/9049f060-35cf-41d7-ad03-5f6a3b852cd1/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/ws/lib/event-target.js:120:16)
at emitOne (events.js:116:13)
at WebSocket.emit (events.js:211:7)
pls help me
@jaunty junco invite create is a relatively new event, its possible that lib doesnt support it yet, check for updates or ask their developers
oh k
pls help me
@wild ore
wait what, there's an invite_create event now?
apparently
my dream of making an invite manager bot gets closer by each day, 2020 still has some hope
Private invite manager bot*, sorry
@slender thistle yup lol, there is invite_create and invite_delete
But that could be abused tbh
Does it send the invite object in the payload?
yup
I used quick.db
@quartz kindle what is this
Now, do I want to edit my d.py until it's added officially or just wait 
But that's.. nice
@slender thistle my is .js
@slender thistle how did you become website moderator

Applied when apps were open
arent all mods website mods ?
When will they open up
There used to be a mod who wasn't a website mod but yeah
When will they open up
Imagine using Discord Bot Developer
When we need more staff
We spend a lot of hours finding solutions to errors and they just fucking enter two lines in discord bot maker
And boom
They are ready
well not all abstractions are bad
and boom, their bots are bad
But they can't do 2 things

Lol
This is gate keeping
Let people have their fun
Noice
Thou sharding is easy
My bot is in 72 servers
But impossible with dbd
How many servers I need to be verified
Ohk
76 actually
@delicate shore 3 more there you go
Yeah
Oof
Yep
For me it was 76 
Sad
My is 808 servers in 2 weeks
@placid iron hmm
Smh
@placid iron bruh I don't advertise
Discord doesn't allow more than 100 servers until verified
My bot has unique working
I read their policy
That limit is not enforced yet
It's changed
only after november
My bot has unique working
@earnest phoenix
What is it about ?
@delicate shore they allow
What does this do
Like his name
If I tell it will go offtopic maybe
@delicate shore how rate limited?
@slender thistle lol you reacted on my text
Might check it out then
Lol
Rip
512mb ram enough for discord bot hosting?
Should have looked first my bad
512mb ram enough for discord bot hosting?
@pure saddle For small bots - yes
For medium/big bots - no
512mb ram enough for discord bot hosting?
@pure saddle
https://media.tenor.com/images/17e91cf2991314dd78eecec4668476a0/tenor.gif
No
Also depends on how you make use of it
what u mean for small bots
My is 2GB
@delicate shore offtopic
Private bots used in small servers
I don't know how much ram I use ๐ฆ
ohh
what u mean for small bots
@pure saddle
Less than 30 servers
Your also hosting a music bot, so you use way more ram
My is hosted on AWS
i have cooldowns
@delicate shore aah see Stauts you will get support server
. Soory I don't mean for promotion
If you keep a clean cache, youll be able to go prett far with 500mb of ram
@delicate shore aah see Stauts you will get support server
@earnest phoenix ?
Is sharding helps to get better ping
Glitch is not a good platform to use rn for bots
Glitch banned uptimmer bots
its enough for me
Can I have some help, My eval command returns a success and result thingy but if its undefined or some error, no error message appears.
Or just pay the extra $2 a month and get a VPS
I use the postgres db to store data
but I set a error message
const code = args.join(" ");
let evaled = eval(code);
if (typeof evaled !== "string") evaled = require("util").inspect(evaled);
message.channel.send(evaled);
message.channel.send(
"``:x: Error preforming eval command``" + "(" + err + ")"
);
} catch (e) {}
}
});```
But if you need other things then that makes sense
i use quick.db
i pay 0$ for vps
(no joke rly)
me too


