#development
1 messages · Page 13 of 1
Hello old wise one
thanks :]
should I sent you the invite in dms?
alr ty
Go ahead
This is why I think they used OAUTH Cus how could they get my token if my 2fa code expired after I logged in with it?
Okay but here's the thint
Not possible still…
Oauth is so they don't get your token.
All they get is a temporary access token that has no real permissions
All it can do is get information with the scopes it was provided
Like I said oauth isn't set up in a way they can just steal your account with it
Yeah… I get that but somehow they got my token and I had 2fa… only way to get my token would have been if I actually logged into discord and they saw it on my browser inspect element…
But they didn’t.
It’s confusing. Idk how they did it but they stole an old alt account that used 2fa. And idc to know how they did it as that just makes people stop trusting my site that logs you on with discord.
Also just to let you know
No? Many ways to take your token. 2fa is useless when it comes to token stealing
Even when using oauth they'd not be able to bypass 2FA to my knowledge
Token is a direct access to your account, 2fa is literally useless for it
2fa is just for when someone uses your login
And that's even assuming oauth was used here
Doesn’t seem to… but it does add you to servers and add a bot to a server with all the relevant perms tho…
It’s kinda sus. Doesn’t tell you it’s adding you to a server just click the join button on the site and go to discord on your own and you’re in a new server.
if you give it perms to yes
But I still doubt so cause oauth is set up in a way where the credentials is stored on a server for verification purposes
discord will tell you before you login if you're giving an application permission to join a server for you.
As if people actually read it
It should still tell you “you are about to join X” and show you the welcome stuff… not just add you…
I think you just ran across a token stealer and was dumb enough to fall for it
There are other reasons to have that scope other than joining a specific server
Probably… this was years ago when I did dumb shit because I didn’t care…
That's why it doesn't show "you're about to join x"
For example, bot lists which server discovery
That u can join by pressing a join button
yeah, it realistically cant just say that
this is the best they can do.
https://i.imgur.com/31QBfdV.png
It redirects u to the webserver
it redirects you to the redirect url
It doesn’t let you know it worked. Doesn’t tell you you joined… unless the site tells you.
I can show you it doesn’t…
It doesn't have to if you agree to them joining a server for you
👀
Do you know hoe the oauth flow works?
Oh…
Like, the redirection part is VERY important for that
Wait no redirect url…
its literally required
This is another reason why people who don't know anything shouldn't try and speak malformed facts
That’s the page you got sent from…
The redirect url will contain the exchange code, which the server will use to get an access token
nope, its a callback url
It happens so fast you don't even notice the page changes
No in my integration it sends you to a return page that then sends you to the page you clicked the join button on…
I mean we have gone through this already, I did explain it
I think I fucked up my return handling…
This conversation is giving me anxiety
An oauth that doesn't redirect u to the service's endpoint makes no sense at all

Now remember what I said 10 mins ago
Nah I’m here wishing the join oauth sent the user to the server not the site…
is that even possible?
Cus some servers require you to pass the member screening
No, that’s why I have a complaint.
How tf do you wanna get the access token then after the user did authorize himself?
like using oauth is it physically possible?
What do you mean woo
Here have some satisfying gif
Members are clicking the join button on the site but not seeing the welcome message that tells them where to go to get access to the rest of the channels…
Most unsatisfying part about that is how uneven the top is
That’s my issue… they get 0 welcome screen or member screening.
oauth HAS to redirect to the webserver, so it cant ever link to a discord server can it?
I mean in a redirect it has to
But you can make it redirect later to a discord invite
What joins u to the server isn't the authorization page, it's the service
so if you really want that you can
Couldn’t you just add your server url from the web browser client…
Yeah the server needs to receive the access token and the confirmation the authorization was successful
The auth page does nothing other than send the code to the service
Or does discord block that?
Like, literal nothing
That's assuming your using authorization code grant
Discord supports multiple grant types
Isn't bot scope the only one that doesn't use code grant?
I think maybe it’s best I don’t use oauth to get users to join my server… it seemed simpler incase the invite link changed…
Authorization code grant is just the most commonly used as it has a longer expire time iirc
But it’s just causing more issues for users because they don’t get the welcome message.
Can't u simply use a link button?
Or member screening.
Implicit grant gives you an access token only and can't be refreshed
Ye. But that’s the issue. Links change.
Just make the invite permanent
The benefits of authorization code grant is it gives an expiration time and a refresh token to get a new access token
Or make the bot refresh it on invite event
I assumed everyone used authorization code grants
Sometimes implicit is the way to go
You never know if you delete it by accident and make a new one 😂
It all depends on what you wanna do
Make the bot refresh the url when the current one gets deleted
I still have sites that have my custom invite but I stopped paying for extra boosts…
Lot of hastle…
tbh, if you're inviting via a button dont use a custom invite
It was those linktree things…
Just get your server popular enough to use vanity
Simple solution then you don't gotta worry about invite deleting just gotta make sure boost lvl 3 stayss
😎
Yeah… that will be the day. I can’t even get my friends to chat or ask for support with my bot there… and that’s what the server is for. They just call me.
I just lock invites so only I can create one, then simply make it permanent
2 years and it's still there
Support Discords are difficult to grow.
Hey, so I just uploaded my bot to the site but the css don't work. I mean the css works but the colors don't. Here it is.
<div class="content entity-content__description css-18r9pyf"><style>
<style>
span {
color: #6a0dad;
}
span,
h1 {
font-weight: bold;
}
</style>
Despite being linked actively everywhere the support Discord for my bot sees less than 2% of the bot users join
smaller support discords are better imo.
Probably cause the bot never really has issues atm
I have a direct support line at my bot's DM, so people can simply ask there and one of my supports answer it
Well just redirect your sub domain to your invite link
It’s support for a lot of things… it’s basically THE server for my company. So it’s everything. It’s the support hub, the place to meet other creators, the place to suggest new features to any of our services.
No need to join anywhere
Can’t be easier
Yeah, we have that do. A mod-mail
But I regret making it honestly, I should've just forced them to join support discord
This is why I’m making a support ticket command… links right to my support site helpdesk.
Random/simp messages?
Haha, that's part of it for sure but is a non-issue
I don’t fancy paying a bad live chat service that I wanna replace, £50 a month to get access to their dev api to add it to my bot DMs…
fun
I like it
Imo unless your bot is huge the best support method is a support discord.
If its too big then a queued ticket system might be more managable
Whenever I ain’t “relaxing” or sometimes when I am… they call me with a task I have 4 hours to do but it needs 8 😂
My support system is for payments as well.
That's why you say it needs 12
How many people does your bot serve though?
There's already giants in the industry so doing it with the goal of getting famous seems obsolete unless you offer a completely unique service that is hard to come by. Which that in itself is an issue as the market is so flooded with multipurpose bots that already do what you do
I don’t want that info in a discord server. So if you log a ticket, your payment account is tied to your website account anyways.
Not sure. I just turned it on for the first time in over a year after a re-write last week.
Trying to grow a bot is kicking yourself in the groin at this point
My biggest bot is only 2.3k servers rn and we still can actively manage support with no queue. I imagine you need 100k+ before managing support becomes an issue
And the servers adding it from topgg aren’t even initialising it to even view their member count…
My bot literally doesn’t even look at your server unless you run the setup command.
Doesn’t matter that it’s there.
You'd be surprised how easy it is without a queue
You just have to have the right helpers
I don't worry much abt growing fast, leaves me time to improve my techniques so I can improve shiro on the way
why though 👀
shouldn't it auto initialize?
Yeah. I mean my bot is social games so there's very little room for people needing support
A dev should hardly ever offer support in a large bot
Unless it's a serious broken issue
Nope. I want them to customise some of the responses.
When a bot becomes big enough you get volunteers or hire helpers
And let them handle the non serious stuff
And approve features. So I just make it wait for their input. Then it will allow you to use commands that impact the server.
Yeah I already do that with my tiny bot xP
just 4 friends with moderation access to deal with reports and tickets
Things like interacting with my companies api is always active as that’s able to be done in DMs
Only discord related development I'll ever do is oauth and gateway
That's the only discord related development I find enjoyable anymore
Come write some cards for me 
Plus… I really need my support command to tie to my helpdesk because that’s linked to stripe…
Does that have anything to do with gateway or oauth haku
Neither ig, it interacts solely with my game framework
Noice
You gonna have blackjack?
I need to work on blackjack again. that was such a fun bot.
Invite me to it's support server or whatever and I'll think about helping
Idm doing that much
If I ever make a bot it'll be based on gwent
I NEED
But that's a project for another distant future
I’m addicted to throwing fake money away on fun blackjack games on discord.
Make blackjack but it's biased
If anyone plays against you no matter what you'll win
It’s the rush of gambling… without any risk.
Like unbelievaboat… you just do /Slut and you get money and can go play blackjack again 😂
Depends on how devoted to the bot the person is
True…
Fake money could hurt em just as much
Where I’ve used it you got like 20 billion a day just for being active.
mine was quite interesting.
it was a 1-5 player v dealer blackjack with real simulated decks.
It was so amazing.
So we just spammed blackjack.
Ok this sounds better… I need this version. It’s the gambling version of the CAH commands 😂
Does anyone know if that Auctioneer bot is still around?
I remember it used to be quite famous
I think so…
I don’t think it’s the same one but I think there’s a bot that took its place.
Probably not as good as the old one then
I actually was good friends with the owner of it at one point
You know what I’ve come to hate now…
Self bots sending me spoofed discord invite links from large servers or legitimate giveaway bots used by reputable servers to host their giveaways being used by other servers to spam people scam links saying it’s “free nitro giveaway” when I didn’t enter….
me and some friends used it to learn to count cards, lmao
nope, never would in a casino.
mostly because I sucked at counting lmao
simple math, still cant do it 😄
Also could lose your life depending on where you're gambling
I find simple math hard... But complex algebra? Easy.
This... This is why I stick to Sky Bet and Sky Casino
Totally not because I get X free credit a month on both as a Sky Platinum VIP lol
Something about paying over £200 a month to them...
good, dont
Ok best TV package I could get, best internet I could get... Business internet ontop of that and a business mobile... They give me free credit on their gambling apps every month, its normally between £5 and £15 and I use that, never use my own money.
The issue with gambling is the "What if the next try is a win?" voice on the back of the head
And then I use whatever winnings I make to pay my next bill.
The best part is sometimes it is a win
And then it's "Well I won when I was least expecting so let's keep going"
Then they lose all their money
A fun thing is that cassinos structure their business in a way that even when they lose, they win
Yeah see I just play with the reward money and never my own money. I dont have this urge. I just play to have fun. I like blackjack and roulette.
I had to learn abt it when I was implementing a slot machine on my bot
I win maybe once every £10
One thing movies always got right was how casinos work
with bets of £0.50
Some of em are so corrupt they don't care about killing
Yeah UK gambling sites are way more regulated lol.
I doubt ima have my kneecaps smashed in for winning at online slots using a reward bonus credit from being a loyal customer to the company that owns said online casino.
Yeah... Only been doing it 2 year...
wait wot
Ah yes, it was 2 years or so ago
We even made memes about hating memes
It was a laughing matter
we make memes about america being the only place you get an AR15 in every happy meal...
Reddit even had people ddossing gov sites
UK political body tried outlawing memes
And we tried to ban that?
lmfao
The best way the british get to do what we do best? Shit on america? And you think we wanted to take that away?
we are so good at being on topic tonight ^_^
oop
Woo
meme command development.
You already know this is a 3rd general
You see, it's had to talk abt dev in this channel
Don't try and stop it
It's...idk, it's just natural
close enough, we are discussing gambling because... gambling bots!
I mean you have a bunch of ADHD developers in a dev channel...
Yes and memes cause meme bots
one topic leads to another...
Glad you get it
and suddenly you end up with shitting on a country for stupid politics that would have taken away one of the best things to use in bot dev.
Honestly you guys might as well just rename the channel general-3
gen-3-with-added-dev
Then again people ask about dev in gen...
Ok yeah...
We try and send people to dev if they ask in general or support
But sometimes... They need that dev support cus it ends up being they messed up putting a webhook endpoint into their topgg page...
That goes into the api channel then
Woo just embrace what's happening here
Yep
Now you've killed the only active channel
wait wait wait
I'm tired, I can't give warnings out
😔
Want a foot massage?
No, I want to sleep ^_^
Oh go do that then tf
Smh
This is dev... Someone tried to pass a local directory as a URL... and exposed that I put the google image review api before the check for it actually being a URL cus I was tired lol.
Not woo becoming nom
This is like George Orwell's book, uh 1984
like it was optional... coulda left it blank...
If you dont know what 1984 is about... get it and read it...
I read documentation
Cus of time restraints...
that is literally 1984 if you don't know what 1984 is about
They did, and a lot of memes use it as a reference
pretty sure ryan reynolds mentioned 1984 as deadpool...
I'm never going to read it
might have the movie mistaken...
and actor... cus a lot of movies make jokes where they reference 1984...
So minecraft got a new version
1.19.84
Here's the Hangul Chart
The censor update
LMAO
Why do I feel like that is actually what minecraft set the update number for chat censoring to...
Okay I'ma stop before woo actually bops me
👀 do you delete the config when the bots kicked?
Yes
but incase that fails...
I routinely have a prune command running that clears the database of servers it isnt in
I used to but...it's better to mark it as to-delete
Then delete 1 month later
People mistakenly kick the bot sometimes
might be deleted quickly for some servers then
tho under GDPR I could technically keep the sensitive data for 3 months and non sensitive data for 3 years...
I have 4 crons
ideally things like that would be consistent, like a delete at timestamp.
Minute, hour, day and month
00:00 GMT on the 1st of every month.
well as the kicking of the bot is meant to delete the data, the cron job is just a backup incase that fails.
so it is basically a redundant feature that has never really deleted anything from the database.
I dont like keeping any data I dont need. So delete when the bot isnt in the server.
meanwhile I'm keeping all the data for as long as possible 👀
Except incident logs like kick and ban... Becase a user can log into my site and view a list of all incidents tied to their discord account datiing back a year (the timeout window to appeal the incident and improve their rating)
I cant under GDPR...
like they say at most 3 months after its not needed. But I stick to as soon as not needed.
imagine being in europe and having to comply with data laws that screw over small developers
Is the data u generate urself held under gdpr?
all my data is anonymized
I hold all data under GDPR to screw myself over but let my users feel safer lol.
like I went as far as only storing a discord ID about a user in the database lol
I request their email when I need it.
And it works as my site only has discord login.
(for now)
^
Is discord id considered anon?
No
Like, you can't really track down who owns the id can you?
discord considers it anonymized
Nevermind...
Like, you can only find the id owner if you're in the same server as them
Guess im overkill on what I consider personally identifiable.
Other than that, it's as useful as a hash without source
see you say that...
wait nevermind thats oauth.
You already got their user details lol
I don't mean tokens or stuff, I mean the snowflake
1003513099636179102
I mean you can get it from your bot user cache...
Only you tho
so like they could not be in the server anymore and still be in the cache
sure, but is it pii?
But gdpr allows up to 3 month, I don't think anything will still be in cache that long
But speaking of the snowflake, you cant get the PII from that.
yeah
I make my bot reboot after the purge...
So even if it was, it aint anymore.
I think the only thing I have that can be considered sensitive is usename and guild name

Guild Name no.
Thats not USER information.
guilds are basically objects and have the data protection rights of a non living entity. But user information is GDPR.
You can keep guild info forever if you wanted.
just not the owner details lol
Just username then, which I delete after some time of not being in any mutual server
GDPR just sounds like it fucks over small developers because you need to check so much shit where it's kind of a gray area
Honestly unless you are asked about how you handle GDPR most people dont.
It's kinda hard to prove you don't
Im checked every 3 months by the information commissioners office as a registered company and one that has declared we handle payments through a third party.
They just keep checking in to see that my data handling is still in line with legislation for payment handlers.
Plus the UK just added 3d secure and I had to spend 2 hours on the phone with them to assure them that my site used it lol.
Thank god for stripe enabling it by default on their hosted payment gateways.
that's insane
but ig it's that or a slap on a wrist with a fine
I elected for every three months with me and the company being protected.
ah
But the developer that screwed up being reponsible for the fine.
more reasonable when it's voluntary, i can see where you're coming from
So if I broke GDPR... I get the fine. If some douchecanoe that wants to make a quick buck leaking my customer's data fucks up and does that...
My company suffers a reputation issue... And he gets a fine from ICO and sued by my lawyers.
And my day job...
Cus they are my top client lol.
and that is why... Only I can work with the stripe API on my apps.
that has the personal data, my database doesn't.
Wonder if you guys can see which node package I am proud of using lol
So many packages
This guy still using discordjs dev version
When v14 is already the new stable
Isn't fs a built in package why did you install it yourself
This is my dev pc... I dont even test on this...
Wait I require fs in my package.json?
You apparently installed it
pft...
Wasnt me
I told you, I aint the only dev working on this.
but yeah... I am surprised it hasn't defaulted to the stable v14 yet...
That will only happen if you install the stable version
Idk
Rest is a given cause it's already been had a stable release as well
Idk about API types as I don't actively keep up with it
I think I need to go clone my works package update checker to my pc...
Would you mind telling me if my package has sufficient error handling in it?
Like I need to know that if something goes wrong the user gets sufficient error messages.
Can't on phone sorry
It’s on azure they have a mobile friendly repo viewer 😂
From the web.
And the reason I’d link you to the repo is so I can manage your access 😂
Github is the same but I'm not going to sift through code on a small screen
Fair
But is reject(error) sufficient error handling on a package that calls those promises within exported functions with 0 error handling? Because like… one of them is let data = checkImage() and if I reject the promise is that going to show an error in the console and stop processing the other function that called it or will it error then try to continue the other function?
checkImage just calls a ML api to get details about an image being adult and other things…
The other functions handle that data to give user friendly outputs for them to use in their code.
Oh it’s 6am… guess I gotta go to work now 😂
u spent entire night texting 🤣
Ok, my "auto verification" system for 18+ is done. Not super pretty but it works great using opencv, facial recognition and google vison, text detection. Even works on mobile. Matches your face against 6 images, paper verification too. and has a threshhold of 80% matching. All done with a live-camera, no images can be uploaded.
Hows this?
My question is a bit long.
Mind reading it here guys? https://stackoverflow.com/questions/73189309/python-flask-web-api
Thanks
Testing apis and node modules for work, testing other people’s bots and watching House on prime. Now I’m adding the apis and node modules that use them to apps for work then I’ll spend all afternoon waiting for them to fail builds.
the life of a programmer
DevOps Engineer…
I'm jk tho have a good day at work bro
I cover from basic development to network security and rudimentary IT
I hate and love it 😂

I mean, it's great; sounds pretty useful
Is it for applications or is it a library?
just a bot made in py, php and sql lol
Sounds like what I implemented with stripe.
So good job.
🙂
You did what I pay per verification for free
Oh in a Discord bot, not bad
mhm mhm, the goal is to remove admins/mods from seeing IDs as often, or at all
Hold the phone ina fucking discord bot?
yep^
Well that's one way to step above everyone else
^_^
If it's made well I'm sure a lot will use it
…
its "ok" right now
Mate I literally been using it in a bot for a year 😂
Everything starts out like that at first
Nobody uses it.
You probably implemented it poorly

my reverse image search bot went from 0 users to 550k users in 10 days, im sure this will too 🙂
I'm kidding obviously
Yea if marketed right I'm sure
Gotta get it out there first
I'm sure you're talking about cached users, how many guilds is it in?
59
I’m using a more secure function and creating a digital ID card that once I get it to verify with the Uk government as a valid ID for online transactions, would remove needing your drivers license to verify age.
Then yeah cached users, but it's not bad, keep it up I guess
nice man
That’s why mine isn’t being used. Because I have it, just ain’t pushing it to servers Cus I want it to be an officially accepted ID. Meaning I wanna keep improving the platform it’s on.
Idk how the UK works so idk what you're talking about with ID
I don't think I'll ever make a Discord bot again, since I moved away from Discord bot development; my responsibility now is to maintain the biggest projects in the entire world (you know, Node.js, V8, LLVM, etc, etc), way better for a resume and job findings
Anyways back to work… issue with custom made libraries… you have to be around when it gets implemented for the first time as the one that made them.
Sure sure
I haven't bothered with Discord bot development in like 5 months or so
I am just looking for a project to work on at this point
A language with rust
It’s 2am and I’m telling you this so you better take it seriously
Coward
I'll trust the smarter people
Waffle how's your breakfast programming language going on?
Going good
Or is it an esolang?
Its pretty soggy by now
Esolang
I have one more thing to implement in the parser and then it’s time for me to move on to codegen
He put too much syrup on his horrible pancakes
What is it that you have to implement?
I think they fell asleep 
No no I’m just on another app
I have every part of the AST generated except for functions
Which is probably going to take me like 100 lines, it’s not very unique tbh
Oh, well that's pretty important, good luck on it
Imagine needing to do it in 100 lines
give an example of the lang
okay but an example of ur lang not the AST
hard for me to piece it together like this
Yea waffle
That’s essentially the equivalent of while(!false) print 15;
okay but what'd it look like in your lang
flipwhen (ain't) serve 15#
oh
While statements aren’t really very unique in my lang
import random, time, json, requests, hashlib, urllib, uuid; from collections import OrderedDict
def get_device(self, gorgo, khro, stub) -> dict:
payload = self.get_payload()
params = self.get_params()
req = requests.post(
url = (
'http://'
+ 'log-va.tiktokv.com'
+ '/service/2/device_register/?'
+ params
),
headers = self.get_headers(gorgo, khro, stub),
data = payload
)
return json.dumps(req.json(), indent=4)
The function is returning the same value when it should not. But whenever I restart the terminal, the value of the function changes and it will stay on that value. It won't change until I restart my terminal
For loops are where it’s at
I wonder how Gordon Ramsay would rate your esolang
It's getting hard to keep up with this waffle
ITS FUCKING RAW
"TOO SALTY!!!"
prepare(preheat i at 0# cookwhile i tasteless 10# stir i ==E i + 1) serve i#
Okay what is # again
Oh right semi
Waffle's way of integrating themselves to every part of the code
You should write documentation for this waffle
😉
# looks like a waffle so
Maybe I shall
Heeeellll no
I could just make rust interop for http stuff but I’m lazy
As long as it’s turing complete!
Gotta force Waffle to make a standard library for their esolang
Time to go get my Glock that every American household has
order salt as cryptoSalt
order onion as https
...
Only place that has more guns than population
See waffle
Maybe in BreakfastLang update 2.0
No idea what that is
I see
V14 do you have a select menu?
So you installed LLVM as a paperweight
I'm pretty sure CraneLift uses LLVM internally but wraps it
Probably
v13 had support for that stuff so yes v14 will as well
I’ll use it eventually, I just was told that it’s easier for beginners to start with cranelift
Hey @discord.js-v14, this guy has an important question for you
Okey thanks
Icic
your lang is not eso enough
What truly classifies a language as eso
Y'know I'm so under a rock that I just realized Math.random ain't actually random
V14 isn’t a person
@earnest phoenix why you never tell me this
it’s not? 😳
I didn't know you would be interested in it, if you want an actually random number, use the methods of the built-in crypto module
Well he’s sort of that arrogant, he counts for 10
What he probably means is cryptographically secure random values
What's one better way to do this:
let isPremium = false;
const promise = new Promise((resolve) => {
Premium.find({
lb: 'all',
}).exec(async (error, res) => {
if (error) console.log(error);
for (const entry of res) if (entry.servers.includes(server.id)) isPremium = true;
resolve(null);
});
});
await promise;
I'm going through all the documents and checking if the servers array includes the server id that they want to add to the premium server list.
Is there a better way to handle this?
I'm sorry, I'm getting support from the translation because my English is poor.
What is your question?
Uhh, for my command listener I just return if the document with the servers guild id doesn’t exist
Fair.
so for example
if(command.isPremium) {
// find guild id from table
// if not found return, else execute
}
really simple method
When do you check the premium status? Each command being executed or…?
I think I got it to work, now. 👍

RangeError [BitFieldInvalid]: Invalid bitfield flag or number: BAN_MEMBERS.
what is error ?
Are you using discord.js v14?
yeah
I would recommend checking the discord.js guide, it shows you what was changed from v13 to v14, so you can adapt to them
and this ? @earnest phoenixTypeError: Discord.MessageEmbed is not a constructor
pretty self explanatory. Discord.MessageEmbed is not a constructor...
you can't use it as a constructor
The MessageEmbed class was renamed to EmbedBuilder, all of these changes are outlined in the discord.js guide link I sent
How do I make a cooldown of commands?? Meaning that someone has spam commands, the bot stops him, telling him you have to wait 10 seconds to use the same command again?
Is there a way in github actions to automatically add secrets as environmental variables?
You can add secrets directly in the repository settings. You can then use these secrets when deploying with github actions
Basically
but they don't get loaded as env variables in github actions
I would need to do
env:
SECRET: {{ secrets.SECRET }}
For each one
didn't find that yeah
Is anyone here aware of how to work? I mean, if I have a clear order, how can I if the messages are older than 14 days, for sure, the bot cannot delete them? How do I make the bot respond to the user and say you cannot delete old messages, for example?
Filter out any old messages that you fetch
how
Can somebody help me? I've changed the system from Pycharm to Visual Studio Code and I get everytime this error.
command doesn’t exist on discord.ext
commands?
re-read my message
command is not exported from there. maybe it’s exported somewhere else?
@proven escarpbro
Yes?
..@proven escarp
What’s the question exactly? I can’t figure it out from the message you sent
What’s the problem?
I cannot for the life of my get my DNS set up with github
Surely you know if the messages that the bot wants to delete are less than 14 days old, it cannot delete them?
Github pages?
It tells me to use git bash and type DIG to test but my Git Bash is saying dig isnt a command
ye
Github pages should give either an A or a CNAME record. You can link this directly to @ (which is your host domain) to make it accessible to the website
Bots can’t delete messages older than 14 days
No do i send an screenshot?
github told me to put all 4 on
You sure? That doesn’t make any sense
Yes, when the user writes +clear on messages older than 14 days, the bot sends errors in the log and the bot disables
That’s not what they mean…
oh?
i have have this and the run
That’s not what you want?
Read the article I sent you.
I don't want the bot to send errors in the log
Then catch the error and don’t log anything
Also DNS changes can take up to 24 hours to propagate
yes i trying a catch
Keep this in mind
Ok.
but I do not know
Do not know what?
Yes, I don't know how to catch
@proven escarp do you know a good way to see what GitHub is seeing as my dns?
Are you using Cloudflare for DNS management?
What language are you using?
i just got a domain for cheaps on godaddy
djs
Link it to cloudflare. It’s gonna make everything much easier
is that free?
Yes
That’s a library but ok. In what part of the code does the error happen?
When the user deletes messages older than 14 days
In this case, the bot turns off
That doesn’t mean anything. What part of the code
Send a code snippet of where it happens
see prv
Not in my dms. Here please
Also you should have specified it’s in a purge command
Ok well you can simply check if the message is older than 14 days, if so, stop deleting it
Yes, exactly how can I do this?
@proven escarp Does a propagate faster than cname?
All my A's are done but cname is showing empty
everywhere
I’m not gonna spoonfeed you code. Simply check for the age of the message and compare it with now. If older than 14 days, stop.
What’s your DNS config again?
there shouldn't be a speed difference
CF has the fastest DNS propogation from experience
self hosted DNS clusters, for example, have slower as its not a cache based edge network
@maiden urchin your CNAME is on www not @. Is that what you want?
Uh no
When it says
CNAME record that points www.example.com to <user>.github.io.
Does it literally mean www.example.com?
Like it's not trying to say use x but this is an example?
But it explicitly wants me to use www.example.com?
No www is good. But right now it’s pointing to truthy.fun not <user>.github.io
All this know? Where do you help me?
I told you what to implement. It’s on you to implement it now.
Dear brother, I know what I want to do, but I don't know how to do it, do you understand me?
So when I entered here, I told you that I know the reason is from the catch, but I don't know how to make a catch
- Don’t call me brother 💀
- Then look on internet how to do a catch maybe?
@proven escarp brother
Ok my brother, thank u ❤️
LOL
Hippity hoppity one more user on my block listy
burburther
wtf not me


I mean, if I had all the correct ones done but there were also irrelevent ones
would that break the correct ones
Huh?
🥳
katie
poor wooompus
that depends on the target record, if that's fucked up to, then yes
if not, then no
as long as you don't fuck up your entire zone file
app.js
command.js
I've been dealing with this for 2 days. I don't know where is the error
@proven escarp
The error is pretty clear. Line 101 of app.js, db.set does not return a Promise, so you cannot call .then on it
Have you tried reading the documentation for your database?
DiscordAPIError[10008]: Unknown Message
what is this ?
I've read but couldn't understand anything. Can You Show Me What I Need To Fix?
you're trying to fetch a message that doesn't exist
Help me please
Kind of true, but I already mentioned catch once in the same code that needs the same solution to this problem?
Q How do I call 2 catch?
they already answered how to solve it: line 101, db.set doesn't return a promise
wdym?
I told you what’s wrong. I’m not going to spoonfeed code to you, only a promise can use a .then callback function. Just don’t use .then
like, catch isn't global, you need to use it wherever there's a possibility of failure
@lyric mountainHow to solve this problem?
declare catch anywhere where there's a possiblity of failure
check where that might possibly interact with the "non-existent" message
if it happens often, it may likely to be a bug
Already done, but not for this problem
This problem needs the same place as another catch
happens VERY often when the lib doesn't support thread (or stuff like voice channel chat) yet
what ?
at last, found a non-bitwise reason to use | instead of ||
check where cause that error message to happen
That’s a thing?
I thought | was only bitwise or
when bitfield
non-short-circuiting OR operation
unsafe
like, it's useful when u want to have an OR but wants to evaluate both sides
since normal OR short-circuits on the first TRUE result
You’re fetching an invalid message of some sort
what
don't it print the stack trace to console
^
gangsta until the man uses version 14

well... waiting a little bit longer and v15 will be out
of course with major breaking changes

time to apply for verification guys
I smell unorganic growth
I had that once cause some idiot added my bot to like 20 of they're servers but this time the bot got there legit
wonder what I type my brain empty again
you should remove the both from servers with the same owner
at least the last server which wants to add it
already removed that's why I can now apply
I'm saying that I don't rly know what to try
well I mean you will see the result soon enough
either you can apply after verification or not
lmfao I just tried searching for a name on a bot name generator website and it showed me "Devourer of Souls"
EmbedBuilder called BuildingAnEmbed().
Istg, imagine. 😂
while I doubt that, they may use camelCase instead of PascalCase
No, I've already died switching like 300 lines across 200 files.
how does "Butler" sound for a Discord Bot name? I think I may go with it
cough don't use builders cough
And I can't use regexes cause some needed to be manual.
(less to nothing to change)
What are your bot intentions?
Making a bot for wot.
Someone should really make a bot called A, and get the domain a.bot.
it's a multipurpose bot, got almost everything in it, but it's not that generic (imo)
Fair.
I don't think you'll get the idea unless u try it out yourself
Yeah, fair enough.
but either way do you think it would be a good enough?
I actually came up with it myself
Butler?
yeah
Butler is also a neat name, damn. It stands for helping which is legit a bot.
glad I came up with this idea then
gotta brand it before someone else comes up with it 
the hard part is finding a profile picture, do you guys think something generic will work until I get a legit one made?
well there are 9998 possible butlers to take... so not much of a possible branding at all
if I can come up with a innovative idea for the branding
do you guys want to help me pick a pfp?
I found 3
Not really
should I write the Application Details like
hello
my bot does...
or something?
Why was I pinged
nvm you fell asleep, too it seems
What
any ideas?
Man idek what you're talking about
just dont think about it anymore...
I'm trying to verify my bot? are you talking to me?
The more I come into this chat the more I lose brain cells
you're not the only one
You're the source of it rn fake
are snipes message content?
I don't actually store them I just have a single collection that gets removed every 30 seconds
Sniping is against tos
is it?
I mean the audit logs don’t keep message content an user has removed or do they?
Not really familiar with them at all tbh
If not then you’re basically not supposed to store or access content anyone has decided to remove
hm, fair enough
I think revealing something (maybe privately) publicly somebody has decided to delete is a concern regarding privacy
while I'm writing it if anyone notices any commands that need intents let me know
it just takes pfp and overlays it with a translucent rainbow flag
ah, I thought it was like the howgay command
idk, I dont use dank
ahh bet
do u show commands only if the user can use them?
might be good to hide commands that the user cant use
no, I show every single command
less clutter
I will in a second, let me just write the application
We feature an organized and well written groups of commands that any and all servers can use. The application contains many chat games (Such as https://imgur.com/a/k0SjxPF)
And even more utility commands. We focus on making it easier to moderate a server, for example when warning a person, the bot automatically stores, who was warned, the reason, time and the moderator! (EG. https://imgur.com/a/wJ8JDJm)
``` what else should I write?
just as a tip, don't rely on images as examples
yep
I doubt they even open the links
also kinda short
give more context
examples with text
how users use the bot
is there a dashboard
if so how does it work
during my verification I had to reply 3 or 4 emails because they didn't see the gifs I sent
lol imagine sending gifs
I mean, how else would I show my tcg?
oh.. :|||| but they say that I should definitely use images
Idk can’t you attach a video to the verification form?
you should yes, but they're dumb
Doesn’t it also show that’s recommended?!
better add than not
wouldn't install obs just for recording 10 seconds of footage
Wut
Tbh there are windows inbuilt ways how to record your desktop as well as very small but quite well working apps in the store doing this job for u
Dunno why people bother with that sort of program actually being developed for content creators
you guys think this is good enough?
I don't have much things to add there I don't think
Why do actually ask us about this?
Indeed
nono the imgur image shows an example of a phishing message 
Bro that's literally any multipurpose bot. You should add something unique.
Well from an outside perspective it doesn't seem like it.
but you say u detect links and then gives a link example
context distorts the intention
then what do I say
hm, what abt (As seen here: link)
… as shown in that screenshot
We feature an organized and well written groups of commands that any and all servers can use. The application contains many chat games (Such as https://imgur.com/a/k0SjxPF)
And even more utility commands (EG. https://imgur.com/a/b2kIVfb). We focus on making it easier to moderate a server, for example when warning a person, the bot automatically stores, who was warned, the reason, time and the moderator! (EG. https://imgur.com/a/wJ8JDJm)
We also focus on ways to protect your server. The bot contains many anti-raid features, such as Anti Spam, which prevents users from spamming messages in chat, as well as prevent the spam of profanity. The second feature is Anti Phish, it protects a server from malicious URLs and automatically removes them. (As could be seen here: https://imgur.com/a/zo34u1v)
Recently, we've also included a couple features for the members of a server. One of them is the AFK Module, it let's a user design a specific AFK status, which gets relayed to the person mentioning them whenever they are AFK. The second feature is the Welcome Module. It allows the moderators of a guild to pick a designated channel and message, which will welcome any new members joining their server. (EG. https://imgur.com/a/yFcCayY)```
okay that's everything I wrote so far
gonna go over it to see if everything is written ok
and lmk if I'm missing anything
paragraph please
Funny thing I wanna state here actually is the fact that your screenshot shows the spam link and member
the link has en-example-message inside it
Seeing that screenshot can let somebody think, great you removed the message with the malicious link and then showed it again
how else do I fucking show an example then 😭
Which actually is the case it seems
also, that get's forwarded to the log channel
the actual message user sees is different
Well nobody can see this on the screenshot or can know that, don’t you agree?
what do you mean?
then should I add a disclaimer idfk??
better?
Maybe something like the screenshot shows a log of an auto moderation event which has removed a malicious link; the notification got posted in a hidden channel then
that is being posted in a hidden channel
We feature an organized and well written groups of commands that any and all servers can use.
The application contains many chat games (Such as https://imgur.com/a/k0SjxPF)And even more utility commands (EG. https://imgur.com/a/b2kIVfb).
We focus on making it easier to moderate a server, for example when warning a person, the bot automatically stores, who was warned, the reason, time and the moderator! (EG. https://imgur.com/a/wJ8JDJm)
We also focus on ways to protect your server. The bot contains many anti-raid features, such as Anti Spam, which prevents users from spamming messages in chat, as well as prevent the spam of profanity.
The second feature is Anti Phish, it protects a server from malicious URLs and automatically removes them. (An example could be seen here with a safe URL: https://imgur.com/a/zo34u1v)
Recently, we've also included a couple features for the members of a server. One of them is the AFK Module, it let's a user design a specific AFK status, which gets relayed to the person mentioning them whenever they are AFK.
The second feature is the Welcome Module. It allows the moderators of a guild to pick a designated channel and message, which will welcome any new members joining their server. (EG. https://imgur.com/a/yFcCayY)```
- only visible for moderators to take further action against the user posting this stuff
this makes it look much better
Tf that text wall

??? what
You will have to respond to a lot of emails asking you for details
The purpose you keep guild informations doesn’t specify anything
You wanna explain why you keep informations like a guild ID for example
The reason would be to identify a guild and to store settings in your database using the guild ID as identifier
You need to be very specific or questions about further details will be the response
Also if you don’t store the data indefinitely then better don’t mention it all, it just causes confusion
Well don’t wanna answer the questions for you tbh
you will receive a response to be way more specific about the questions
How can I summon the name and photo of a person in the Embed Author
I'm trying so hard
been writing this for 2 hours
The footer has a text and iirc icon option you can use
I can't use this it in the author ?
Errr wut?
/rbd/pnpm-volume/7463f4f6-bceb-4163-9dd8-0f0318676fb5/node_modules/@sapphire/shapeshift/dist/index.js:1182
return Result.err(new ValidationError("s.object(T)", `Expected the value to be an object, but received ${typeOfValue} instead`, value));
^
ValidationError: Expected the value to be an object, but received string instead
at ObjectValidator.handle (/rbd/pnpm-volume/7463f4f6-bceb-4163-9dd8-0f0318676fb5/node_modules/@sapphire/shapeshift/dist/index.js:1182:25)
at ObjectValidator.parse (/rbd/pnpm-volume/7463f4f6-bceb-4163-9dd8-0f0318676fb5/node_modules/@sapphire/shapeshift/dist/index.js:142:88)
at EmbedBuilder.setAuthor (/rbd/pnpm-volume/7463f4f6-bceb-4163-9dd8-0f0318676fb5/node_modules/@discordjs/builders/dist/messages/embed/Embed.cjs:42:37)
at /app/server.js:106:10
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
validator: 's.object(T)',
given: 'Taha Muuhamedd'
}
The options of your footer method should be passed as object
how
.setAuthor(message.author.username, message.author.avatarURL)
.setFooter('test')

