#development
1 messages · Page 181 of 1
nah i mean if he wants in 2 or more servers
or object
same thing really
but yeah
the only difference a db will make is if you want the bot to continue spamming automatically after the bot restarts
arrays are complicated tbh,so db are better for me
nah bro,command of start and stop always
i mean
for example
command to start
then bot crash
when bot starts again, you need command to start again
because crash/exit/stop/restart = stop sending messages, so you always need to run the start command again
thats what a db can fix, other than that you dont need a db
👍
thanks again
@quartz kindle hey what if i want to make owner only
and keep like 2 owners
const ownerId = ["1086518594118111253", "868867303507378216"];
if (msg.content === '!start'&& msg.author.id === ownerId)
this aint working
ownerId.includes(msg.author.id)
what?
thats how you check if an id exists inside an array
yes
yea works thanks!
Anyone help me with setting up a RCE killfeed bot for my rust server, or point me in the right direction??
@weak rose
no idea what rce killfeed is, and u just pinged a bot
i have a dir of react icon components
how can i set it up so that i can publish it to a registry?
right now it's just in an index.ts with imports and immediate exports
prefer it to be automatic, is that possible?
(intellisense doesnt like this)
wdym publish to a registry?
well i just set up verdaccio since i have a bunch of icons (i dont want to copy paste their files)
so a private registry is what I want
not sure about your goal, but if you can do it manually through cmdline, then you can just make a bash script and schedule a cronjob for uploading it to remote
I only ever dealt with self-hosted maven repositories (java), idk how it is on npm
you need a loader for svgs, visit the doc link
adder.innerHTML = `<div style = "border-bottom: 1px solid black; " class="m-3 p-3 flex-row container d-flex justify-content-between align-items-center">
<p class="m-0 p-0 fw-normal text-shadow"><span class = "fw-bolder">${itemName}</span> is toegevoegd aan uw winkelwagen.</p>
<button style="background-color: rgb(219, 172, 52); color: white;" class="btn" onclick = "back()">Verder winkelen</button>
</div>`;
function back() {
window.location.href = "./assortiment.html";
}```
i might be ugly and dumb, but this back function doesn't work as i can only assume it's read as text. how can i make it work lmao
can't figure out why im getting this
Only happens when this code is uncommented:
const { SlashCommandBuilder } = require('discord.js');
const BlacklistModel = require('../../schemas/blacklists');
const { EmbedBuilder } = require('discord.js');
const moment = require('moment-timezone');
module.exports = {
data: new SlashCommandBuilder()
.setName('userinfo')
.setDescription('[RoSearcher Staff Command]')
.addUserOption(option =>
option.setName('user')
.setRequired(true)
),
async execute(interaction, client) {
try {
const user = interaction.options.getUser('user');
const guild = interaction.guild;
const isUserBlacklisted = await BlacklistModel.findOne({ UserID: user.id });
const isBotStaff = checkBotStaff(guild, user);
const embed = generateUserInfoEmbed(user, isUserBlacklisted, isBotStaff);
interaction.reply({ embeds: [embed.build()] });
} catch (error) {
console.error('Error in userinfo command:', error);
interaction.reply('An error occurred while processing the command.');
}
}
};
function checkBotStaff(guild, user) {
const guildId = '1185235395970088970';
const botStaffRoleId = '1200587720062414859';
const hasCustomStaffBadges = user.staffBadges && user.staffBadges.length > 0;
return guild.id === guildId && user.roles.cache.has(botStaffRoleId) && hasCustomStaffBadges;
}
function generateUserInfoEmbed(user, isUserBlacklisted, isBotStaff) {
const embed = new EmbedBuilder()
.setTitle(`User Information for ${user.tag}`)
.setColor(isUserBlacklisted ? 'RED' : 'GREEN')
.setThumbnail(user.displayAvatarURL({ dynamic: true }))
.addFields(
{ name: 'Bot Staff', value: isBotStaff ? 'Yes' : 'No' },
{ name: 'Blacklist Status', value: isUserBlacklisted ? 'Blacklisted' : 'Not Blacklisted' },
{ name: 'Joined Discord', value: user.createdAt.toUTCString(), inline: true },
{ name: 'Joined Server', value: user.joinedAt ? user.joinedAt.toUTCString() : 'Not available', inline: true },
{ name: 'Command Usage Count', value: 'Soon' },
)
.setFooter('Requested by ' + user.tag, user.displayAvatarURL({ dynamic: true }))
.setTimestamp();
if (user.banner) {
embed.setImage(user.bannerURL({ format: 'png', size: 4096 }));
}
return embed;
}
there is no throw here?
i'll add that
wait
show full error
line 28?
what version of d.js are u on
"discord.js": "^14.14.1",
version is 14.14.1
how come slashcommandbuilder is not in the docs
const { SlashCommandBuilder } = require('discord.js'); there is no SlashCommandBuilder
no there is
still broken thp
@warm surge get in here
also fyi embed.setImage, ur doin it wrong
How would I know How many voice channels my bot is in? this is in d.js.
Never mind I read the docs wrong.
every minutes too short right?
quick question the default vote time is 12 hours right? and can it be altered?
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.
alr thanks
One message removed from a suspended account.
One message removed from a suspended account.
anyone know go lang here?

how do i get the cpu usage
natively, like i dont want to use libs, just want a light weight way to get cpu usage
Does anyone know what would be causing the JSON to have an unexpected token or where this unexpected token is?
print the string out, and paste it into your vscode in a json file
Ahh I found the issue. It's replacing "\n" in the description with a newline
ah i see
How would I prevent JSON.parse from replacing \n with newlines in the strings
Thanks for the help :)
yw 
also you should replace all escape sequences
for good measure
which others ones would you recommend?
export default function EscapeRegex(input: string): string
{
return input.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&');
}
oh wait
we need to modify this
since we only need to escape backslashes
input.replace(/[\\]/g, '\\$&');
I think for now I'll just used the one which worked then worry about this issue again when I start getting errors (sums up all my code)
i think we will have to match actual character 😔
One message removed from a suspended account.
@solemn latch
One message removed from a suspended account.
hey, ill pay you 10k to leave this server
@half laurel do you want 10g?
fuckin ban this kid, it didnt work
leave tis serverr
this
if you want that 10ggs
and never come back
@solemn latch check general first
damn it
Lol what was it
trying scam a scammer, he aint gettin 10gs
Ah
being honest i thought it would work
ngl the only thing more annoying than cryptobros is people spamming 30 messages for them to leave or pinging 5 different mods for it
lmao
They’re bots, they don’t care what you say about them
he did say "10k brother"?
can i know by who a role was created?
fetch the audit logs using the bot (requires audit log permission)
also naming doesn't exist
naming?
TheTheType
One message removed from a suspended account.
TheTheTheType
TheTheTheTheType
wait let me take a look
what does that mean
oh boy
the code is open source
what is that from
Which file is this from specifically

I want to see that
I guess it’s not so bad
yeah I thought it was gonna be really bad but honestly it's fine
Ah yes, json database
use mongodb
it takes 1 or 2 weeks to get it reviewd
I hadn't seen that
they got time
I thought it would be shorter. No one complained about waiting over a week
I mean
back in my day
it used to be months
so I wouldn't complain about waiting 1 week
everyone complains about waiting a week btw
also, I remember this place being filled with turkish bot devs, where are they now
It was a test of endurance. Only the most persistent were able to verify their bot
Imagine waiting a month only to have your bot rejected for some trivial reason 
Yes, that's why I think the waiting time is shorter since no one has complained about it in recent days
the good ol' days
not really, cuz the q is over 300 bots*
bruh trying to fix a bug in my bot, but its been something like 6 months since I touched it last and I have no idea what half of this code does or how it works.
nice
I fixed the thing that was wrong but now its boken something else
what it is is an audio player that playes audio to a vc from a physical source on the server. The bot can join many different vc and stream the same audio but when it leaves it needs to set a variable to false
so that it can restart the audio source playing again when its called into another vc
the issue is that once the bot leaves and sets the variable to false it will not stream audio to discord anymore
player.subscribe is not a function
is the error
whatever player is does not have a subscribe method
let me see if I understood what's happening
the first time the audio plays well and the code that's erroring is running correctly
yes
then the second time it stops working
yeah but only if the bot has left all chats it was in
well you're changing the value of player
or the code that calls the subscribe method only gets run after leaving all channels
see I thought that too however this is the only thing that changes
where are you calling subscribe
i see it
see this is why I hate dynamically typed languages
I have bot.container.player AND bot.container.playing
and I typed the wrong one
bruuuuuuuh
don't worry about that
I have the stupid
lmao
well the bright side is now I don't have to re understand how the play command works
may I suggest using another language for the bot?
or even just using typescript if you don't wanna move from js
that'll help you in situations like these
see yes if this was 4 years ago when I started
but I don't have endless time to tinker with this stuff like I used to
so I just deal with what I have
I would have just used C# or something like my mate did since thats actually a usefull language
or python
imo using a strongly typed language will save you time in the long run
python is not strongly typed but you can use type hints for linting and intellisense
I hate js Now that I am some what accustomed to it, I don't like the fact everything updates and I dont like the fact that everything is dependant on like 400 dependancies
you would've gotten something like this had you used typescript
does strungly typed mean that the program will not run unless everything is written correctly? unlike js that will just run and then crash if you made a mistake and didn't catch it like I just did?
yeah pretty much
yeah makes sence
but as I said other than debugging this piece of crap and doing some programming for microcontroller projects thats about all I do.
but yeah would have been a better choice
oh well
also, just if you where curious this is the play command. dont ask me why some of it is repeated because I don't know. It just works.
yeah if I remove the bottom one I have to run the command twice for it to join, and then play audio. Doesn't seen to cause any errors other than it tryes to join twice if its already in the channel for some reason, I have no idea why I did that but uuuh it works so eh oh well. Ill just add a coment or something.
Who can make v14 .js commands?
If that's the current version I can
discord.js 14 or js 14?
ah
I think I skipped that version
went from v12 to v16
cuz updating stuff is a pain
Mb discord.js v14
bruh
I need Ban, kick, warn, timeout, demote, promote, help and mute and unmute
bruh thats just an entire bot lol
That's not half of it lol
I mean fair
Pm
but why do you need just those writen in v14?
If you are looking for a dev I don't currently take any commissions
You seem to be asking for something you don't have experience for or something that hasn't been done yet, but really need for your bot/server.
You can hire developers from Fiverr or Freelancer to code the things you need for your bot/server.
you updating from an old version?
Wdum
?
??
what does "wdum" mean
What do you mean
wdym: what do you mean
ah
Ty
no seen it with a u before
add meeeee on snap
Bros fiending in the god dam dev channel 
I mean are you updating an existing bot or something? and thats why you want this stuff written ?
New bot
ah
lol
sure
if I had the time I'd do it but yeah, not happening rn.
you could use existing bot, but you must clear the commands first
you should try typing in one message 
I mean yeah I could just skid code from github and that would work. however, effort.
so ping me if you need help. I will try to do my best!
dont ping him
k
lol
as u like
you got whole topgg laughting about that "deal" aka shittest deal ever
plus that wasnt even a fucking deal
because ...
anyways
i can code a bot for you
Keep channel on topic pls 🙏 this can be moved to DMs or not discussed at all
tabbed
oh sorry
@wooden ember
we're developing memes 🔥
and friendships totally
I'm developing mental insanity
im developing to have you add me on snap
@harsh aspen yoooo did you code that bot
I was just testing
anyways
One message removed from a suspended account.
anyways
i still need to try and scale my postgres
sure
@sage bobcat wanna see something
and its quick for querying some things but not others
const { Client, Collection , GatewayIntentBits , Partials, ActivityType , WebhookClient} = require('discord.js');
const dotenv = require('dotenv');
dotenv.config()
process.env.TZ = 'UTC'
// the client
const client = new Client({
intents:[
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildEmojisAndStickers,
GatewayIntentBits.GuildIntegrations,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.GuildMessages,
],
partials:[
Partials.User,
Partials.Channel,
Partials.GuildMember,
Partials.Message,
]
});
My bot doesn't seem to start and node process just exits immediately
anyone knows why
help please
One message removed from a suspended account.
Uh
One message removed from a suspended account.
One message removed from a suspended account.
wait
im bored
this is a mess
what
One message removed from a suspended account.
its my sharding manager?
why are you sharding a 33 servers bot
disapointing
One message removed from a suspended account.
i sharded my 2k server bot at 250 lol
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.
you can force it to be 1 shard to start with
meh
One message removed from a suspended account.
your welcome
are you kidding
I use bit number
that's too bad
cuz im nerd
it is not cool
cry about it
ok
One message removed from a suspended account.
its from github jk
yeah no
but consider using GatewayBitIntents
yo webster can you slide me the config.json too 🙏
bet
One message removed from a suspended account.
@spark flint
const { Client, Collection , GatewayIntentBits , Partials, ActivityType , WebhookClient} = require('discord.js');
const dotenv = require('dotenv');
dotenv.config()
process.env.TZ = 'UTC'
// the client
const client = new Client({
intents:[
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildEmojisAndStickers,
GatewayIntentBits.GuildIntegrations,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.GuildMessages,
],
partials:[
Partials.User,
Partials.Channel,
Partials.GuildMember,
Partials.Message,
]
});
// handling errors
process.on('unhandledRejection', error => {
console.error('Unhandled promise rejection:', error);
});
process.on('typeError', error => {
console.error('Unhandled type rejection:', error);
});
process.on('uncaughtException' , error => {
console.error(`Uncaught Exception: ` , error)
})
client.login("MTE0ODk5NDY3NDE3Ng.G.bLySq8Cx0")```
I tried to login but it says invalid token? why
BOT TOKEN
One message removed from a suspended account.
One message removed from a suspended account.
mine now
hack my bot
bet
One message removed from a suspended account.
fuck
why
send me it
is it a good reply to "thanks" ?
Leaking bot tokens just for fun
ik
I just removed it sir
hopefully I don't break rules
Stg there's nothing worse than accidentally pushing a token or secret to gh and trying to reverse the commit
Nah ur good
One message removed from a suspended account.
GOOD DINNER
should tell us your bot token
But this is development

lmao
that her code finner
it is ok
dinner
she/he meant to send this to let us code an AI bot to generate an image like she/he sent
this is for development purposes
@harsh aspen bot token?
you need it?
ye
for development purposes only right?
ye
why it tells me this
long story
const dotenv = require('dotenv');
dotenv.config()
process.env.TZ = 'UTC'
// the client
const client = new Client({
intents:[
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildEmojisAndStickers,
GatewayIntentBits.GuildIntegrations,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.GuildMessages,
],
partials:[
Partials.User,
Partials.Channel,
Partials.GuildMember,
Partials.Message,
]
});
// handling errors
process.on('unhandledRejection', error => {
console.error('Unhandled promise rejection:', error);
});
process.on('typeError', error => {
console.error('Unhandled type rejection:', error);
});
process.on('uncaughtException' , error => {
console.error(`Uncaught Exception: ` , error)
})
client.login("MTIwMDk2NTk3NjMxMzg0MzgzNg.Gzftp3.ZEJF1hBpVWYoZQux867GxpMg3QeNung5cc7tQ0")```
hope this works 
You thought I'd troll you with some weird names?
freeeee bot token
going to do you a favour and revoke that
because people scan for those and nuke servers with them
this just makes you reset it on the dashboard 👍
its revoked now
what
what
what
HOW
are u a hacker or something
HOW DID YOU DO THAT LMAO
MAGIC
this is how literally everyone revokes tokens??
HUH
im pretty sure discord.js and discord.py servers do this as well
i just have my own tool for it
guys
they are all revoked dummy
LMAO
are you a partner with discord
no
bro should be paid by discord
lol
nah
btw to regenerate your token, go to https://discord.com/developers/applications/1200965976313843836/bot
whattttttttttttt
and click "Reset Token"
how did you know my bot id
because tokens contain bot ID
true
what
oh no, i have the start of your user token
your bot token has your bot id
it is just a random set of words
your user token starts with ODY4NjMwNjYwNTg2MzA3NTg0
its actually not
hmm let me check
Luca's bot token starts with MjY0ODExNjEzNzA4NzQ2NzUy
do this one, new bot MTE5MjE4NzIzMTc2NzYzODEwNg.GIJHKT.tC86K5NI4nP0uqvuNU1ueZ8AQ6r8BEkaCWHyi8
868630660586307584 -> ODY4NjMwNjYwNTg2MzA3NTg0
teach me
lol
I will try to generate webster user token
mine reset every few mins
dont want try it
do you change your password every few mins?
for me.
unless you purposely revoke your own session
wow
...why do you do that lol
harder to find me
lmfao
let's make another deal
cuz user token can have lot info about your current account
ip, your credit card info
etccc
what no
read
explain how scam bots grabs tokens and ips
because that involves a scam website where they log the token there 
or malware, where they log your token there
but never through the token itself
discord only shows IP in datapackages
which takes up to a month to get
for what
you know more than them
i just know a lot of security stuff
lol
ive created "scam" bot for testing reasons and it could grab my current ip and my debt card info and my phone number
and what did the scam bot require you to do in order to scam you
use qr code like "fake" wicks bots does
it came up with my fake ip cuz i was on vpn at the time
Who cares about Webster IP anyways
do you want it
lol
Idc so no
I can get easily btw
ill grab it
nah
i got over 70s ips for many reasons
each one of them are fakes
indeed
I can grab it using grabify
ok do it
i could add more if i want to
LMAO
but not 34 trillion
@oak cliff IP logger 
?
lemme just wheregoes it
give me sec
lol
didn't even set a real redirect
how did we even get to this discussion
tldr; its literally not possible to get someones IP from their token

wait
just be safe and don't leak your token, if someone revokes it take that as a security sign 
it was
a grabify link
i told him do it
the redirect on the grabify was set to a fake link tho
im changing few settigns
leave it
changing my ip to noobs
so this would be funny as fuck
use 10
WHAAAAAAAAT
bro
discord must hire you
fr fr
https://discord.com/careers apply here
owning 309 quintillion IP addresses is hardly job worthy lol
who posted that ip logger
uh
I'm sorry
i told him to
no
-m @harsh aspen Don't post grabify links | 1h
nooooooooooooooooooooooooooooob#0 was successfully muted
what
if in doubt, -b 407859300527243275 trol
lol
dont joke about that shit
poor Lgor
thats not possible my dude
you sure?
changing IP on your device only works when you are using local devices
as in private IPs
not public
not what i meant
my wifi rounter could change public ip some fucking reason
its a feature only really useful for system managers needing to maintain a common IP system for devices etc
still not possible
One message removed from a suspended account.
its like if i set my routers public IP to 1.1.1.1 
i could change it to 0.0.0.0
i did it once
which as funny as fuck
if you visited https://debug.rest/ and looked at the cf-connecting-ip or x-forwarded-for headers
it would still be your actual public IP
which is assigned by your ISP
your ISP has to own the IP range and assign you an IP within their limits or you just wont be able to use the internet
either that or it fallsback to your actual allocated IP
One message removed from a suspended account.
@harsh aspen go check
One message removed from a suspended account.
One message removed from a suspended account.
hi
pc fixed
One message removed from a suspended account.
lmao
tired and ill
One message removed from a suspended account.
One message removed from a suspended account.
my pc wasnt connected main server lmao
One message removed from a suspended account.
theyre just impersonating them
One message removed from a suspended account.
https://www.linkedin.com/in/mikebang real person
not suprised they removed their pfp now
One message removed from a suspended account.
~~ Hi, Im discord Staff Member~~
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.
lol
bruh
One message removed from a suspended account.
One message removed from a suspended account.
that sad
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
bad internet kills 😭
One message removed from a suspended account.
this is what i mean
One message removed from a suspended account.
One message removed from a suspended account.
probably because a high res monitor?
yeah i use 80% zoom too 
| — —
monitor configuration
what's the difference between the normal npm registry and https://npm.pkg.github.com/
well my only question is, does it appear on npmjs.com
one is github packages which is different afaik
bro uses a macbook?
i do
hell no
lol
first time i used mackbook, i wanted punch that shit so hard
michaelsoft binbows
wtf is this?https://github.com/OceanicJS/Oceanic
Since when was there a new discord library for js
im about test this
there's like a billion discord libraries for js
like eris or discordjs-light
this one actually looks similar to djs ngl
honestly i dont get why people kept making more discord libraries for js
Probably because of the popularity of the language itself
but people dont need more libraries
This is true, but it seems to me that everyone tries to "test themselves" in the hope that their library will attract some attention
it won't, at least not for long imo
compared to Discord.js
unless Discord.js gets discontinued which is what happened to Discord.py
I dont feel like changing shit rn
its 3 fucking Am
whats up
okay so Im trying to find the process with high cpu usage. basically from /proc dir.
but like if i list all processes in /proc/ there could be 100s
var processes []ProcessInfo
files, err := ioutil.ReadDir("/proc")
if err != nil {
return nil, err
}
for _, file := range files {
if file.IsDir() {
pid, err := strconv.Atoi(file.Name())
if err == nil {
processInfo, err := getProcessInfo(pid)
if err == nil {
processes = append(processes, processInfo)
}
}
}
}
return processes, nil
}```
i have some code like this.
will this for loop cause problems?
cause there could be thousands of process running
i only want like the process with high cpu usage
i have some logic to get cpu usage, when it reaches maybe 80% i want to know what process is running
is it possible to get that info

im using the script from here to calculate cpu usage
this is the spiritual successor of eris
since eris was unmaintained for quite a while someone took it upon themselves to make a new eris
Why I just decided to start maintaining an already existing ecosystem. There wasn't and still aren't really many good modular libraries. You can say Discord.js now, but their ws implementation for example is pretty bad. Really bad actually.
libraries that try to be all in one are also pretty bad imo because it can lock people into a specific stack. I did everything I could to stay in the discord.js ecosystem until it just didn't work for me anymore
I would go for making my own library but its just not feasible for me anymore. I know next to nothing about the discord ecosystem anymore so using an already made library for a small project is fine by me
same
wait wait wait
when you index an enum in ts is its value by default a string
like Enum[key]
why tf do I have to parse int it
😭
what
it seems by default SomeEnum[someKeyInEnum] returns a string instead of the type that the value is
so ```ts
enum SomeEnum {
Key
}
console.log(typeof(SomeEnum['Key'])) // string
whereas it should be a number as enums default to `0,1,2,3` etc
unless I am wrong
enum SomeEnum {
Key = 0,
A,
B,
}
``` what about this?
yea its fine
but also why
Also wtf
Why is typeorm returning undefined for one of the properties

huh it does it for any table relation fields
Here is my code for an infractions list, what you guys think?
infractions.map(({ id, reason, moderator}) => ({
name: `**Case ID:** ${id}`,
value: `**Reason:** ${reason}` +
(detail || "") && ` | **Moderator:** <@!${moderator}>` +
"\n",
inline: false
}))
//...

tip: abuse the object destructuring syntax
why this
just turn the entire thing to a one line template string
One message removed from a suspended account.
yuh uh
This is probably one most cursed snippets of js I've ever read
One message removed from a suspended account.
One message removed from a suspended account.
read the original
and i don't want nested template literals
One message removed from a suspended account.
what does that even mean
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
wait until you see my rust code
https://github.com/null8626/archive/blob/main/archive/20240112-npplug/macros/src/lib.rs
idk anything about lua but I know for a fact that there is probably 0 possibility that the compiler is bugging
bump
I mean how often are you running this function?
Looping over 1000s of items shouldn’t be a problem unless you’re doing it hundreds of times per second
mmmm not sure currently. but like im thinking when the threshold is reached i want to see what pid caused it
once per second is worst case
Once per second is just fine
isnt there a better way?
like how does htop do it?
i know they sort
but do they really list all?
From what I looked up, I don’t think there’s a standard way to get all processes independent of OS, and on linux it seems the standard way of doing it is reading the proc dir
However it does seem a brave few went as far as to say you can write a kernel module to run on the system level for something like this
can you share link pls?
You really shouldn’t go for a kernel module though
That’s a very questionable idea
One message removed from a suspended account.
btw do you know any way i can use to get like aws credits for freE?
some type of accelerator program?
https://getcloudfriendly.com I'll leave this here, in case anyone thinks its useful. for devops
- if (!this.deferred && !this.replied) throw new DiscordjsError(ErrorCodes.InteractionNotReplied);
^
-Error [InteractionNotReplied]: The reply to this interaction has not been sent or deferred.
- at StringSelectMenuInteraction.editReply (C:\Users\FRC 7722\Desktop\Projects\Bots\RoSearchBot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:157:48)
- at InteractionCollector.<anonymous> (C:\Users\FRC 7722\Desktop\Projects\Bots\RoSearchBot\commands\roblox\usersearch.js:237:29)
- at InteractionCollector.emit (node:events:527:35)
- at InteractionCollector.handleCollect (C:\Users\FRC 7722\Desktop\Projects\Bots\RoSearchBot\node_modules\discord.js\src\structures\interfaces\Collector.js:133:14)
- at process.processTicksAndRejections =(node:internal/process/task_queues:95:5) {
- code: 'InteractionNotReplied'
-}
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.
FIXED
no permissions
either that folder has special permissions for some reason or a parent folder up the tree and is recursive down
Ive had it where npm has special permissions for node_modules
Of course starting vsc in admin just always works
Thou shalt not deem Visual Studio Code worthy of admin permissions
Hold my beer
guys!!1! why is my os filled with chinese spyware now!?? Bill gates is streaming 5G directly to my applications!!1!
thats because you gave the covid vaccine to your pc
real
real
I'm trying to allow users to test how their own custom messages look within Discord without having to do said action (for event listeners). I'm trying to replicate the current client's GuildMember object just for this instance so that I can emit the event with the fake data from the params I am building. How can I achieve this without globally redefining bot to false? I only need it to be set to false for this specific param.
How i can put AutoPoster? I need to my bot give guilds info to top.gg to got servers widget
need someone else's input
im bundling lua files
and i want the ability to set globals
but i don't know a good approach
maybe a function to set, and a function to get?
Slots games comment permission #support <@&817055174613794826> #getting-started #
what ever that means, sure. But you can't / shouldn't ping the staff especially without context.
@radiant burrow so I noticed back towards late of 2023 you were facing an issue with channel permissions and people not being able to edit the channel despite having the permissions given to them. I am facing the same issue but after reading the forum I couldn't solve it the same way. I am wondering if you have any insight onto this.
I am essentially creating a vc for a user then giving them the permission to ManageChannels and ManageRoles, yet they can't edit any channel settings for that channel made for them
this code looks weird
also you didn't globally define bot to false btw
that only sets the property on that GuildMember instance
considering the config you passed on Object.defineProperty, i suggest you to just do
member.user.bot = false;
and well, you must set it to false every time because you are using your bot's own information to construct mock information
Bot is only a getter
That's why I used Object.defineProperty
Wait no I don't think it is actually
I originally used member.user.bot = false but I can't remember why but I changed because of some reason
however, its not supposed to globally redefine bot to false for my client, however when I run the "bot_kicked" test it is still set to false
you can, use the user data of the very user who runs the command as mock data
oo yes i remember that. does this help:
to paraphrase, just the view and manage channel isn't enough for a vc. you also need the connect permissions. that's what worked for me, I think
I'll try again by using member.user.bot = false so I can actually see why I decided against using it. I was considering to just use the user's data however, for bot kick there's also a moderator which I've got set as the user running the test so when they see "@user10 kicked @user10" and the same avatars, ids etc it will be slightly harder to design the embed, though I suppose I could set the moderator to the client
can't you just extend the GuildMember class and override that getter?
class FakeUser extends User {
get bot() => false;
}
class FakeGuildMember extends GuildMember {
user = new FakeUser();
}
``` or smth
I'm not sure if bot is a getter, I think it was the createdAt property I was thinking about. Though, I do have a way to do this without needing to manipulate anything which I will most likely do.
still, just extend it
whatever u need to use mock data for, simply hardcode in the extended class
it'll inherit whatever logic the parent has for the methods u didn't override
alright, ill set it up. thanks
Thats strange because I do give them the connect perm for the vc that is created for them
yet they still cant edit any settings
hmm it could be an issue with like group perms or something?
I am starting to wonder if its a 2FA issue cause I enable it for mods, maybe discord is thinking since they now have that permission for the channel they need 2FA enabled
discord permissions are so confusing and configuring them with a bot is even worse
ohh maybe
maybe try disabling that or having the person add 2fa
Okay so yes, this was the problem
Which is fucking dumb 😭
man that really is
I guess ima just make slash commands to manage settings
hello, im trying to create a wallet verification website, and im dont have much knowledge about this, is there any guide about integrating siwe with rainbow/toolkit in next js ?
I'm new here but just curious if it's okay to ask about Bot recommendations? I've been searching for a bot that is easily customizable for MMO RPG functions for a discord server. Specifically, I'd like a bot that can reward members for completing tasks/quests that you can specify in the bot and people would gain levels that way instead of just talking in discord. Also one that could grant customizable items and coin as well as keep balances. Also allow members to trade with each other.
So basically it does the follow
- Create customizable tasks/quests and rewards members for completing them with exp/items/in game currency
- Allows the creation of customizable items such as potions, weapons, armor and what not
- Allows members to trade items and in game currency with each other
- keeps track of everything and has a scalable leveling system for experience points.
This sounds like something you would need to hire someone to make.
A lot of work to be honest
Yeah that'll probably need to be tailor made
Youre gonna need to hire a dev for that, im currently developing an mmorpg bot myself (for 4 years already) and its A LOT of work. Hiring a dev for this won’t be cheap either
numbers 2 to 4 are pretty easy, tho point 3 is somewhat annoying to deal with on discord
number 1 tho is fairly hard if you want the quests to complete automatically
you forgot the 5th point, which is goddamn hard to make, which is the game itself
Yeah working on that system rn for my bot had to rewrite a big portion of the handlers
Trading is a pain in my bot almost all bugs are with trading
Had to patch like 5 duplication bugs already
most of the pain of making a discord-based trade feature is that you need to lock every other inventory-based command until they finish the trade
if you're, however, willing to be more flexible, there's Epic RPG bot https://top.gg/bot/555955826880413696
Yeah I use something called states and a user can only use one command that affects their profile and takes time to complete at a time
I use a pessimistic approach
basically a trade instance is created, the user can add whatever they have at that moment
then when the trade is being finished, I re-check every item again to see if they still have them
if a single item is missing, the trade is cancelled
Or (shameless self plug) https://top.gg/bot/450005555759677440
Mhhh yeah I already had the state system in place since most of the commands are interactive and take time to complete
So yeah it’s kind of like a lock
Is assigning multiple variables the same number like this
let thing1 = thing2 = thing3 = 1;
Okay code? I'm not always 100% on doing things the proper way, but this code does work fine but I wonder if its just better to write it
let thing1 = 0
let thing2 = 0
let thing3 = 0
the former wont work (or maybe will, because js hardly errors for anything)
because "thing2" and "thing3" aren't declared
you'd need to do
let thing1, thing2, thing3;
thing1 = thing2 = thing3 = 1;
``` or ```js
let (thing1, thing2, thing3) = [1, 1, 1];
tho idk if the syntax of the latter is correct
Thank you all for the information'
I did see the bottom one on stack. I guess I wasn't sure because to my eye it looks like an array
I'll try it.
Though it does complain about the bottom one.
I'll just do it the standard way.
i’m being stupid and forgetting the name of the things that go to the top of the page with an x and when u click it it goes away forever, kinda like a banner but there’s a name for them
One message removed from a suspended account.
Notifications? Lol
toast?
what do you all do to promote the fact your bot has vote rewards?
and it’s like 100% width along the top, it’s meant to be there as soon as u load the site
perhaps a small message in the responses/embed footer
like one of those announcement banners?
I've always just had a command called /vote which tells them, and they find it that way. wondering what better ways there are that aren't too in-yo-face
waiver
yea
not sure, that doesn’t sound right
this?
yeah
That'd be an alert/announcement banner, wouldn't it?




