#development
1 messages · Page 1286 of 1
Before you make a Discord Bot, you should have a good understanding of JavaScript. This means you should have a basic understanding of the following topics:
- proper syntax
- debuging code
- basic features (vars, arrays, objects, functions)
- read and understand docs
- nodejs module system
As much as we'd like to assist everyone with making their bots, we rarely have the time and/or patience to handhold beginners through learning javascript. We highly recommend understanding the basics before trying to make bots, which use advanced programming concepts.
Here are good resources to learn both Javascript and NodeJS:
Javascriptinfo: https://javascript.info/
Codecademy: https://www.codecademy.com/learn/javascript
FreeCodeCamp: https://www.freecodecamp.org/
Udemy: https://www.udemy.com/javascript-essentials/
Eloquent JavaScript, free book: http://eloquentjavascript.net/
You-Dont-Know-JS: https://github.com/getify/You-Dont-Know-JS
NodeSchool: https://nodeschool.io/
CodeSchool: https://www.codeschool.com/courses/real-time-web-with-node-js
Evie's Accelerated JS: https://js.evie.dev/
Please take a couple of weeks/months to get acquainted with the language before trying to make bots!
jsfirstbotlater learnjs
why do people even try to start a proyect without knowing the language
;W;
Because they think it's easy.
you clearly don't
they told you: close your message listener
you said: my what
phyton. lol.
phy
kk
If you don't know how to google for simple questions, it's gonna be hard being a dev
because "python discord bot" would 100% show you a python library
they're gone
oh
stoP assuming
oml
why do people even try to start a proyect without knowing the language
@copper cradle because they think it'll be fun but it's more like submitting an application but not knowing the conditions and requirements
lmao
like come on, those tv shows where the main character signs a contract without reading any of it should be enough
i like to think of it as mommy dependency
"mommy do it for me" shows when someone's a help vampire
Tylers are the worst
Don't be a Tyler.
A Tyler: "Karen's kid, the child that's been indulged his whole life, pampered, doesn't know the meaning of 'no' and has a hard time learning anything because they've always been spoonfed from birth."
Typical "Tyler" Behaviour includes:
- "But I just need help with this one thing"
- "I don't have time to learn"
- "I'm just following a tutorial, and it doesn't work when I copy the code"
- "What do you mean I need to learn JS? I know JS, I've been doing it for 10 minutes!"
The real issue with stuff like youtube videos and guides on how to build bots without knowing the language is it teaches you to write code in only one way.
yes
Tyler
I just call them skids
those are a different breed 😛
idk
Eh, I mean it's still copying/using other peoples code
Granted, it's more of a haxzor term
Does anyone know how to use a bot to block a specific word from being used in a server?
how to use a bot
@last bloom I'm sure the person who made it has a help command
Check if the content includes that word
don't bother with word filters
they're never effective (on discord)
(this statement excludes ML magic)
®
I've got this regex to match anything after @ and until it hits an empty space, /@(.([^\s]+)*)/, however, I don't want /@(.([^\s]+)*)/.test("@somestring ") to return true, because there are empty spaces following the mention
$
I also don't want to match it if there are empty spaces after
then I'm not sure
I could use test first to check if it returns true, and then use match
But that's kinda inefficient
i knOw pHyToN bEtTeR buT iDk hOW to MaKe boTs WitH it
@ivory nimbus LOL
ik 23 programming languages
😎
nobody asked
discord.py
how do i change bot status to "watching (amount of servers the bot is in)"???
we didnt ask but if no one would of asked ever anything there would of never been convos
so thats how convo's work
bud
bud
@violet mesa me?
no
discord.py
how do i change bot status to "watching (amount of servers the bot is in)"???
@violet mesa
https://discordpy.readthedocs.io/en/latest/api.html#discord.Client.change_presence
https://discordpy.readthedocs.io/en/latest/api.html#discord.Client.guilds
https://www.programiz.com/python-programming/methods/list/count
js html and py are ass
@earnest phoenix wdyn html is ass
js sucks
the internet wouldn't exist with html
Pascal Script best
it would
@violet mesa no language sucks, except lua
WDYM
just with dif lang
U GOT LIKE 132 program languages
Why top.gg not sending who voted is there something wrong or what xd I am sure added the correct api
actually scratch the last link i sent, this is what you need instead https://www.programiz.com/python-programming/methods/built-in/len
the internet wouldn't exist with html
@trim saddle LOL
its still ass mg
text/plain moment
the internet wouldn't exist with html
@trim saddle im taking a guess you never took CS and never learned about the creation of the web
i got told to look here?
end of this year ill know atleast 40 programming languages
cs and html arnt code langs just saying
true
nobody ever implied it's a language
did you mean: css
someone stsrted a language war about html comparing it to py and js
Pascal Script is best
did you mean: css
true aswell but no
someone stsrted a language war about html comparing it to py and js
@trim saddle dude be fuckin comparing a clock to a computer
or some shit idk
stop throwing a fit over programmer preference
small brain
lol
@delicate zephyr u a bot dev?
what are you doing
@weary crowgroupfinder
import random
s = ["", "REEEEEE", "html is not a lang(say it again)", "ok"]
print(random.choice(s))
xD
-no
ok
it chose ok
@sinful belfry can we like get a mute in the chat
can you save the random stuff for #general-int

yeah if it continues
@open frost ass developer
@trim saddle u a bot dev?
ffs
yeah, i run 3 bots
discord.py
how do i change bot status to "watching (amount of servers the bot is in)"???
links dont answer my questions im to dumb to understand
also Skull
next time you see a lang war
ping a fricken mod
instead of me
ffs
can anyone help pls
links do answer your questions because they're links to docs which explain what you need to do very well
cry literally answered you
links do answer your questions because they’re links to docs which explain what you need to do very well
@earnest phoenix THIS
that's a you problem
pls just say what i need to type ;-;
you aren’t a programmer until you can read docs imo
pls just say what i need to type ;-;
@violet mesa
yea
game = discord.Game("with the API")
await client.change_presence(status=discord.Status.idle, activity=game)
if i change discord.Game to discord.Watch work?
read the text under shiny colorful code blocks
So I got a domain and using cpanel
How do I like link the domain to the website?
Like do I use cloud flare?
I tried
but I recommend it saved my ass once
What else can I use?
Just link it
but I recommend it saved my ass once
@misty sigil how?
DDoSed
Like I’ve been trying for days
lol guys I made a suggestion channel
Like for example
Change the ns on your domain
anything that isnt xyz is fair game

ive personally encountered quite a few websites that dont accept xyz
anything that isnt xyz is fair game
@opal plank no like I have the domain
lots of scam companies use them due to price
fuck scam companies then
Just like in my website, what domain do I put it as to work with cloud flare?
Do I put like the domain I bought?
its 1 domain that fowards traffic to one ip
thats it
domain => couldflare protection/ray scan => ip
thats the general gist
im assuming you using cloudflare
im a bit drunk and didnt bother reading the rest
sorry to interapt your stuff
@earnest phoenix what am i suppose to do with len()
i know about len
it's for counting your guilds
is the amount of servers a list?
yes
i sent you the link to the docs
how do i make a command that bot will go to internet and share the info
make an http request. what language are you using
hack into the mainframe.
lol
free internet
take code for google and use the search engine to search it
now this is big brain time
sense
loll
what lang is that suppose to be
C
it's the linux kernel src i think
thats why it makes no sense
my point still stands
eventually
how do i make it so it tells me only the amount of humans in the discord
ive been trying to look for it
How i can do my bot leave servers with -5 users in discord.js?
@light vortex https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=guilds
https://discord.js.org/#/docs/main/stable/class/GuildManager?scrollTo=cache
usefilter()on the cache property to filter out guilds which have their memberCount property less than 5 and then you can just callleave()(https://discord.js.org/#/docs/main/stable/class/Guild?scrollTo=leave) on the guilds that are left in the filtered array
how do i make it so it tells me only the amount of humans in the discord
@earnest phoenix in what library
discord.js
@earnest phoenix i still dont know, can you help a little more please?
@earnest phoenix i cant find the name of the thingy
cry is the smort boi/girl
no asuming genders
@earnest phoenix , you first need to download all members
https://discord.js.org/#/docs/main/stable/class/Guild?scrollTo=members
https://discord.js.org/#/docs/main/stable/class/GuildMemberManager?scrollTo=fetch (see the first example)
once that promise finishes you can then filter the cache property (https://discord.js.org/#/docs/main/stable/class/GuildMemberManager?scrollTo=cache) for members that aren't bots
(https://discord.js.org/#/docs/main/stable/class/GuildMember?scrollTo=user https://discord.js.org/#/docs/main/stable/class/User?scrollTo=bot)
@earnest phoenix i still dont know, can you help a little more please?
@light vortex what do you not understand
@earnest phoenix i cant find the name of the thingy
@violet mesa
what thingy
oh
guilds
yes
i found this from a friend
@light vortex i asked you what do you not understand, not what you found
I dont understand where do i put the guild members needed to leave
there is only message emoji guild abc.PrivateChannel VoiceProtocol
Mobile talk?
i do it in my free time :KEK:
@misty sigil i thought i was the only one lol, i like to scroll through material-ui docs to see what i could implement into my app next
Looking through docs is kinda fun when bored
there is only
messageemojiguildabc.PrivateChannelVoiceProtocol
@earnest phoenix pls
what is the difference between iana and icann
@violet mesa i understood none of that
good for you
there is only
messageemojiguildabc.PrivateChannelVoiceProtocol
@violet mesa in the link u sent me i see only these things
i cringe everytime someone says "codes"
lol
codes
@violet mesa you don't even need to open the url to understand what you need to do
the hrefs have the class where the prop is located in
discord.Client.guilds?
i cringe everytime someone says "codes"
@earnest phoenix i do codes for funs
i do it in my free time
@misty sigil stop exposing me
i was liter ally looking at docs rather than doing homework

@earnest phoenix where do i put it btw like in a @bot.command or like a bot.event
by it i mean
game = discord.Game("on")
await client.change_presence(status=len(discord.Client.guilds), activity=game)
i have a function that will update a user's entry in my bot's mysql database; it looks like this
return this.query(`UPDATE ${table} SET ${property} = '${value}' WHERE id = '${id}'`).then(function(results) {
if (results.affectedRows === 0) {
return self.query(`INSERT INTO ${table} (id, ${property}) VALUES ('${id}', '${value}')`);
} else {
return results;
}
});```
even with the `results.affectedRows === 0` check in place, i keep getting random "duplicate key error"s on the next line? shouldn't that not happen
i mean, put it wherever you want @violet mesa
put it where you want it to change the activity
i get an error
it says
that i cant put it(it = to the same thing that it did last time) outside of a function
bruh
async* function
google your error and you're going to find out why you're getting it
should i put it in a ```py
@bot.event
async def on_start():
game = discord.Game("on")
await client.change_presence(status=len(discord.Client.guilds), activity=game)
like that
i don't know python, try it and see
okie
brb
i still cant use #commands sooo
i have to use my server
nope it dont work
1 sec
i bet its not on_start
me read logs
@celest crest why is ur name in hebrew and שלום
lol
Somebody can give me reaction roles code on java script?
@celest crest why is ur name in hebrew and שלום
@violet mesa Because i want
we don't do spoonfeeding here
ok
🍴
has someone made the "we don't do that here" meme with "spoonfeeding"
Somebody can give me reaction roles code on java script?
@celest crest please?
lalala you need an instance of that class and not the class itself
what variable is your bot object stored under
OOP basics 
yes
Why is my bot reporting this error
UnhandledPromiseRejectionWarning: Error: 503 Backend fetch failed
5xx errors aren't your fault
Why is the API you are using reporting that error
sorry im just stoopid
if you get 5xx errors the best you can do is just sit and wait (and possibly have a breakdown while doing so, whatever you prefer)
look at the start of your line, you're using your client instance already
I strongly advise you to go through principles of OOP itself
lol
i did discord.bot.guilds
@bot.event
async def on_start():
game = discord.Game("on")
await client.change_presence(status=len(discord.Client.guilds), activity=game)
this tells me two things
actually, three
hey
stoopid
either you're using bot and trying to set activity of client or vice versa
how would i make a command that removes a line from a .json file?
does anyone know if theres a way to edit roles that have already been published?
fs.writeFileSync("./data.json", [message.channel.id])
}```
and the fact that you have both client and bot defined is sus
@bot.event
async def on_ready():
game = discord.Game("on")
await client.change_presence(status=len(discord.bot.guilds), activity=game)
```this is what it looks like now
stop using json as your database
it is only 1 channel
for only 1 guild
i mean, what could go wrong.
i am only saving 1 channel id.
like this
but how would i make a command that removes this line for example?
using fs
nvm
cuz then it can't save it anymore
i want to !channelset
writeFile(filehere, "")
nvm lol
oh my god
@bot.event
async def on_ready():
game = discord.Game("on")
await bot.change_presence(status=len(discord.bot.guilds), activity=game)
also, i have a interval command. How do i actually stop it with a command?
i tried to define a variable to the setinterval
P.S. discord.bot gets bot property of the module discord
and you only need a plain variable bot, not a property of anything
consider reading this https://docs.python.org/3/tutorial/classes.html
it covers what namespaces, classes and class instances (objects) are
because you set the string to on
thats not the prob
yes it is
the prob is that it doesnt say the number
yes
1 sec
and that's because you set the string to on
uh
re-read the change_presence docs
status is the status of the client, not the string to display
var testing = setInterval(() => {
generateEmbedFromFeed(args, (embed) => {
messageToEdit.edit(embed)
})
}, 5000);
}
}
if (message.content.startsWith(prefix + 'removefeed')) {
clearInterval(testing);
message.channel.send("Interval feed has been stopped!")
}
``` why is this not working guys?
@bot.event
async def on_ready():
game = discord.Game("on" + len(bot.guilds) + "servers")
await bot.change_presence(status=len(bot.guilds), activity=game)
``` are u proud of me and mad at me at the same time
?
pretty much yes
what the fuck @violet mesa
lol
i'm mad because you won't read what you're being told
That's an error for string + integer
avoid those by using .format or f-strings, thanks
I only read stackover flow
to who are you talking exactly?
looks better and less errors and more performant
SO for discord.py is utter shit
because it's an overflow 
your mom is memory overflow ngl
my mom is chrome? :(
Truth hurts bro :(
what
but ehh
var testing = setInterval(() => {
generateEmbedFromFeed(args, (embed) => {
messageToEdit.edit(embed)
})
}, 5000);
}
}
if (message.content.startsWith(prefix + 'removefeed')) {
clearInterval(testing);
message.channel.send("Interval feed has been stopped!")
}
the annoying guy is back
you think that i haven't done that
not properly, no
that's a contradictive statement lol, if you had debugged properly you would've found the root of the problem
that's like getting the wrong answer in maths and then saying that you did all the steps properly
when you clearly did not, because you got the wrong answer
Jokes on you, I get my answers right away
photomath 
why are you bringing back the bad memories
😂
tysm @earnest phoenix and @slender thistle im sorry for the hastle!!! i shall now shut
photomath is useless for higher level maths or when you start working with something like logarithms because you need to know which rules to apply
this is final code if anyone needs even tho no one needs code from me lmao
@bot.event
async def on_ready():
game = discord.Game("on " + str(len(bot.guilds)) + " servers")
await bot.change_presence(status=len(bot.guilds), activity=game)
idk what status= needs to be lol so i left it as that
i sent you a link to what it's supposed to be
status is referring to these
leave it unset if you don't want to change it
ergo remove it from your code
no discord's api just gets really fucking confused
yo wtf u mean by 2 as your status
lol "i'm currently number 2-ing"
tmi
👀
uh
yeah 100% downloading that
I did
executing as admin too to make sure
Just to check the magic file header is actually a JFIF encoding
ok
really low quality animu pic
yeah, 100% trustworthy
At least it's a valid pic. Although an uncommon format
wrong place
please take your fetish for cartoon characters elsewhere
fetish?
ANYWAY
yeah
lmao
opening these files in ms Paint is some insanely high IQ shit
ok
i didnt even know jfif was a valid extension
I'm not going to try and execute it if that's what you mean by low-iq
its just weird to use MS Paint out of all the available apps out there
hxd gang
To prevent user error I clicked edit instead of open 
Ok
what is error code 403
what is error code 403
@wanton mural https://www.google.com/search?q=what+is+error+code+403
Error 403: Access Denied/Forbidden
Usually because you have incorrect authentication
ok it on the website i click a bot and it said that
what website are you talking about
It's not approved yet
oh
Only the bot's developer can see it until it's approved
hince the authentication error
oh the owner if the bot said it be up in 5 weeks
Sounds about right
^^
6+ last time i said 5
i dont remember who corrected me
but it should be roughly 5-6 weeks
The owner of the bot is very nice
how do i make an async https://discordjs.guide/command-handling/ (i dont use this type of cmd handler usually)
what
how do you get the reactions on an msg djs
<message>.reactions
bruh
how do i play a kahoot game?
.. ?
dbl.postStats({ serverCount: guilds, shardCount: client.options.shardCount });
-> invalid shard_count
I was going to ask you something, and I'm going to approve my bot, but is it safe to give you this information????
postStats() doesn't take an object as a parameter
@earnest phoenix
so i neccessay need to also send the shardId?
Yes
ok I have one more different question
?
when i try to do pm2 start file.py on my ubuntu 20.04 -> Interpreter python is NOT AVAILABLE in PATH. (type 'which python' to double check.)
do you have the python interpreter in your PATH variable
i switched from botghost to bdfd and the difference is amazing

@earnest phoenix You add it to the path (PATH=$path:/path/to/python/thing). See this stackoverflow post as there are a lot of ways you could set it: https://stackoverflow.com/a/26962251
thanks bro
😳
sigh... 18 hours of solid debugging and refactoring....
🥴
^ my head
finally getting somewhere though, we've narrowed it down to a library issue, a missing mutex lock
geez
There's easier ways to debug 😮
What's your Python version?
python --version
Python 2.7.18rc1
i made an emoji list. if the length is more than 1024. will create the page.
but I couldn't split emojis. what should I do?
let emojiks = `${message.guild.emojis.cache.map(emoji => emoji).join(' ')}`;
.setDescription(`${emojiks.slice(0,1024)}`)
.setDescription(`${emojiks.slice(1024,2048)}`)
f-strings are exclusively Python3.6+ thing
@green kestrel having some issues here too
trying to grab an annoying bug on my cache
i might try exposing a debugger on a random port and try to use chrome to debug it
debugging shit in ubuntu is the worst
no VSC = 
@earnest phoenix Just make it show specific amount of emojis in every embed so it won't get cut off like that
how can i adjust the amount
I'm trying to get some text from html. whic package do you prefer?
using chowdown rn
no VSC = :bpd_aquaCry:
@opal plank wait uh.... vsc? whats up with just vim? 😄
3|app-name | Please visit this URL to authorize this application: https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=...
I run this with pm2
But I can't figure out how to insert the key.
@green kestrel does VIM have a debugger like VSC? havent used vim at all
@earnest phoenix its more about the debugger. node has the ability to expose debugger by itself, its just that VSC makes it awfully easy to do stuff
h
is there a java equivalent of ```js
${variable}
template literals?
i think he means a var inside of a string
Is this channel is sharing your code?
When I use: (discord.js)
msg.awaitReactions(filter, {
max: null,
time: time,
errors: ['time']
}).then(async collected => {
});
I keep getting this error but it doesn't actually stop the filter. It is just annoying and spams the console.
(node:11944) UnhandledPromiseRejectionWarning: #<Collection>
(node:11944) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
see channel topic
Nvm
@thick gull still gives error
m
@karmic compass there's String.format() if that's what you're looking for, although it isn't as neat as js
adding try{}catch(){} doesnt even do it/ignore the error
are you sure the error is coming from that line
But you need to add a .catch. Can you show us how it looked like with it?
wait
msg.awaitReactions(filter, {
max: null,
time: time,
errors: ['time']
}).then(async collected => {
}).catch();
this?
who here good with
@earnest phoenix https://dontasktoask.com
well you actually need to do something when you catch an error
kk
.catch(err => {}); hehe
nice
works but what was that error all about
it occured after the "time" was done
The error was about the time running out, but you not doing anything with that error
probably
it rejects with the collected reactions, which is kind of weirdo
hi everyone
you specifically set it up that way... errors: ['time'],
oh i read it as "if the 'max' didn't happen in time"
well yeah if max didnt happen before time ran out, thats the errir
Do a try catch to catch the error and see what the actual error is
can anyone help me add commands to a bot i made
how would i constantly disconnect someone from a voice channel based on their id and the voice channel id?
i ran through my apps folder and found my old project that i worked on in like april
its called Anarchy Server Maker Bot Maker (ASMBM for short)
@forest drift what library
also why not just deny them permission to join the channel
Discord.js
also why not just deny them permission to join the channel
@sudden geyser it's for a troll bot I've been asked to make for my friend
Is it possible to print an argument in Python?
It's pretty much just print(arg) unless it's somehow overcomplicated?
to import an object from a external file should i use classes?
Hmm
Just import works for me
How's the object stored?
Unless you have an error @dire obsidian
you use tkinter?
Oh that thing, no
@dire obsidian Do you have any errors?
let me execute it
Kk, let us know
- Listen to the
voiceStateUpdateevent: https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=e-voiceStateUpdate - See the
.channelIDand.id(.idI think is for the member ID). - Check the
.connectionor.sessionIDproperty (I don't know which one determines if the member is in the voice channel, but experiment).
If .channelID is equal to the channel ID and .id is the member you want to kick (use .member.id if .id doesn't actually point to the member; it should), call the .kick() method.
I mean, importing should work just fine. 🤔
Then again, it's 0642 and I haven't slept.
I’ll handle, I think I know what his issue is
Thanks
@dire obsidian Anything?
And?
Ok, any errors?
Try it and see
i try it
now see
show this error #development message
anyways
thanks for the help
i need to go, take care
I want to turn my bot on, help plez? I want to make mee6
explain more?
maybe give some example code
@drifting wedge sry for ping just want ur attention
what api are you using?
0exe are you joking or no
we cant
I’m joking by the way, I’m not THAT retarded lol sorry 😔
@dire obsidian your most recent error likely means you tried importing one module, then inside that module you try importing that other module, leading to a circular (also known as recursive) import.
The reason for your last error was because label was not defined. I assume you're referring to the Label class from the tkinter module, but there needs to be some form of instance of it in order to use it. To my knowledge, the command keyword is called when the user clicks on the button.
I assume you want to pass some kind of argument to your click function. If you really wanted to pass an argument, one option would be to use a lambda so you call it with an argument. But label can't just come from nowhere.
Small sneak peek at the new update regarding dblpy
webh = dbl.WebhookManager(bot=self.bot, port=port)
webh.dbl_webhook("/dbl", "dbl_pass")
webh.dsl_webhook("/dsl", "dsl_pass")
await webh.run()
It’s tag is mee5#1842
@drifting wedge Are you joking about this as well?
does anyone here use discord.py for making a bot?
@lusty furnace Yep
Anyone s there ??
@hasty mulch can u make a giveaway command or ticket command bc im having trouble finding out how to do that altho i do know lots abt discord.py
oof
i rly just know more abt python in general but making a bot using the language basically opens up so much more problems and discovery
its almost like a whole new language within a language
sendMessage is not a thing#
where is
it's just send
can you write it to me command?
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.
message.channel.send(...);
message instead of mesasge, but yes
that is, if I put it to run it will run normally?
tryitandsee
Try it
Ty
sendMessage is a v11 thing
Which v11 will be unsupported soon
Well your on v12 so that doesn’t really matter
im fairly certain v11 has been deprecated for 2 months now
We can also reference https://discordjs.guide/additional-info/changes-in-v12.html.
Sees length and starts sweating
Same
Might as well get that link pinned
Just ask
thanks
so i have this say command
where my bot repeats what u say
but i wanna know how to diable mass mentions
Like what for example
You can check if the content contains those mentions
And if it does, either redact them or don't reply
This should help
https://stackoverflow.com/questions/61243162/discord-py-how-to-detect-if-a-user-mentions-pings-the-bot
So I am just wondering, how can I create an event in discord.py where if a user pings the bot it will respond with a message?
I have not found anything concrete anywhere on how to do this and I w...
And now that you know how to detect specific mentions, it's just simple if else logic
Thanks
is it possible for discord.js's collector classes to cause memory leaks if you don't remove the listeners after they end?
It'll be fun to watch.
maintaining own updated fork be like
can you edit certain parts of a pull request in github so you only allow certain thingsd through
asking in advance
hi
why is my bot not in the server yet why is it not publish on the website
it’s been like five whole months
Firstly, wrong channel
Secondly, its gotta get approved.
maybe longer
i’m about ready to click the leave button because I’m about done
go right ahead lose a member
do you did you read this side message or are you blind
yea, bot development, your question fits better in #support
is your lack of understanding strong or weak?
it's been 1 month
you're just barely hitting the how-long-it-should-take-according-to-the-faq-and-everyone-else limit
lol
bruh not here plz, and the minimum wait time is 6 weeks, its barely been 4 and you're complaining
css animations
any code available?
is it just simple hovering-like animation
Can anyone explain what just happened
Looks like message replies will be an official thing now, not just a > and a ping
can you give ur code?
no
just for refrence
Isn't it just setting up two keyframes, and slowly moving between them to give it that levitating effect
i don't know how to insert code in Description box
style tag
n:help
@terse lynx use transform and transition
If you want to move it up then it's translate if u want to increase size then it's scale
how to make a bot?
Through code @lean sorrel
..
Looks like message replies will be an official thing now, not just a
>and a ping
@cinder patio i forget to remove the ping 100% of the time i hope replies won't have the ping automatically there
go right ahead lose a member
@earnest phoenix °looks at member count°
oh i did that wrong :(
BRUH LOL
show pls
you have 2 bots running on the same token?

uhmm no
damn
Fixed, thank @opal plank

using node-fetch on reddit
sometimes return urls which are not pure Image/Gif urls
can i specify to only get .gif .png etc?
which lang @ionic shard ?
js
try checking with endsWith()
if(endsWith('.png') || endsWith('gif')...) // continue code
that should help a bit
thanks

In Goggle Analytics how do you check the average duration for which users stay
if(endsWith('.png') || endsWith('gif')...) // continue code
@opal plank this is just actually surface checking, you need to check the file header if you want to know the actual file type
that'd be best, yeah
an .exe can be renamed to a .gid
gif*
they best bet is liekly checking for extension with that string search
some libs just give you the object with simplified and parsed results
which i assume is that case with the lib they are using for reddit
none of the libs give you the actual file data lol?
i know quite a few that dont
nor do i know which endpoints they are touching and what it returns
but yes, checking headers would be preferrable
the url is enough, make a GET request and read the first few bytes of the data you receive just to check for the file header
otherwise, use string search
i think you might have a misconception
the file header is in the actual file
in binary
thats what i mean with string search
first, it may have queries in it
so it might not even work with endsWith() as i suggested
its more of a patch rather than a permanent fix
Is anyone else having problems with getting users by ID in Discord.py 1.5?
You sure your cache isn't dead?
Hmm might be.
Looks like it might require the member intent.
Hmm no change. I assume there's a way to reinitialize the bot cache
I got it, there's a new guild_ready timeout that defaults to two seconds.
Hmmm didn't like that either....must be some new Discord API thing.
let attachment = new Discord.Attachment(image.toBuffer(), "goodbye-image.png");
how would i change that to work with v12?
No, it's definitely intents.
wrong server
@surreal cradle rong server
lol
@compact oriole u work for trivia
sorry for ping

its ok. im new on discord
i don't know much about it.
yea I make my own bot?
so... i got my token auto reset last night 😦
BRAIN ALERT
that'll teach me to go to sleep.
oh shit Brain is here 
what time is it there?
also why did it get reset?
bot got caught into a reboot loop
ohhh rip
restarted 150 times in 2 hours
damm
it was due to a dependent library being stricter than it used to be
sad
oh so it got changed
updated, seemed fine, went to bed.... rip
Then gets quarantined by Discord because it's getting ratelimited
it also worked fine for hours before that in dev/test
🤔
EEEEE
goes to show you can never trust your dev env
yea
...
for all you people with antivirus, i have some other homeopathic cures for y'all
(what im saying is: windows defender is fine. you dont need to be suckered into a subscription for something else)
@green kestrel antivirusis gud
(what im saying is: windows defender is fine. you dont need to be suckered into a subscription for something else)
exactly
if im using member.displayName, what would i use the display the discriminator?
@alpine coyote don't advertise ffs

I don't care about your bot/server 

What is your goal 
also this is not the place to do it
@alpine coyote please do not advertise here
@alpine coyote dont spam
Starts speaking Enchanting
glitch and reple and dbd
Yeah, it was intents. Enabled the member intent and added a couple lines of code and it's working.

Hey Midnight
There some sort of a list of intents anywhere?
No
Just member and event
;-;
This is #development, @cobalt spruce
Discord bot designer is what they're referring to 
@slender thistle ur not mod at the moment




