#development
1 messages Β· Page 1420 of 1
then it is?
oh
idk
it never throws an error
let avatarList = message.mentions.users.map(user => {
avtEmbed.addField('\u200B',`${user.username}\'s avatar:`,false)
avtEmbed.setURL(`${user.displayAvatarURL({format: "png", dynamic: true})}`)
});
}
you need title for setURL
OH
and the result embed url would only be for the last user in the map
what the fuck are you doing
you can use a for loop or forEach
yes but i couldnt get the message.mentions.users to get me anything
the function you pass as the arg needs to be regenerated and re-evaluated for every single element
compared to a basic for loop where you're just indexing the array and whatever you're doing is statically typed
okay so for (const user of message.mentions.users.values()) {}
yeah
uhm
im new to js, dont you need to have something to determine when the loop is done...
@pale vessel
thats what im used to
not a discord question, but a nodejs question, basically how to get the vars you declare in file https://stackoverflow.com/questions/65077170/how-to-list-all-declared-variables-in-running-nodejs-file
Wth
ok @pale vessel your for loop worked, but why shouldnt i use map?
Because it's slow
?
line:
if (rolesEmbed.fields[2].value.length > 1024) return message.channel.send('you got more roles than i can list. Must be 1024 or fewer in length.')
error:
TypeError: Cannot read property 'value' of undefined
Map creates another array copy so you would typically use it if you want the evaluated result
But in your case it returns nothing
ohhhhkayyy, i should just read up on map
forEach is probably faster but it would still be slower than for loop
@tardy hornet rolesEmbed.fields[2] is undefined
Debug
console.log(rolesEmbed.fields)
well
Do you know now why rolesEmbed.fields[2] is undefined
count how many elements that array has
rolesEmbed.fields[2] would mean that the array must have at least three elements
array indexes start with 0
If you still don't get it, I'm sorry
There's not much I can do
@pale vessel i just fixed that, ty
i did get it because you helped me, tysm
Nice man
no, i said that because there is most likely a much better way to do what you are doing
how would one go about storing some emote codes, then calling them up later?
like perhaps an entire freaking deck of cards?
uh.. u do realise i just showed part of a console interface to mean to say WHY i want the list of declared variables
because currently i have a shit ton of if statements determening what emote to use...
If you're on linux hosting (I had same problem) just install font
im scared, how can i know that the URL isnt an ip graver or something like that
thats sus, how can i be sure?
please ping me when respond, i wont click on it till
We can't validate whether a specific website we don't own is legit or not.
It's not ours that's for sure.
there's a reason why DIscord puts these "do you trust this domain" warning
if you don't feel comfortable clicking it, then just don't
you should definitively not click in links or domains you dont trust
otherwise this mgiht happen https://youtu.be/tzYPr9w22VU
This is the best song from the SpongeBob tv show
ngl i just heard it and regret posting that

not clicking youtube videos anymore
I LOVE IT
fuck that
use a vps
im hearing it in the background
i need to stop posting emotes without knowing what they are, just by name
that looks like paimon humping someone like a dog , not paimonHug
but bro
wanna see the best rick video i have ever seen
?
@opal plank
you wont be sorry
its just 28s
i guess, post it in #memes-and-media
how would one go about storing some emote codes, then calling them up later?
define emote codes
okay slight problems
uhh
const Description = Bot.commands.map(command => command.help.name).join("\n"); Anyone know how I would add a custom prefix before the command?
yes but how
i mean YOU define what emote code is
i tried to make it so first it sends the warning then checks to see if it sent the warning and if it did mute them
you mean hash?
their id?
the picture url?
what IS code?
oh
but it doesn't run the mute part
I tried .join(prefix) but that put it after.
command => prefix + command.help.name
see
like <:emote_name:emoteid> @opal plank
I really appreciate it.
Thank you!
that code makes 0 sense
database would be best for long term storage
if you dont mind losing them on restart, simply map them by id
you are doing if(function)
@opal plank they are just a set of playing cards, so just map?
yes, but you'll need to save them i assume
i dont need it long term as storing messages from each users in each guild from a long time would take up alot of space
i'd recommend storing a json file and calling them
not talking to you cucko
lol
oH
helpin @twilit geode
refresher on how to call from .json?
or what to change
require(path)
why do you need to check if it sent the message? if the bot cant send the message because it has no perms, the user will not be muted?
or fs.read, but require does the job easier for you
okay so in my db there is a command where you can enable it whenn you do it actiates the anti spam which thhat is apart of,
i just need to know
how i can get the bot to be like oh i warned them
i already told you what you should do u bonk
i need to mute
lmao
if i put the file before the folder my command is in, how would i access it
simply await the message being sent and add isWarned or some other thing on your userMap
how the fuck would you even save this
When Erwin is yelling, I get scared
I-
yeah no, im out of this one, good luck erwin :^)
WOOW
lmao even tim quit
When Tim starts being passive aggressive, I know shit's very bad
lmao
lol
assing it to a variable.
let cards = require(path)
When either of them quits, you know you are a lost cause
i'm slow smh
i gave you the answer though
idk what you struggling with
await the message being sent
and then add a new property on their user
i assume userMaps() is a map containing info about the user
mhm
get the user by id
mhm
then add isWarned = true;
huh
then check within that code if(isWarned) {//mute}
if the user has already been warned before, mute them
what does is warned mean
if not, add isWarned
like
yes
if(isWarned) means they were already warned before
so you want to mute them after
@_@

you REALLY need to learn the basics before
i read it
no u didnt
that time wasnt even enough to read the first paragraph
read the whole thing
you need to know maps in order to use them
learn it first, THEN try it on ur code

how to you retrieve something from a map?
uh
Moon trusts turtles and therefore must not be trusted

.set
map.get(value)
i think
H
learn it first
IT'S LIKE QUICK.DB
Done
HhHhhHh
Retrieve means get
(reading == understanding) ? itWorks() : return #development
Shiv is so cute
@slender thistle is emotional support, like i said, tim and i quit, he's the thing keeping us in chat
NO DO NOT FUCK SHIVACO
what's the voting credit ?
._.

finna leave tbh
how to use voting credit
C'mon fam that's kinda hetero
lol why so passive aggressive
lets just call people morons until they leave
blocked ty
blocked ty
welp, i gave u the answer, up to you if you gonna bother someone to repeat exactly what i said though


wym
nobody blocked you homie
const HelpEmbend = new Discord.MessageEmbed()
.setTitle(":robot: Commands :robot:")
.setDescription(Description)
.setFooter(`${process.env.prefix}Help [command] to get infomation on a specific command.`, )
.setColor("#0099ff") ``` How would I implement a category?
π
how do i add a function to my bot where if someone votes my bot on top.gg, the bot will do something to the user? btw im using JavaScript with discord.js and im using fs
It's nice to know that you're using fs
hold on dev senpai-
Python, aiohttp.web
Is there any preferred way to recreate a webserver instance?
The way I'm planning to achieve that is by literally closing current instance and then recreating a new one, and it seems to work decently.
To be clear, I'm thinking of adding a WebhookManager class to dblpy that has a recreate method, which will re-configure DBL/DSL routes to be used again (actual initialization is done manually by the user). Later, the user will have to still use webhook_manager.run() to actually run the webhook with those routes.
how would I go on about setting up a dynamic fields in a message embed? using DJS 12.5.0
For example, a field would hold 10 entries as its value, it gets the full value amount from the guild channels size, so a guild having 20 channels would be 2 dynamic fields, if it has 50 channels it'll be 5 dynamic fields, would prefer to add that with a .addFields(), I think I could figure out liming the entries to the fields with 10, just setting up the dynamic fields would be a bit iffy for me
what are you talking about
field can't be dynamic lol
they display what you give them
I know they can't be dynamic
however I think i've seen some discord bots having fields based be different based on entries, or do they use custom showcases?
I don't use fields, I just use the description and style that how I please
eh I need the inline feature for them
I also don't use the constructor
however I think i've seen some discord bots having fields based be different based on entries
what are you implying by entries
lemme code it outJS for (const [id, channel] of message.guild.channels.cache) { // check if its category, followed by separating text and voice channels } let checkedChannelsEmbed = new Discord.MessageEmbed() .addFields( { name: '1-10', value: 'here are mentioned 10 channels that don\'t have setup permissions', inline: true } // add a 2nd field if there's more entries so instead of 10 channels, be it 20 or 30, each field would hold up to 10 channels before having the next added )
so your question is how to split into chunks
that isn't dynamic fields
just string manipulation and basic logic
yeah that, well i wasnt sure for the proper terminology
if there's a guide i could check out that you would recommend, it'll help
there's a fuckton of results on google on how to split an array into chunks
after you split it into chunks, loop through the array of chunks and add a field for each chunk
if you want to keep it O(n) just make it the part where the chunk gets added to the "master array", instead it adds a field
If you're lazy just use lodash to chunky the array but then why the fuck would you do that
Hi, i went back a bit to my code, updated it, and while trying to do an embed (code below) i've got this error :
(node:27959) UnhandledPromiseRejectionWarning: TypeError: fields.flat is not a function```
My code :
```js
channel.send(msg.author, new Discord.MessageEmbed().setDescription('Creation de votre salon de support en cours...\n\nVeuillez expliquer votre probleme :').setColor('ORANGE'))```
where channel is a discord channel.
Any idea ?
Bot.guilds.members.cache I know I am doing it wrong, but I forgot how to do it right.
what do you mean ?
what do you want to do ?
I am trying to get the total of members in each server.
...cache.size
<Client>.guilds.cache.forEach(guild => {
console.log(guild.members.cache.size)
})```
this will log the number of users of every guilds one by one
Different error: Unhandled rejection TypeError: Cannot read property 'cache' of undefined TypeError: Cannot read property 'cache' of undefined
Cache is undefined.
show the code you tried to run ?
Bot dude is not your client obj
That's what I did.
Scroll up
well Bot.guilds.members is undef sure
Bot.guilds.cache is a collection
containing all your guilds
so you must pick one
or do a forEach
like Bot.guilds.cache.get(GUILDID).members.cache.size
or
do that
Use a for loop instead, thatβs faster
also works fine
Sorry-- went afk. Thanks!
@hasty lotus ```var TotalMembers = 0
Bot.guilds.cache.forEach(guild => {
TotalMembers = TotalMembers + guild.members.cache.size
});``` It came out as 6, the total number of servers the bot is in.
I need members?
well it's cached users
but i think there is a property guild.memberCount
or something like that
check the docs
I thought that as well.
It came out as undefined.
I had a typo! Thanks for the help!!
Hey can anyone help me out if I want to add the cancel option inside this code, like when the user change their mind to cancel music they will write cancel and then the command terminate, I try
{
return message.channel.send("**CANCELED**")
}```
before first catch error of the code, can someone help me out
Anyone know how to check if a message has a certain word im making a blacklist command and I want to to look for words that are logged in the db and if it finds that word execute a command would it be message.content.contains(db stuff here)?
let passed = false;
let mainMessage = // Send the selection of songs here
let collector = message.channel.createMessageCollector(m => m.content.match(/^\d+$/) && m.author.id === message.author.id, {
max: 1,
time: 30000
});
collector.on("collect", async collectedMessage => {
if (parseInt(collectedMessage.content) < 0 || parseInt(collectedMessage.content) > 10) {
await mainMessage.delete();
return message.channel.send("Selection index must be between 1-10");
}
await mainMessage.delete();
let chosenIndex = parseInt(collectedMessage.content);
passed = true;
// Start the music here
});
collector.on("end", async () => {
if (passed) return;
await mainMessage.delete();
return message.channel.send("Took you too long to choose a song.");
});``` This is how you would go by it @jaunty surge
@main trench message.content.includes('db word here'), thing is it can detect for example the word 'sex' from 'sextillion' as trigger word
Hmm
so idk how could it be made better
String.prototype.contains() is not a method, you should go by String.prototype.includes() and place all your bad words in an array and use Array.prototype.some()
Example:
["bad", "word", "moment"].some(b => message.content.toLowerCase().includes(b))```
Hmm I attempted .includes but it still doesn't work
Code?
if (message.channel.type === "dm") return;
let words = db.fetch(`wordsdb_${message.guild.id}`)
if (message.channel.type === "dm") return;
if(!message.member.hasPermission('ADMINISTRATOR')) {
let user1 = message.member
let badlink1 = new MessageEmbed()
.setDescription(`You cannot say bad words in **${message.guild.name}**`)
.setColor("RED")
if (message.content.includes(words)) {
message.delete()
message.author.send(badlink1);
}
let data2 = {
staff: `**Warn**\nModerator: @sacred glade\nReason: Bad Word\n`,
}
db.push(`logsdb_${message.guild.id}_${user1.id}`, data2)
}
})```
words searches the database in that server for a certain word
if its in the database it will execute that code
No, i meant what type does it return? String? Array? Object?
array
Hmm
That's what you're supposed to do
staff: `**${word}**`,
}
db.push(`wordsdb_${message.guild.id}`, words2)``` bl.js pushes the word here
Umm
its to see the list
my coded
message.reply(`${client.user.username} is on ${scount} servers with ${usercount} memebr/user`)
}```
my error
cannot read property `size` of null
Not there, log it in console
aight
What are scount and usercount defined as?
var scount = client.guilds.size
var usercount = client.user.size
Which version of discord.js are you using?
Do npm ls discord.js to find your discord.js version
ok so the issue was i was fetching it wrong
i needed to log the word by itself and not in a array
@earnest phoenix what's /^\d+$/ mean
That's called a regex
ohh
-- discord.js@12.3.1
Then
let scount = client.guilds.cache.size;```
let usercount = client.users.cache.size;```
ok
which intents go with which events?
i mean i got the server members intent that makes sense but what is the presence intent for?
it said Akamenotabot is on 0 servers with 0 member/user
but it in 11 servers and more member
as the name suggests, presence
the status, for when we play games, listen to spotify, when we are DND, online, away, all that is GUILD_PRESENCE data
@earnest phoenix https://discord.com/developers/docs/topics/gateway#list-of-intents would suggest looking into this
Integrate your service with Discord β whether it's a bot or a game or whatever your wildest imagination can come up with.
oh okay
i mean if thats it then i got it lol, was just confused bc ive been getting mixed messages
let usercount = client.users.cache.size;
message.reply(`${client.user.username} is on ${scount} servers with ${usercount} member/user`)
}```
it said Akamenotabot is on 0 servers with 0 member/user
but it in 11 servers and more member
can u help me
how can i make text show when u hover over something? html
preferrably with no js
css :hover selector
const Description = Bot.commands.map(command => ``${process.env.prefix}${command.help.name} : `${command.help.description}``).join("\n"); How would I use "`" in a `` sentance?
cache.size is 0 if the bot did not start yet. you need to move those to inside the event, so they only get set after the bot started
\`
Oh. Thank you.
selector?
abc {
something:value
}```
^abc is the selector
aka, the "what" to apply the css to
the :hover selector lets you define a css for when an element is hovered
i want to like show a div
when u hover
how do i do that
" you need to move those to inside the event"
// this is the program body
// everything on here is executed immediately
// in case of a discord bot, any code placed here will be executed before the bot is ready, and therefore has no access to discord information
bla.on("something", abc => {
// this is an event
// everything in here is only executed when the program receives something
// in the case of a discord bot, this only happens after the bot is ready, so any code placed here is guaranteed to have access to discord information
})
``` @lucid prawn
@quartz kindle i dont get it
i want to SHOW text when u hover over something
but when i did none on the not :hover one it broke
the error bla is not defined @quartz kindle
oh please...
read what its written
dont copy
i did read it
what didnt you understand then
where is the text you want to show? in a div? what do you want to hover to show the text? another div?
are the divs one inside the other?
do i use this
its inside a big div
.invboxtext {
display: none;
background-color: #7289DA;
border-radius: 20px;
padding: 20px;
}
.invboxtext:hover {
display: block;
background-color: #7289DA;
border-radius: 20px;
padding: 20px;
}
.hide1 {
display: none;
}
.hide1:hover {
display: block;
}```
.invbox {
background-color: #7289DA;
border-radius: 20px;
padding: 20px;
}
.invbox:hover {
background-color: #1c2024;
border-radius: 20px;
padding: 20px;
}```
thats my css
use what? there is nothing to use there. i wrote that for you to understand how it works, now look at your own code and apply your new knowledge there
ok
Do it like this? @drifting wedge
.invboxtext {
display: none;
}
.theDiv:hover + .invboxtext {
display: block;
}
so hide1 is the one that is hidden, and you want to show, right?
is hide1 inside invboxtext?
so when you hover invboxtext you want hide to show
shouldnt make a dif tho
you want to sohw it when you hover invbox or invboxtext?
i want to hide it default, show on hover
.invbox:hover + .inboxtext
Can anoyone help me when i type a command the bot doesn't respond
you want to sohw it when you hover invbox or invboxtext?
look this is my css
.invbox {
background-color: #7289DA;
border-radius: 20px;
padding: 20px;
}
.invbox:hover {
background-color: #1c2024;
border-radius: 20px;
padding: 20px;
}
.hide1 {
display: none;
}
.invbox:hover + .hide1 {
display: block;
}```
you want to show it when you hover invbox or invboxtext?
<div class="invbox">
<div class="hide1">
<a class="font-weight-bold" style="color: white; font-size: 12px;">text yay</a>
</div>
<img src="https://imgur.com/XJTB2a1.png" class="" width="120px">
</div>```
i want to show on hover
invbox
invboxtext is useless
.invbox:hover .hide1
thanks!
thanks luke and knowable
π
tysm
now i can make shit invisible!
thankssss
Can someone help me?
give more info
maybe if you explain your problem better, show code, etc
reset your token
Thats all?
no
Hold on let me reset it
lol
this is wrong
I got that from a youtube what needs to be there?
this is also wrong
and this
you have a lot of spelling mistakes, not a code problem
What about this?
.startsWith(prefix)
I had that
Someone else said to remove those
Ok
thats all i have a few others things
console.log(`New guild added: ${guild.name} (Id: ${guild.id})`);
let TyEnbed = new Discord.MessageEmbed()
.setTitle(`**Thanks for inviting me!**`)
.setDescription(`I will ensure I do a great job assisting you. For help, do ${process.env.prefix}Help or ${process.env.prefix}Commands`)
.setTimestamp()
.setColor("#0099ff");
owner.send(TyEnbed); ``` `Unhandled rejection TypeError: Cannot read property 'send' of null`. Not sure what I did wrong here.
hmm
There is a lot wrong there.
owner is not cached
you need to fetch it
PLease help me
cache?
@quartz kindle after im finished i have a few others things also
You have a lot to fix.
Do u mind if u tell me??
message.guild.owner
or cache the guild and then pass the owner
you should look into learning javascript before you start working on a bot
Agree.
its like you're trying to write a book in japanese without knowing how to draw their alphabet
there are many websites that offer free courses and lessons
just google "learn javascript"
I learned from Github.
or something
yes
I mostly looked at the comments and remade their scripts by memory.
One message removed from a suspended account.
Do u know how long or an estimate time it will take me to learn it?
Also, @drifting wedge my bot stopped going online again after 12 hours of uptime, I've already contacted discord.. this sucks lol
idk how smart you are or how fast you learn, could be a week, or a year
Mega F
How long did it take u?
its prob intents again
its js doe so really cant help
Also the project im working on rn should i delete it and?
try specifying intents
when i started working on bots, i already had a few years experience with other projects
I've been learning for about 3 mouths now. 2 months ago I thought I was ready.
Same.
Yeah no, i've tried disabling and reenabling everything, discord bot support team is last resort i guess..
i started my bot without any coding knowledge
it went ok kind
at the start nobody helped and just said learn python
@quartz kindle Should i delete the project im working on rn?
but i got thru it lmao
send it to me π
No. Come back to it in the future.
Ok
take a break
a lot of people are trying to make a discord bot as a first project, but discord bots are not exactly basic, they can be petty advanced
Will u help me with it?
Well i see u guys in about a month or two when i actually learn js bye bye
what lang is it in?
nah
learning programming is for nerds
Wym?
even though i already had a few years of experience, i had to learn many concepts that i didnt know about before to be able to work with bots
Do you have any other coding experiences?
Ehhh, no first time
node?
u do node?
It took me 1.5 years to understand Roblox's lua and it is easy to learn.
yes
Even so I was still bad.
You are not going to be done in 2/3 months if this is your first time.
it took me about 3 months to get a working version of my first command lol, although its a very complex one
Well, you had 10 typos and spelling mistakes, so π€
its noticeable lmao
do you have the patience to complete the things you rush into tho?
Yes i have lots of patience
good, you'll needs lots
But i feel like life is so short so u have to rush everything
I mean, 80 something years sounds like a lot
true
And taking your time will also pay off in a lot of cases
Well see ya maybe about 2 years
Cus seems as'
Well my friend just dmed me
hold on
That's what I did when I first started. TRUST ME: It gets you no where.
i started working on a small lib for use in my project, was supposed to take a day or two... its been over a week and its still not ready lol
lol
Well see ya in about ayear or two cus its seems as yall need to have 2 years of knowledge on js and then start coding bots
Bye bye
and i accidentally found a pretty big performance issue in javascript in general
Really?
ye, there seems to be an optimization bug/flaw with proxies
Wow. It's not everyday you find a bug in their proxies.
Ooooooh.
Hey
I found a website and it said is only gonna take me about 30 hours to learn it
And im happy
good luck
ok
30 hours is usually ment for people who have experiences with past programming languages. Google some Beginner Discord.js tutorials.
let them try it anyway
codecademy has super good courses
How would I cache the whole guild?
since the url says introduction to javascript i'm fairly certain that course is meant for absolute newbies to javascript & programming
client.guilds.resolve
^ no
the guild is already cached by default, what you're looking for is to cache members
you can cache a specific member by fetching it
guild.members.fetch(id)
in case of the guild owner, you can use guild.ownerID as the id to fetch with
I am looking for the owner of the guild to DM them.
let owner = message.guild.owner
let owner = await message.guild.members.fetch(message.guild.ownerID)
owner.send()
No message was sent though...
guild.owner is a getter for guild.members.cache.get(guilld.ownerID)
it returns null if the owner is not in the cache
exports.run = async(Bot, guild) => {
let owner = guild.owner;
console.log(`New guild added: ${guild.name} (Id: ${guild.id})`);
let TyEnbed = new Discord.MessageEmbed()
.setTitle(`**Thanks for inviting me!**`)
.setDescription(`I will ensure I do a great job assisting you. For help, do ${process.env.prefix}Help or ${process.env.prefix}Commands`)
.setTimestamp()
.setColor("#0099ff");
owner.send(TyEnbed)
.catch(err => {
console.error("Failed to send message to USER. Error: ", err)
});
}; ``` This is the full .JS.
It did return null.
That's on guildCreate?
Yeah.
I am using fs.readdir("./events/", (err, files) => {.
Ah okay, then try let owner = guild.members.fetch(guild.ownerID)
Alright.
i already posted the solution lol
lol

not joking though, precalc exam right now lol
story of my life
I need help.
How do I make the bot reply in multi-line messages when run a command?
Multi-Line doesn't work for me.
can i have a timeout for like 24 hrs?
/n doesn't work.
its \n
Oh, thank you.
can timeout's be for more than 24 hrs+ without having a error? or is there a limit for tha
there is no limit
but they only last while your bot is running
if your bot dies/crashes/restarts, the timeout is lost
@valid grotto owner.send is not a function?
brain dumb
so this is probably a really dumb question, and a link to a tutorial if one would be wonderful, but in java, you can make seperate objects inside of classes, that you can call up from other classes, as long as everything is public... how do you do that in js
The only thing I can add is await.
I don't have messsage in my event.
Remove the message then
replace message with whatever is appropriate
I will try? Thanks.
guild is already cached
all properties are public by default in js
there shouldnt be any issue doing the same
Owner.send is not a function.
so how would i go about specifying that a certain thing should be used as Class.object()
did you await it?
console.log it
Log what?
the owner
I think I am going to just scrap the whole DM idea.
you dont need to specify anything, js is all dynamic
its more about how you call it than how you declare it
Thanks for the help though.
lmao
I has brain damage.
you're are trying to implement interfaces? or call class methods from other classes?
I'd console.log the owner first and see if it returns anything
Watch out. The next thing you know people will attack you for having an opinion.
call class methods from other classes
ikr
you can do that using .call(thisarg)
how is disagreeing with someone the same thing as attacking them?
Have you not seen twitter my guy?
@hollow sedge for the record i dont think your attacking me
i just like everything nice and understandable
oh ok, I thought you were talking about me
One famous person has an opinion and tweets about in and the next ting you know everyone is attacking that person for it.
uhhh
for example ```js
class A {
abc() {}
}
class B {
xyz() {}
}
a = new A();
b = new B();
b.xyz.call(a) // calls xyz using the a instance and the "this" variable
wait do i need to call a class?
I'm just a β¨ beginner β¨
the call function lets you override the "this" variable
i think what we think a class is is different
so you override it with the context from a different class instance
Also, for some reason EMBED doesn't work for me.
Does anyone know some command ideas?
let embed = new Discord.MessageEmbed()
discord.js?
const works better.
its not about works better
i just got berrated for using const and var...
next person saying var will get slapped
I use glitch.com cause my laptop can't download discord.js :)
ty btw @quartz kindle
maybe i just didnt understand what you meant, since i dont really do java
try https://repl.it
Repl.it is a simple yet powerful online IDE, Editor, Compiler, Interpreter, and REPL. Code, compile, run, and host in 50+ programming languages: Clojure, Haskell, Kotlin, QBasic, Forth, LOLCODE, BrainF, Emoticon, Bloop, Unlambda, JavaScript, CoffeeScript, Scheme, APL, Lua, Python 2.7, Ruby, Roy, Python, Node.js, Deno (beta), Go, C++, C, C#, F#, ...
?
glitch does not do well with bots
I know but it was all I could do.
repl is what i use to host/test my betas
My laptop can't download the discord.js plugin.
I researched on some free hosting. There was none.
repl is glitch but better
Free hosting?
You cannot tell me I am wrong 
i never did lol
I know.
the best free hosting is google's f1-micro compute engine
Digitalhost free 100$ credit
. Github developer pack 
but you need a credit card to register
setInterval(async () => { await fetch('project link').then(console.log('Pinged!')) }, 240000)
I use that ^^ to keep my bot online 24/7
youl never get my money ag ag ag ag ag
lmao
Github student pack 
Github is quite hard to learn / host and can be very annoying.
glitch shuts down unless its kept up every 5
You got it good!
using uptimers is against their tos iirc, but pls, keep telling me how legal free hosts are 
huh
YOU CAN HOST ON GITHUBBBB?
I think so. Not 100% sure.
tim can i slap them?
i saw a guy that was literally hosting his bot using github actions
pls
you dont need to learn how to use git/github to get the student developer pack
I use that line of code to not make it shut down.
i guarantee that your bot is not up 24/7, if the thread is not active at least once within a 5 min period, it stops it
hosting shit on gitbug
Haha nice try.
bruh
It was up overnight
Massive F @livid lichen , I reapplied with a proper document though, so I'm positive I'll get accepted
the fuk
What
ANYWAY
Can we get an F in the chat for our fallen student 
chile anyways so
F

There's a lot of free hosting.
It's just not legal
https://support.glitch.com/t/an-update-on-pinging-services-glitch/27311
HMMMMMMMMMMMMMMMMMMMMMMMM
please, do tell me about legal stuff
you can't be right, because if your right, that means I'm wrong; and I dont like that

Just use replit, pretty sure they allow uptime pinging
@opal plank You need to boost them to use Glitch's services.
yep
no
to boost them you need money no?
i like repl, its super easy to work with the other devs, and hey, it can upload to github!
wait why though
The only problem is my s wifi.
did you even bother reading what i sent?
repl isnt for discord bots but ig it isnt against the TOS
The only problem is my laptop that can't download discord.js plugin,
pinging services is against glitch's tos
What's the errors?
no, but discord is just a plugin, so it works great for beta testing (i push my full versions to personal hosting)
Turns out my student ID doesn't have a proper enrollment date.
oh if you're just testing then it's great
It says that like, I don't have developer tools thingy bajigie idrk
????
Show me the error. I might be able to help.
Do you have Windows?
I'm fine, thanks tho. I have mac.
ah that sucks, mine doesnt either and it still went through
I cannot help then.
maybe i gave them additional documents, i dont remember
CORRUPT! 
Yeha, it's a mac problem.
lol

ewwwwwwwwwwww
Shut up
LOL
I'd think so. Try checking their gitrepos.
I just have mac cause I do online learning and it is SO HARD on windows like, my teacher only assigns stuff that is only available on GOD DAMN MAC.
i mean i would lend you my server but...
Have you installed node.js? @queen hamlet
get a better teacher
I tried.
LMAO
i wish to keep my pings crispy
41ms? Ah...
CRISPY THEY WILL BE
ws ping or rest ping?
Wait, what's your verified bot?
@oak sentinel
Nice!
uhh
i thought they were purging the bots off this server?
well its gonna limit to 50... so let the battle Math.random() begin
92ms. Is that good?
I thought only Roblox's lua had math.random() π³
yea its part of all there new shit, including the fact that you cant get the bot dev badge anymore
Your teacher seems to be brand ambassador of Apple. I would suggest suing him
Someone that codes discord.js help me with embeds all of the codes I tried not working.

Wait... what?
Dang.
her*
i gotchu
wassup
Whenever I do a embed reply, it doesn't work.
butt
Embed reply just doesn't work.
All the newer devs like me are shitting their pants because they cannot get the badge. π³
"all codes i tried are not working" means you're trying to copy paste random code?
I'm using mac right now π
Yes. I am dumb.
rip
Lol

message.reply(embedName)
Sometimes gives a cute bug too π
π
And then?
Seems like real and legit coder to me
that should send the embed...
with a ping to the user who issued the command
does it not???
inb4 "embedName not defined"
The one I "copied" is message.channel.send that uses for normal responses.
im assuming he built the embed already...
ok that works to
I didn't. I deleted it all after.
You got a point tho
Yes
mmmmm
show the embed you tried
Lemme just copy and paste it from a random guy again.
bruh
lmao
const embed = new Discord.MessageEmbed()
PLEASE PUT IN CODE BLOCK
^ heres your random guy
EY
YouTube How to make your bot reply with embed no scam no hack no fake no bug 2020
lmao
that's how you find the best videos though?
No, I only find 1 good video out of 50
the best videos to laugh at
you're forgetting "cops called"
yeah come on are you an amateur?
yes
@queen hamlet will you post your embed code?
What I do is after I click on a video, I pause it, I scroll to the desc, if they do not have the code, I go to a diff.
I'm looking for it
Lol

thats the best way to never find working code
99% of the time the code they post depends on code made in other videos
which you dont have
Ye.
tbf you arent a great youtuber if you dont put your code in the description
wait... *thats illegal*
they dont care about that, they just want to make a discord bot
so it doesnt matter how they get there
You mean me?
i mean
OF COURSE I MEAN YOU
the docs literally explain everything WITH EXAMPLES
lmao
I'm searching a tutorial and I find a tommyinnit video.
yeah if you're going to copy from somewhere, why not actually copy from the docs?
BuT iM a BiG bOi, i dont need pictues
lol
you dont need pictues?
βοΈ fwoosh
The code looks like:
.setTitle
.setDescription
and sumth like that.
...
thats correct
But doesn't work.
then you did it wrong
can you retype it in and the paste it here
But there was no errors,
so we can see whats wrong
Okay just give me about 3 hours
code is like a puzzle, you can have code that works, but if you cant fit it with the rest of your code, i wont work
best hunt an peck in the west?
@queen hamlet do you want to see an example?
lies, timezones, lies
too small; cant read
ARE YOU ON LYNUX TIM?
no lul
fancy clock then
its windovs
π€¦ββοΈ im stupid
windos tzen
ex dee
how high are you
nou
wrong answer
sorry officer
the only correct answer is "yes"
yes
btw we're on #development lmao
oh ik lols
anyways i go slep, c yaa










