#development
1 messages Ā· Page 1290 of 1
u made the Font end ??
front*
yes
WHAT
ehh I don't see the need to do my own stuff
I can add custom metrics to pm2
@earnest phoenix check DM

@opal plank dude it is verry noice
its pulling the lang from my ip
slave š³
browser english, pc english, everything in englih
and grafana pulls lang based on ip

fucking hate it
it's pretty stupid if you ask me
ikr!
i think i will make my bot to multilang
literally has no reason to
but i have alots to save in database
thats my new testing toy
@opal plank u know jest ??
help
im starting to use jest
well using Grafana isn't doing "your own" :P
Omg
but it is good
@opal plank but nice those diagram
doing your own means doing everything
you need to get a metrics server running and a ton of shit in the back
grafana just pĆŗlls data and displays it
its just a display
I use the custom metrics
i can just as easily log into pg admin and see stuff change as well in txt format
since all data is dumped both into logs and the metrics
pg admin :P
im done guys, i will change my website to dash board website

I've used it a bit and I prefer mongodb compass (I know it's different databases)
const Discord = require("discord.js");
const ms = require("ms");
module.exports.config = {
name: "slowmode",
aliases: []
}
module.exports.run = async (client, message, args) => {
if (!message.member.permissions.any(["ADMINISTRATOR", "MANAGE_CHANNELS"])) {
return message.channel.send(":x: **You don\'t have permission to run this command!** :x:");
}
let channel = message.mentions.channels.first(),
time = args.slice(1).join(" ");
if (!channel) time = args.join(" "), channel = message.channel;
if (message.flags[0] === "off") {
channel.setRateLimitPerUser(0);
return message.channel.send(`<#${channel.id}> slowmode has been deactivated.`);
}
if (!time) return message.channel.send({embed: {color: "RED", description: "Please includes the time format."}});
let convert = ms(time);
let toSecond = Math.floor(convert / 1000);
if (!toSecond || toSecond == undefined) return message.channel.send("Please insert the valid time format!");
if (toSecond > 21600) return message.channel.send("Timer should be less than or equal to 6 hours.");
else if (toSecond < 1) return message.channel.send("Timer should be more than or equal to 1 second.");
await channel.setRateLimitPerUser(toSecond);
return message.channel.send({embed: {color: "RED", description: `<#${channel.id}> has been slowing down for **${ms(ms(time), {long: true})}**.`}});
}
@pale vessel look for the code that turn it off what is the command /slowmode off or what?
pg admin just feels odd sometimes
use a paste bin (hastebin etc)
and don't spam the mf chat
postgres is 
message.flags?
its shighly advanced if you know what you are doing
i was wondering how i add async in execute?
execute(message, args) {
const msg = await message.channel.send("Pinging...");
even im struggling with some rather advanced sql queries
im starting with koa
doing everything from scratch
opted for not using boilerplates
to learn it well
what is that supposed to be
@pale vessel my friend tiped that but idk how to deactiveat the code??
try changing message.flags[0] to args[0]
I just use it as a good api/wrapper for postgres
@opal plank can u help?
how i add async in execute?
execute(message, args) {
const msg = await message.channel.send("Pinging...");
@cobalt spruce busy
sad
async execute()
@compact oriole i'll take a look but it doesnt look like its gonna be too useful for me
simple
i already got a lib to handle queries
ye, it is good for me who doesn't know sql queries
@cobalt spruce do
async execute()
but gotta go cya
hmmm it does show tooling and docs
you seem to not know what your args look like
i never use Vscode debugger
nono
async function() {}
thats it
args can be undefined
cuz they arent using it
@cobalt spruce
ts will screech at you for overloads but js lets you do just that mess
how to make commands
reading the docs

lmao we got 2 new sense yesterday
good examples
Can someone help me how to make a dashboard 
first here https://www.w3schools.com/js/
then learn Objects, Variables, Functions, Arrays, Maps, Switches and if's from that site
then go here https://discordjs.guide/ and follow the guide @leaden flame
GEYYXQ
Cmon Among Us\
Can someone help me how to make a dashboard :StareCat:
@hushed axle u need to code one š¤”
go somewhere else
sorry
i no use this
what you du use?
Can someone help me how to make a dashboard :StareCat:
@hushed axle save everything in Database and just simple change change database with nodejs wensite
i use https://glich.com
What language do I use to code the dashboard

bismillah
pls tell me he didnt just do that
pls check
What language do I use to code the dashboard
@hushed axle use HTML :))
What language do I use to code the dashboard
@hushed axle dude its discord.js
otherwise google it
HTML
What language do I use to code the dashboard
@hushed axle html, css, javascript
Confuse :((
html no work
@leaden flame LMAOOO
done

my goodness
refresh your token dude
didn't even use .env
lool
@leaden flame delete token in the portal and make a new one
cuz i can log into your bot and go spam 'i like fortnite'
How does one forget that simple thing like a token
How does one forget that simple thing like a token
@toxic raptor yeah I memorized mine
@opal plank what do I change the flags for to ruen it off? https://hasteb.in/arijomus.js
@faint prism ahaha i got mine as a tattoo cuz im 5head /s
use your args
it's weird that you defined your args inside the command
do you not have a handler for that?
what is good to edit our bot
vsc, sublime
which is the easiest programming language to learn?
which is the easiest programming language to learn?
@earnest phoenix HTML
i use npp + windows terminal xd
@opal plank use Discord bot client to login into his Bot
@opal plank it is not my token
it is my fucking bitch friend token
then why the fuck you using someone's token?
team...
@opal plank ok
they are in team. . .
ask your 'bitch friend token' to go regenerate it
@opal plank i will saw bitch to regenrate
im tempted to go post it in a private channel just to have clyde revoke it tbh
he done
imma check again in 5 minutes
what he died ??

VS code
Imagine using Microsoft visual studio to make djs bots
how to use
imagine not using Microsoft Word to code bots
Notepad++ @leaden flame
LMAO

dont use notepad++
Use notepad++
Notepad suck
DONT
Iām not trolling
use notepadd++
U r stupider
bu it is true
^^
@earnest phoenix did u make ur bot use note pad
Yes.

@opal plank gimme link of vsc code
Just use notepad
I use word documents for coding
literally 5 people telling him NOT to use notepad++ and he goes to listen to them
@earnest phoenix you're not funny
@leaden flame https://code.visualstudio.com/download
@lethal sonnet no, i wanna make that bs notepad++ as far away from new users coming here rn as possible
Literally
@earnest phoenix pls ĀØstop
trolling
@earnest phoenix man can u help me lol
look at the link and then see how shit notepad++ is
can I send a hb
https://code.visualstudio.com/download
@opal plank stop spam links
@lethal sonnet no, i wanna make that bs
notepad++as far away from new users coming here rn as possible
@opal plank well notepad is good cuz we have to write everything by our hand, so we can understand JS much better

what
windows 7
lol
He sent u a virus
no wonder
Use notepad ++
lmaoooo
im blocking manny
windows 7
done with the trolls today
Please donāt @opal plank
im blocking manny
@opal plank me 2
@earnest phoenix how i code use notepad++
@autumn aspen constantly pinging me for help will get you nothing
much better chat
Endph...
anyway
anyway
@opal plank yeah much better
@leaden flame your windows is super oudated my dude, windows 7 doesnt have supporrt anymore
thats why your browser is saying that
lol
Just edit a file with notepad++ thatās it @leaden flame
idk
me too blocked two guys rn
manny and endph
@earnest phoenix no brooo!
im fed up with trolls already
@earnest phoenix but how i coddeing and upload bot
Blocked for using notepad++.....
Kinda messed up....
D:
@earnest phoenix don't scream we told you several times to stop
never have i had to block this many people from a single server
whats better Microaoft edge or Internet explore ??
or they both are trash
though edge is better if you strictly comparing the two
@leaden flame Just use windows cmd
though i'd go for chrome, personally
well Internet explore is the best tool to download Chrome
...
:))
@earnest phoenix don't scream we told you several times to stop
@earnest phoenix dude pls unblock me man sorry I am
@earnest phoenix no you were trolling by telling other beginners to use Notepad++ even though it sucks and is NOT RECOMMENDED for programming
@earnest phoenix no you were trolling by telling other beginners to use Notepad++ even though it sucks and is NOT RECOMMENDED for programming
@earnest phoenix HOws that trolling
I literally use np++
bro
rules are rules
recommending someone to use notepadd++ is the same as telling a person with no legs to get around drunk in a monocycle
it wont end well at all
rules are rules
@earnest phoenix itās a rule?
@earnest phoenix please tell manny to stop trolling
Thank you @lethal sonnet
but don't give bad advice to others
Iām not even trolling either š
just dont recommend new people your shit preferences, if possible
Howās it bad advice
they dont need to tryhard like you
stop cuz this is going verry far away
also endph you're unblocked
stop cuz this is going verry far away
@lethal sonnet i already pinged a modum too
we are not talking editor any more
recommending someone to use notepadd++ is the same as telling a person with no legs to get around drunk in a monocycle
was it not a joke
@mint thicket another pingo
DUDE STOP
LEAVE TO MODUMS
they dont need to tryhard like you
@opal plank itās what Iāve been using since i was a beginner
So
š¤·š½āāļø
bye
done
Bye 4xept
how is it NOT bad advice?
no tooling, no wiki, no debugger, extensions are annoying to install, very few language syntax support, its not MEANT for coding, while you CAN code
its just shit, thats it
dude
it has its uses
modums
@drowsy crag
Ok
how many more pings until a modum looks at this
I donāt see why ur making such a big deal out of it
imma head out
Like
You couldāve dropped it 10 minutes ago
Actually
how to use .json .js .md .sqlite
just let manny and erwin fighting
i got better stuff to do with my time tbh
just trying to show notepad++ isnt a good tool for coding at all
then Stop JUST IGNORE HIN
then Stop JUST IGNORE HIN
@lethal sonnet
4xemt
oops
the point is for sid
@.Moderators
i thought u gone
I came back.
:))
i couldnt care less that they like using n++
erwin I'm temp blocking you
lol
go ahead, im out anyway, not here for drama, just trying to coach a new dev to use proper developing tools
@earnest phoenix fighting
Ewrin making a big deal out of nothing really
@opal plank instaling
very good, welcome to the civilized bit of development
can anyone help me why my bot canāt mention everyone
top left
@opal plank how to i pick my bot folder
file => open folder
top left
i assume you already have a folder for your bot somewhere
if you dont, just create one
@pale vessel stop before he blocks you for using np++

it just works for me what the hell am i supposed to do

i don't need some advanced debugging stuff
i created index.js
@leaden flame good, follow this guide now
ok
discord formatting the best
neovim better than vim better than np++
const Discord = require('discord.js');
const client = new Discord.Client();
client.once('ready', () => {
console.log('Ready!');
});
client.login('your-token-goes-here');
i paste this on index
const Discord = require('discord.js');
const client = new Discord.Client();
client.once('ready', () => {
console.log('Ready!');
});
client.login('your-token-goes-here');
@opal plank
follow the guide
read it
it explains everything you need
he dont explain what i make .js .json .md .slinted
it does
where
right here
like i said
real the WHOLE guide
follow it
and yuou'll have a working bot in the end
a decent one at that

türk varmı
what i doing

perfect timing, don't you think?
@leaden flame lmfao
as in you don't have to deal with this bs
you're executing code inside a JSON file
as im im too tired to deal with this bs, yes
as im im too tired to deal with this bs, yes
@opal plank I'm not
its holding hands at this point
then by all means help them

gnit
gn

it is not mine
encomy xd
i did no restart the token
then tell whoever the owner is to change it cuz you messed up and leaked it
it is bitch my friend
@leaden flame JSON files are for storing stuff. You have to use smth like JavaScript to read data from JSON then do stuff to it. But you're literally running code inside the JSON file 

that's why I'm not just telling them what to do

I'm just badly explaining how JSON works

help vampires are beyond saving
can i make package json and work?
@leaden flame no no no
amazing how someoen can leak the token TWICE
idk
amazing how someoen can leak the token TWICE
TWICE?
š¤£
Do I need to know React before hopping into Nextjs?
#development message
amazing how someoen can leak the token TWICE
@opal plank aww I missed 2 token leaks?

Usual day on dbl
Ok fair enough
im getting ignored but ok
:Sad:
@misty sigil is that your actual face
no
I wonder is there any good solution to fill user cache without guild member and guild presence intent? I only store user IDs in database and requesting per single user can lead to API spam
lib?
djs => guild.members.fetch()
eris => guild.fetchMembers()
dpy => guild.fetch_members()
iirc
1 way. shut down the app
2nd way. assign it to a variable and stop it using clearInterval
@misty sigil i have tried it so many times
ty
})
let interval1 = setInterval(() => {
generateEmbedFromFeed(args, (embed) => {
messageToEdit.edit(embed)
})
}, 5000)
}
if (message.content.startsWith(prefix + 'stop')) {
clearInterval(interval1)
}
}```
this just doesn't work
scopes?
you need to store that interval somewhere persistent
you can't access it anymore after every command
so you can't clear old ones
that code just clears the created interval
djs => guild.members.fetch()
eris => guild.fetchMembers()dpy => guild.fetch_members()
iirc
Is that basically downloading all users in server which will need "guild members" intent?
yes
hey guys
you don't get them upon starting up either
i just used the !stop command
only some members that are in VCs
it worked. But it returns this: embed.setDescription(${status.text});
^
TypeError: Cannot read property 'text' of undefined
status is undefined
yeah because i put !stop
which stops the interval
so it won't have a status to update anymore.
you're creating the interval on every command
on every !feed command
anyway, it's better to use database for your use case
is it possible to share a file in VSC?
there's the live sharing feature
help
There can't be multiple global objects in JSON, put all of the objects in an array
There can't be multiple global objects in JSON, put all of the objects in an array
@cinder patio how
where
also
[
// Objects
]```
By putting all of the objects inside an array... you should know this stuff
thx
By putting all of the objects inside an array... you should know this stuff
@cinder patio oh yeah I tryed it I got and pb
Who knows php and iis?
lmao should I do a hentai command š
@autumn aspen you should read the rules
@autumn aspen you should read the rules
@earnest phoenix chillax I wouldnt anyways
<div>
<?php page_content(); ?>
</div>
function page_content()
{
$path = getcwd() . '/' . config('content_path') . $_SERVER['REQUEST_URI'] . '.phtml';
echo file_get_contents($path);
}
Doesn't work on iis
Does anyone know how to configure iis to make this code work?
owo
Hello!
I have a small issue with my bot. I am trying to make it delete the message if a staff member is pinged, so I cam up with this.
const pinged = message.mentions.members.first();
if(message.content.includes(pinged)){
if (pinged.roles.cache.has('761622351489138769')){
message.delete({interval: 0})
const embed = new Discord.MessageEmbed()
.setThumbnail(message.author.displayAvatarURL({format: "png"}))
.setTimestamp()
.setTitle(`You cannot ping our staff members, ${message.author.username}!`)
.setDescription(`If you wish to contact us, make a ticket in our ticket channel!`)
.setColor(config.primcolor)
message.author.send(embed);
} else return;
} else return;```.
However, it does not delete the message nor private messages the author. I am sure there is a simple fix to my problem and if you find the time, could you help me with it?
Best regards c:
.sa
hm?
@abstract coyote why are you passing an object into message.delete()
uhhh cause I am not too smart :c
i'm making a pokemon bot , but sometimes it shows like that
opponent is rattata but in pics it comes pidgey some times.
I declared the const "ping" at the beginning of the code, but in the switch when I use it it says: "Cannot access 'ping' before initialization" what can i do?
@abstract coyote maybe the object's the reason why it's not working
lemme see the docs brb
okay!
@balmy ether where are you getting your image from?
I gotta go for a few mins ill read through if you sent anything :c
c:
thanks for the helP!
how do i
how do you?
@abstract coyote interval is not a valid property that should be passed in the object
@balmy ether where are you getting your image from?
@misty sigil https://api.no-api-key.com/api/
it's timeout
@balmy ether that could be a problem with the API
hmm, iyazo dev said that the codes are correct @misty sigil , maybe ur right.
@abstract coyote try renaming interval to timeout
so what shall i do now?
because there is no property called interval in the docs for Message#delete(options)
but the one you're trying to use is timeout
I declared the const "ping" at the beginning of the code, but in the switch when I use it it says: "Cannot access 'ping' before initialization" what can i do?
@grave smelt can you send the code?
//I don't send the interlude because it's not needed
switch(args[0]){
case 'server':
if(!args[1]) { return message.channel.send('Devi inserire un ip.') }
ping(args[1], 25565, (error, reponse) =>{
if(error) throw error
const ServerEmbed = new MessageEmbed().setTitle('Server Status')
.addField('Server IP', reponse.host)
.addField('Server Version', reponse.version)
.addField('Online Players', reponse.onlinePlayers)
.addField('Max Players', reponse.maxPlayers)
message.channel.send(ServerEmbed)
})
break ```
ok
https://hasteb.in/golalinu.coffeescript
show the whole file
@pale vessel
yes
@eternal osprey snowflakes aka IDs are too big for javascript to handle them as normal numbers so they're ALWAYS used as strings
owh okay! Thanks!
how can I make my bot, When DMed, forward the message to a specific channel in a guild?
check if the message is a dm
it's fine for comparisons
client.guilds.cache.get('699877474925936680').channels.cache.get('761793171654705163').send()
```no work
if (message.type === 'dm'){
}
channel.type
message.channel.type
yeah I know
channel,.type sorry*
it works
it's fine for comparisons
@pale vessel its === so would it?
what?
why would === not work
since it checks for the type
but it has to compare right
client.on("messageUpdate", async message => {
const editchannel = message.guild.channels.cache.find(ch => ch.name === "general")
if (!editchannel) return
const embed = new Discord.MessageEmbed()
.setAuthor(`${message.author.tag}`, message.author.avatarURL())
.setDescription(`Message edited in ${message.channel}`)
.addField("Old Message", message, true)
.addField("New Message", newmessage, true)
.setTimestamp(message.createdAt)
.setFooter(`User ID: ${message.author.id}`)
editchannel.send(embed)
})
How can I check new message?
ids are always in strings so you would need to use quotes if you use ===
ids are always in strings so you would need to use quotes if you use ===
@pale vessel wdym
uhh... I don't have a filter that if its DM it wont go through
@eternal osprey check this code pls```js
client.on("messageUpdate", async message => {
const editchannel = message.guild.channels.cache.find(ch => ch.name === "general")
if (!editchannel) return
const embed = new Discord.MessageEmbed()
.setAuthor(`${message.author.tag}`, message.author.avatarURL())
.setDescription(`Message edited in ${message.channel}`)
.addField("Old Message", message, true)
.addField("New Message", newmessage, true)
.setTimestamp(message.createdAt)
.setFooter(`User ID: ${message.author.id}`)
editchannel.send(embed)
})
I want to see the new message
so what am I gonna do
you didn't define newmessage
oh ok
add newmessage after message
async (message, newmessage)
you probably meant to put message.content
don't just put the message object
you can only do that inside template literals (``) since it would .toString() it, which gives the content
you probably meant to put message.content
@pale vessel if I send the hb can u edit it for me
nope
bc I dont understand
sorry
Morning
Morning
@boreal iron morning, developer
Yupš
you should only use one listener for all commands
š
or u can increase it by using event
hi
bruh what tutorials are these people following to have 11 message listeners
Which activity status type is Luca using? āWatching...ā ?
Status types for bots are only āPlaying - Listening - Streamingā
Luca might be a cheater bot
how i transfer this to V12
.addField("⢠Users", `${client.users.size.toLocaleString()}`, true)
.addField("⢠Servers", `${client.guilds.size.toLocaleString()}`, true)
.addField("⢠Channels ", `${client.channels.size.toLocaleString()}`, true)
@boreal iron
Dude I told u like a hundred times imma not working with the DiscordJS library and dunno itās syntax
I can help u fixing JS issues
@cobalt spruce .cache.size
``` .addField("⢠Users", ${client.users.cache.size.toLocaleString()}, true)
^
TypeError: Cannot read property 'cache' of undefined
at C:\Users\Islam\Desktop\Discord Bot\commands\botinfo.js:34:47
at Timeout._onTimeout (C:\Users\Islam\Desktop\Discord Bot\node_modules\cpu-stat\index.js:84:14)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)```
@misty sigil wtf
Which activity status type is Luca using? āWatching...ā ?
Status types for bots are only āPlaying - Listening - Streamingā
@boreal iron https://discord.js.org/#/docs/main/stable/class/ClientUser?scrollTo=setActivity
how to get status like Dank memer its a video like.
I have a template which uses sql and its in php how can I host it for free?
how to get status like Dank memer its a video like.
@balmy ether Set ur activity for 'WATCHING'
someone asking in dm that if we make bot by bdfd and bot ghost will it be online 24/7 and will all commands work , idk too.
Or GalaxyGate
aws VPS?
.addField("⢠Users", `${client.users.cache.size.toLocaleString()}`, true)
^
TypeError: Cannot read property 'cache' of undefined
at C:\Users\Islam\Desktop\Discord Bot\commands\botinfo.js:34:47
at Timeout._onTimeout (C:\Users\Islam\Desktop\Discord Bot\node_modules\cpu-stat\index.js:84:14)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)```
WTF
github
.addField("⢠Users", `${client.users.cache.size.toLocaleString()}`, true) ^ TypeError: Cannot read property 'cache' of undefined at C:\Users\Islam\Desktop\Discord Bot\commands\botinfo.js:34:47 at Timeout._onTimeout (C:\Users\Islam\Desktop\Discord Bot\node_modules\cpu-stat\index.js:84:14) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7)``` WTF
@compact oriole
can u explaine what is going on
HOW TO FIX
by defining client.users
NO
Don't ping me to help you
I only help when I want
Or when I find it interesting
Or I know the person
https://hasteb.in/azulosof.coffeescript Why doesnt it delete when author reacts? :/
@cobalt spruce
~```
Youāre getting this error because the guild object you fetch doesnāt have a roles property. So something probably went wrong getting the data with let guild = await message.guild.members.fetch(); or the data isnāt what you thought it would be.
I recommend you write the value of guild out to the console with console.log or by whatever means Discord gives you to log debug messages
i using visual code to make bot
@leaden flame well no shit
then learn first
^^
how
@misty sigil jetbrains is epic
OMG
codemy
Why not start with simple projects like learning basics of your programming language? @leaden flame
I declared the const "ping" at the beginning of the code, but in the switch when I use it it says: "Cannot access 'ping' before initialization" what can i do? (the code: https://hasteb.in/golalinu.coffeescript)
https://hasteb.in/azulosof.coffeescript Why doesnt it delete when author reacts? What did I do wrong?
Anyone that can check my hb and see whats wrong?
I want cpanel for free
@leaden flame Do you want to learn JavaScript or make a Discord bot in Python?
I want to learn making bots with JS
I dont want to read as well
What should I do
I like videos
First learn JS, best way is through documentations
@misty sigil Thanks but imma not using this lib. Regarding to https://discord.com/developers/docs/topics/gateway#activity-object-activity-types āwatchingā shouldnāt exist
Integrate your service with Discord ā whether it's a bot or a game or whatever your wildest imagination can come up with.
@boreal iron It's intentional right now because users cannot set a watching status, so you shouldn't receive one from anyone.
they removed it from the docs on purpose, but it still exists, its type number 3
Ah alright, thanks
Does this server have a github page?
lol id 3 is missing, obviously... should have tried it myself
probably won't last long though
github page for what?
brrr
discord ios? so you get the mobile status? lmao
Website/server suggestions/bugs go to https://github.com/top-gg/issues
yes 
XD
i don't really use it, just for testing purposes
making a good lib is still hard for me
mine is abandoned lmao
what's it called?
xD
npm i discord.tim
was gonna call it something like discord nano or whatever
Js or ts
discord vim \š³
its not on github
discano
discordeno
also-called-discord.js-light
lmao
i have a bunch of unfinished stuff that i havent worked on in months
sad to look at
oo
Well life has different plans... always
Midlife crisis or just no time? š
i havent worked on my most important things in like 6 months
@quartz kindle Getting a girl?
XD
JK

Whoops forgot to mention that
nah, that one has been shelved for 6 years
For me 16 years
What's your opinion on python guys?
Its good
leading language
and I am compelled to study it for 2yrs for sure
XD

š
what?
i have never done anything with python, but im not a fan of the indentation system
what do you even study in 2 yeasrs of the same language
i have never done anything with python, but im not a fan of the indentation system
that seems bad yeah
yea
that seems like a waste
including some database and software making as well
3 years of using python
I mean, using it is a thing, but studying it is another
Convenient for small scripts if you get used to dynamic typing
A hellton of libraries to help you do calculations also
I love my list comprehensions and one-liners 
i wanna make a dsl webhook package but it'll be shit
Like you have matplotlib, numpy, sympy, great support for Tensorflow
I'm working on adding a DSL webhook to dblpy but the current webhook system will be reworked
Because we really needed that hecking WebhookManager
Is it already there in dblapi.js?
i dont think so
I mean, you simply pass in the webhook auth and port in the constructor, isn't that already good enough?
it has webhooks but for bots
onƧly for bots
ah right
let m = await message.channel.send("**Wait...**").then(m => {
m.edit(embed)
m.edit(" ")
m.react("ā").then(m => {
message.awaitReactions((reaction, user) => user.id == message.author.id && (reaction.emoji.name == 'ā'),
{ max: 1 }).then(collected => {
if (collected.first().emoji.name == 'ā') {
m.delete()
}
})
})
})
}
I want to delete the embed by reacting to the x (author only) but it doesnt work and no errors?
I built my own server with fastify for webhooks
as webhooks are just post/get requests
what's fastify?
why are you still editing it twice
never heard of it, should take a look
why are you still editing it twice
@quartz kindle bc it doesnt delete the word so u must do that
i tried fastify some time ago, didnt like it xd
discord.py
how do i make something do the same thing all the time (i want the amount of servers the bot is in to always change to correct)
I would use 0http if it had types :P
want to delete the embed by reacting to the x (author only) but it doesnt work and no errors?
Use console.log to debug and check the values you get
discord.py
how do i make something do the same thing all the time (i want the amount of servers the bot is in to always change to correct)
Uhm... use len(bot.guilds)?
Unless you disable the guilds intent, you'll have guilds cached properly for the most part
with a scheduler too if you wanna update it every x minutes
@autumn aspen ah i understand now what you're talking about.... you have to pass null content to it, something like this ```js
m.edit({
content:null,
embed
})
you are waiting for reactions on the author's message, not the message the bot sent
how can i create a file with the bot's logs inside?
js?
yes
example: messages from both the bot and users, including errors
is it possible to covert String to JSON? for example,
let JSON = {"name": "glassy", "lastName": "killer"}
and convert the variable JSON to an object
also, dont name a variable JSON, because its a reserved name
and when i get sword it returns as a String
obj = JSON.parse(string)
Hey Tim, you got any articles on async programming?
idk i dont read much articles lul
@slender thistle what does that mean
Uhm... use len(bot.guilds)?
@slender thistle
im stoopid
God damn Iām not even able to complete my sentence... @quartz kindle stop being faster than me
woops
š eh well there goes my data I guess
double ping
Lol
It only mentions once per message anyway
you triedā¢ļø
@violet mesa literally what it says. Size of client.guilds depends on how many guilds the bot is in. Unless Discord doesn't send events related to them
@digital ibex I strongly suggest you delete that and never say that in this server again
jokes or not
ok
Shouldnāt GUILD_CREATE been send anyways?
yea but how do i use it
i hate discord for not allowing bots to fetch a member's presence without the guild presences intent
they allowed us to fetch a member without the guild members intent
why not presences too smh
yea but how do i use it
@slender thistle
helo
wdym how to use it
using what? len(bot.guilds)
Just access the property
JUST 
@quartz kindle hey, so lets say that i convert the String to JSON, I edit the JSON object, how can i re-convert it to a String?
JSON.stringify(object)
JSON.stringify as I tried to explain before Tim "stole" my anwser
Lol
If I wanna publish a Discord Bot on GitHub and make it open source, what license should I use, I'm confused
I have a websocket error on discord.js
Someone can help me?
what do you want to allow people to do with it?
what do you want to allow people to do with it?
I want them to be able to see the code and self-host the bot but obviously not act like if they made it
uhm, what do you mean with their bot?
TIDES TIME
@opaque seal for example, a license like AGPL states that if they want to use your code, they must make their entire project open source as well to match yours
the regular GPL is the same but only applies to distributed code (downloadable), not for hosted code
Uhm idk, I don't think I need them to make their code open source




The hell has happened here






