#development
1 messages · Page 1576 of 1
One message removed from a suspended account.
just like you would say that it takes in any other type
enums are implicitly numbers
so arg: any?
One message removed from a suspended account.
is it becvause of this app.config that is made?
no, you defeat the whole point of using typescript when using any
arg: YourEnumType
no
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
minecraft plugins in .net 
One message removed from a suspended account.
C# is fun as hell
One message removed from a suspended account.
too bad my high school switched to Python
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
i'm waaaaaaay ahead of my class course right now
Game development is pretty fun, I don't think they do game dev for the programming classes at my old high school anymore
that seems fun
One message removed from a suspended account.
One message removed from a suspended account.
Mm, I'm doing cpp for college rn
no fun
Supposed to make a contact book, but we're not allowed to use databases no, file storage is the way to go apparently
circa 1996 development
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
there should be RCs in november i think
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
i understand how they would do one way interop
java -> c#
but two way is witchery
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
i'm really intrigued in how they plan on doing two way
One message removed from a suspended account.
translating to java bytecode? using pinvoke? no idea
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
well yes
One message removed from a suspended account.
nah
One message removed from a suspended account.
it's because c# implicitly depends on c++
they end up being the same thing at the low level
One message removed from a suspended account.
but using .net core binaries in node that weren't compiled as libraries is hard
because you then need to load all other binaries, like the runtime
One message removed from a suspended account.
Can I make it display the gif?
Can you help me make it valid then?
👁️ 👄 👁️
Is that a yes or no :|
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
throw in your assembly in the scriptoptions
sec
this is a minified version of what i have in my code
[
{
gif: {
dims: [Array],
url: 'https://media.tenor.com/images/5980fd877fc97febfb44c0d28b5185df/tenor.gif',
preview: 'https://media.tenor.com/images/6e426065aa7ebf7412f248a48628f56e/tenor.png',
size: 2790087
},
}
]
How would I get gif?
?
take a guess on how you would access it
where do indexes start from
that's your index
lol
what
@sage bobcat take a look at emzi's eval code, it's basically a more cleaned version of what i have https://github.com/Emzi0767/Discord-Companion-Cube-Bot/tree/master/Emzi0767.CompanionCube/Modules/AdministrationModule.cs#L126-L219
you can throw out a lot of things out of that
One message removed from a suspended account.
One message removed from a suspended account.
const Embed BanEmbed = new Discord.MessageEmbed()
.setColor("#Hex Code")
.setTitle('Member Banned')
.setThumbnail(member.user.displayAvatarURL())
.addField('User Banned', member)
.addField('Kicked by', message.author)
.addField('Reason', reason)
.setFooter('Time kicked', client.user.displayAvatarURL())
.setTimestamp()
message.channel.send(BanEmbed);
Why is it... underlined?
is it not needed?
nvm
im dumb
Did you figure it out?
nah.
I get this..
const Embed = new Discord.MessageEmbed()
.setColor("#FF0000")
.setTitle('Member Banned')
.setThumbnail(member.user.displayAvatarURL())
.addField('User Banned', member)
.addField('Kicked by', message.author)
.addField('Reason', reason)
.setFooter('Time kicked', client.user.displayAvatarURL())
.setTimestamp()
message.channel.send(Embed);
WAIT..
i forgot the hex code.
nvm
@crimson vapor
Anyone have the regex for mention?
To check if the mention mentions the bot
if (!buf.toString("hex").startsWith("000000206674797069736F6D")) return message.reply("That isn't a mp4!");
Why does this say that the buffer given is always not a mp4
ty man
Np
quick question, why does this show me "undefined" even though I play a song on Spotify and see it on my status?console.log(user.presence.activities[0]);
have you got the presence intent enabled?
Luke
mhm?
I guess not? I haven't done anything with bots for like 7months. Where do I do that?
I need to allow anything for the first 4 characters but the rest needs to be strict how do I do?
your bots application page
should have 2 toggle switches
wdym
Ah, thank you for the help.
like
HEREYaydayaya
HERE - can be anything
Yaydayaya - Needs to be strict?
Im trying to see if a buffer is a mp4
I tried
im fairly certain we had this answer here before
buf.toString("hex").startsWith("000000206674797069736F6D")
yeah, that
according to this
This is a list of file signatures, data used to identify or verify the content of a file. Such signatures are also known as magic numbers or Magic Bytes.
Many file formats are not intended to be read as text. If such a file is accidentally viewed as a text file, its contents will be unintelligible. However, sometimes the file signature can be re...
theres a reference signature for every file
I mean I use this on the buffers handled by my image server https://www.npmjs.com/package/file-type
No
oh right
so it'd need to be an includes
@opal plank didnt work
or hell even a regex match
if (!buf.toString("hex").includes("000000206674797069736F6D")) return message.reply("That isn't a mp4!");
have you tried console.log'ing buf.toString()
thats what they are using internally
my code is..
const Embed = new Discord.MessageEmbed()
.setColor("#FF0000")
.setTitle('Member Banned')
.setThumbnail(member.user.displayAvatarURL())
.addField('User Banned', member)
.addField('Kicked by', message.author)
.addField('Reason', reason)
.setFooter('Time kicked', client.user.displayAvatarURL())
.setTimestamp()
message.channel.send(Embed);
?
you need to show the entire opening and closing scope
this is the one you looking for i think
True
@quaint wasp You need to show the opening { and closing }
one sec..
because the error is above that
module.exports = {
name: 'ban',
execute: async (client, message, args) => {
if(!message.member.hasPermission("BAN_MEMBERS")) return message.channel.send('You can\'t use that!')
if(!message.guild.me.hasPermission("BAN_MEMBERS")) return message.channel.send('I don\'t have the right permissions.')
const member = message.mentions.members.first() || message.guild.members.cache.get(args[0]);
if(!args[0]) return message.channel.send('Please specify a user');
if(!member) return message.channel.send('Can\'t seem to find this user. Sorry \'bout that :/');
if(!member.bannable) return message.channel.send('This user can\'t be banned. It is either because they are a mod/admin, or their highest role is higher than mine');
if(member.id === message.author.id) return message.channel.send('Bruh, you can\'t ban yourself!');
let reason = args.slice(1).join(" ");
if(!reason) reason = 'Unspecified';
member.ban(`${reason}`).catch(err => {
message.channel.send('Something went wrong')
console.log(err)
})
const Embed = new Discord.MessageEmbed()
.setColor("#FF0000")
.setTitle('Member Banned')
.setThumbnail(member.user.displayAvatarURL())
.addField('User Banned', member)
.addField('Kicked by', message.author)
.addField('Reason', reason)
.setFooter('Time kicked', client.user.displayAvatarURL())
.setTimestamp()
message.channel.send(Embed);
}
}
wwaaiitt...
@opal plank doesnt really help
Should it be on the really top?
no
how come? its literally how they are decoding it
I cant read that shit who you think I am
where?
#development message here?
ya
I was asking Erwin because my brain is mush rn
oh
What's the error you get in console??
CAN SOMEONE PLEASE TELL ME WHAT PROGRAM THAT IS GOD DAMIT
He's shown it already, its a syntax error from a missing comma or brace
nothing popping off atm, theres a ton of stuff wrong as they may return undefined
OOH
Roblox is the best program to code your own bot
What program are you talking about
The one you use the make the bot
Usually, a code editor, like VSCode
Roblox is the best program to code your own bot
Evie
Lol
module.exports = {
name: 'ban',
execute: async (client, message, args) => {
if (!message.member.hasPermission('BAN_MEMBERS')) return message.channel.send("You can't use that!");
if (!message.guild.me.hasPermission('BAN_MEMBERS'))
return message.channel.send("I don't have the right permissions.");
const member = message.mentions.members.first() || message.guild.members.cache.get(args[0]);
if (!args[0]) return message.channel.send('Please specify a user');
if (!member) return message.channel.send("Can't seem to find this user. Sorry 'bout that :/");
if (!member.bannable)
return message.channel.send(
"This user can't be banned. It is either because they are a mod/admin, or their highest role is higher than mine",
);
if (member.id === message.author.id) return message.channel.send("Bruh, you can't ban yourself!");
let reason = args.slice(1).join(' ');
if (!reason) reason = 'Unspecified';
member.ban(`${reason}`).catch(err => {
message.channel.send('Something went wrong');
console.log(err);
});
//@ts-ignore
const Embed = new Discord.MessageEmbed()
.setColor('#FF0000')
.setTitle('Member Banned')
.setThumbnail(member.user.displayAvatarURL())
.addField('User Banned', member)
.addField('Kicked by', message.author)
.addField('Reason', reason)
.setFooter('Time kicked', client.user.displayAvatarURL())
.setTimestamp();
message.channel.send(Embed);
},
};```
nope, everything looks fine
indentation is fine
erwin
he isnt requiring discord
Lmao
Yea ik
theres no syntax error
like i said brain mush
I'm looking to script a ranking bot!
lmao, i was focused on the syntax
@opal plank erwin how do I do includes for the hex
@quaint wasp so, have you got Discord require()'d anywhere
Before you make a Discord Bot, you should have a good understanding of JavaScript. This means you should have a basic understanding of the following topics:
- proper syntax
- debuging code
- basic features (vars, arrays, objects, functions)
- read and understand docs
- nodejs module system
As much as we d like to assist everyone with making their bots, we rarely have the time and/or patience to handhold beginners through learning javascript. We highly recommend understanding the basics before trying to make bots, which use advanced programming concepts.
Here are good resources to learn both Javascript and NodeJS:
Javascriptinfo: https://javascript.info/
Codecademy: https://www.codecademy.com/learn/javascript
FreeCodeCamp: https://www.freecodecamp.org/
Udemy: https://www.udemy.com/javascript-essentials/
Eloquent JavaScript, free book: http://eloquentjavascript.net/
You-Dont-Know-JS: https://github.com/getify/You-Dont-Know-JS
NodeSchool: https://nodeschool.io/
CodeSchool: https://www.codeschool.com/courses/real-time-web-with-node-js
Evie s Accelerated JS: https://js.evie.dev/
Please take a couple of weeks/months to get acquainted with the language before trying to make bots!
Ty ty
like const Discord = require('discord.js')
why not simply toString() the buffer and check it?
I did
then?
!buf.toString("hex").includes("000000206674797069736F6D")
in my index...
you need it in the module file too
are you calling discord through exports?
you cant use an undefined variable in a new scope
@quaint wasp add const Discord = require('discord.js') to that command file
pls dont load whole modules
it's like using an embed that was created on another block of code
import {MessageEmbed} from 'discord'
i was going off his code erwin
alr.
Doesn't really matter much, it's already cached anyway so it doesn't use more memory
erwin
that too
fairly certain the gc clears it afterwards
thats me
const {} = require works too
I don't think GC does tree shaking, but then again, I might be wrong.
i havent fucked with files much at all, you should dig into that library and see whats going on behind the scenes
Always worth testing evie
im going off from what i've been told, havent tested it either
evie
any reason why you're so reluctant on using that package?
I'm confused what purpose it serves to say people's names randomly.
@opal plank it'll be slower and thats pointless if I only need to check file type once
He's trying to get a thing working the way he wants it and then when shown a solution told us he cant read the packages code
like just to take a snippet
i legit sent even the line of code though
GG 
you can do that in github
github has a fancy thing so you can follow code
Omg I suck
just see what it turns into
sigh
We literally aren't allowed to just give you the answer
Im not asking for spoonfeeding at all
and thats precisely why i told you to just use the package
but I legit just dont want to
its extra space that I dont need used
npm packages use alot of space

Can someone help me with the ranking bot
Ty
if you have a specific question, as away, but just general help implies you dont know coding at all
as for you, its better to not be stubborn and use that.
Doubt anyone here ever had a need to use binary to decode a buffer type. And if you can digest the code they sent there, there aint much we can do
since none of us ever did it before
@opal plank could you tell me what program we are using I'm confused like the program that we use the make the bots
there isnt A program
theres various languages you can code in
read this if you want a good guide on how to make a discord bot
@long timber
I feel like if you don't know what application you code in, that's a good sign to not get into discord development just yet
Property 'setName' does not exist on type 'Channel'.ts(2339)
Why am I getting this error?
And I mean, you can use notepad to code if you really want to.
theres that, but i did send them the whol learn before making a discord bot embed
Sounds like listenerChannel is not a proper channel ID that's in your cache.
Yeah, that's why I pointed it out
listenerChannel is just a channel ID, no way the editor would be screaming at me
"684526163367952401"
Well the question is does the code run?
like, does it work?
Because it could just be intellisence just not being able to see that the get() function returns a channel object, or not be able to load those types.
also the fact that the line error is 2339 is giving me hella bad feeling about this
that would make it a warning, not an error.
thats not line
wait i get it
thats not why evie
Nah that's a TS error code not a line number
Channel by itself doesn't have a setName method
Channel may be a DMChannel
either add a ? inline coallesence
you can't change the name of a dmchannel
or cast it
yeah cast it
thanks
no problomo
this is good, but most people remove dm's from the bot, so it should most, if not laways be a textChannel
well k
but nothing wrong in type guarding it
can anyone help me with this error?
it appears that client.get_channel isn't working
try await client.fetch_channel(id) instead and see if that works
keep in mind that fetch_channel is an API call so don't spam it
You can't get the channel before the bot is ready because the cache is empty
You can't fetch either I think, since the session is created on static login which is called on run/start method
Oh is he trying to do that before the bot is ready?
Just assuming since it returns None, they only send snippet doe
Yeah ^^ Where do you have this code? In a command?
Can i help anyhow?
it's not in a command, it's in a normal def function
And where do you call that function?
@snow tendon Hmmm. May only use a Loop without the coroutine
Use bot.run() and make do_something to the on_ready Event of the bot
It'll work
And you are sure the scheduler is started after the bot is ready and logged in?
I'll make sure
Use bot.run() and make do_something to the on_ready Event of the bot
On that was you can Check it too
And IT would work i think
Is it supposed to be REST only client? If so, you could just call the static_login method directly instead of using run. Also you can just use the HTTP class instead
len(client.guilds)
But it didn't work..
oh
?
yes..
whats len?
Bruh, it's not like they're using python
The size of the collection
short for length
Im using js..
ah, it was happening before
it works now
thanks :)
oh its fine.
anyone who does discord.js know how to make one?
If its not guild.memberCount..... Then idk what it is.
what exactly didn't work doe?
Also, ig you can use message.guild instead, it's the shorthand for that
memberCount 
oh
So I can just type: message.guild and it will show how many members+bots are in the server?
no, I mean, message.guild is the shorthand for message.channel.guild
<message>.guild.memberCount
No
Lul
oh
Just a friendly tip, I'd delay the bot development until you have some familiarity with the lang
Else your path will be a reeeeally harsh one
module.exports = {
name: 'server-info',
execute(client, message, args) {
const Discord = require('discord.js')
const Embed = new Discord.MessageEmbed()
const counters = 'Members in this server:'
.setColor('#27FF00')
.setTitle('Server Infromation')
.setThumbnail(member.server.displayAvatarURL())
.addField(`${counters.guild.memberCount}`)
.addField('ID:', guild.id)
.addField(' ')
.setFooter('Type **++help** for help! Time:', client.user.displayAvatarURL())
.setTimestamp();
message.channel.send(Embed);
}
}```
I do..
You never declare member
... ?
How do I do that??...
But anyway, "member" doesn't exist in that scope
const member =.... ?
meme
lol
At execute, try adding member(?
Also, that Discord shouldn't be inside there
Actually you should set it in a global constant instead of creating one every time
no.. It will count like people in ONE server.
It doesn't work like that
That Discord variable isn't getting one server
It's getting the global discord.js client
like
const Discord = require('discord.js');
module.exports = {
//Some code
}
ok..
Please, learn javascript before attempting to make a bot
This is for your good
Bots aren't easy, you'll get a lot of wrong concepts
Or no concepts at all
There's no shame in starting with a Hello World program
Imagine someone asking how to make a say command in Js lmao
You'll only get so far by copying things from the internet. It's like trying to write an essay in a language you don't speak
laughs in lorem ipsum
We aren't turning you down, but you need to start from the start
First time our web dev teacher brought that up on her website I thought she was summoning a demon
Lmao
If you step in a running conveyor you'll just hit the head and pass out
I already knew JavaScriot before starting with my bot, but i never practice, so i was a beginner yet
I think that's the reason a lot of people are discouraged from coding. They attempt some advanced project like a video game for their first thing and don't understand anything so they give up.
I learned and understood more the language by making my bot
that hits home
i remember trying to make a game with unity with no coding experience
Yeah but not everyone can learn that eay
There are two kinds of devs
Those who can use abstract imaging and those who need concrete results
Lmao same, just copied some code from a YouTube video but o boy I didn't understand a single line
C# is too difficult to use without experience
So is any programming language when you break it down
The first type can learn by imagining results in the mind, thus making you learn how things work
But if you learn one, you'll learn the others way quicker
Exactly, i did that
The second type needs to make project after project to truly understand what each thing mean
Both have pros and cons
✋
Nah... I had only like 12. Thats not a lot really..
And i usually try to experiment with new things without any help, and that helps me to learn by myself
Had 12 yet doesn't know what "member is not defined" means?
The risk with self teaching is that you might teach yourself bad practices. So I do think that sometimes it can be good to learn from others
how about documentation
there are some good docs out there with best practices included
w3schools 
n0
I'm from the first type, one of the worst cons is not being able to turn abstraction off
It becomes headaches sometimes
And for that reason i'm still on this server, also i have my friend @mellow kelp that usually helps me on my native language if i have any problem or need something, and i learn more with that help
When you're almost sleeping then SUDDENLY you think about the perfect solution
Then u can't sleep anymore
means I didnt decalred member?
defined.
yes.
defined.
yeah, like the time i told you to STOP USING VAR and you didn't 
xd
That usually happens to me, also when i'm taking a shower
Did y'all see that YouTube video of the 12 year old kid who apparently dreams in code?
Actually i don't use var
YEAHH that kid
i mean he's smart
but "dreaming in code" is going way too far
uhh... Alr. Im kinda dumb. I forgot how to fix this dumb mistake. Im such a dumbass now..
Let's get real else we can't help u
What the
I think that's the point where you're considered a psycopath more than smart lmao
HOW MUCH u know about js?
never said im smart..
I need to know how to explain
Not talking to you :)
like 1.3/10
He's not talking to you
ok ok
Uh
Wh-
Ok, first of all, you don't define variables capitalized in the first letter
Reach 6 or 7 before trying to make a simple bot
camelCase
convention 
Classes are defined like that
Boi went from begginer to experienced in 5 seconds
Second, is member supposed to represent the member that triggered the event?
sure sure sure..
no..
message.
so I just had to put:
message.channel.send(member)
Uh
Just hardcode it then
Instead of spending a const
If u want the member count, u need to get the size of the guild members' list
What do u mean by spending?
Everything you declare has a cost
how?
ok...
That's called optimization
Like message.guild.members.cache.size();, right?
You'll hear it a lot
Yeah, that
You used semicolon, I see you're a compiled-langs brother
Ya
Reach 7 before trying to make a simple bot
discord.js uses advanced concepts of JS
please.. never mind my knowledge.
blame d.js for that
He's eating too much ram
why doesnt color work on hover? background color doesnt work @ all
border: #7289da 2px solid;
background-color: #ffffff;
color: #7289da;
transition: ease-in-out 0.5s;
}
.entity-button--primary:hover {
border: #7289da 2px solid;
background-color: #7289da;
color: #7289da;
}```
@opal plank bro, what's d.js saving ?
same bot, different libs
Your bot is too fat lmao
Try and see if other css is stopping this behaviour, use your element inspect 😁
u
I want to have a cooldown timer to activate only when an 'owo' is tracked, however the function does not need to be run if the cooldown is under 10 sec.
const Discord = require('discord.js');
const { list } = require('./owocommands.json');
const countcooldowns = new Discord.Collection();
module.exports = {
name: 'count',
execute(message) {
const msg = message.content.toLowerCase();
const afterowo = msg.slice(3).trim().split(/ +/);
// eslint-disable-next-line no-shadow
function checkCommand(list) {
return afterowo.includes(list);
}
const thisWord = 'owo';
if (!countcooldowns.has(thisWord)) {
countcooldowns.set(thisWord, new Discord.Collection());
}
const now = Date.now();
const timestamps = countcooldowns.get(thisWord);
const cooldownAmount = (10) * 1000;
if (timestamps.has(thisWord.message.author.id)) {
const expirationTime = timestamps.get(thisWord) + cooldownAmount;
if (now < expirationTime) {
return message.channel.send('You have to wait before sending another owo!');
}
}
// Counting code
if (msg.startsWith('owo')) {
if (list.some(checkCommand) === true) {
message.channel.send('That was a command.');
timestamps.set(thisWord.message.author.id, now);
setTimeout(() => timestamps.delete(thisWord.message.author.id), cooldownAmount);
}
else if (list.some(checkCommand) === false) {
message.channel.send('That was not a command');
}
}
else if (message.content.includes(thisWord)) {
message.channel.send('👍');
timestamps.set(message.author.id, now);
setTimeout(() => timestamps.delete(message.author.id), cooldownAmount);
}
},
};
Sorry its a big block
i cache more stuff that most people, my user data is tripled, i got my own custom cache for users
wait why is it trippled
and why are you caching all?
cuz i rahter use more ram than requests
cant you use redis to mitigate that a little bit
could, yes, but that wouldnt reduce the footprint
replied to the wrong message but okay
memory usage would still be the same, just on redis instead
would it
redis does a tiny bit of optimiziation
I was more asking why it's trippled
but its not really that big
mainly cuz for every user, theres 3 entries loaded
the discord warpper user
a genshin user
Oh right,
and a _cached data for third party apps
I was more thinking about generalising specific things
like making them 1 instance of something rather then storing them 3 times
i wouldnt want to insert my own stuff into libraries that arent my own
otherwise i would unify everything under a single user object
Destiny manifest
where you can throw everything into the client object and it just works
Lul

the issue would be d.js overriting it on events
USER_UPDATE or some shit would likely destroy the object
For me each command is in their own client.on lmao
^^^^
nah
does it only change the specific properties?
ye
is there NO even that would purge the data or recreate it?
is it 100% safe to attach shit onto d.js's user object?
a channelUpdate event that changes a channel type from text to news
Should i put it in 1 client.on??
that's theonly thing that destroys one and creates another
build a command handler
yes
except for messages lol
hmmm thats interesting, i went for the safe route
because djs sweeps messages
Could someone help me with my cooldowns?
also, tim, did you see what i posted before?
how stupid/crazy would i be to convert the Collection into a redis-cache
about 3gb vs 1gb? yes
This
thats 100% on d.js
uh
d.js loves eating all ram lmao
very stupid if not impossible
you'd need to rewrite the entire djs lib into using promises for cache
ported the bot, the ONLY different thing is the library, and theres a clear reduction of almost 2GB, who's to blame?
oh right
you could do it with better-sqlite3 tho
its less stupid than redis
true
thats what most people said when i did the twitch thing
and guess what?
they were absolutely right
lmfao
the problem is that it would be a pain to filter objects
or iterate through them
but for getting and setting it would be fast
just dump everything onto memory and let the gc clear it afterwards

lul
Is a change from d.js to Eris a good option? As you guys are saying it is bloated and just eats memory?
Did I get ghkst pings?
😮
:^)
d.js-light is a good solution until you wanna shard massively

(we found this out the hard way)
With chip
i wonder if d.js or djs-light would surive someone putting a mee6 lelvel token onto it and trying spin it up
kurasuta is a meme
i keep hearing about some weird af issues
kubernetes™️
yea
tis uh
wierd
but still eris-sharder is cool
without the lack of docs ofc
Eris-shader
eris minecraft shader
I wanna write a lib for https://github.com/spec-tacles/gateway properly at some point
Can someone help me with my cooldowns? sorry I'm dumb
i heard that gateway has issues
like what
Never had the need to do that, as sharding is mainly used to inhance performance?
idk
you'd think that
wouldnt you
sharding is required past 2500 servers
O
Inhale
frick that
Tim, how many guilds is your bot in?
actually, one thing i need is to have some decent image generation into a different process
Omg
yall make me look smol
Meanwhile my bot is in like 3 servers 😎
xD
How much servers would I be able to handle with internal sharding?
uh
oye
50k
Cool
Do u speak spanish?
wdym Erwin
funnily enough, i do
setting goals
I didnt make that
hola
never played with that
Kyoso did
internal sharding is as good as a single cpu core can handle

@twilit rapids teach
he is asleep
teach what
espanol solo en #general-int , pero compreendo un poco, que paso?
its 4am for him
its worth it 
Lol
and then does it that way based on a derivative
i already have a rate based on it, but i didnt think grafana had a input field for dashboards
i'm still learning english 
Add a text box variable Text box variables display a free text input field with an optional default value. This is the most flexible variable, because you …
What's that?
my dashboard
Grafana
o
@opal plank ngl I'm gonna need you to set mine up when I set my bot up
because thats gonna be fun

im planning on adding a shit ton more to this
Yea I might just need you to send me the JSON for it
so I can just yoink the panels and shit
if you're willing ofc
What's your bot about Erwin?
the issue is, its not conteinarized at all, so setting it up is a pain
though you could very well scrape a bunch of what im doing
though most of it i dont think you'd be able to scratch
I wanna setup a decentralised API for it
because uh
having the bot post directly to influx is pain
when its just "NO DATA"
most of it is handled internally on the bot too
thats whats going on rn
EasyDB is better than SQLite 😎 👌
I also realised something
prometheus runs one, the bot runs a bunch of others, elk grabs a couple, posgres graps some more metrics, theres shit everywhere
you know how you need to have identified in the last i think its like hour in order to send a message
its not all being pulled from one place
is that a thing?
iirc it is
never tried posting in postman with my token
Atleast I know you cant send messages without being identified in the last X
from the docs
i cant remember though
not sure tbh, like i mentioned, never even attempted that
discord.dev time
yea
there we go
I dont know the time limit though
jerry rigging time

trying to find the button

ah fuond it
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
oh oof
oooooh fancy
im about to try shutting the bot down and see if I can still send messages
if I can
then my theory is right
oh ffs
how do I stop this shit
@opal plank any idea?
not a clue
bruuh
why
you cant move buttons around
trash
spit
Idk why its forbidding me

oh wait
is it because no-js
yes
yes it is
cloudflare pls
okay im done with the panel
fuck that
imma have to make a new dashboard for that crap
no thanks
bye bye test panel
imagine not allowing buttons to be moved
spit know your place trash
ikr
it should be easy too
grafana make me screee
$__tohuman( (server-label) / rate(growth) )
that should give the exatc same thing you got there
get the difference between the label input vs the server count
and then divide by the current growth
sup
very interesting idea
i dont need it, i got logs
the same way im fetching from grafana, i can fetch from the bot
and calculate the rate again
Yea
go be smort
1 sec
let me reload my client
i hate when you lose nitro you can still send emojis
but they turn into that
ffs
there we go
am I acutally gonna have to write a fetch in js
just so I can fucking
test this theory
I get 403 from fucking cloudflare everytime
lmao
Oh
axios™️
kukis
cooks
you know what
Accept them
Or DIEEE
everytime my bot gets front page, it gains 400 servers
but they're all shit servers
this from reqbin?
wdym
Do collections last over restarts?
exdee
Or are they maps so no?
this
@opal plank you have until the time your presence is wiped until you cant sent messages again
so you can send messages when you bot is "offline"

So yea technically it'd be fine to make a microservice for reminders
ok pog
what are you testing?
if you could send messages when not connected to the gateway
ah

