#development
1 messages ยท Page 1466 of 1
This is actually two separate chars, which compose a surrogate pair
If you increase the second char you'll get the next emoji in the sequence
im so confused
SyntaxError: Error parsing /home/ubuntu/secret/package.json: Unexpected token < in JSON at position 1104
Think of those two \uXXXX being numbers
Like, let's say 60
If you increase that number by 1 you'll get the next char
You can't increase the first char, only the second
Here
See if this helps
You have some missing quotation mark
let welcomeChannel = await client.channels.fetch(data.channel)
console.log(welcomeChannel)
Promise {
<ref *1> TextChannel {<data>}
}```
Why isn't the promise being resolve even though it's been await and how to fix this? DJS
That's....uh....idk how to explain
๐ค
Ping me if anyone has any idea on how to fix ty
U cant use it that way, you nees the surrogate pair
Copy this \uD83C\uDDE6
This is A
DDE7 is B
DDE8 is C
okayy
how am I able to increase it?
Nah, forget it, you'll have 26 increases at most
Lemme think
Ah, found it
Nice
hexString = yourNumber.toString(8);
WTF?
I can't handle it
It'll be a normal number
my brain is too young
Lul
I'm so bad at explaining
Look, you could use the simple solution
Make an array with all 26 regionals
Then get the index
It'll be easier to do instead of directly manipulating the emoji
const regionalA = "\uD83C\uDDE6";
let unicode = parseInt(regionalA, 16);
unicode += 1;
let newRegional = unicode.toString(16);
This will get u the next emoji
why 16?

Why isnt it regional indicators?
No, not like that
It has to be like this
All 4 lines
Copy the whole example
Hm
Try this:
let emoji = 0xdde6;
emoji += 1;
let newRegional = String.fromCodePoint(0xd83c, emoji);
aaa
No?
'๐ฆ', '๐ง', '๐จ', '๐ฉ', '๐ช',
'๐ซ', '๐ฌ', '๐ญ', '๐ฎ', '๐ฏ',
'๐ฐ', '๐ฑ', '๐ฒ', '๐ณ', '๐ด',
'๐ต', '๐ถ', '๐ท', '๐ธ', '๐น',
'๐บ', '๐ป', '๐ผ', '๐ฝ', '๐พ',
'๐ฟ'
]```
Yeah, that'll be easier
why do you know so much about regional indicators
Store that on some const for easier access without havinguto create again
Poll command
@lyric mountain How old are you btw?
21
see, I still have a lot of time to learn that
i have a poll command too
I don't need to be advanced
Like, it's just harder in js because you can't explicitly declare types
The way I did in java was by converting the second character to integer, then increasing it by the desired value
After that, I joined the characters again, giving me the emoji
Characters are nothing more than unicode numbers, when you increase it you get the next character
what is the opposite of this (what can i use that activates when the bot leaves a server)
client.on("guildCreate", (guild) => { //...
this is guild create
guildDelete
it emits when bot joins a guild
smh @lyric mountain old
https://hastebin.com/obocedidad.yaml
I don't know what to do anymore 
ik, I asked for opposite
can anyone tell what to do, I am not able to verify as whenever I am trying to attach a pic of the ID proof, it says that the photo is blur even when it is absolutely clear
tada
@pale vessel mornin'
guildDelete doesnt work?
can anyone telll
pls
I'm not old, just power levelling a bit
It was hard farming in 2020 tho, lost some xp
nvmd im just a dumbass who forgot to save before running
morning
nice
finally everything ported
@opal plank from to?
Js to go?
or morning idk your time zone
Sao Paulo
Br detectado
Technically
well yeah, coming that i lived in canada before

bruh today is been a hell of coding
hmm
API wrapper
API changes
bot verification issues
bot porting
Updating bot code with log
Update database entries schemas to match main bot
uptaing readme for the bot
updating top.gg bot description
updating docs on the SDK
refactoring the SDK wrapper code
and a couple other smaller things
all that today, i need a break. and booze. specially booze.
does seem like hell
yea
idk about needing booze tho
take a break 
tons of it
imma chug that tequila down my drinker
yes
uptaing readme for the bot
the hardest of them all
not only the bot

readme
for the collaborators(if any ever join, looking at you @tame kestrel
)
you might need booze
await fetch_message(payload.message_id)undefined var
i 100% need booze, and i still got shit to finish
var*
but now we going to finish it drunk
is that a good idea?
@opal plank quick tip, dont drink
ok if u help me u can drink
booze the moose to use the nose
Erwin how old are you? if you don't mind me asking
take a break
or
jan 1998, do the math
drunk time
cba ill just assume like 23
cringe
shutdown -f
Erwin should I fuck around in ts or finish my project in js?
ik its all preference before you say that
ok
got it
after reading that I think I fucked up my grammar
should I fuck around on the project in ts or just code it in js*
its a rewrite
and im kinda dreading porting shit from the old one when I finish

if(message.guild === null){i have a embed i send here} but it sends the embed 5-10 times
can someone help
you probably have other bots running
the same bot, running the same time
OR, its ur code
show more context
client.on('message', (message) =>{
if(message.guild === null){
const embed = new Discord.MessageEmbed()
.setTitle('Help')
.setDescription(`> What would you like help with? Send a message with the **number** of the type of help you need.
**1.** I need to report a DM advertisement.
**2.** I need to report a user.
**3.** I am interested in a server promotion.
**4.** I want to become staff. How do I do it?
**5.** How do I become a sponsor?
**6.** I am interested in sponsoring a giveaway.
**7.** My issue is not listed here.
**8.** Cancel.
Please type the number that to the type of help you want here.
`)
.setThumbnail('gif')
.setFooter('Help','gif')
message.channel.send(embed)
}
})```
thats the code
and i thought it was multiple instances
this is not a good idea
so i regen my token
this sends on every DM message?

poggers
@tame kestrel hi
no
oh lol ye
yes
it happened so non-frecuently everyone forgot about it lmao
Nah I think the bot was just really excited and wanted an answer /s

@sudden geyser yeah yeah
similar to that one employee that wants to move as quick as possible
let guild = bot.guilds.cache.get(args[0]);
let bio = db.get(`servbio_${guild.id}`)```
TypeError: Cannot read property 'id' of undefined
what's wrong?
cache.get returned undefined
couldn't find a guild with the id of whatever you passed
before I go down the rabbit hole, would this code work
if (!user.permissions=="MANAGE_CHANNELS") {
message.reply("You do not have access to this command!")
}
if(message.member.hasPermission("PERMISSION"))
thank you
and when I do I take three hours trying to see whats wrong only to find out I cant do it that way
that's actually wrong
if(message.member.hasPermission("PERMISSION") actually sees if the user has a permission, not if he does not have one
yea ik, i was just gonna put ! on it
Click open in browser @earnest phoenix
Select the server?
I did
Did it open the mobile app?
its showing me the not suported
Did it open the mobile app?
YE it did
try enabling desktop mode
const Discord = require('discord.js')
exports.run = (client, message, args) => {
const emote = client.emojis.cache.find(emote => emote.name === args[0]);
if (!emote) return message.reply("No colocaste un nombre valido, Recuerda que solo se permiten emojis del servidor!").then(m => m.delete({timeout: 5000}))/
message.delete();
message.channel.send(`${emote}`);
}```
I just want the animated emoji to appear, not with everything and command, should I change something?
what

mhm
and your image link has broken
dont ask to ask
Okay what's the issue
How do I find an animated emoji to add to my bot? as decoration
@slender thistle i just dk how
idk how to make it edit period

so this is the code that mutes everyone in the voice channel that i am in. waht i dont know how to do is when the user the bot mute that unmute it self can the bot mute that person back
if (message.member.voice.channel) {
let channel = message.guild.channels.cache.get(message.member.voice.channel.id);
for (const [memberID, member] of channel.members) {
// I added the following if statement to mute everyone but the invoker:
// if (member != message.member)
// This single line however, nested inside the for loop, should mute everyone in the channel:
member.voice.setMute(true);
message.member.voice.setMute(false) //Unmutes the author
}
} else {
message.channel.send('Patron รถncen bir kanala katฤฑl!');
}
help with that code please
Does anyone know a really cheap VPS, for good performance? Looking for some suggestions
@earnest phoenix Maybe make it a server mute so that they can't unmute themselves?
wait it is a server mute
well idk then
no
Hey, my bot isn't detecting the command when I enter it in chat, the bot is for my friend to help them with their mental health, if this goes well then I plan to make it public and to start off I just want a simple embed to be shown, it's not the embed that's the problem, the bot just isn't detecting the command...
const Discord = require('discord.js');
const bot = new Discord.Client();
const prefix = '!';
bot.on("ready", () => {
console.log('Bot is online.')
})
const Healthstart = new Discord.MessageEmbed()
.setColor('#f54c4c')
.setTitle('Kingdom Health Program')
.addFields(
{ name: 'option 1: ', value: '7 days ', inline: true },
{ name: ' ', value: ' ', inline: true },
{ name: ' ', value: ' ', inline: true },
)
.setFooter('...');
bot.on('message', message =>{
if(message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).split(/ +/);
const command = args.shift().toLowerCase();
if(command === 'start') {
message.channel.send(Healthstart)
}
});
bot.login('token')
Are you trying to mute everyone in the voice channel but the bot?
it already mutes but what i want is when they unmute them self bot will check and will mute them back
In the channel settings just disable their ability to talk like so and in the bot permissions enable speak.
Bot perms:
Channel settings:
its not that
check the code
I'm saying the code isn't needed
lol
It's simple enough to do inside of discord, all the admin of the server needs to do is disable the user's ability to speak in the music channel and you need to add the permission to speak in the bot perms
pretty sure discord doesn't apply permission changes until the user switches channels
hence the need to server mute and server deafen
hmm, I still think that it's not needed, discord made a way without code to do it, and it's not that hard, if you need help to do this make a setup command that will give the user directions on how to update the channel settings
it's a bit inconvenient to mute each user by yourself
im guessing this is for an among us bot
as if there arent thousands of them that do the same thing already
hmm?
usually you get what you pay.
TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined
at validateString (internal/validators.js:117:11)
at Url.parse (url.js:159:3)
at Object.urlParse [as parse] (url.js:154:13)
at Object.exports.getURLVideoID (C:\Users\gamin\Documents\secret\node_modules\ytdl-core\lib\url-utils.js:30:22)
at Object.exports.getVideoID (C:\Users\gamin\Documents\secret\node_modules\ytdl-core\lib\url-utils.js:63:20)
at Function.exports.<computed> [as getInfo] (C:\Users\gamin\Documents\secret\node_modules\ytdl-core\lib\info.js:469:23)
at ytdl (C:\Users\gamin\Documents\secret\node_modules\ytdl-core\lib\index.js:19:8)
at play (C:\Users\gamin\Documents\secret\MusicSystem.js:23:26)
at Object.run (C:\Users\gamin\Documents\secret\commands\music\play.js:114:9)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
code: 'ERR_INVALID_ARG_TYPE'
}
(node:10920) UnhandledPromiseRejectionWarning: Error [VOICE_PLAY_INTERFACE_BAD_TYPE]: Unknown stream type
at VoiceConnection.play (C:\Users\gamin\node_modules\discord.js\src\client\voice\util\PlayInterface.js:84:11)
at play (C:\Users\gamin\Documents\secret\MusicSystem.js:40:8)
at Object.run (C:\Users\gamin\Documents\secret\commands\music\play.js:114:9)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:10920) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict`
(node:10920) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```
you dont provide a String as URL
where
read the first line of the error?
your URL isn't a string bud
var stream = await ytdlDiscord(song.url
where is song defined?
also dont use var. var is more or less deprecated, use let or const instead
const urlcheck = videoPattern.test(args[0]);```
`if (urlcheck) {
try {
songData = await ytdl.getInfo(args[0]);
song = {
title: songData.title,
url: songData.video_url,
duration: songData.length_seconds
};`
ohk
your scope of song is out of scope
im kinda new to developing bots what coding language is generally used for making a bot
what do you mean ๐
1st time making music bot
doesnt have to do anything with making a music bot
i know like html, c++ but like a little , and some java script
its fine many bots are written in it. but at larger scales you get issues with Resource usage
so around 10k guilds you will have to use atleast 5 Shards better 10 and each can easy use 500-1GB ram if not coded efficent
cause i would like to get better with this
idk never looked into C++
And python ๐
and is it just more efficient
currently js but i work on learning C#
i heard of python isnt that like the newest language
he knows C++ and js so why recomending py?
python is fine but could be slower.
I do not recommend python
interesting
if you want to learn a modern Language use Rust or Golang
ok
is it ok if we pin this part of chat so when i get back home i can write notes ?
How can I make a vote command
define vote command?
What lang?
lang tr
programing language lol
js
what did you expect from the vote command to do?
are u doing like a poll system
interesting
Can we use canvas for gif manipulative?
yes
Really ?
iirc
Hey, my bot isn't detecting the command when I enter it in chat, the bot is for my friend to help them with their mental health, if this goes well then I plan to make it public and to start off I just want a simple embed to be shown, it's not the embed that's the problem, the bot just isn't detecting the command...
const Discord = require('discord.js');
const bot = new Discord.Client();
const prefix = '!';
bot.on("ready", () => {
console.log('Bot is online.')
})
const Healthstart = new Discord.MessageEmbed()
.setColor('#f54c4c')
.setTitle('Kingdom Health Program')
.addFields(
{ name: 'option 1: ', value: '7 days ', inline: true },
{ name: ' ', value: ' ', inline: true },
{ name: ' ', value: ' ', inline: true },
)
.setFooter('...');
bot.on('message', message =>{
if(message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).split(/ +/);
const command = args.shift().toLowerCase();
if(command === 'start') {
message.channel.send(Healthstart)
}
});
bot.login('token')
How to use
message.mentions.users.first();
call delete() on the message object
will give you the first mentioned userobject
development running smooth boys
Holy shit
@young flame I have suggestion
yeah
make the embed edit into the selection message instead of sending a new one
i think that just makes it look cleaner imo
but then id have to make it put a number for each choice
and i plan on making it in pages so then id have more numberS
i'll try
i have it separate because you can also send a link instead of like
yea switching pages will be confusing
discord.js
how to check if an argument in a message is a standard emoji or not?
for example: everything is fine ๐
=> ๐ == emoji
@thorn nexus any emoji or just that one?
/languages italian
@pure lion in general. I need to extract any standard emoji from the message
how can i add images/gifs to my top.gg page?
cuz now it looks like this, which is very dull.
You need a full list of emojis and check if any of them exist in the message
There are libraries on npm that already do that
//so I get all custom emojis in the message, I also need to check the standard ones
let emojiID = [];
for (let i = 0; i < args.length; i++) {
if (args[i].startsWith('<:') && args[i].endsWith('>')) {
let emoji = client.emojis.cache.get(args[i].slice(2, -1).split(':')[1]);
if (emoji) {
emojiID.push(emoji.id);
} else {
continue;
};
};
};
if (emojiID[0]) return message.channel.send(emojiID);```
Or just check if the emoji has a URL
hmmmmmmmmmm
Default emojis dont have urls
Yeah exactly
But they want to match default emojis
Yes
So check if it doesn't have a url
how are emoticons different from regular text?
Refer here
There is no message.emojis in discord.js, so you have to parse the text yourself, there is no default emojis in client.emojis either, so you cant check if they have an url or not
There are libraries that do that for you already, such as twemoji-parser
you can check with regex if there is an normal emoji in the message
i was using it to remove emojis :3
something like this:
Yes, thats what the emoji parser libraries do
oh oki
So you can just steal the regex from them xD
its only an example, its much longer
Why aint this working? ๐ฎ
is that a newly invited bot
if so, you need to include applications.commands scope in your invite link now
otherwise no bueno
oh right, new scope, didnt think about that :D, thanks!
let dictionary = require('../../emojis/regex');
for (let i = 0; i < args.length; i++) {
if (args[i].startsWith('<:') && args[i].endsWith('>')) {
let emoji = client.emojis.cache.get(args[i].slice(2, -1).split(':')[1]);
if (emoji) {
message.react(emoji.id);
} else {
continue;
};
} else {
if (dictionary.indexOf(`${args[i]}`) != -1) {
message.react(args[i]);
} else {
continue;
}
};
};```
const dictionary = require("../../emojis/regex");
for (const arg of args) {
if (arg.startsWith("<:") && arg.endsWith(">")) {
const emoji = client.emojis.cache.get(arg.slice(2, -1).split(":")[1]);
if (emoji) message.react(emoji);
continue;
}
if (dictionary.includes(arg)) message.react(arg);
}```

how to make the bot generate an invite to a guild?
let invite = await message.channel.createInvite(
{
maxAge: 10 * 60 * 1000, // maximum time for the invite, in milliseconds
maxUses: 1 // maximum times it can be used
})```
you shouldn't though
how can i get if the user is listenning to spotify? dpy
how does discord.js set the client user at login?
look at the docs under presences, and then check if the name is equal to "spotify" or something like that
alr ty
np
has anyone here made economy commands using python?
isinstance(user.activity.type, discord.ActivityType.listening)
Let me confirm whether that works or not
would error out if user is selfbot though right?
i mean its fine lmao but it would?
Why is discord so integrated with spotify
lol
Why do people even use spotify, its filled with ads and its annoying
i have premium
so its fine for me
I just download the stuff i like lul
true
i mean i like how spotify makes like playlists for you tho
i dont like any specific type of music
i like some songs
And when not, i use youtube with adblocks
Spotify student is cheap tho
so spotify does a good job
i mean family plan, so why not use it
True
I use adblock for Spotify, it's nice without ads
I dont have netflix either
Hello
๐
how goes #development on this fine day
never been there
never plan on it
only time I would ever go there is if I have an issue with d.js that can't be solved by reading docs
nah this is shittier than djs
atleast in djs they have rules to disallow spoonfeeding and idiots who try to code without learning the language
Rule 8
of which section..?
The that matters in this case? The server rules lol
Why would I refer to you bot rule 8 randomly
a. Do not spoon-feed developers
b. Approach problems that users are having with an open mind and with the objective of helping them learn how the process works and how they can address the issue. Telling them to โgoogle itโ doesnโt help anyone and is rude. ```
Telling them to โgoogle itโ doesnโt help anyone and is rude. it actually sometimes is best response
Would be like the first thing to pop up on google
Then dont just say google it
You can say, If you google that question the first result is really helpful
hm
rule of the thumb:
if your question is answered in the first 3 searches on google, you are asking to be spoonfed
Going to a channel without doing research clearly shows spoonfeeding purposes imo, where you want people to do what is ultimately, your job
This isnt the channel for memes or media
If only we had a channel clearly marked for them
so an api that accesses MongoDB?
Okay so. I have this array with about 50 values sorted from lowest to highest, then I have a number and I need to find the index where it is higher or equal to but not higher or equal then the next one. For example:
const table = [1, 5, 7, 9, 22, 45]
let number1 = 3; // Should return 0 as it is bigger then 1 but smaller then 5
let nuber2 = 34; // Should return 4 as it is bigger then 22 but smaller then 45
let number3 = 9; // Should return 3 as it is equal to 9
Does anyone know how I would do this?
@tulip ledge you'll probably want to use .findIndex
It's quite simple to implement: js table.findIndex((num) => num > target) - 1
There are algorithms that are faster than this, like binary searching.
If your array is already sorted, yes binary search is likely the fastest
But on something small like this just use findIndex
how can i move these down
with html ofc
like margin top doesnt work
and float left also doesnt
Whats the structure?
<div style="border-bottom: #FF6B6B 2px solid;">
<div style="border: #83ff93 3px solid; font-size: 25px; font-family: helvetica; margin-left: 10px; color: #7289DA; float: left" class="card3" align="left">
<b>0</b>
</div>
<div style="border: #FF6B6B 3px solid; font-size: 25px; font-family: helvetica; margin-left: 10px; color: #7289DA; float: left" class="card3" align="left">
<b>1</b>
</div>
</div>
<div style="border: #83ff93 5px solid; font-size: 45px; font-family: helvetica; margin-left: 10px; color: #7289DA; float: left;" class="card2">
<b>0</b>
</div>
<div style="border: #83ff93 5px solid; font-size: 45px; font-family: helvetica; margin-left: 10px; color: #7289DA; float: left" class="card2">
<b>1</b>
</div>
<div style="border: #83ff93 5px solid; font-size: 45px; font-family: helvetica; margin-left: 10px; color: #7289DA; float: left" class="card2">
<b>2</b>
</div>
<div style="border: #FF6B6B 5px solid; font-size: 45px; font-family: helvetica; margin-left: 10px; color: #7289DA; float: left" class="card2">
<b>3</b>
</div>
<div style="border: #d06bff 5px solid; font-size: 45px; font-family: helvetica; margin-left: 10px; color: #7289DA; float: left" class="card2">
<b>4</b>
</div>```
Make the first div container display:block
Ye
Ye
uhhh
<div class="container-fluid">
<div class="header-body">
<div class="row align-items-center py-4">
</div>
</div>
</div>
</div>
<!-- Page content -->
<div class="container-fluid mt--6" >
<div class="row justify-content-center">```
Were are these divs? In py-4 or in justify cobtent center?
1 sec
lemme get css
{
display: flex;
margin-right: -15px;
margin-left: -15px;
flex-wrap: wrap;
}```
{
padding-top: 1.5rem !important;
}```
{
justify-content: center !important;
}```
If the display flex is the direct parent of the display block, then it wont work
You cant change the display of items directly inside a flexbox
Unless its display none
Move the 01 outside the flexbox container
<div class="container-fluid mt--6" >
<div style="border: #83ff93 3px solid; font-size: 25px; font-family: helvetica; margin-left: 10px; color: #7289DA; float: left" class="card3" align="left">
<b>0</b>
</div>
<div style="border: #FF6B6B 3px solid; font-size: 25px; font-family: helvetica; margin-left: 10px; color: #7289DA; float: left" class="card3" align="left">
<b>1</b>
</div>
<div class="row2 justify-content-center">
</div>
<div style="border-bottom: #FF6B6B 2px solid; display:block;">
<div style="border: #83ff93 5px solid; font-size: 45px; font-family: helvetica; margin-left: 10px; color: #7289DA; float: left;" class="card2">
<b>0</b>
</div>
<div style="border: #83ff93 5px solid; font-size: 45px; font-family: helvetica; margin-left: 10px; color: #7289DA; float: left" class="card2">
<b>1</b>
</div>
<div style="border: #83ff93 5px solid; font-size: 45px; font-family: helvetica; margin-left: 10px; color: #7289DA; float: left" class="card2">
<b>2</b>
</div>
<div style="border: #FF6B6B 5px solid; font-size: 45px; font-family: helvetica; margin-left: 10px; color: #7289DA; float: left" class="card2">
<b>3</b>
</div>
<div style="border: #d06bff 5px solid; font-size: 45px; font-family: helvetica; margin-left: 10px; color: #7289DA; float: left" class="card2">
<b>4</b>
</div>```
@quartz kindle
facts
but sometimes you want to make a Website for your bot
yea started with one a while ago, but i hate HTML and frontend work
most ive done is my sharex server
and it kinda hurts me knowing that I have to do it again
admin powersโข๏ธ
validation sucks :/
wdym
Like getting input from a website
hmm
And making sure that it is workable data
And you have to write two sets for it
One for the JS to give the user feedback and another for the backend because you can never trust users
thats why I just gave a warning on my site and said that it won't work if not properly configured
like custom domain shit
I don't even have a regex 
don't require emails yet
Oh
Nice
https://million.is-a.computer/files/DIMu3Tl6rIGz3Ny.png poggers dashboard imo
I don't understand, what is the service you are offering?
For people to need to create accounts
host images basically
I thought you said you were using sharex
yea I use sharex to take the pictures
would be nothing for me. taking the risk of getting sued for storing certain stuff
oh I see what's going on
yeah but like
Yeah I agree
just don't save images
You got to encrypt that stuff
Nvm it's accessible to anyone
I know how to make a working and decent website, but my design is always shitty. What should I do? ๐ฆ
you still can get sued if someone uploads CP even if its encryped
good point
still got some fixing to do ๐
I don't think you can get sued for what users upload
But you might get sued for not doing anything about it..?
youtube where facing a ton of Copyright Claims bcs of how users uploaded stuff (in the EU, read about Article 13)
โ๐ป ๐๐ป
Learn CSS
practice
pay someone
I know CSS
my site isnt that good https://terano.dev/
how do I check if something is undefined?
What I like to do is look at other websites and see what they do
js?
that's how I am at websites
you know css? name every style on google
oh, you like html? name every tag
my sites pretty basic https://localdiskc.tk tbh ๐ its jsut windows
you can make your own :)
i did : )
doesn't seem right
I mean you can make your own tags in html
oh shit XD
dang
forgot about that
ohh you like colors name every single color in Adobe RGB Color space
https://million.is-a.computer/files/MrBWRodcQUusvES.png I like the colors
fine for me
Those colors don't all have names :(
the problem is Responsivity
ye
๐
fuck that
Is there a developer that's free?
I'm baf at that
not really, unless you are just asking for help
I'm free
Are you a bot developer?
I'm asking for help.
so what is it
ive been mainly working on backend rather than front end, as i gotta make sure apache2 and cloud flare work like the children that they are
I'll DM you.
Responsive design has gotten easier for me over time
I don't really need media queries
you're tryna get someone to code for you, for free?
No
ah k
I mean my friend needs a bot
most recent shit ive been working on is a simple example command
let me ask again
So basically the same thing
So you're trying to get someone to code for your friend?
Yes.
Oof.
yeah
๐
That's not how it works
can recommend to look on pages like fiverr
no one codes for free
Yeah fiverr is good
Ok.
stackoverflow 
Make a program that outputs 5 and charge 30 bucks for it
write it in some isoteric language if they forget to add one spezification for it
def five():
print("5")
- tax
bad design
five()
๐ก
You said make a function you didn't say to call it
printFive() {
console.log(5)
}```
fair enough
is that mongodb
It should be called logFive
yes
yes its mongo
ah ok
If you call it printFive it could mean open the print dialog to a page with 5 on it

boob funny??
ye big funny
can u have 0 filters on a message collector?
while (true) {
if(Math.random > .9) {
console.log(5)
return;
} else return;
}```
yes
bigger funny
how tho put the filter as null?
It's mimetype, not mimitype
ty
its not
Just have to iterate over your current documents
Oh I see
someone gimme an audio or video file that has no name i wanna continue to test my audio recognition but i ran my memes folder empty ๐
its gonna be poggers when its finished
But files must have names
they do have names
i mean that does not give away the song name
wdym
like I thought that was only atlas
MongoDB's interface looks so good tho
MongoDB Compass is uwu
very
Command used in: GACHI PARTY by: Nice Cock
why the fuck
Obviously
yo
XD
I need some big brain
?
how should I link a file to a domain?
Why barnie
mega brain
What does that mean
like
custom domain?
yes
like million.is-a.computer has access to X files and not-million.is-a.computer has access to Y files?
Can't you just redirect it to your own
hmm
well make the user a domain redirect to an IP that relays the traffic to your server
Anyway, my friend gave up of his bot suggestion.
And control access based on domain there
no I mean
idk how to explain
but
million.is-a.computer/file1.png -> 200
not-me.is-a.computer/file1.png -> 404
makes sense?
404 is the wrong error for that though
listen to all subdomains
so you want to bind the file to a domain
Pretty sure it's authentication not, not found
Just add a domain field to images
should I link files to users or domains?

or both?
hmm
Also I think it would be a 405: Method not Allowed error
umm
for me I want 404 since its really not there essentially
But it's legit 405
shhh
404 would be fine.
Anything is fine
with 405 you could find other domains and possible attack points
I don't see how
should I do subdomains.join('') + fileID for the ID so I can just check the subdomains
404 could be a non existing subdomain.
with 405 you know there is something running on the subdomain
And what can you do with that info
@earnest phoenix you gonna speak?
basically I need it to not do like 100 DB requests as well as decern from 1 file on 1 subdomain and another file on another subdomain
What
I am not gonna speak, I'm simply just interested in what you guys are working on
edited message
alright
regretting life decisions, and trying to make a new one on should i switch to C# and if i should start over with a small Dashboard for my Bot that is currently listed on top.gg
this is my first time with nitro xD
Uh I don't think that translates well to non-native speakers
Starting over? I would only do that if that's absolutely necessary
How would switching to C# help though
No, your native language is emojis
this are 2 different things
- Learning more C# and recode my bot in it.
- Scraping my currently non existing dashboard and rewrite it in a different way
Learning is always worth it :)
And rewrites usually do help because you have a clear image of what you want and how to achieve that
yea but its painfull to rewrite the bot bcs there is stuff currently aviable on my current bot where i have no idea if i can implement them in C#
You can do anything in any language if you look hard enough
Can someone please explain cuz I think my brain comitted suicide why this if statement still runs even when candidateProfile["members"][this.uuid]["experience_skill_combat"] logs undefined?
for(const candidateProfile of this.data["profiles"]) {
if (candidateProfile["members"] && candidateProfile["members"][this.uuid] && typeof candidateProfile["members"][this.uuid]["experience_skill_combat"] !== 'undefined' && candidateProfile["members"][this.uuid]["experience_skill_combat"]>profileCombat) {
try {
this.profile = candidateProfile["members"][this.uuid]
profileCombat = this.profile["experience_skill_combat"]
}
catch(e) { wait(50) }
}
}
its probably possible but last time gave me already headache
Yeah it's good to research ways of doing something before attempting it too
That way you know exactly what you're trying to do and possible ways to do it
You might want to clean that up lol
No it doesn't
as people can disable certain parts of the api
Ok but you arent sending a new query just by getting the value of a key
(unless you are in which case that would be pretty bad)
would it not be easyer to see what you get as a result and then work with it instead of having a stupidly long line of code
Instead you can just do something like this:
member = candidateProfile["members"][this.uuid]
And reference it
A user has multiple profiles, I need the profile that has the most combatXP
Then why is it called "candidateProfile"?
because there are multiple profiles and I need to find one wich has the most combat xp
the code works if all API's are enabled on all profiles
Ok I think I sorta understand now then
But yeah you should show the output
you maybe could use ? inside your chaining
console.log(typeof candidateProfile["members"])
console.log(typeof candidateProfile["members"][this.uuid])
console.log(typeof candidateProfile["members"][this.uuid]["experience_skill_combat"] !== 'undefined')
return this:
object
object
false
object
object
true
But it still takes the first profile
where typeof candidateProfile["members"][this.uuid]["experience_skill_combat"] is undefined
how did you literate over the json or whatever the api returns?
Because you're using this.profile?
I saved the data to this.profile
loggers
Sooo no one knows how to fix my issue?
im not sure what your issue is tbh
Try !candidateProfile["members"][this.uuid]["experience_skill_combat"] instead of the typeof !== check
Already tried it but I'll try again
It's a better check anyway
nope
still he same
(node:60168) UnhandledPromiseRejectionWarning: Response: Internal Server Error
I got this
Does someone know a guide for storing a timeouts on mongo?
timeouts?
when the bot restarts the tempban resents and dont unban, so i want to store it in a db
if sonmeone know please mention me
What's wrong with setTimeout
How do big bots handle that stuff though?
hey
Do they just run a script every minute or something
cache
Cache tempbans and mutes?
use something like redis
^
whats that?
a database for temporary stuff
you can set a TTL for entrys that will trigger a Event you can listen for
you can store timestamps as when things should finish in mongo and on bot start query all of them and cache them all
Wait you can trigger events on expiration?
yes
How did I not know that
and its stored localy or remotly?
whichever you want
you can run a local redis server
there are free aviable redis server
they are remotely
They don't have that much storage capacity though
idk whats wrong with my vps but wont let me store a local db
well you should not use Redis as a main Database
did you use any free VPS?
Yo that's actually really cool
Is there a reason that it has to be stored under stats though
cleaner doc
bruh google cloud
You should be able to use a local db
they offer a free vps lol
sure only in the US with next to no compute power but you can run a small bot on it
Yeah but it's google cloud
they allow everything you can run on Linux
google kinda sucks
probably no crypto miner but i guess you get the point
elaborate?
Dunno if those are free though
Which google cloud product?
Compute engine or app engine?
#site-status watch all bots drop to 10 users :)
wdym?
That's pretty good though
i think i loose maybe 40%
nvm i loose around 30%
yeah but i haven't found a solution for that
Just tone down the colors
Look in #site-status
?!
@tawdry oracle
what vps do we use
๐คฆ
are you stupid?
they offer different type of VPS
hahahha
should be able to run local Databases
are you going to changue it again?
wha
he asked for a solution to keep Temp bans over restarts. i suggested using Redis
redis sounds cool i guess
its nice
sounds like reddit so
this



