#development
1 messages Β· Page 1190 of 1
both dont work
try 80
@solemn leaf What in the hell are you even doing there
try 80
nope
@earnest phoenix https://www.npmjs.com/package/image-filter-invert
<Is this aki guy doing html in simple JavaScript>
@solemn leaf I'm so confused, You used nWorkers and target which isn't even defined in your code? Wot
@solemn leaf Also why use that package to invert while you can use jimp?
It's literally easier and needs less code than that
@stone birch you dont need the webhook on port 80, i usually use between ports 100 and 8000
@earnest phoenix ill look into it
and port 80 clearly gets used by something else, which would probably be some sort of website
25600 is the limit iirx
i like using numbers between 100 and 8000 anyways
over 10k it just has too many numbers xd
port 3000 is the default tho why not use that
I have already tried many, is this correct what I have put on the website?
URL =http://my host ip:my host port/dblwebhook
Authorization = random word
is it just me or is something literally blocking all ports?
@stone birch are you running any firewalls or something
okay cubes hosting doesnt seem too good
You have the Discord Bot plan there?
Hmm then i'm guessing they only have ports open for discord bots
not for websites, webhooks or anything else
id doubt they open it
i'd suggest going for a full VPS somewhere rather than direct "discord bot" or "minecraft server" hosting
it costs more and needs more work to fully get setup, but it gives you full access over it's resources you paid for
including ports
https://contabo.com is one that comes to mind
German server provider | #VPS from β¬3.99 / mo | EU and US Locations available | 15+ years of experience | 70k+ happy customers | #hosting #cloud #infrastructure
contabo is cheap but as far as i heard hardware might and will fail because they reuse resold hardware
https://www.ovhcloud.com/en-gb/vps/ OVH comes to mind too
Ovh is good but the control panel is literal trash
galaxygate, digitalocean, AWS however are all better but cost more
https://www.digitalocean.com/ DO comes to mind too
however, it aint my money so go ahead and choose what provider suits best for ya
DO is expensive tho
yea
ah okay, i think i will do without that "votes" function, it is a great host
Im not mature enough to be here huh
wdym
@misty sigil you seem to know lots about ports and stuff can you help with my lavalink server error?
Node error: Unexpected server response: 200
events.js:298
throw er; // Unhandled 'error' event
^
Error: Unexpected server response: 200
at ClientRequest.<anonymous> (C:\Users\Owner\Desktop\Discordjs\node_modules\ws\lib\websocket.js:576:7)
at ClientRequest.emit (events.js:321:20)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:610:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:116:17)
at Socket.socketOnData (_http_client.js:479:22)
at Socket.emit (events.js:321:20)
at addChunk (_stream_readable.js:297:12)
at readableAddChunk (_stream_readable.js:273:9)
at Socket.Readable.push (_stream_readable.js:214:10)
at TCP.onStreamRead (internal/stream_base_commons.js:186:23)
Emitted 'error' event on WebSocket instance at:
at abortHandshake (C:\Users\Owner\Desktop\Discordjs\node_modules\ws\lib\websocket.js:694:15)
at ClientRequest.<anonymous> (C:\Users\Owner\Desktop\Discordjs\node_modules\ws\lib\websocket.js:576:7)
[... lines matching original stack trace ...]
at Socket.Readable.push (_stream_readable.js:214:10)
I get this in my console (node:16) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 guildMembersChunk listeners added. Use emitter.setMaxListeners() to increase limit but I've never used guildMembersChunk. Can anybody help me?
what lib
?
what library
nvm i figured it out
how can i view the permissions of an entered role?
@nocturne grove You're just using too much memory that will almost be more than the actual memory you got
That's why it happens
For example if you have a memory of 1gb and you used 900mb of it, that would happen
Okay thanks @earnest phoenix. So I can ignore the guildmemberschunck part of the error?
guildMembersChunk is used when you fetch all members of a guild
@gilded plank
@nocturne grove You can ignore it but your bot is near to a crashing state and will be restarted if it does
Yes
i have a bot what can i do
code it
no
yes
huh ?
that is unregistered
wdym ?
i cant register any domains
i did
then it will let u to get domain
i d i d
@pure lion then u unlicky boi
How to get total shard size in v12?
client.shards.count
It seems wrong.
TypeError: Cannot read property 'total' of undefined```
Hello, i have this code. It grabs how many server my bot is in and displays it on the bot status. But to make the status update, i need to reopen the file everytime then it updates. Anyone know how to resolve this?
@client.event
async def on_ready(pass_context=True):
print(client.user.name)
print(client.user.id)
print('-----------------')
activity = discord.Activity(name=f"over {len(client.guilds)} guilds", type=discord.ActivityType.watching)
await client.change_presence(activity=activity)
I tried to make a @task.loop
but i cant get it working
anyone know
?
@earnest phoenix (meant @supple sail) use <Client>.shard.count
.shard may return null if there's no sharding being used.
There should be a recommended shard count
wrong mention 
instead of a ghostping, he just marked it out
https://alebot.is-inside.me/uBipiiIA.png
anyone know a fix?
heβs too smart to be left alive
anyone know a fix?
@pure lion sounds like you need their support discord
:o
how could i make my bot loop through every member in a guild and preform an action on them?
how could i make my bot loop through every member in a guild and preform an action on them?
@ripe wadi use a foreach loop
@sudden geyser i appreciate that mention strikethrough
tried that and it didnt work for some reason
1 1 1
What's your code?
how could i make my bot loop through every member in a guild and preform an action on them?
@ripe wadi seems like api abuse to me π
its a small server, shouldnt be a problem
not if it isn't an api call, like a db action
ill delay it so it doesnt spam it all at once if that helps ig
It also depends on what you're doing tbh
How to get joined voice channel size in V12?
auger what is the link to the support server?
gimmie a min
didnt they add another filter to catch mass dm bots?
auger what is the link to the support server?
@pure lion idek what website that pic is of
i recall someone telling me that
mayanlar do you mean how many people are in a voice chaannel
@faint prism freenom
not erwin do you mean that rate limit where you get banned for an hour
@pure lion https://www.freenom.com/en/contactus.html should be there
mayanlar do you mean how many people are in a voice chaannel
@sudden geyser yes
Use <VoiceChannel>.members.size
found this snippet on stack overflow. someone asked the same question i did and people seem to agree that it works
but it doesnt for me :/
that doesnt work lol
its most likely outdated code
list.forEach?
that only works if the guild is cached
and if it is, you dont need fetch anyway
use get instead
look ill just
list.forEach is not a function
and it wont list all members, it will only list online members
list is a promise
const fetch = await message.guild.members.fetch() // Fetches all members of the message guild
fetch.forEach(member => { // for every member
console.log(member.user.username) // log the username
})
that should work
lemme try
@faint prism lmao its the simplest stuff ever
Probably. But a bit of explanation as to how it works would probably benefit him more
oh yea
it works, thank you so much @misty sigil π
wanna know why it didn't work before?
I would like to know
because you were fetching the guild (which doesn't include members)
it was also not awaited (client.guilds.fetch() / message.guild.members.fetch() returns a promise (which needs to be awaited))
.cache.get() however doesn't return an object, so no need to await that
thank you my guy :)
Also mapping them is better than spamming the console
aye no problem
:)
Also mapping them is better than spamming the console
@earnest phoenix meh its fine
π wholesome
nice whitename
i spam the console when making commands
asked why it didn't work
then learned why
π
wait.. its all purple?
hi
I always LOG everything
@thick gull <I swear officer console said she was 18, literally raping the shit out of it>

what do you need help with exactly
yes
yes help us help you
const client = new Discord.Client()
client.on("ready", () => {
console.log(`Logged in as ${client.user.tag}!`)
})
client.on("message", msg => {
if (msg.content === "ping") {
msg.reply("Pong!")
}
})
client.login("token")```
Is the article you're reading not enough of a guide?
alright so im coding a discord bot using discord.py, and when i run a command, another will not run until the first command is finished. any idea why?
read the
Is the article you're reading not enough of a guide?
@sudden geyser
guide
no
it tells you
Do you have a good understanding of JavaScript
dont copy paste code
i tried
no you didnt
no i dont understand code at all
learn js
We require discord.jsβs library and initialize it by calling Client().
Then we listen for some events such as ready and message via the on method and we tell how to handle these events with a callback function.
At the end of the code, we call the login. It establishes a websocket connection to Discord. But, as you can see, we need to provide a token to that method. Indeed, Discord requires you to have a key/token in order to use their API. Thus, weβll grab one to make it work
Then you shouldn't be making a discord bot, as it is an intermediate level application development project
i am filled with rage
NO
const Guild = require("../models/guilds");
module.exports = function getGuild(message) {
Guild.findOne({guildId: message.guild.id} , async(err, guild) => {
if(err) return
if(!guild) {
const newGuild = new Guild({
guildId: message.guild.id,
autorole: {
roleId: " ",enable: false
},
wellcome: {
channelId: " ", enable: false
},
warn: [],
logs: {
channelId: " ", enable: false
}
})
await newGuild.save();
return getGuild(message);
}
return guild;
})
}
This return undefiened
: /
help me
@sand skiff you should learn a language before you try using it. There are many ways to learn JavaScript, such as interactive lessons: https://www.codecademy.com/learn/introduction-to-javascript.
mm time to mute this channel forever
no
yes
maybe
help ?
@earnest phoenix you cannot return data from a callback synchronously
you need to use promises
didnt get it
.then would suffice
:0
oh
Instead of that callback
const Guild = require("../models/guilds");
module.exports = function getGuild(message) {
Guild.findOne({ guildId: message.guild.id }).then(async (error, guild) => {
if (err) return
if (!guild) {
const newGuild = new Guild({
guildId: message.guild.id,
autorole: {
roleId: " ", enable: false
},
wellcome: {
channelId: " ", enable: false
},
warn: [],
logs: {
channelId: " ", enable: false
}
})
await newGuild.save();
return getGuild(message);
}
return guild;
})
}
``` ?
Try
corerct ?
still wont work
wut
Wait huh
i want to
@sand skiff To make any program, you have to learn a programming language. That language will be instructions for a computer to do something.
Making a Discord Bot, is an intermediate level project. Jumping straight into it will be extremely difficult and lead to a lot of questions you would already know if you learned the programming language first.
const Guild = require("../models/guilds");
module.exports = function getGuild(message) {
let guild = await Guild.findOne({ guildId: message.guild.id }).catch(e => console.log(e));
if (!guild) {
const newGuild = new Guild({
guildId: message.guild.id,
autorole: {
roleId: " ", enable: false
},
wellcome: {
channelId: " ", enable: false
},
warn: [],
logs: {
channelId: " ", enable: false
}
})
await newGuild.save();
return getGuild(message);
}
return guild
}
``` ?
now ?
@quartz kindle
still not working ?
yes, that will work if the library supports promises and async/await syntax. but you need to convert it into an async function
es6 syntax
oh idk
return it
ask your questions straight away
@quartz kindle return it?
I'm not doing this Inside an async function
return is only valid inside async functions
you cant have free floating objects because js will think its a block scope
I see why
if you wrap it in parenthesis it will resolve it as an object first
i wasn't ready yet
then don't post yet
then ^
can't you just be respectful and let me finish my sentence? Thanks!
What
can you just give us the question to not waste our time

you dont need to
it is just a matter of seconds
best announcement that i have a question is
Yo
Guys just stop off topic bruh moment
how do i do x in x
Ask your question
Will the big advertise my server
i know voltrex
Unlimited
Will the big advertise my server
@hexed meteor what
what
Auto affiliate
i am currently running my bot and am using this command:
!distance -0.78071 50.16961 -2.91239 -158.86512
which basically returns the calculated distance between the 2 coordinates. It is made in python
but my question is, how do i add a comma between the 2 coordinates?
ok
like this: !distance -0.78071 50.16961, -2.91239 -158.86512
take a string as your argument and parse it accordingly
matthew if you got nothing useful to bring in, please do not reply. With all respect, i cannot do anything with your "ok"
Split on ,
use splice and get the 2 variables
okay, thanks guys!
yeh split
i was gonna say split it
You just had to let him finish lol
lol
what did he say... just ask your question and do not 'announce it' right?
well just give the answer and do not useless say 'ok'
It wasnt a question it was a reply
but thanks for the help guys.
no problem, lol
can i make it so when someone sends a command it resends the command they sent
i have a command that's &ask (question)
can i make it so when someone sends a command it resends the command they sent
@mystic pike if msg === "my command" reply "my command"?
anyone has a profile command Code ?
no
i mean like
for example if someone sent "&ask am I cool?"
how do i make it send back
am I cool?
yes
oh ez
just return what they send but without the prefix &
you can probably use substring to cut off the first character
what
"&ask am I cool?" is a string
a substring is a part of a string
if(message.content === '&ask am i cool?') {
message.channel.send(`${message.author.username}, Nah.`);
}
});```
lol
copy paste it
Google it
why
i did
Why always me β
because that resends their username
because copy and paste a bad habit for new programmers
oh
because copy and paste a bad habit for new programmers
@faint prism i know but they copy paste it then see how it works
so they learn
i did
@mystic pike so when you read https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring
it explained what I was talking about
i didnt see that
so they learn
@pulsar fossil no, that's spoonfeeding. You need to explain to them
o k ok sorry
i didnt see that
@mystic pike that's the Javascript docs, make sure you look there
wait
wth
wrong command
lol
that looked like it'd spam the api whatever it was
I don't think it would have, it was a timeout i think
is there a thing like to get what the question was
message.channel.send(randomMessage);
Wot
I don't think it would have, it was a timeout i think
@earnest phoenix looked like a repeater to update a msg's content, but I didn't see it very long
Idk i didn't see the full thing
gotcha
randomMessage would have to be an arrayOfMessages[RandomInt 0-array length]
no
if i recall correctly that is how my 8ball command works
i mean like i know how to copy what their username is and put that in the message
message.author.username / message.author.tag (with the descriminator)
is there a way to make it instead of user name the message they sent
https://discord.js.org/#/docs/main/stable/class/Message?scrollTo=author which expands to https://discord.js.org/#/docs/main/stable/class/User which then expands to https://discord.js.org/#/docs/main/stable/class/User?scrollTo=username
god luca needs a d.js command
.lastMessage?
i dont want the username
ah message content?
yes
how do u get something like this?
https://discord.js.org/#/docs/main/stable/class/Message?scrollTo=cleanContent or https://discord.js.org/#/docs/main/stable/class/Message?scrollTo=content
so it can resend the image content but as a quote
Just post your guild count to the api @sharp furnace
@sharp furnace https://top.gg/api/docs
by having an anime girl as the pfp
haha
by having an anime girl as the pfp
@faint prism ^ they send one of the moderators to look at the server count, they won't look at anything other than kittens or anime pfps
so, if im making a bot for ONE server with minor usage (basically tickets..) quick.db should be fine for that? I don't wanna set up a db or connect it to mongo atlas :P
I already did that
so, if im making a bot for ONE server with minor usage (basically tickets..) quick.db should be fine for that? I don't wanna set up a db or connect it to mongo atlas :P
@thick gull quick.db would be perfect for that essentially
yea thats what i thought
i need help my bot wont go online
ch-play song
learn a programming language before doing a bot
i need help my bot wont go online
@sand skiff So you learned JS that fast?
What's the error?
I just want everythign after args[0]
ah
im learning js as im making the bot
yall can ask me shit if you want just @ me, js
is the file supposed to be named
@sand skiff So you learned JS that fast?
What's the error?
@faint prism ```Last login: Wed Aug 26 16:43:39 on ttys002
Susantas-iMac:~ SiaYT$ cd /Users/SiaYT/Desktop/MAY
Susantas-iMac:MAY SiaYT$ node index.js
Susantas-iMac:MAY SiaYT$ node Index.js
Susantas-iMac:MAY SiaYT$ node index.gs
internal/modules/cjs/loader.js:968
throw err;
^
Error: Cannot find module '/Users/SiaYT/Desktop/MAY/index.gs'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
at Function.Module._load (internal/modules/cjs/loader.js:841:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Susantas-iMac:MAY SiaYT$ node index.gs
Susantas-iMac:MAY SiaYT$ node index.js
internal/modules/cjs/loader.js:968
throw err;
^
Error: Cannot find module '/Users/SiaYT/Desktop/MAY/index.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
at Function.Module._load (internal/modules/cjs/loader.js:841:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Susantas-iMac:MAY SiaYT$ node index.gs
Susantas-iMac:MAY SiaYT$ ```
it wont run
Just post your guild count to the api @sharp furnace
@earnest phoenix im confused by what u mean
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice @solemn leaf
its js
.js

ohhh
ok im out
@sharp furnace DBL has an api
question = message.channel.content?
question = message.content
not necessarily
why wont it run
wdym
@mystic pike Don't you have args defined
what
@sharp furnace DBL has an api
@earnest phoenix ik that but like how would i se it for the server count
you could just question = message.content.replace("ask command", "")
args.join(" ")
Susantas-iMac:~ SiaYT$ cd /Users/SiaYT/Desktop/MAY
Susantas-iMac:MAY SiaYT$ node index.js
Susantas-iMac:MAY SiaYT$ node Index.js
Susantas-iMac:MAY SiaYT$ node index.gs
internal/modules/cjs/loader.js:968
throw err;
^
Error: Cannot find module '/Users/SiaYT/Desktop/MAY/index.gs'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
at Function.Module._load (internal/modules/cjs/loader.js:841:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Susantas-iMac:MAY SiaYT$ node index.gs
Susantas-iMac:MAY SiaYT$ node index.js
internal/modules/cjs/loader.js:968
throw err;
^
Error: Cannot find module '/Users/SiaYT/Desktop/MAY/index.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
at Function.Module._load (internal/modules/cjs/loader.js:841:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Susantas-iMac:MAY SiaYT$ node index.gs
Susantas-iMac:MAY SiaYT$ ```
please
help
let args = message.content.split(" ").slice(1);``` @mystic pike
@sand skiff its obvious
question = args.join(" ")
name: 'ask',
description: "ask",
execute(message, args){
question = message.content
const messages = ['yes', 'no'];
const randomMessage = messages[Math.floor(Math.random() * (messages.length - 1))];
message.channel.send(question, randomMessage);
}
}```
what??
index.js doesn't exist
No
she

Cannot find module '/Users/SiaYT/Desktop/MAY/index.js'
i changed it
Error: Cannot find module '/Users/SiaYT/Desktop/MAY/index.js'
to js

help
:o
it has no content
lol
Did she change this?
yes
0 bytes
its unsaved.
save it
CTRL+S
i have mac
ctrl s
if that is a question you have to ask
if that wasnt obvious
It was
file > save
i did it!
but now its not sending the random message
331 bytes
Looks like it saved
yes it has content
yay
now try
wait
@sand skiff regen your token now
it kinda works
lmao
where did the commas come from
are you doing a replace or something?
?
It looks like you replaced with ,
name: 'ask',
description: "ask",
execute(message, args){
let question = message.content.split(" ").slice(0);
const messages = ['yes', 'no'];
const randomMessage = messages[Math.floor(Math.random() * (messages.length - 1))];
message.channel.send('> ' + question + randomMessage);
}
}```
Also, \n makes a new line
i know about \n
oh
@sand skiff regen your token now
@modest crane huh why-
because that's an array's toString, right?
@modest crane huh why-
@sand skiff u sent the index.js
because i can see it
tell me if that works @mystic pike
try question.join(" ")
@misty sigil wdym
for your question
wwhats .join
message.channel.send('> ' + question.join(" ") + randomMessage);
question is an array
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join heres some mdn docs
does anyone know a nice alternative to electron that supports transparency and isn't heavy on ram
i tried ultralight, i loved the idea of working with cpp but the renderer is too buggy and runs at 30fps max
no problem!
but can u explain why it works
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join read this
that will learn you well
no problem 
the function is named execute, not run
const clowns = new Set() //w!clown command
clowns.add("313481150637277197")
client.on('message', function(message) {
if(message.content.startsWith(`${prefix}clown`)) {
if(!message.member.hasPermission('ADMINISTRATOR')) return message.reply('cant use this L')
let person = message.mentions.users.first()
if(person.bot) {return message.reply('You cannot clown bots.')}
let newClown = message.mentions.users.first()
if(!newClown) return message.reply('You need to mention the user you want to clown.')
if(clowns.has(newClown.id)) {
clowns.delete(newClown.id)
message.reply('removed clown :(')
} else {
clowns.add(newClown.id)
message.reply('new clown in town!')
}
}
})
client.on('message', function(message) {
if(clowns.has(message.author.id)) {
message.react('π€‘')
}
})
whenever someone does w!clown @here it comes up with the error .bot is not defined
tldr: parse your argument instead of grabbing the mention from the collection
d.js has a built in regex for it iirc
How does one do that, I just started last night haha
change execute to run
@misty sigil then the command doesnt fully work
split the message content by space, get the second element in the array (the first one is going to be the command), see if the argument matches the regex (https://discord.js.org/#/docs/main/stable/class/MessageMentions?scrollTo=s-USERS_PATTERN), from there you can remove <@ or <@! and > from the string which will leave you only with the id
So if I'm on ECMAScript6, how's possible to upgrade to ECMAScript9?
Is it related to updating the node.js version?
es features depend on the js engine the code is running on
in node.js's case, its v8 engine
update to my message above, you might not even have to manipulate the string, the id is returned in the match group
so yes, upgrade node
So v14 is ES9?
v14.8.0 is v8 8.4
check the v8's website to see which features 8.4 has
but most likely all the recent es2020 features are supported
If I'm stuck on v12 version of node.js, is there a way to bypass this?
@sharp furnace
let servercount = 0
bot.guilds.cache.forEach((guild) => {
servercount = servercount + 1
})
What
why would you do that
cache returns a collection
Which has a size property
that would work
Man this is JavaScript basics
the forEach approach is extremely slow compared to just using size
Yea it's like doing a for loop on an array and incrementing a variable starting from 0 instead of using length on it
let servercount = 0
bot.guilds.cache.forEach((guild) => {
servercount = servercount + 1
})
@solemn leaf would i just replace that wiht what i have now?
if you want
Don't
or just do
use the size property like it was mentioned a few messages above
bot.guilds.cache.size```
If I'm stuck on v12 version of node.js, is there a way to bypass this?
Ideas?
Wot
wait
The same way that you do with most editors, using control + s.
do i use <br> or \n to create a new line in a response?
@earnest phoenix https://www.npmjs.com/package/discord.js-v11
\n
thx
@solemn leaf That is literally not what i asked for
Reread again
Node.js i meant not discord.js
Most of the time you're stuck on v12 version of Node.js and can't update to higher versions of Node.js, is this it possible to bypass this?
isn't there that harmony stuff // the harmony flag
can someone show me how to code an embed with discord.js, btw im coding in visual code
and install the verison you wnat
@solemn leaf That will literally install the v12 version i got right now
isn't there that harmony stuff // the harmony flag
@sudden geyser The wot
@calm junco MessageEmbed is a class for constructing embeds
@earnest phoenix a flag you can use to enable certain features (https://nodejs.org/en/docs/es6/).
I don't know if that's what you're looking for nor do I know if it'll support those v14 features you're looking for, but it's worth reading.
ima try
There is an easier guide
p.s. please read this
@sudden geyser Well i'll look into it on how to use the flag on the installation argument
basically it says learn js before making a bot
lmao
and you should do that
To enable es9 or es2020 features
<But when you realize you got a terminal looking container that doesn't do anything bruh moment>
that's not uncommon
that's not uncommon
i did discord.js before js but i have a background with programming 
Hi
i did lua before so i still do arrays starting at 1 and i cry cause i cant figure it out for whole days
i did discord.js before js but i have a background with programming
i did discordjs with only minimum js knowledge and knowledge in java and other languages
i dont recommend doing what i did
yeah same
js >> discordjs
When you have this container which is supposed to be a terminal that doesn't do anything


Hello, so I've build a database for my bot using Sequelize
Ive now come back to my bot around 10ish hours later and all the variables it stored are completely reset to default, why would this happen?
pls can somone actualy show me how to make an embed in discord.js
i need help with embeds too
i gotchu
yay
i watched yt tutorials but i get lots of errors and stuff
i used that to learn
tried reading the resources people gave you above?
ahh nooo
yay
learn js then take the discordjs guide
i do not reccomend youtube videos
^^
ummm i can if u want?
you wont learn easily that way
yes pls
or learn at all
youtube videos are usually outdated or arent well coded
stick to guides or this channel
i used youtube videos when i started and i got frustrated
Learn js first please
very rarely do you get some that make sense
?
wdym, like send messages?
learn to read docs
learn js ffs omg
no
no
join an array
no
try going through this
Hello, so I've build a database for my bot using Sequelize
Ive now come back to my bot around 10ish hours later and all the variables it stored are completely reset to default, why would this happen?
Sorry, small correction, the data values have almost kinda been lost? They've gone back to how they would be if i completely restarted the bot with no existing database
["help", "me", "join", "this"]
it returns help,me,join,this
I donβt want commas
how would I do it?
inb4 random person walks in and answers it
The best solution to not having problems when making a bot is to learn the Programming language you're using to make the bot before doing so
So please do mate
we cant help you if you dont know anything about your bots programming language or discordjs
array.join(' ') would indeed return help me join this
Sorry, small correction, the data values have almost kinda been lost? They've gone back to how they would be if i completely restarted the bot with no existing database
@forest drift Where do you host is the important question here
heroku
what database are u using
Sequelize
@forest drift Heroku doesn't support internal databases
That's why it resets them
oh...
["pog", "poggers"], how do I join this with a & @calm junco
are there any other free hosts that dont?
Heroku doesn't support internal databases
@earnest phoenix does it support external ones like mongodb?
Yes
sorry im extremely new to databases, only started trying them a few hours ago
@forest drift Glitch can do this but up to you
["pog", "poggers"], how do I join this with a
&@calm junco
@misty sigil wot
itβs really basic JS
I don't recommend using glitch or heroku or repl at all
i have glitch, how would i setup it to run on glitch?
if you donβt know how to do that
what would u suggest?
my advice to you
Doesn't Heroku have database support somewhere (not directly through files like you're trying to do with sequelize)
donβt make a bot
Doesn't Heroku have database support somewhere (not directly through files like you're trying to do with sequelize)
@sudden geyser yea it does
itβs postregsql iirc
@forest drift you could get a free mongo cluster
@calm junco https://javascript.info try going through this, atleast the first part
Setup a GitHub repository that's private, put your files in there, import to glitch and boom @forest drift
Setup a GitHub repository that's private, put your files in there, import to glitch and boom @forest drift
@earnest phoenix ok... I do have an old Fedora software pc, could i setup that to run the bot?
and google is your friend
@forest drift Yes but self hosting is not recommended
why?
Slowness
ah ok
lmfao
It works
Not if you have the nasa's internet connection
use their internet too
lol
just ask
when i put \n
And a quantum computer
for example
yes
Lol
yes
;-; id rather just pay for a host than nasa systems lol
Just work on nasa
im 15 -___-
get hired for nasa

uh
did that include an invite
Did it have a discord link in it
screenshot it
Whitenames can't send invites
ye
@earnest phoenix no-role*
msg.reply('\n **OMG! Please invite me to your server(s) because I can help you alot! \n **Bot Invite**: \n **Support Server Invite**: ')```
besides im annoying as hell to work with... my school even lets me work on group projects alone cause of student complaints
it shows up like
@winter basalt Same thing
not same thing
Mostly same thing i mean, some can have the auctions role
how do u get the bot dev role?
By having an approved bot
u get urs approved to topgg
fg
do you see the spaces
ive been waiting 7 weeks ;-;
im blind
@sand skiff because there are spaces after the \n
just remove them
you did add a space tho lol
woulnd that just make it say
@forest drift are you sure? You re-submitted your bot on the 24th (2 days ago).
No?
@forest drift are you sure? You re-submitted your bot on the 24th (2 days ago).
@sudden geyser ;-; it counts resubmitions
quick tip try before asking
ah fudge imma be here for years
69 years
Your first submission was 5 days ago though
whaaaaaaaaa
re-submitting puts it back to the end of the queue to my knowledge
did i submit to the wrong site then...
factsβ’οΈ
did i submit to the wrong site then...
@forest drift No, we just approve bots afternever69 years
oooooooooo sorry my bad, im thinging of when i tried to get my server on a site
ah god... i can never make up my mind, does it also put edits to the back?
no
phew
edits donβt affect queue positions
otherwise i would be here for 69 years
Edits does no effect on the queue
nice
so basically, submit a bot before even starting, then spend at min 3 weeks coding it?
i mean it could work
bet\nbet
=>
"bet
bet"
bet \n bet
=>
"bet
bet"
^^^ if you're still confused
@sand skiff
but dont do that
\n turns into a new line
who would know ;)
if you're just starting i would submit after a week or two of coding
bet\nbet
=>
'bet
bet'
bet \n
=>
'bet
bet
^^^ if you're still confused
@sand skiff
@thick gull i got it!
alr
I mean ive submited my one bot and just now knowing heroku doesnt support the database.... good thing i have at minimum a month before itll be reviewed
Β―_(γ)_/Β―
thx
Don't you hate it when people refuse to learn the Programming language, mostly the basics of it before proceeding to make a bot
if you're just starting i would submit after a week or two of coding
@thick gull dude click on my name and read my status, i havent slept in almost 3 days -___-
please take a break
Don't you hate it when people refuse to learn the Programming language, mostly the basics of it before proceeding to make a bot
@earnest phoenix im stuborn af, i started coding my first bot before even understanding what node.js was even... i learn from mistakes and prefere to learn smt new when i need to learn it, otherwise i just forget
coding without breaks is not only cringe but not good for health
bro ur brain slows down to an intel celeron cpu's speed if u dont sleep for 3 days lol
get a normal sleep schedule
that'll help
intel celery time
coding sleep deprived doesnt work for most peoplee
@thick gull back to my point of being stuborn :D
stubborn is no excuse to be unhealthy
im too stuborn to listen to health warnings... kinda an issue
The more you stay awake without sleeping, the more you code badly, leading to more errors, not being able to acknowledge the errors, more errors, and this all ends up in nothing but destroying your project
"kinda"
that's definitely an issue lol
also crazy adhd and have a weird case of waking up every 3 hours so doesnt make that much of a difference
every now and again i get woken up to a few thousand lines of a letter from falling asleep at my desk but its all in a days work
u only live once
hello
unless ur religious where u could live upto a billion times but idc
or well thts atleast what some ppl believe
i live life on the edge... go to a 90% christan school being the only athiest
you only live once so be careful
@proven lantern Nah i'll just go creative mode
XD
i wanna build a bot that acts like mee6 for a few months, then once it hits over 250 servers just spam pings just too see if i will get banned :D
Why waste your time man
In other words, "I want to be a dick"
pretty much
sigh
Why waste your time man
@earnest phoenix boredom and aslo just plain curious
you'll get banned
In other words, "I want to be a dick"
@slender thistle Not actually, it's just case of wasting time
and that's it
sigh
@slender thistle naa, i just wanna see how fast i can get banned
Time is more valuable than diamond or anything, you can't buy it or restore, live your life peacefully without wasting it
just say you're 11 or something and you'd get banned pretty fast
i mean to show waste of time/ pointless efforts, ive been building a disboard bump reminder bit and in the proccess have 4x the amount of knowledge on code as before
My FOV is about to turn into 360 degrees from all the facepalming I'm currently experiencing
AI will reconstruct all our consciousness in the future @earnest phoenix
Even if there's a "future"
dude i live in sa, there is no future
We never know when the life ends
My FOV is about to turn into 360 degrees from all the facepalming I'm currently experiencing
@slender thistle same
26 years and they still blame schools with no toilets on aparteit
In any case, keep this channel on topic
I wonder if I can go above 360 degrees into the hyperspace at this point
and Iβm out
i wanna try building a dungeons mmo bot...
nice
where its actualy like 3d, using text drawings to move ect
Build any kind of bot you want, nobody keeping you from doing it
https://alebot.is-inside.me/qoRcuKTK.png
how can i make the cursor not in the middle
Possibilities are endless
not endless
yes endless
if u wanna code 1:1 minecraft in ur bot then go for it
theres one bot i wanna build that i cant
is it possible
one that plays yt vids using text drawings -___-
how can I fix this formatting glitch?
you can make a vm inside minecraft and host your bot on that
1: i dont know even close to how thatd be possib;e
is it possible
@winter basalt Everything is possible if you know how to do it
I know how to fly
2: how would i get a 60fps text image for a yt vid
https://alebot.is-inside.me/qoRcuKTK.png
how can i make the cursor not in the middle
coughEm
no bro i can't fly singlehandedly
everything is possible with enough time
2: how would i get a 60fps text image for a yt vid
@forest drift even that
I know how to fly
mini sentry jumping much?
e
everything is possible with our sponsor today skillshare, get 50% off your purchase in the description
Bruh just go creative mode in real life
if you increase the spin of the earth over 17,700mph then everyone will fly
or just stop it
Bruh just go creative mode in real life
@earnest phoenix i wish, id bot the sht out of irl
Fix what
fix what
12&7
the "you're" probably
Just decode the uri
wha
how do i could a bot using Unicode :troll_face:
fudge forgot that isnt on thsi server
if a string includes that, It's in a form of URI @solemn leaf
how do i could a bot using Unicode 
decodeURIComponent comes to mind
Is that even a thing
how do i could a bot using Unicode
@forest drift please i need to know
decodeURIComponent()
i didnt spend a year wasting time on Unicode for it to be useless
decodeURIComponent(<Video title>)``` @solemn leaf
Yes
ok, so whats a free host thats online 24/7 and supports internal databases?
there isnβt one
that isnt the heroku that i just found was a scam
The more you stay awake without sleeping, the more you code badly, leading to more errors, not being able to acknowledge the errors, more errors, and this all ends up in nothing but destroying your project
@earnest phoenix this sums it all up
@sudden geyser As a proficient, i approve
