#development
1 messages · Page 1633 of 1
message.guild.channels.create('test')
message.channel.overwritePermissions(args[0], { READ_MESSAGES: true, SEND_MESSAGES: false})
.catch(console.error);
I have a error, the bot dosen't do the permissions for the role in the new channel :/
face the reality, there's no hiding frontend code
all ive figured out for now is how to use MongoDB as a storage for the localisations
Log results
Okay!
mongodb wtf
you can do SSR, which prevents your end user from seeing your entire logic but you need to send code to the browser so the browser can render it
once you send it, the client has it and can view it freely
MongoDB is surprisingly good.
why? if i plan to run the bot on mutiple machines in the future its an easy way to update it
Cry, is using await in this code, correct? https://srcb.in/BiflrzOSoJ
sec
I just waana ask I have seted all the mod commands to only who had those permissions the perms are ban and kick who has one of them he will be able to run the command is this allowed too??
ok.. can you walk me through how you found it
You could have a .json file with localized strings
You could load that into cache on bot startup
network tab in chrome dev tools
its that easy
yes but then i have to copy it to each different machine individualy
if i update something
I see
seems to be except this part
Uhh guys?
and i18n got a integration for it
Well, can't argue with that
well shit.. I see.. thanks still gonna keep trying cuz this is fun tho
return await?
but yea i could just use json or js files
just use json
sure
@vivid fulcrum try to be more polite to people, it is incredibly unpleasant otherwise, and you will end up getting yourself into trouble again
i genuinely do not care
After I automatically used the VS search to replace them for me.
I have a other command called +bl wich is forces the bot to leave the server required a admin is this allowed guys??
well i suggest you take a step back from this channel for a bit
Again, your bot does not and should not demand admin permissions. But you can require any permission from the user, including admin, that's allowed.
it requires admin perms (user) to make the bot leave the server
thats what i'm gathering
they could just kick the bot?
^^ yea??
They could definitely just kick the bot, yeah, lol
But asking for Admin permission from the person doing the command to leave the server is perfectly fine
Okay thanks BTW the other commands like the modrate and control are needs a permissions from the user to run it the permission are ban and kick who has in fo those permissions so he can run it
you are not by any chance german right? bcs they like to overengineer simple stuff
@pale vessel[ [ 25 ] ] [ [ 7670 ] ] [ [ 7670 ] ] [ [ 7670 ] ] Alright so I assume half is servers and half is user count?

You can require any permission from the member as you like.
As long as you tell the user what permissions are needed.
Okay
It needs ban or kick one of them to be run the commands that needs perms
ik im gonna sound like a real dunce here but i spent so much time thinking about the other things, like making the request chain something only the html loader follows, preventing global hijacking.. making sure you load it on a browser new tab.. and messed up royally.. next time when I present it I hope it'll at least be hard to find ;D
That sounds about right.
it won't be, because the browser needs to find it to render it
hm..
it'll still be in the network tab
anything you do on the front the client can see
sure you can send an encrypted version
hm, what are you trying to do
but the decryption code is still going to be there
use that, boom, i have access to your script again
if you're really this worried about people stealing your code you should just switch to SSR
yeaa.. it's gonna be hard.. but i aint gonna give up
no im a legit highschool kid having fun
while SSR does share bits here and there, the end user doesn't have access to the entire script
That's the results that you said to log?
so thanks for ur advise but i shall tryyyyyyyyyy
yeah, are you trying to get all member count across all shards?
Yeah
Same with the member count.
sisyphus' boulder
I'm quite new to sharding.
can you log results here?
That's where I did lol.
Ah
Yeah.
Oh?
return Promise.all(promises).then(results => results.reduce(...))```
or simply add return in your case
I'll try and get back to you. Thanks for the help so far!
hi i just buoght an vps server how do i run my bot 24/7 help me pls
what programming language is your bot in?
node.js
Awesome. You can use pm2 in order to run a nodejs program and restart on error
i boght vps already
Ok. you already said that.
so what is pm2?
it runs a nodejs program and restarts it on error
hooo
in the VPS (a VPS is just a computer running a system, it's not magic)
so i shood install the package pm2?
yes
it's not magic
for a lot of people out there, it actually is
ok thx
idk my vps seems pretty magical, how does it stay on almost 24/7
Good news! It kinda worked... Servers: 07670 Users: 07670.
It now shows that my guild has... 07670 servers?
Last I checked, it was only 25.
lol
didnt you know??? a bunch of hamsters running and ur machine go BRRRRRRR
lol
Try flatting the array
oh thanks!
results.flat().reduce(...)
The usercount is correct but the 0 in fount is kinda strange.
Instead of results[0]
Just read that entire unstealable front end code convo
Ngl that was an interesting sitcom
discord.py: can I change an Embed's thumbnail size? I want it to be exactly 48x48
you'll have to manually resize it in your code and upload it either to discord or somewhere else
then use that url
yikes
does py got something like canvas?
tip: discord allows you to send an embed that uses the url from attachments in the same message (if you want to resize it on the go)
see https://discord.com/developers/docs/resources/channel#create-message-using-attachments-within-embeds
Doesn't url params allow resizing server-side?
my url could be from anywhere tho
that's only for grabbing avatars etc
the size needs to be a power of 2 anyways so 48 wouldn't even work
Welp, image manipulation + attachments will be ur only choice
i mean its a really inconsequential thing i just thought it would be cool if every embed were similar size
helo guys :)
But thumbnails have fixed size anyway
Help me please
No
with what?
;<
You didn't supply a question
^
help me please?
with what?
Well, I coded a command which welcomes a user. Everything is fine and working but its not sending a welcome message
i was kidding
i also got intents enabled
id say its not working then lol
show the code?
"everything works right"
"is not sending wecome message"
Choose one
exdi
he means that the code editor is showing no error but it is still not sending a message
we need ur credit card number and it's CSC code, to help you
You sure you have the intents enabled both on your bot and discord dashboard?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
wow
404
man wtf
pastebin is 🚮
try noe
now
Earlier
what library are you using?
ah, idk python, i am djs
;<
@slender thistle eh help me here
@client.event
async def on_member_join(member):
guild = ctx.guild
wc_role = welcome_role
channel = await client.fetch_channel(chnl)
await member.add_roles(wc_role)
embed = discord.Embed(title = f"A Wild {member.name} Appears!" , description = f"**You are our {guild.member_count}th member!**" , colour = discord.Colour.green())
embed.add_field(name = '**•Member Name!**' , value = f"{member.name}")
embed.add_field(name = "**•Id**" , value = f"{member.id}")
embed.add_field(name = "**•Member Created at**" , value = member.created_at.strftime("%a, %d %B %Y , %I %M %p UTC"))
embed.add_field(name = "**•Joined this server on**" , value = member.joined_at.strftime("%a, %d %B %Y , %I %M %p UTC"))
embed.set_image(url = f"{member.avatar_url}")
embed.set_footer(text = "Have Fun in this server! | Bot coded by Mr.Sloth#0007")
await channel.send(embed=embed)
why did you fetch channel?
Show your Intents and your client objects
just do message.channel
hmm
charge your phone
That's one less issue
bharat mata ki jai
i have wifi enabled in airplane node
exdi
Now show me how you are initiailizing your client and intents in your code

I mean, I used global Variables and stuff
while the intents are enabled
it still doesnt runs
Just show your code
I don't specifically care if you used local or global variables
Hey
Arnold
const Discord = require('discord.js');
const { deletionTimeout, reactionError, reactionSuccess, pinEmojiId } = require('../../config.json');
module.exports = {
name: 'setlogs',
description: `Crée des channels pour les logs du serveur.`,
usage: 'setlogs (id du role Staff)',
requiredPerms: 'ADMINISTRATOR',
permError: "❌ Tu n'as pas la permission !",
async run(message, args, prefix) {
const staffRole = (args[0]);
if (!args[0]) {
let msg = await message.channel.send(`Conseil de pro : ${prefix}setlogs (id du role Staff)`);
msg.delete({ timeout: deletionTimeout });
return message.react(reactionError);
}
message.guild.channels.create('test')
message.channel.overwritePermissions(staffRole, { READ_MESSAGES: true, SEND_MESSAGES: false})
.catch(console.error);
}
}
My command dosent work at 100%
Wht
The bot dosen't do the permissions for the role in the new channel created
i want this cmd to work only in 1 server
Boi
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
You cant negate that way
@slender thistle
!message.guild.id is a bool
you need to put it in parentehsis
,
the whole thing
putting a ! there will turn message.guild.id (string) into a bool
!"1234"
Your client and intents objects please
since its true, (not an empty string)
Or just your client
tf you mean lmao
What is client
Permission to strangle you
Hold on
I am sorry if i am Acting like a dumb bitch, i just didnt slept for some days
Nah no sweat
i kinda told shiv i would NOT be using py syntax if i were to go there
xd
like this?
Or just use !==
read what i said above
so
so so so
hmm
kuuhaku
Idk
if(message.guild.id !=== '796358397070540831') return like this?
well, you take it from here
see how members is False?
bye
Your members intent isn't enabled in your code
yeah
Erwin, nooooo
so how should i enable it?
Since you probably want the same intents but with members, two ways
You do know what ! means, right?
Actually just one
yes ofc lmao
intents = discord.Intents.default()
intents.members = True```
What does it mean?
then you pass intents to your commands.Bot object via intents kwarg
okk
const Discord = require('discord.js');
const { deletionTimeout, reactionError, reactionSuccess, pinEmojiId } = require('../../config.json');
module.exports = {
name: 'setlogs',
description: `Crée des channels pour les logs du serveur.`,
usage: 'setlogs (id du role Staff)',
requiredPerms: 'ADMINISTRATOR',
permError: "❌ Tu n'as pas la permission !",
async run(message, args, prefix) {
const staffRole = (args[0]);
if (!args[0]) {
let msg = await message.channel.send(`Conseil de pro : ${prefix}setlogs (id du role Staff)`);
msg.delete({ timeout: deletionTimeout });
return message.react(reactionError);
}
message.guild.channels.create('test')
message.channel.overwritePermissions(staffRole, { READ_MESSAGES: true, SEND_MESSAGES: false})
.catch(console.error);
}
}
My command dosent work at 100%
The bot dosen't do the permissions for the role in the new channel :/
And no errors in the console 😦
it means if it is not the thing like !123 so it means if it is not 123
No
! is a negator
Actually, an inversor
Js treats everything as booleans
So 0 is false
1 is true
"" is false
"a" is true
Okay?
!123 does not mean "not 123", it means "false"
Because 123 is not 0, so it's true
Inverse of true is false
See where we're getting?
permissionOverwrites
help pls
yes
ok
update node iirc
Update your Node.js version
@lethal trout still here?
How ? Sorry for acting dumb
how to what to write there?
yes
Care suge pula?
intents=intents, first intents is the kwarg itself, second being the variable intents
So, given that logic, !someid === "123" is false
Because false is not equal to true
Is it your intension to create a new channel and change the permissions for the current one or a mistake?
the but create channel without errors but don't add permissions in the new channel
:/
and the args its the user to define the role id
If you want to compare two values, you can't negate the value itself
in the command
<GuildChannel>.overwritePermissions() doesn't take overwrites like that:
https://discord.js.org/#/docs/main/stable/class/GuildChannel?scrollTo=overwritePermissions
You negate the comparison
=== compares if true and type matches
yea ik that
!== reverses that
man u should get promoted
okk
If you wanna change the permissions for the new channel you need to get/fetch it
If create doesn't return a promise.
Well, kinda
Oh it does return a promise <GuildChannel>... there u go
Create the overwrites when creating the channel instead
Is it your intension to create a new channel and change the permissions for the current one or a mistake?
That's why I was asking.
GOD DAMN! YEAH
I WAS ASKING if wanna edit the permissions for the created channel or the current one.
and he answered:
the but create channel without errors but don't add permissions in the new channel
Impossible for me to understand what he meant.
By the "new channel" they're probably referring to the created channel which they want to add permissions to
how do i send an attachment in slash command?
i tried doing attachment://filename.png
sorry i'm french xD
but so
I want to:
the bot create a new channel
and the bot add permissions in the new channel
yes but not works :/
yeah, what you did is, you tried to overwrite the permissions of the message.channel the current channel the messasge was sent not the new channel
ahhh yes
I'm dumb
channels.create({ permissionOverwrites: { your permissions here } })
can I add the name of the channel too?
yes
of course, lol
channels.create("channel-name", { permissionOverwrites: { your permissions here } });
the permissions are for all? or just for a role?
i dont understand how to update my node on my vps
hello sir, big fan, can you tell me how do i send an attachment in slash command?
i tried doing attachment://filename.png
are you on linux
yes
nothing I can tell you... never worked with permissions, probably @quartz kindle can
or cry
Permissions are per role
find your distribution here https://nodejs.org/en/download/package-manager/
and follow what it says
If you dont specify a role, it's for @everyone
yes so how can I specify a role id for this:
message.guild.channels.create("test", { permissionOverwrites: { READ_MESSAGES: true, SEND_MESSAGES: false }})
See second option in tim's print
😮
i hate it
it is sending to the same channel the message is edited
How and why?
why?
yes but I don't understand this, i'm french xD
docs dont say anything about file uploads in interaction responses
my parents dont like anything on dark mode if they see i will be dead
..
If your parents enforce light theme excuse me but they're douchebags
ikr
i dident find i have ubunto
Like, that only hurts your eye without reason
Will probably make you need to use glasses futurely
At least use f.lux then
????
there is an example in the docs
my eyes :/
but it is not logging there
we sent this link like 5 times already lol
anyone?
Use a collection instead of a list
Snowflake, OverrideResolvable
xD but the id is message.author, so not for a role
Author is a snowflake
yes but no command there
hello anyone?
Just use a role ID for example
make sure to get/fetch it BEFORE for the case it doesn't exist
you can use node version manager (nvm)
yes
permissionOverwrites.map is not a function
:/
how to make attachment into url then?
const Discord = require('discord.js');
const { deletionTimeout, reactionError, reactionSuccess, pinEmojiId } = require('../../config.json');
module.exports = {
name: 'setlogs',
description: `Crée des channels pour les logs du serveur.`,
usage: 'setlogs (id du role Staff)',
requiredPerms: 'ADMINISTRATOR',
permError: "❌ Tu n'as pas la permission !",
async run(message, args, prefix) {
const staffRole = (args[0]);
if (!args[0]) {
let msg = await message.channel.send(`Conseil de pro : ${prefix}setlogs (id du role Staff)`);
msg.delete({ timeout: deletionTimeout });
return message.react(reactionError);
}
message.guild.channels.create("test", { type: 'text', permissionOverwrites: { id: '810846011299201054', READ_MESSAGES: true, SEND_MESSAGES: false }})
.catch(console.error);
}
}
there is not .map
😦
read the example again
allow or deny the array including the permissions
permissionOverwrites should be array
I mean you just have to copy the example, as Tim said 
was this for me?
no
oh, ok ok
i dont now if slash commands support file uploads or not, you can try asking in the discord api servers
if they dont, then you need to upload the files yourself and put the link in the embed
they got no clue, this is why i asked you
oh, ok
Tim knows more than discord devs 
try sudo
a lot
sudo install sqlite3?
sudo npm install sqlite3
so what to do?
ok
Hey! So my bot that just got sharding only displays the amount of guilds in the current shard in the bot status. How would I make it so that
the status will display the total number of guilds
not just from 1 shard
the error says you do not have permission
if you're using discord.js and their sharding manager, you need to use broadcastEval or fetchClientValues
yea i tried to, following the sharding guide but i cant figure out how to do it
what have you tried? show code
RangeError [BITFIELD_INVALID]: Invalid bitfield flag or number.
wtf
message.guild.channels.create('test', {
type: 'text',
permissionOverwrites: [
{
id: args[0],
allow: ['READ_MESSAGES'],
deny: ['SEND_MESSAGES'],
},
],
})
i put it back to this
this also needs to be changed but the how part i aint sure off,
client.shard.fetchClientValues
ah
its valid permissions no?
READ_MESSAGES is not a valid permission flag
^
thx
Hi, how can I create a bot using discord.py and make a new server using that bot when a certain command is executed?
i replaced the old one with this and it doesnt send the message at all anymore when the bot is added to a server
dont copy and paste it lol
look it up how to use it
in the docs
aight
Bots cannot create servers once they're in 10 servers, regardless if they created or not
So you might want to reconsider such feature
isnt it 10?
If memory serves me well it's 10, yeah
Was it 10?
over 10 guilds you cannot create any guilds.
wha

rip
I've been a bad girl and I got punished, that's life!
Sad
Doesn't matter, I'm still here and I'm not going anywhere ^_^
Also the Notable Member role is removed and that's a bit sad 😦
f
nope
read the docs again
oh you're in the wrong doc
i updated the link to the right one 5 seconds later
but i guess you already had opened it
okiee
oh F
honestly though, it didnt really mean anything except for the like 2 normal members that had it.
Can someone help me about hosting? I have some troubles.
Hey we were quite a few people that had it. But I guess it caused a bit of jealousy (and it wasn't clear why it was given either I guess)
Shoot, maybe we can help!
¯_(ツ)_/¯
kinda comes out with a loop of errors
you're trying out stuff blindly without reading what it does right?
what are the errors
you're not using the return value
and guilds is not defined
you left an open parenthesis
I need a hosting service where i can go online my bot 7/24 and keep my json objects alive all the time.
Which service i can use for that or what to do about it?
literally any hosting can do t4hat
Uh oh, i smell json db
literally any non-free hosting service
How do I make a hyper link
Where, specifically?
In an embed
Given your context in support, use [text](the link)
Ok
Wait, hover text?
ya
Cool
dank memer uses it
tooltips have been a thing in discord for a while now
👀
then again it's electron
totally going to deny a bot to try this 4head
Any cheap bot hosting service to suggest? I'm amateur as you all can understand 🙂
what the fuck
There's some hints in the pins of this channel actually
are you trolling?
no-
Take a look at this first #development message
then you should learn js a bit more
Contabo VPS
digital ocean, ovh, contabo, vultr, galaxygate, google compute engine, amazon ec2...
many options to chose from
if you have a credit card, the best cheapest option is google compute engine
Tim do be "ok google"
Lol
you can go even cheaper if someone gives you their referral code or something
oh cool, i will try to do something about. Thank you all for help, have a nice day ^^
that's a first
anyway
what do i do about mongoose connection timeouts or whatever
doesnt mongoose auto reconnect?
One message removed from a suspended account.
tsk tsk wrong channel for hugs again. 😛
Is using a bot to be able to ban/kick people ranked the same or higher against the discord api tos?
it isn't
but you probably shouldn't allow it if it's a public bot
as your users might abuse it
scratch the might, they will abuse it
can somebody rate this
terrible
where did you found this one? a PFP of a tech forum from 2004?
that is the word i searched
what is that supposed to be
actual i have this
server icon?
it genuinely looks like someone had a frantic half hour in ms publisher
theres way too much going on for a server icon
keep it simple
dont put to much details into icons, they get this small you wont be able to see it
why not just a simplistic letter
the first letter of your server name
if the name is dev & debug make it d&d
apply a gradient on it
slight drop shadow
italic
boom
good idea
i'm bored so i'm going to make a concept
like this ?
that's still horrible
way too much going on still
xD
i was aiming for something like this
gradient + soft glow on a simple background
that's it
here's the png if you want it
would look like this
that's horrid
very small
Does anyone know if there is a some type of js client.on functionality for if the bot is kicked from a server? Can't seem to find any info for it
Similar to client.on("guildCreate", (guild) => { for joining a server
guildRemove
bet, thanks boss
or this is horrible+ lol
I’m trying to get a random number between two big numbers, say 100 and 500, I get an object promise back when using Math.floor(Math.random() * (Max - Min)) + min;
they all look abhorrent but the third one is the best of them all
well that shouldnt happen
Everything is defined however
oof that one kinda hurts on the eyes
would you use this
not really
or the upper
neither
neither
i am a noob lol
they're both shite in different ways
talk about a tough crowd
It kinda is and is at worry for those with epilepsy.
already changed
i wouldn't necessarily call that epileptic
i upscaled mine to 512, you have full permission to use it
but it's definitely an eye sore
okay thx i will ask my mods
this one's good, its simple, its easy on the eyes, you can actually read it, and it's not full of clutter
gradients are really cool if you have a good combination
how are you making this?
db.set(`${user.id}_thiefoutfit`, "purchased")```
im saving items like this, but all of a sudden people start loosing their items
software name is horrible + i think xD
with gimp
and im using quick db btw
i saw it
are you overwriting it
you writer got stopped atm you rebooted
guess i'm good
problem with bettersqlite3
which software do you use
and it happened
photoshop cc 2021
im just gonna set it to a boolean value and hope that fixes it
uff i am to poor for it
hehe somebody liked my horrible logos
i don't think they're uh... very... intelligent per se
lol what a scam
omegalul

Xd
exdi
So am I not gonna get any help or?
so I have a command which gives you a meme... and in the command, I want to have a way to have the bot react with a bookmark, and for around 1 minute, it would listen to anyone who reacted on the bookmark, and if they did it would do a function. Whats the best way to do this? (discord.py)
You are using this inside a function and returning the result, right? The function most likely has "async" in the declaration
async function a() {
return 1 + 1;
}
Will return a promise even if you don't actually return a promise yourself
Really?
yes
does anyone know how to make a bot faster, so I made a fun bot where you mine blocks to level up by running &mine and it shows up an embed you can control by reacting to it but if 2 people are using it at the same time it slows down rlly bad, is there a way to make it run smoother?
it edits messages to the reaction
Only allow the person who used the command to add reactions
So when I do my set timeout, don’t async it?
If you don't need the async context, then yeah
Okay

hi
Okay I’ll test it now
I still get an object promise.
It probably doesn’t help that I’m missing one thing:
It’s inside of an entire asynced function so that way I can wait before setting a timeout
ok so using d.js - v12.
I want to check if the text !d bump or !bump is typed. So all the others are false even if its included in a paragraph or sentences. Which means only those 2 exact words can be written.
What is the best way to do that?
l still get object promises
Hey I'm trying to make a command in discord.js, and I'm getting told that "message is not defined".
The if is like
if (message.content.startsWith(?test)) {
//code is here
}
The error is on the line that the if is on, saying "Reference Error: message is not defined"
I have the proper thing above in client.on('message') thing. Could i get some help with it?
So you want to check if the message is only !d bump
that or !bump
I can't help much if I can't see the code
Compare the message.content to !bump and !d bump
show the "above thing" you have
It's
client.on('message', async message => {
const timeTaken = Date.now() - message.createdTimestamp;
if (!message.author.bot)
if (message.content.toLowerCase().startsWith('?'))
console.log(`${message.author.tag} (${message.author.id}) used ${message.content} (${timeTaken}ms)`) // response time
//message.delete();
``` I have all of my if statements to make a new command under this.
like ...
if(!message.content.includes(["!d bunp", "!bump"]))
other way around
yeah
what cry said
What other way around?
check if message.content is included in the array
can you show the full error?
Is what I did wrong
so i can easily return it
you can do if(a) continue here
only for single line things
yeah, because includes doesn't accept an array, and it's not appropriate for your problem because you want the message to only be !d bump or !bump
So you'd do something like this:
[a, b].includes(message.content)
or a === message.content || b === message.content
ReferenceError: message is not defined
at /home/runner/choosebot/index.js:561:1
at Script.runInContext (vm.js:130:18)
at Object.<anonymous> (/run_dir/interp.js:209:20)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47
I don't understand it I'm really new to the bot coding, only part i got was the first line lol. Line 561 is the IF i had before
if(!["!d bump", "!bump"].includes(message.content)) { message.delete().catch(() => {});
So like this?
uff bump reminder /helper
Basically yes
message.channel.awaitMessages(filter, {
max: 1,
time: 300000,
errors: ['time']
}).then(message => {
message = message.first()
if(message.content == '1') {
message.channel.send(`<@${message.author.id}> Is robbing the Fleeca Bank!\n||I will tell you how much you got (or would have gotten)! Give me about 30 seconds!||`);
setTimeout(function() {
const amount = randomNum(max, min)
return message.channel.send(`Hey <@${message.author.id}>! You made ${amount} from your bank heist!`);
}, 30000);
}
There we go
top.gg will not allow any one anymore
That if statement gets executed if the message content is not equal to "!d bump" or "!bump", if that's what you want - then it's correct
Its not related to top.gg
Yes. Thank you!
but you will not have luck with it
?
btw read the embed
So amount is a Promise? Can you also show your randomNum function
const randomNum = async function(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
};
I use my own bot to do that sooo
You need to remove that async
it's what makes the function return a promise
you don't need it
in that func you're not using await anywhere
Okay
await Math.floor(Math.random() * (max - min)) + min;
};
this must be in a async funtion
no? Why await a function which doesn't return a promise
No it doesnt because it just worked
so uh somehow my db keeps doing weird stuff and changes the balances of users unexpectedly
It works just fine without it and if I need it I can do it manually in the command.
using quick.db
that does not make any sense it works without await to sincs it runs sync
i used dbl browser and fixed most of it
but its weird that its not writing properly
i think it has to do with an always on feature
I'm not having this argument, Rule 1 of being a programmer: If it works, DON'T FUCK WITH IT!
Thank you @cinder patio
np!
uff you will have performance issue
No they won't
if his bot has 100k guilds
okay i have 176 :c
Its not your concern anyways.
what is your guild rentetion
hi Guys!
i am not concerning to i just wanted to know the joinrate
There's absolutely no need in making that function async and awaiting functions which do not return promises, there are 0 advantages and it most likely actually makes your code slower
No idea what the joinrate is, its meant for GTAV and RDR2 based roleplay servers so its random
yes it does, await console.log 

👀
they removed notable member (probably me causing the usual fuss i do)
😭
my bot only gets 10 guilds in 2 days
I don't think it was you ngl, I think I have an idea of why but im not sure how true it is
look in #site-status
I don't think its just that
what does that mean lol? it disconnects the community, how lol?
welp, it was nice to get some recognition even if it was temporary, but its not like anyone has ever asked for it, it was a nice touch but not something i would complain about
agreed
the aqua was perfect for your pfp 
ikr
well it was asked for on the github 👀
cyan my fav color, lowkey
buy roles with coins 🙄
i meant as in:
its in a sense a reward, it might've been vague to acquire it, but it did serve its purpose to reward and provide some recognition to the members that partook in it.
i did see its flaws but they never occured, what i was expecting to happen was a rush of messages in #development and #topgg-api with people trying hard to get the role, which, in by itself wasnt bad unless it went too radical.
like i said, i dont think any notable member has ever asked for recognition of their doings, since most of us were doing it out of good will without a hidden meaning behind it, since the roles were created AFTER we were helping.
idk if there was any notable member added that wasnt a notable member within this server before the role was even added. but thats my 2 cents on the subject
You want the member to be the member that's banned?
basically it lists all members that are banned in your dms,
their tags
but, the member. isnt defined
O.o
bans is a collection of BanInfo, which has a user property
seems like it
fetch the member with id
the member's banned, there's no member
oh i thought the executor
the person responsible is only in the audit logs iirc
nvm
i just got what you were saying
in that context yeah, but they're trying to get the tag of the banned user
yeah the baninfo object only contains the user object of the banned member and the reason
does it contain the id?
so you can use the tag?
yes
user contains id, created, flags, name, disc....
ok.. it FINALLY doesn't show up in the network tab dev tools for me, so I'm just reaching out again asking to try to see if you can find the script
btw u gotta let it open popup >:{ (dw, my repl is linked to my school email, my discord is linked to my personal email, nothing sus)
here we go again
bruh cmon.. just check uwu
I will cause I'm bored
i feel ya, i made it cuz im bored
still doesn't work on chrome though
i see..
like i said.. nothing sus but u gotta allow popups
here's y
having the iframe run the fetch still gets stored in the network tab, so i open a new popup
as in a whole new tab.. and have that tab alone run the request
a request from a different tab doesnt get stored in the parent tab's network bar
it sounds really hacky.. but so far it works(obvi gotta do something cleaner but I HOPE it's proof the world's not flat)
ik.. but im planning on using ghost tabs to make it less scetchy?? eh rn it's just a hacky proof of concept
btw it doesnt load in the network tab right?
maybe a link to self click seems like the best option
oyyy, if it works.. now's the time to ask for the repository :D
Sorry to break it to ya
it is... look
??
look closely
hm
oof
hmm.. ok how did u do that? the window was to close before you could begin doing that
debug eh
there's an option on edge (and probably all chromium based browsers) which automatically opens the dev tools on all popups
and from there you can pause the script and go through each function call
but.. by the time u try to do that.. wouldnt the tab close before you even pause?
wow.. I see..
was it at least a good try?
OOOOOOF
yeah definitely. If someone didn't bother to look into it more they wouldn't have found it
so it halfish works
huh
i still believe >:{ ngl cuz this is fun to try
automatically pause.. how do i beat that?
you can't
waiit.... my function doesnt call something over there.. everything is quite async
as u saw the code urself
I don't know how that's relevant
so if I randomly set a timeout to THEN make openedWindow._pw=window._pw
automatically pausing would/should pause before the transaction is done
yes, it pauses before the request is made
but you can go back and forth the call stack
and execute functions one by one
holy
i get what you mean.. but i don't call a function.. both the things are intervals waiting for things to happen
you are though... the functions inside the .then
one waits for openedTab._pw's text and the other waits for openedTab.xhd's text..
then the fetch happens
We're talking about the script that can be seen here, not the one that makes the popup
ik, ik, but you see the condition that makes it begin running?
if window._pw is a string
yeah?
and it takes that very string for the request
meaning that it may be like a function call but there's no trace
also meaning that if I have a random timeout, it might, JUST MIGHT be able to best automatic pausing
ik im being hopeful but i came this far
that's not how it works... the debugger is literally able to execute code expression by expression
across 2 tabs the dev tools have a hard time though
the network log bypass proved that
now for an automatic pause beater..
yeah but not the debugger
:^)
lemme not go admitting things but hey, wasm is overrated
still, its way harder to reverse engineer wasm than js tricks
all depends on what the code u turned wasm is trying to do
Did you try doing something with worker threads perhaps?
try wasm + bytecode obfuscation lmao
if ur processing things for a game.. getting relative location might be tough but, if it's listening to keys, or mouse, or even displaying to the screen in any way(even canvas drawing)
those r relatively easy
how i did certain things to a certain game had nothing to do with reading source code
yes but we talking about obtaining the source code no?
technically.. we're talking about trying to hide code(from being seen or tampered with)
i worked so hard on the tampered side but the seen side is very hard
i mean,, wasm is meant to work with js, not to be a replacement for it
oh hi cry the dude that said you can't get client side script not loaded on the network tab
????????
👋
when did i ever say that lol
when I was all like then i'd just have to hide it from network tab
the time after I realised how u found the code the first time
i dont want you to paraphrase me, i want you to show me the exact proof where and when i said that
yea so this automatic pause thingy.. this is gonna be tuff, thankfully how the tab and the opened tab cooperate to make the fetch has no function link(so i can randomly time when i do the transaction)
keep in mind
people don't have to even use the devtools
external network sniffers exist
i.e. wireshark
again
anything you send to the end user, the end user will have access to it
split your payload into several chunks, on each page load send a piece of it and store it in a different location, ie cookies, localstorage, indexeddb, headers, etc
when they are all together, assemble them and summon exodia
hm.. it will add complexity.. but as to if it's hidden, im not sure.. good idea tho i mgiht try
convert them to jsfuck then encypt them with different keys
make the keys depend on something stupid like exact number of seconds past a given minute
so the entire code can only run at specific times
make it geolocked too
or a modulo on the timestamp
only accessible from a small town in kenya
xD
lmao
for the tab to decrypt.. somewhere the decryptor has to load.. to load the decryptor in a way that the client cannot see.. well that's what im trying to do with any script shrugs
everything will eventually be figured out
you are just adding layers on top of layers of annoyance to whoever wants to figure it out
timings with no callback connections between things that are hard to trace.. that is my aim
this
why hide scripts from the client when you can just render the HTML in the server and just send the html
i'm still waiting for this btw
server side rendering.. let's say you want clients to open websockets to the server.. how do you render that client-server connection server side?
that's even harder than what im trying to do
why would you want to hide that though? So it's only used by real clients trying to visit your website
i've said it 3 times by now, i don't know what isn't clicking
you need to send the script to the browser so the browser can execute it, once you send the data, it's game over, the end user has it


