#development
1 messages ยท Page 1641 of 1
no no
If you wanted a regular expression only, the regular expression would be
data.content.replace(/@([^<>@ ]*)/gsmu, (match, target) => {
if (target.match(/^[&!]?\d+$/)) {
return `@${target}`;
} else {
return `@\u200b${target}`;
}
});
If you wanted to use a built in method by Discord, you would add
https://discord.com/developers/docs/resources/channel#allowed-mentions-object to the payload
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
Wait can webhooks even mention anybody?
webhooks can ping everyone
Yes they can
the create message endpoint and executing a webhook have the exact same data parameters
the problem is that you're using zapier
idk if you can modify the payload
Then my regular expression would work best
how would i modify the data content in zapier ?
use the replace method on the string you're sending
this?
data.content.replace(/@([^<>@ ]*)/gsmu, (match, target) => {
if (target.match(/^[&!]?\d+$/)) {
return `@${target}`;
} else {
return `@\u200b${target}`;
}
});```
"poggers".replace("gers", ""); // "pog"
That's how replace works. data.content is a string
So, I had a suggestion. Can you please make like a calculation command for the bot?
My idea would be that you type in your stake, the odd and then it automatically calculates the amount of money you earned. You deduct the stake from the money you earned and your profit will be shown. What do you guys think of this? :))
Then you can make the regex yourself to replace "@" with "@/"
How do you change the picture of the "game the bot is playing?
im not sure zapier would even take it
This will be for the sports betting function of the discord bot
That's a rich activity feature which bots do not have
So, I had a suggestion. Can you please make like a calculation command for the bot?
My idea would be that you type in your stake, the odd and then it automatically calculates the amount of money you earned. You deduct the stake from the money you earned and your profit will be shown. What do you guys think of this? :))
This will be for the sports betting function of the discord bot
Anyone online here who is the moderator of the bot?
Go to their support server?
Hey, [Java] can someone tell me how to best replace different things in a string? What i do is nonsense
Chaining is pretty consistent across languages. What you could do to write less is put entries in a List and loop over and mutate the string based on the current entry in the List
im trying to get my bot to spit back a gif that you send but it doesnt work for some reason like if the link is weird idk
Some websites that claim to host gifs might not actually be gifs
I try it
doesn't tenor host video files
does it?

If you GET the link, what's the response, because Discord does processing on it's own side for link embed previews
uhh
checks out to me
it just returns a link like this
cuz thats what the gif is rite
Try flaze's code. You'll have to manually support some websites like tenor and giphy since they don't raw return GIFs by default. You'd have to get the raw url through scraping the body which is HTML
you can do the same in py
ok
just gotta ready python docs to see if there is a string index of method
then a method to return part of a string between two indexes
aren't tenor and giphy protected by cloudflare
so there's a high chance you won't get to the site in the first place
apparently not ยฏ_(ใ)_/ยฏ
what does them being backed by cf have to do with anything
even so, tenor and giphy both has their API
I decided not to use it since I can just scrape
Mood, but with Spotify
the fact that your request can get rejected and redirected to a captcha
that's why i said this
Ah. Some sites that are backed don't display captchas or anything similar
Haven't personally seen tenor or giphy do it either
cf only shows captcha if they find you suspicious
im to dum to figure out how to make that work lmao
Anyone knows why the custom theme works on the bot page's when it's waiting for approval, but when the bot get's accepted the custom theme doesn't work anymore?
Not approved bot: https://cdn.discordapp.com/attachments/714045415707770900/818903996499886090/unknown.png
Approved bot: https://cdn.discordapp.com/attachments/714045415707770900/818904021674622996/unknown.png
its weird
because i just copypasted the style tag
maybe the element classes / element order is different
that's what i thought, but i tried inspecting the elements and they have the same classes
๐ค
i'll try looking again, maybe i'm just being a dum dum
i guess it's best to ask a website moderator for this
yeah
I don't think the website team members help users fix their custom CSS
They're busy, y'know, making the site ๐
Can you show us your custom CSS?
true lol
sure
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.
no, it's normal css
i'm importing fonts
oh yeah maybe I'm just wrong lol
And you put this in a <style> tag in your bot's long description, same exact place?
yeah
waiit
inspecting the description the style tag doesn't even come up
but when it used to work it did
yeah that's what i'm saying
can you show what you have in your bot description
I think it has to be at the very top
this
literally the first thing
lemme try that
but it's weird because it worked before
if it still doesn't work, maybe it's just topgg's renderer not allowing mixing html and markdown
yeah
because i heard they're making some changes
If it was because of changes, it would affect both bots, so no.
bruh
it works now

well, thanks, and sorry for wasting your time

but wait
hear me out
this bot has the style at the end of the description and it works
w h y?
see?
logic
in markdown, line returns create new "elements"
you need another line return there
yeah
that's it. just \n in there ๐
Is there a way the user can mention a user args with ID but not bot.users.cache.get(user.id)?
i'm just dumb lol
<@someuseridhere> mentions a user.
no like const user = <be able to mention a user with ID>
uhm, no there's no other way than getting it from the user cache, no.
is that not working for you?
No, like I don't want people to rob other people at the same time, that user is not in the same server.
It's like, you know?
No, I don't actually know what you mean
If you want to know if a user is on the same server, check their member object instead, maybe?
<user> = bot user's cache
!rob <user>
<user> is not in the same server, but does it anyway since it is from cache and not from server
yeah check if they're in that server, instead of relying on just the user
you don't need to get the guild from cache, you already have a guild
that's redundant
message.guild is already your guild
There are a number of information on hosting in the pins of this channel
You need to verify your bot in order to add your bot to more servers.
it's not their bot it's members+ and it's been like that for months because it's a join4join bot that breaks the terms of service.
Damn.
Btw, is this correct?

what are you trying?
Basically.
when the member is not in the cache, it should return?
lol first check the guild and then the get the member
Discord.py I can get user's avatar. Are there any libraries, that will help me edit that user's avatar to a photo?
This is wrong, as he said.
or commands
anything
if(message.guilds.cache.get(guildid)){
let fetch = await message.guilds.cache.get(guildid).members.fetch(userid)
}
wat
What?
what

lol took long
if(clientguilds.cache.get(guildid)){
let fetch = await client.guilds.cache.get(guildid).members.fetch(userid)
}
else{
return
}```
if(!message.guild) return
let user = message.guild.members.cache.has(userid) ? message.guild.members.cache.get(userid) : null;
if(!user) return
if(message.guilds.cache.get(message.guild.id)){
let user = await message.guilds.cache.get(guildid).members.fetch(userid)
} else{
return "Please Mention User?"
}
pls
hard 
thats very wrong
I guess.
do you code your bot with djs?
message does not have a .guilds property
client.guilds has
^
Indeed.
use this lel
this is not wrong
attitude bot too?
well depends what you're trying to do
Trying to get a user args which is an ID but not from the bot's cache.
Like !hello <user>, <user> is an ID but not from bot cache
await client.users.fetch(id)
I do not know if my programming level reach for this ๐คฃ
Calm down Jamal, I read it wrong.
do you nead meantion?
My name isnt Jamal lel
Do I use this?
your command says hi, when you do !hi @tired panther ?
!hi 2987450982304802
returns hi @feral aspen
but not if I go to another server and type the same ID and still returns the same user
only if the user is in the same server as the author
its easy lul
@quartz kindle how do i disable events on djs-light?
just say you can or not, pls.. I am waiting.
client options, disable events
yes this will work
dont go disabling everything tho
yes
you might break something
Ok!
can anyone help, I wrote a head bobbing script in c# for my unity game, how do I detect if my character is moving so I can make it bob, only whenever character is moving? ps. I'm using a Character Controller component with mesh and my own movement script that uses velocity
Just use intents
this for a dashboard i only need guilds role and channel caching no events like message ..
use intents
You'll have much better chances asking on a gaming programming server or the unity server.
can you lend me a link to the unity server please?
Most peopel here just write javascript bots, you'll have very little chances of finding someone that knows how to fix a unity head bobbing script. lol.
I see
Use google, I Can't link external servers (advertising rules and all that)
ok who wants to see the funniest fuckup ever.
first question what is unity lol
or maybe in server discovery
program for making games

can you pls elaborate..
have you tried asking google? 1
unity game engine
google isnt my friend 
Well neither am I 
I mean it is working fine, but I used GetComponent to set it's bool to true whenever velocity increases, but I used that in a void Update() which updates every frame so it just turns on million of head bobbing script and makes it messy
Naturally, I know what unity is uff, that was a joke
am I in the ignore list?
I don't care much for jokes that ping me. Keep that up and get blocked.
Sorry mister, but does this work as well? message.guild.members.cache.get(args[0]);

can anyone send me a link to unity's server in dms?
yes
I tried searching nothing is coming up
did you check server discovery
๐
@umbral zealot I'm on mobile right now
if ($existing_hook) {
/* Check this hook is still valid */
$info = botApiRequest("webhooks/" . $existing_hook->webhook_id);
/* We found an existing webhook */
if (!isset($info->code)) {
/* Webhook exists, update its token and exit */
dbquery("UPDATE channel_webhooks SET webhook = '$1'", [("https://discord.com/api/webhooks/".$info->id."/" . $info->token)]);
exit(0);
}
}
so this code is fired from my bot's core each time it needs to create or update the webhook for a channel on game start.
The problem is its missing a WHERE statement, so each server starting a round of trivia inherits all the webhooks of every other server that came before it. There was a massive chain of hot potato of running game messages, by the time it stopped, the one on the end was receiving server had the messages of about 40 games in 10 languages
Why does everyone call me mister? 
Then maybe wait until you're not on mobile so you can find it, and not only that but can actually access your code and try things people tell you?
smh
const { Client } = require('discord.js');
const client = new Client({ ws: { intents: ['GUILDS', 'GUILD_MESSAGES'] } });```
which intent do i need for guild,role,channel cache?
because it's easy to find
you already have it, GUILDS
so guilds mean i have role channel and guild cache am i right?
yes
oh thx
you'll get all of that data in GUILD_CREATE
#DISCORD DEVELOPER API DOCS
@earnest phoenix @tired panther the fuckup funny enough? lol
can someone at least answer my question which was ignored for 3 times, 15 mins ago?
what did i do?
at least say yes or no..
you said to elaborate
what? I told him the resource lol
what was the question
O H N O
lmao
i wanted to know which intent i need and don't be so rude
if guilds intent has guild role....and that is on the front page of the api
this
and so on...
canvas?
what do you mean edit a user's avatar to a photo?
eh what I'm not being rude
you mean image manupulation?
you know Dank Memer, right?
i believe the pil/pillow library does this
f that is rude
theres nothing wrong with using the word fuckup
his command like pls wanted
yes that is image mani.
okay
so this?
finally.. after 20 mins, I can say thank you
lol you could ping me your question was just to complicated
yeah, I know
but
I said
at least say Yes I can, or no I can't
that message was ignored as well
that is discord ,that happens to everybody ,when there is a hot discussion
๐
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
because async main is in c#7.1
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.
thank you, @quartz kindle . It gave me more info, than I expected.
i mean they're essentially the same thing
in IL code, await is actually GetAwaiter().GetResult() 90% of the time
One message removed from a suspended account.
One message removed from a suspended account.
hmm
quick straw poll who'd rather see a video guide of how to change a setting and who would rather read a page with pictures
when it comes to semi technical stuff like how to configure a bot
gif over pictures, pictures over video, video over wall of text
so animated GIFs
One message removed from a suspended account.
so I'm thinking first time they start a game without webhook permission it'll notify them by a one off embed with an image of what to change. it will only come up once and only if they have access to change it
is this for your announcements?
for the one off announcement to encourage people to add the manage webhook permission
it'd say use the announcement channels
webhooks really take a bite on your ip ratelimits as you get more of them
we got those but only a small subset of servers follow it
no, the webhooks are for game messages
I didn't see anything relating to IP limits on webhooks
just a limit of 30 per 60 secs per hook
they also have a ton of Ips and partnership with discord 
so obvs you wanna handle errors like having more than 10 webhooks i think it is in a single channel isnt allowed
yes but it doesnt stop users adding their own
the bot won't send thru those though
and if it can't create one it defaults back to channel messages
also btw dont do what i did and send files via webhooks at anything over like 20 hooks / sec
Man cant deal with another cloudflare ban
lol
file uploads are done via standard channel messages
but is it possible that 20 messages a sec of any kind could bring the ire of CF?
btw for you announcements you should just make the bot follow the announcement channel from your server to them
maybe?
i havent had any issues atm and im at like 40 embeds / sec
but with image uploads i get CF banned at like 20 /sec
hmm interesting
and thats the story in how we switched to a CDN 
so 40 embeds per second over 40 different channels on 40 servers?

yh
your limit at that point is the global limit
of 50/sec per ip
yeah this is what I'm going towards
you've seen triviabot run a game of trivia yeah
nop
each of the question/answer embeds will be thru a webhook
go to #commands
I'll show you
@green kestrel
if your bot is sending 50 messages a second globally (the global limit per ip)
using a webhook isnt gonna help it
but you are already sending well above the API rate limit
you said you send 40 per second
yes
limit is 1 per 2 seconds
no...
but doesnt it collect it in a bucket?
how have you calculated that
if I check the buckets on the headers I can't reach anywhere near that
@green kestrel taco

Unless they changed the all requests ratelimit randomly it should be about 50/s
it's nowhere near, pretty sure of it
as that's about your REST limit per account
yes
I was referring purely to the limit for create message
so in that case, webhooks can create more messages per minute then sending them via the /channel/id/messages POST
5 per sec per channel is more than I'll ever need
yes
its when I scale it up to many channels on many servers
tbh I make very few other API calls
everything is cached
your global limit though is bound by the all requests rest limit
(im obviously not going to demonstrate any of this because im not testing in a production system
)
I have that same problem
Hi
But i can safely say that webhooks are bound at about 50/s but equally your bot should be bound by that globally as well
I mean if we really wanted to test this we could just go make a mass DM bot 
not sure if anyone knows this but does anyone know how I can check if an epic games account exists? Iโm on the dev thing but I cannot find it, is this public or?
ok s
so
@modest maple we've determined from you, and from dapi, that theres a 50 per second rate limit per ip, plus a 30 per channel per minute limit
i have 5 ips.
i wouldnt want to piss someone off though.
I think you may if you dont ask them first
i'll think carefully about this, and perhaps ask some more staff i have in my contact list before i do anything.
but honestly i dont see how you can be nearly hitting these limits
like your bot inst really big enough imo to see those sorts of limits
76000 servers playing hundreds of games at once, tons of outbound messages
oh theres a 30 per channel per minute limit?
seems so
I dont think that can be webhooks
otherwise i'd be ip banned / permanently banned by now
oh wait
you mean 30 messages per channel per minute
yes thats a thing
Bad for your Trivia bot 
if there are that many already sending to that channel it's not a good place to start a game on
you'd lose track of the question
I mean ive never ran into other than once in production
why do you not edit the message? or is it more spammy than sending?
hmm....really.....but 1-6 times are okay?
edits are worse
and, the amount of messages the bot generates helps people's server activity figures
a fair few have used triviabot to aid them in getting partnered
I didn't think they'd count bots
really, but editing a message three times. Is that in a range of "good"?
perhaps it's the interaction with the bot I dunno, I'm not partnered
the serverinsights do not
either way
the bot works fine
I'm not going to change that aspect of it, as nobody ever complains
if it ain't broke don't fix it ๐
anyone know a solution to my problem?
send a link
they want to check if an epic games account exists
@digital ibex to do it properly you need epic games oauth that comes with an epic games store developer account
you could probably hack it in by looking for a profile page or something
on phishing sites, no im not creating a phishing site
maybe a thirdparty libary?
email, username, phone number
this works for name
u can do accountType as psn or xbl too
i found it on github
onemanbuilds/EpicGamesUsernameChecker
all of epic
alr ty mate
np
#[call]
fn __call__(&self, opcode: usize, body: Vec<u8>) -> PyResult<()> {
let (more_body, body) = match opcode {
OP_SEND_NOTIFY => {
return Ok(())
}
OP_SEND_BODY => {
(true, body)
},
OP_SEND_BODY_END => {
(false, body)
},
n => return Err(PyValueError::new_err(format!(
"value {:?} is not a valid op code for sender", n
)))
};
rusty rust rust
wait one sec
if i wanna use their phone number or email, any ideas @unreal estuary
cuz thats just the username
if thats not a protected endpoint im gonna be disappointed in epic games
im not sure
i dont think it is tbh, rl has multiple phishing sites which detect if an account exists or not

Should I trun off this
You mean yes only the administrator should be turned off
so i've been thinking
is there anyway i can find the email which is linked to the epic games account?
and vice versa
no bots do not need Admin to work
remove it
Just gave them perm they need
any ideas @unreal estuary sry for ping
is this better discord
?
Okay should I only turn off the administration?
when the user/bot do not needs it
Okay I am trun off the perms that the bot don't need
i lisen the music
maybe try look here https://dev.epicgames.com/docs/services/en-US/
Documentation for Epic Online Services
ah
rusty rust rust
๐ฆ ๐งจ ๐ฆ
cursed
crabs will reconquer
how do i reference client in a cog file (discord.py)
why it gives me this error?
try {
let role = message.member.roles.cache.find(role => role.id === "807601966066302997");
this.client.guilds.cache.get('806257288344109056').members.cache.get(candDono).roles.add(role);
} catch (e) {
console.log(e)
} finally {}
message.member can be undefined, if the member is not cached
you'll need to fetch them
message.guild.members.fetch(message.author.id) should do the trick, but it's a promise you have to await.
let role = message.author.roles.cache.find(role => role.id === "807601966066302997");
will work?
with message.author?
do one, then the other
how do i update bot presence
candDono it's a member id
on 806257288344109056 guild
i just want to add the role to candDono
use .get
?
whats the discord permission for mentioning everyone
...mention everyone?
oh is it lol
painfully obvious that one
@umbral zealot
yes?
you haven't fetched the member
ยฏ_(ใ)_/ยฏ
like I said, the fetch is a promise which you need to resolve.
https://js.evie.dev/promises if you need to understand promises.
but where do i apply member?
no
fetch() returns a promise
you need to resolve the promise
https://js.evie.dev/promises to learn what promises are and how to use them.
ok
const imdb = require('imdb');
const cli = new imdb.Client({apiKey: 'xxxxxx'});```
TypeError: imdb.Client is not a constructor
package imdb issue, or I am doing something wrong?
v14?!
The library seems to export two classes: IMDb and Movie (https://github.com/mhsjlw/imdb/blob/master/index.ts)
check for both <@ID> and <@!ID>
how i use member.profile() what does???
Maybe you meant to use use imdb-api instead of imdb
that's not something included in discord libs, where did u see it?
in discord.py are this function
where did u see it?
@lyric mountain https://discordpy.readthedocs.io/en/latest/api.html#member
here are the profile function
profile is only for user accounts.
and is deprecated
since automated user accounts aren't allowed
Are you trying to get the user's information, like name, creation date, etc.?
yeah
I think a discord.Member already has the necessary information (assuming member is an instance of that class)
um how do i check if a message was sent on dm's with discord.js v12
if (message.channel.type === 'dm')
```?
that should be it yea
aight thanks
short question:
for my bot I need an api request. I want to list all the "cute_names" of the profiles of a player.
I tried to use sth like: response['profiles'] but after that i dont know how to come 'deeper' to the cute_name
Just access the properties like you accessed the profiles property
you mean like that?
response['profiles']['0']['cute_name']
TypeError: list indices must be integers or slices, not str
sry forgot to @ you
figured it out now:
the problem was that I wrote the index (e.g. profile 0) as a string: '0'
how do you make a mention prefix in discord.py?
this
If you're using the framework, you can use the discord.ext.commands.when_mentioned_or function (https://discordpy.readthedocs.io/en/latest/ext/commands/api.html#discord.ext.commands.when_mentioned_or)
Can you show us the source code for lines 8 - 16
It's better if you copy and paste the source code here with code blocks like so:
```python
your code here
```
1 sec
def get_quote():
response = requests.get
("https://zenquotes.io/api/random")
json_data = json.loads(response.text)
quote = json_data [0] ['q'] + " -" + json_data[0] ['a']
return(quote)
The response object got json method, refer to https://requests.readthedocs.io/en/master/user/quickstart/#json-response-content
what
requests is blocking doe which is bad for an async discord app. I'd use aiohttp instead which is d.py's dependency. At that point, refer to https://docs.aiohttp.org/en/stable/client_quickstart.html#json-response-content
There's no need for you to use json.loads on the response text. You can just use the .json() method on the response.
But I think your issue is the line break
what version of py are you taking about
Not even about py 
oh
so how would I go about changing it
Refer to the docs I linked and what Lite has told you
and it's so that if you do +quote itll randomly pick a quote and send it
And remove the line break between the second and third line you shared.
Thought it was discord formatting. You can also add a backslash there if you really want it to be in the next line 
there's not a line break
it's how small I put my screen
Is this not a line break? ```py
response = requests.get
("https://zenquotes.io/api/random")
Alright, then do the other stuff we sent you. In particular:
got it working
im gonna add facts if I can
like animal facts
omg i need help again @sudden geyser
Like I said, don't be afraid to ask your question.
alr
so I did the same method but changed the link so it will get facts but it gives me an error about the json
and the error is
Can't u just ss?
json is a module (like import json) and you're trying to access the .data property even though it doesn't have such a property. You don't need the json module in any of your cases since you can use response.json() to get an object parsed from the JSON.
I gave you the details:
You don't need the json module in any of your cases since you can use response.json() to get an object parsed from the JSON.
By this, it means the result fromresponse.json()is your object (the same thing you'd get fromjson.loads(...)). So, if I expected the parsed JSON to have a key named "high" and a value of 5, I can do ```py
obj = response.json()
obj["high"] # result is 5
You should learn python before attempting to make a bot with it
As with all langs
Really?
ye
that was like 4 months ago and I never touched python again
untill 2 days ago
You may need more experience. Here's a tutorial: https://docs.python.org/3/tutorial/
where's the json link
You cannot escape the responsibility of tomorrow by evading it today.
huh
Basically, if you throw food down to the sink it'll eventually clog
ok how does that relate to coding
Analogy
If you ignore the lack of knowledge now you'll have a huge problem later on
Clogged source code
It means you need to learn more Python before you can learn to solve your problem with JSON.
I don't feel like learning it for days for 1 thing that I'm ever gonna use python for
Imagine bots being a 1 day project 
there not
JSON's really important either way
One of the most used human-readable text-data object languages
Thing is, no code with purpose will ever be bug free
So you code now, then fix tomorrow, then upgrade the next day, then fix, etc
Lite literally gave u the answer
Both google and yt probably are too
But you lack knowledge to see the answer
exactly I need more help so just tell me instead of saying you have json and do json.(response)
mhm that's why I got to the 7th grade
dude once I learn something I don't forget it unless i feel like it
Sure
so tell me once and you won't ever have to again
No
Then it should be super easy for you to just read docs
a huge part of development is learning stuff yourself.
You need to help us by helping yourself first.
You keep saying you have a perfect memory - just read the user manual once. Problem solved.
Learning is learning, getting the answer is getting the answer
๐ suddenly a wave of people
If you ask me how much is PI, it's 3,14159265...
not hard
Developers against Tylers, Unite! ๐
i used pie to solve area ๐
But what is PI? Why is it that value? What are the actual applications of it?
๐คทโโ๏ธ
my school doesn't teach that lmao
Exactly
who remembers anything from school anyway
They told u the value, but didn't teach u why you use it
The powerhouse of the cell woo
So, anyone had OAuth Link generator?
solve area
A small calculator that generates Discord OAuth invite links
Thx
I just don't understand why it's wrong dude
Best place to code an economy bot
Because too many beginners think they learn by example but a year later they're still asking for "examples". We don't trust spoonfeeding.
It's wrong because giving a fish will solve the immediate hunger, but will only make you dependent on other people
Tutorial hell isn't a fun place innit 
whats null?
Go through a python tutorial if you've got a perfect memory. You can't eat your cake and have it too buddy, if you have a photographic memory then it'll be a breeze and you won't have to keep asking us for "examples"
nill, nothing, nada, empty, no value
hasta la vista value
Anyone here know a place where I can code an econmoy bot
in your code editor.
undefined is the very best
Undefined is not the same thing as null though
lol
undefined means you haven't defined something. null means it's defined but has no value.
I don't like reading for 1 thing i like reading to answer questions
Well sorry, that's how you're gonn have to do it
โ
didn't say it was either 
we will not spoonfeed you answers constantly until you've integrated the entirety of bot creation systems
literly asked what 2 things
Now I'm confused on the OAuth link generator :v
o..
null
how is that form confusing you? really?
useless?
isn't 0 null
No. 0 is zero.
my code editor sucks when it comes to econmey bots where do you code your bots?
You're not going to find help here in this state. You might as well consult Google, go elsewhere, or accept the tips we've given you
I code my bot in vscode because I do programming. That's how you make bots. Actually that's how you're supposed to.
I tryed username, tag, and still didnt work! (I kinda did read docs, still didnt figure it out.)
The 2FA one, so our bot can do the colorized one if the server didn't need 2FA?
You, as the bot owner, need 2fa for the bot to use those permissions, yes.
Or did I need to put something on the code for the bot did the 2FA req?
ur in vsc
ya
right
what about it?
don't know
your problem is you're creating a new client, a new bot. that's wrong.
o shoot
use message.client instead
yep
you don't make all bots in vsc
Follow that convo
No, but it's a great editor.
You'll understand why we don't spoonfeed
cause people can get better than others
Then, how can I give the 2FA while the bot in the other server if I didn't present on the server?
again, cilent does go before message, right?
command.execute(client, message, args);
it's like not picking up a 2 yr that fell and hurt themself
lol
Not the bot. The bot owner. You.
trying to walk = learning
fell and got hurt = needs help
No
Alr, thx mate @umbral zealot
No one can give you legs to walk
there not gonna sit there and cry for 10 minutes and get up
You learn it yourself
Mommy doing the airplane to feed you baby formula = constantly asking for examples
It's why we call it spoonfeeding
I've asked 2 times

Or someone holds you so you can learn but with safety and guiding
Who will hold you? The docs
I get help boom done im good
ur parents help you
Yes, they were my "docs" on how to walk
They didn't enter my brain and give me "how to walk" answer
they helped alot
ur not helping alot just complaining I asked twice and trying to prove your point
But no one is gonna give you a oven hot answer
never said they would
Spending more effort arguing that we should just help you than you should be spending actually figuring out the problem isn't helpful.
"thrice"
Thrice is twice + 1
No idea I couldn't read the photo since this guy doesn't know how to take screnshots.
or copy/paste
dude im not going into my phone to copy then edit it
anyone want to help meh code a econamy bot haven't done it before
ever use print screen button?
The snipping tool?
ShareX?
pls beg
Help us help you, man.
discord is blocked in my computer
ever heard of a parent
Have you started a bot already?
But... you... have access to your browser....
Like, the foundation
download google goggles to your phone and use that to copy the text
and
And you can just go on discord.com?
not on my computer
How the heck does the bot connect if the domain is blocked?
seriously this is ridiculous.
yep but not econamy
I mean yes I started a bot
It's the same thing, but you'll need a database
to make an economy bot you need to start with a database you can store data on.
kk
Mongo 
I can dm ya the token
No
kk
phone
You're phonehosting?
uhm
thats database?
no
No
I took a ss with my phone of the code and cropped
the error says you typed json.data[0] instead kekw, which is now fixed. So what's the issue?
Choose your flavor
kekw
I need a ss of database
nah
Then maybe you should go do a bit of research
a structured set of data held in a computer, especially one that is accessible in various ways.
thats a database
yes. it's a thing that stores data
so how do you code one?
on vscode
just get the value of fact
I guess you could say JSON is a db, but it isn't that efficient, the files could get corrupted too often, and the data isn't encrypted.
No, you could not say json is a database, because it's not.
got it
You should stop saying that json "could" be a database. It muddles the conversation with beginners who are connvinced it can be
You just copied that sql didn't u?
noted, sorry!
yep
Don't
so basically I did it but the fact and length are there
Is because you returned the json instead of its attribute
bruh
@earnest phoenix You should use aiohttp for requests instead.
tf
Not you
it's for meh
Read those two links I sent u draconic
pls beg
And research how databases work in general
Yes
just +cat needs work
Ah, welcome Mr. Knowledge, please have a seat!
bru, just get the value of fact
ur acting like i don't know but do know
I know i need to just don't know how so im gonna go figure it out
200
We just told u how you figure that out...
well what's wrong
Lack of knowledge
You got the value of a and q in the quote command, just do the same to the cat, but with fact
I returned json not atribute
bruh
A json is a data structure
If you want a person inside a house, you return the person
You're returning the house
you have to find an API right
You'll return here many more times
like to generate random
I personally wouldn't rely on API for something that you can do yourself, but that's just me
i was told to by yt and it's my first time
Dead TN, you're bound to become a regular here and suffer the same fate as DAX and Smug
don't care๐
But we do
why do you care
Because you'll bother us everyday, every single new feature
A new error? Gonna ask #development
I want custom prefixes, better ask #development
how do you even get stuff from github
uh we search, read, understand, sometimes copy/paste.
unless you have a different definition of "get"
You're not the first nor the last, I've been here long enough to see the destruction a simple spoonfeeding can cause
like getting a code from git hub there's alot of files and folders
It's more addicting than hard drugs
you could google "git tutorial" and get information from there
and if you're still too lazy to read docs just google for a "git cheat sheet" that should help
what about an image
would I put image
wot
if i was to get a dog image api and it randomly gave me a image what would I put in ['']
Just see the data structure.
It should be self-explanatory
structure
Dexter's been typing for like 10 minutes 
bruh ikr
ok
Just ignore it
he got yeeted
how do i get bot dev role
After you've created a bot, submitted it to top.gg, and it gets approved, you get the role
oh sheesh
I reach somewhere
White theme
dark is better
Waiting for this
you should create a package.json
I've done quotes catfacts and dogfacts
It is a package.json
package.json needs to be in the same directory as the package-lock.json
aka the root of the project
while it looks good so far, i would recommend not attachming much to your client, since you'll be passing it around quite often
kk
how would I apply this https://some-random-api.ml/canvas/wasted
would I do ['image']
kk
would recommend using detritus instead of d.js btw 
I'm setting prefix now
custom prefixes?
look, gathering people for my cult
any like ? + and more
so, custom prefixes?
yep
if only it was this easy
One message removed from a suspended account.

detritus has custom prefixes support
so you dont need to write your own
One message removed from a suspended account.
u 2 qt
You could remove the first expression in the if condition
Unless get errors for some reason






