#development
1 messages Ā· Page 1174 of 1
but why call it bot
Uh name it somme else
dude, first of all: CHANGE THAT VAR NAME
ok
const embed = new MessageEmbed()
name it pepperoni, but not bot
Lol
message.channel.send(embed)
yeet
Xd
what should i do then?
name ur variables properly š
run npm i and read the error
We just told you....
run npm i and read the error
@pale vessel it gives no error
We just told you....
@sharp thicket where.....
Wai i got confused sry
bruh
Npm i module āsave
Yeah
how did it not throw any error
Yeah
wait you want me to do npm i opus --save?
try just install npm i discord.js
Update node ?
v12
Hmm
12 volts?
Version
;-;
Smh
he said 12v 
Lol
can't argue
Xd
you could try yarn
Install opusscript
Do you have a package.json ?
Wait do you have ffmpeg installed
Um idk
Do you have a package.json ?
@sharp thicket obviously that is why my bot is on
only music not working
what function allows me to edit the CSS style data of an element in browser javascript
Umm
what function allows me to edit the CSS style data of an element in browser javascript
@earnest phoenix F12
try yarn as KuuHaKu said
Lol
try yarn as KuuHaKu said
@golden condor idk commdn for yarn
It's literally just yarn
yarn install
@earnest phoenix F12
@lyric mountain lol i meant actual javascript
May it be your module that is having issues ??
Document.getElementById() to get the element ig
like element#style?
lmfao
after that idk
element.style.color = "#ffffff"; for example
no
@golden condor how to install yarn
what is it then
look on their website?
Fast, reliable, and secure dependency management.
@golden condor how to install yarn
@delicate shore https://readthedocs.io
Read the Docs simplifies technical documentation by automating building, versioning, and hosting for you. Build up-to-date documentation for the web, print, and offline use on every version control push automatically.
npm install -g yarn
How to get nitro? Please
Buy it
you pay = you get it
it says
embed.Send(embed)
^
ReferenceError: embed is not defined
have u updated ur var name?
https://classic.yarnpkg.com/en/docs/install/#debian-stable @delicate shore
ok
yes
Here come the brain aneurysms again
@delicate shore note that npm and yarn shouldn't be used althogether, I'd recommend deleting package-lock.json
the lockfile I mean
<p id="makeThisGreen">makeThisGreen</p>
<script>
document.getElementById("makeThisGreen").style.color = "green";
</script>
npm can restrain yarn sometimes
Is this korrekt (not on pc rn can't test)
have u updated ur var name?
@lyric mountain
yes
getElementById
oh wait
yes
so it's korrekt yay
if that doesn't work, put it on the bottom of your body
to make sure the document loads first

oh my
Same
yes
I made my own kinda-useless (that's the literal name) npm package and it got 700+ downloads in two weeks people are fucking stoopid
is this correct?
`var embed = new Discord.MessageEmbed()
client.on("message", message => {
if (message.content === "-bot") {
MessageEmbed.Send(embed)
.setAuthor(client.user.username, client.user.avatarURL)
.setColor("#00000")
.addField(
"ā½ Bot Ping : ",
Ā» ${Date.now() - client.createdTimestamp} + " ms",
true
)
.addField("Servers : ", Ā» ${client.guilds.size}, true)
.addField("Channels : ", Ā» ${client.channels.size} , true)
.addField("Users : ", Ā» ${client.users.size} , true)
.addField("Bot Name : ", Ā» ${client.user.tag} , true)
.addField("Bot Owner : ", Ā» <@686573386289119232 , @742791852327174145 >, true)
.setImage("")
.setFooter(message.author.username, message.client.avatarURL);
message.channel.send(embed);
}
});`
The fuck
@earnest phoenix hi
sorry if this hurts you but you seem like a dumbass
im new to coding
Then
@green bison const embed = new discord Message embed()
...why haven't u started with "Hello World"?
like, bots ARE hard to make for a beginner
Learn a lot before gettinginto bot shit
tf
const embed
@manic osprey you're wrong
client.on("message", message => {
if (message.content === "-bot") {
const embed = new Discord.MessageEmbed()
.setAuthor(client.user.username, client.user.avatarURL)
.setColor("#00000")
.addField(
"ā½ **Bot Ping** : ",
Ā» ${Date.now() - client.createdTimestamp} + " ms",
true
)
.addField("**Servers** : ", Ā» ${client.guilds.size}, true)
.addField("**Channels** : ", Ā» ${client.channels.size} , true)
.addField("**Users** : ", Ā» ${client.users.size} , true)
.addField("**Bot Name** : ", Ā» ${client.user.tag} , true)
.addField("**Bot Owner** : ", Ā» <@686573386289119232 , @742791852327174145 >, true)
.setImage("")
.setFooter(message.author.username, message.client.avatarURL);
message.channel.send(embed);
}
});```
ok so lyrics command crashes my bot and breaks my screen
causing my bot to go offline
@green bison use grasshopper app by google and go absolutely nuts with coding then get into bot development
yes
that big of an error message oh my god
No
that looks like a minified source code of the site you're getting the lyrics from
I NEED HELLP
I NEED HELLP
@gentle karma https://DONTASKTOASK.COM
How to download discord.js ik how to code a bot
the fuck
wait, let's split it up

if you know how to code a bot you would know basic node.js
yeah
ok so what should i do
which allows you to install and uninstall packages
A - How to download discord.js
OR
B - Ik how to code a bot
maybe remove command
choose one
Ok
npm install @gentle karma
ok so what should i do
@delicate shore debug it
9 y/o will see this and ask me how to get free nitro

Nvm i already downloaded it
@lyric mountain C - how to gain brain cells to ask good questions/use a good translator
if you want to prevent your bot from going offline on errors put a try catch block on the stuff that causes the most errors


can anyone help with this
.addField("Servers : ", Ā» ${client.guilds.size}, true)
^
TypeError: message.channel.addField is not a function
because message.channel.addField is not a function

channel doesn't have an addField option
So not sure why you're trying to access a function in a class that doesn't have that function
@gentle karma you are a good troll xd
do i type Message.Embed?
do you have the docs pulled up?
because I just searched for the function you're trying to access
and it looks like it's here
please learn
i meant learn javascript
ok thank you
@green bison please learn actual javascript
Or learn from here: https://www.w3schools.com/js/
Just to understand the basic syntax, using variables, functions etc
Makes attempting an intermediate level project much easier
a "Hello World" project is the holy grail of development
holy grail starting point*
if you don't do it at least once for the lang ur learning you're bound to fail
Hello everyone
lmfao
Remeber when i was a retarted kid who always asked for spoonfeed
pepperidge farm remembers
Remeber when i was a retarted kid who always asked for spoonfeed
@delicate shore you still are tbh
use screen
sudo apt update && sudo apt install screen && screen -S botSession and run your bot start command then CTRL+A and press D to detach from the screen. Then you can exit the ssh session safely
You should use a process manager like nodemon or PM2 to keep it alive and monitor it when you close terminal
@delicate shore Are you using it correctly? Detaching from the screen before disconnecting the ssh session?
Ok so my bot crashes and virtual screen finishes
@delicate shore Are you using it correctly? Detaching from the screen before disconnecting the ssh session?
@faint prism nah
You should use a process manager like nodemon or PM2 to keep it alive and monitor it when you close terminal
@heavy anchor if my bot crashes it creates a bot loop
Screen for life
screen is ass
Your screen is ass, mine works great
It's a dead simple way to background tasks
tbh, I just haven't learned tmux yet
It supports dividing windows, doesn't it?
yes
That's a really cool feature
It's probably a better terminal multiplexer as well tbh
Idk try PM2 start 0
Nvm then

You know you can set up a Web dashboard too with PM2
To monitor your servers and bots
make an account in the pm2 website and follow the instructions
Can I make it such that another bot sends a message in channel when bot is offline
Discord.js for life
I'm not really sure what you guys mean when you say "dashboard"
Are you all talking about a website with metrics for your bot?
Can I make it such that another bot sends a message in channel when bot is offline
@delicate shore yes
in pm2's case yes
make a monitoring bot
its metrics dashboard
Yes for the server and you can add bot metrics too
(discord.js) how do you detect if the bot leaves the server?
onGuildMemberRemove event
but detect it as the bot id?
Use the deletedGuild event
Hi, I have a question. How do i add the code that you will get money when you win the game and that money will store in your bank?
const Discord = require("discord.js");
module.exports = {
name: 'type',
description: "this is a type command",
async execute(message, args) {
let user = message.mentions.members.first() || message.author;
const quiz = require("./quiz.json");
const item = quiz[Math.floor(Math.random() * quiz.length)];
const filter = response => {
return item.answers.some(
answer => answer.toLowerCase() === response.content.toLowerCase()
);
};
const type = new Discord.MessageEmbed()
.setTitle("Typing Competition")
.setDescription(item.question)
.setFooter('Made by Hermione Granger#9434')
.addField(`Time`, `20 seconds! Be quick!`)
.setColor("RANDOM");
let amount = Math.floor(Math.random() * 80) + 1;
message.channel.send(type).then(() => {
message.channel
.awaitMessages(filter, { max: 1, time: 20000, errors: ["time"] })
.then(collected => {
message.channel.send(`${collected.first().author} is the first one to win the game and won ${amount} POG `)
db.add(`money_${message.guild.id}_${collected.first().author.id}`, amount);
})
.catch(collected => {
message.channel.send("Looks like nobody is as fast as me");
});
})
}
}
if (user.id === "ur bot's id")
guildDelete
onGuildMemberRemove or guildDelete confusion
So the way someone would setup a bot's dashboard is setting up a webserver that uses an api service that gets metrics from the bot's database or logs? Does that sounds right?
guildDelete is emitted whenever a guild kicks the client or the guild is deleted/left
onGuildMemberRemove or guildDelete confusion
@shy turret idk how djs calls the event
I'm a java guy
oh
but you get the idea
then im gonna do guildDelete
Someone please answer my question
@quartz kindle https://discordapp.com/channels/264445053596991498/272764566411149314/746368627283984525 Just want to make sure I'm conceptualizing it correctly
are you talking about pm2 or a custom dashboard?
Someone please answer my question
@earnest phoenix You'd have it store an integer in whatever database context you're using
My webserver connects directly to the database
client.on('guildDelete', async guild => {
});
im guessing it is like this (https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=e-guildDelete)
Emitted whenever a guild kicks the client or the guild is deleted/left. oh
are you talking about pm2 or a custom dashboard?
@quartz kindle I suppose a custom solution, since pm2 is JS-specific iirc
then yes, it would basically be a webserver that queries the bot process either via an api or via linux tools like top
Copy that, thanks Tim š
there are also many pieces of software that do it for you
like prometheus + graphite
and many others
@earnest phoenix You'd have it store an integer in whatever database context you're using
Oh okay
Mhm, just update whatever their bank value each time, and upsert it into the user's record in the db
Okay I will try and work it out
Not sure if anyone is able to help me here but Iāve been looking for away to make it to my bot commands canāt be activated in the main chat on my server Iāve been trying to use the docs and still canāt find how to do it
Just don't reply if the channel.id == something
Iāll try
@earnest phoenix The easiest way would be to change the overrides for that channel in your server and deny the bot send messages
hey guys who can help me with downloading discord commands on mac im using pytho
@earnest phoenix The easiest way would be to change the overrides for that channel in your server and deny the bot send messages
this is probably the better solution. Less tethered to specific ID's that way
Itās only for one command thatās all
Itās only for one command thatās all
@earnest phoenix right, but if you did what I suggested. It'd only work for that 1 channel ID and not on any other guilds. @heavy anchor 's suggestion was better in that it was more robust for handling separate guilds
are you okay with that not working on other guilds?
Hardcoding ID's may want to be avoided
?
@hard pumice
Then change it
but its not invalid
but it is
thats the thing
@faint prism I would like to think that that error would only happen if the channel is was the same as mine but even if they did somehow get the same channel ID it just sends a message in the chat to use the correct channel
it isnt dad
the API is rejecting it. It MUST be invalid
but it isnt
BUT IT IS
No, I'm working rn
š¢
No, don't trust me
Don't trust anyone with your token. lmao
@hard pumice regen it and paste it in
okie doki
\
ill try
did it last night
nothing worked
and i showed 3 ppl my coding
and they all said it was fine
Can someone help me which one i install its ubuntu 18.4
I got this all options in Ubuntu 18.4
and i showed 3 ppl my coding
Can a JS dev show this guy how to place his token in a .env file or something? I get the feeling he is constantly leaking his token
still. You should consider doing that
wht?
placing token in an environment variable
:'
Can someone help
what is that
putting it in a .json file works and then parsing it works too
Can someone help me which one i install its ubuntu 18.4.
I got this all options in Ubuntu 18.4
hardcoding your token isn't safe as you can see
@remote nova minimal ig
one big
Ohk thx once again
np
Did you copy the latest from discord, update the token variable, SAVE FILE, and restart the bot?
IK]
IK WHATS WRONG
gimme a sec
it didnt work
i forgot to replace the code in my other file that started the bot
but it still didnt work
how to push image into array in canvas ?
Is it a byte array?
lol
how to push image into array in canvas ?
@viral iris b r u h m o m e n t
i didnt save
lmfao
ugh
John I have a feeling you don't really know how to code
as soon as i saw that white dot i was so happy as i knew that was the cause
Did you copy the latest from discord, update the token variable, SAVE FILE, and restart the bot?
I thought that was the issue, so I made sure to ALL-CAPS when I said it
lmfa
no remember i forgot to put it in the other js thing
that ran the bot
and thats why it was broken
and store the token in there?
we use it for storing stuff we don't want other people to see
yeah
how would i store it?
a screen shot?
lol
do process.env.TOKEN to grab it in js
so it's something like client.login(process.env.TOKEN)
in a new file in vsc?
and you'll be absolutely retarded to leak the file and/or run smth which outputs process.env.TOKEN data
lol
you got it right š
no
I was gonna try to help
it is env
Why did you make the filename: .env token file
just make it .env
Bruh
but I can see I'm gonna loose braincells
idk
Absolute retard
just named it something random
no he did it backwards lmao
@earnest phoenix don't use that word, mods may mute you
Just like cry was, rip
no
sounded the most right
Oh my gof
@earnest phoenix bro no it's not. Stop giving false information
@faint prism bro why u confusin him
just name it .env
ohhhhhh
Voh please stop it
@earnest phoenix You're actually trolling rn
the way he did it is how i did it
you're clearly trolling
but ok
Then you're doing it wrong
now remove the text from the file

ok
The .env file should include the following line:
TOKEN=putyourtokenhere
NOTHING ELSE
not the .vsc?
no
Lol
lmao
A directory that contains VSC's settings like how to launch the program when you click "Run"
Ok
aight i did it
great don't leak it
now you gotta parse that file so your code can access it
was i supposed to make a folder or something?
you can use the dotenv module
no
just in the same folder as the .js files
Omg
omg
oh
yes parse in
.vscfile i think
@earnest phoenix seriously stop
learn brain cells before offering help
require(ādotenvā).config()
I beleive is the next step
in your index file
Voh please stfu
was i supposed to put the token below where it said put token here?
did you install dotenv already?
i have a feeling i was
yes
you put token there
was i supposed to put the token below where it said put token here?
@hard pumice
@hard pumice if I say <here> should you put it in mars or <here>
you put it IN PLACE OF that yourtokenhere
I'll spoonfeed cuz I'm going nuts rn
common sense my boi
@earnest phoenix BC you're feeding incorrect information and it's frustrating enough
.env
|_TOKEN=your fucking token retards
bot-code.js
|_bot.login(process.env.TOKEN):
now
you still need help
stop saying r word
stop being the r word
welcome to the javascript community
ruhroh š¶ ||scooby||
javascript is a horrible masterpiece
python is an amazing disaster
the hell is going on here
It's hell starman
lol
some crap
we tryna explain two retards
dont be toxic
We're trying to help a guy who is constantly doing it wrong
And @earnest phoenix is feeding incorrect information
pls mute
doesnt matter
the way you did is not the best way
be helpful, and keep drama outta here
āretardsā because theyre learninng javascript
there was a way to post emojis with only id, no?
@earnest phoenix was the one using the r word constantly
we were all beginners at some point chill my mans
alright I'm just gonna click Alt + F4
@earnest phoenix did i not just say to keep drama out of here?
<: id here :>
my bad
don't continue it, please
anyway lets not talk about anything drama related or controversial
Angular is a dumpster fire
there was a way to post emojis with only id, no?
@opal plank I don't think so
i said you needed to get the emote with the cnd url
you can fetch the name
i know the base sytanx
but there was a way to do with ONLY ID
but that requires fetching it right
Fetch the entire emoji using the id then use that format?
epic
<:\a:any_id>
nice
Time to go commit mass brain cell exodus with my best friends, brackets
@opal plank syntax? <:\a:580739487487754240> does not work for me
I have access to it and it still does not work.
did you add the \
cuz that's just for escaping it
and if you did then š¤¦āāļø
<:\a:607682498050260998>
oml
are people like, blind?
no
What's confusing is you have to remove the slash afterwards
Yes, some people will think you need to actually add it in there and try it like that
i use expressjs for my smol website and i have to make a new app.get function for every single page
f
I mean you theoretically could
don't worry i don't storr my env file in the root directory of the site
every request object comes with the uri, so you can make a function, pass it to every route, and then in that function check the uri
and do the crap
The if statement
thats not supposed to be there?
ur closing the switch statement
You're missing the { it looks like for the if
k
not needed
you only need the { if you have morw than one line
like
if (bob) console.log(bob)
u can do
if u wanna do more stuff and indent the code, u need the {} otherwise it sees the other lines as the other stuff unrelated to the if statement
ur closing the switch statement
?
ok so how to get number of bots in a server
iterate over each user and check for the user.isbot boolean, then increment an integer variable
forEach
no
forEach
@delicate shore sure
filter the guilds members to find the bots
like
using that is a slower way and unnecessary in this case
guild.members returns an array of members
so
filter the members to find user.bot
just started like 3 days ago
switch/case
{
case 'something':
// Do a thing
break;
}```
It's kind of like a different if/else statement
what is switch
you should probably just stick to if/else
if (thing == 'something')
{
// Do thing
} else if (thing == 'somethingelse')
{
// Do a thing
}
do anyone know a good website
@weak rain google.com is pretty cool
@weak rain google.com is pretty cool
@faint prism lmao i want for bot
Are you asking for a bot website?
Yes
or bot list?
Nasty
You mean a bot maker website?
I think he wants a website for his bot
Like some docs for your bot so people can learn how to use it?
don't send me tryitandsee thing
but try it
a example
@weak rain you can go on top.gg and click on a bot and check their websites' out
lazy to do so
@weak rain you can go on top.gg and click on a bot and check their websites' out
@faint prism good idea
ty
you're } should be before the break;
and your for loop doesnt have anything inside it
kk
@faint prism wdym
what @earnest phoenix
{
// Has nothing inside it
}```
:p
prrty sure
Found a way to make expressjs serve files automatically without me having to keep on making new app.get() functions. Am I dead from this line of code?
app.use(express.static(__dirname));
@hard pumice you really just need to learn Javascript syntax, man... lol
should i use that one website
yeah
k
u are to me
my .env is in the root directory
rude
Found a way to make expressjs serve files automatically without me having to keep on making new
app.get()functions. Am I dead from this line of code?app.use(express.static(__dirname));
i mean that will just make every file in your dir accessible
can anybody see did I do dis right? https://discordapp.com/channels/264445053596991498/272764566411149314/746391375141929021
Should work
just make another dir called public and change it to path.resolve(__dirname, 'public')
i mean that will just make every file in your dir accessible
areapp.get()functions called before express automatically serves files viaapp.use(express.static(__dirname));? Cuz i can just override the function and serve a KEKW image when.envis called
lemme try
I'm sure you can
i think everything gets called in the order you add it
ok
dont take my word for it though
you're doing extra work for something that can be resolved by just creating a new directory and throwing the static files in it
no
i think everything gets called in the order you add it
@split hazel no
app.get() functions work before express static stuff
dont take my word for it though
i tried it and saw
ok i made a lot of commands this enough
he said he wasn't sure
bruh
@fickle dune Don't stop until there are commands to see statistics on everything you can think of 
that app.get() functions work before express static serving
@earnest phoenix i have like 30
and making thes
my english
went brrrrrrrrr
i have to change some names
i made redit
insted f rededit
how do i make embeds?
bruh
discord.richemebed
ty
in a const
wrong
embed*
partially wrong
not smth to lol ab out
if you give someone wrong info it ain't funny
how should i style my docs page 
do i put multiple doge pics on the background
or do i put a heck detailed rainbow
or smth
does anyone know the code to show how many servers the bot is in?
how to use discord as a library
v11 or v12
when you suck so much at CSS you use 100 lines of JS to style your stuff
spoonfeed
yes sammy
man its 1 short line
I like how stackoverflow is the reverse of here, they will gladly spoonfeed
what is spoonfeed
spoon-feed = giving code as "help"
what's the correct function name, document.getElementByTag() or document.getElementsByTag()
oh thanks turtle
the first one gets one element
@earnest phoenix check in your console
the second one gets all
both I guess, yes
more than one element can have the same tag
so it doesn't make sense to only have one element for a tag name
unlike id where it is supposed to be unique across the entire document
dafuk
What is the variable for the event of disconnected user ??
huh
event
variable
document.getElementsByTagName("body").Map(array)[0]
is that the correct way to use Map
wtf even is Map
???
isn't there another function called Map() to convert a collection to an array
I'm not THAT good at JS
and you don't need .getElementsByTagName() because there can only be one body tag
*you don't need to map it
i need it for smth else
lots of doges

Made a REALLY COOL homepage for my npm package: https://kinda-useless-npm-package.code913.repl.co/
lol
who tf am i talking to
chat dead since 9:37 pm
RIP chat
ok
hey
hey
lmfao
is it better to use CSS for styling pages or HTML?
||i'm not mad||
Comedy level 10
are you actually being serious?
is it better to use CSS for styling pages or HTML?
||i'm not mad||
can someone creates a Doge programming language please

can someone creates a Doge programming language please
@paper cliff there is a cryptocurrency for it too
Dogecoin is an open source peer-to-peer digital currency, favored by Shiba Inus worldwide.
@paper cliff meme format on the writing techniques for it
i don't care about cryptocurrency i wanna write code with the dog
I ACTUALLY USE HTML FOR STYLING MY PAGE KILL ME CSS IS TOO HARD FOR ME
||mommy help||
no
How can one use HTML to style their page? HTML is used to define the layout of the page, CSS is used to style it
i meant using headers and stuff
k
That's not styling
pay your joke tax
the fu
gotta use heroku for now because i got no money for hosting gotta install a phone app for restarting dynos to turn the bot back on if the app crashes
it was a joke... sure
cant

my pc makes too much heat and i dont own a rasperry
buy a raasp
i host mine on repl.it no i don't
no sorry I have to eat dogs
sure you can
oh wait
height: 100%;
yep
that's the error
hmm why does my bot on heroku crash within 10 minutes of turning on
<img style="height: 100%">
on the heroku's website
What I should do:
<img style="height: 25%; width: 25%;">
What I am actually doing:
<img width="25%" height="25%">

am i just gonna sit here being embarassed from sucking at CSS
just learn :4head:
if an idiot like me can make https://aeon.js.org with only html, css, and js then so can you
still doesn't work
TF
where did you get the domain mate
google it
Dedicated to JavaScript and its awesome community since 2015
yea my bot just goes offline with no log at all from heroku
it does work dumbass me thought it was displaying the actual size
have you ever heard of a guy who thought the image was as big as it looks like when it has been shrunk down to 25%? you heard of em (you're reading his message man)
like it gives the logs on when it turns on but then it just goes offline
if an idiot like me can make https://aeon.js.org with only html, css, and js then so can you
custom css, or some like water.css?
water.css wuts that
ok
because i was too lazy
where did you get the domain
you have to pay for it or did someone give it to you for freeeeee
I'm pretty sure it's free, but you have to host your site on github pages
"f" + "REEEEE"
I'm pretty sure it's free, but you have to host your site on github pages
@cinder patio EXCUSE ME GITHUB PAGES GIVES US FREE DOMAINS WHA THE -
No
I've never tried github pages so I dunno. I simply repeated what was said in the website because I can read
i can't read :/
Hey guys I need a little help
So im making a RPG bot and I need to know how to set up an inventory for it
wasnt amazon AWS free for a year?
if i do <a href="/docs/functions.html"> and the current webpage is <my domain>/docs/index.html will it try to take the user to <my domain>/docs/docs/functions.html??
docs inside docs
I do not know
Digital Ocean gives you 2 months of free credits
no it doesn't
it just appends /functions.html to the domain name
Does anyone know how to set up an inventory for my RPG bot
use a database

read the docs
@earnest phoenix it's relative so domain/docs/functions.html
sqlite, ms-sql,mongodb,quick.db, etc
if you remove the leading / then it would be a different case
Ok
How do I use a database
@earnest phoenix learn SQL or use a no-sql database
Confused. Are you trying to say "no-sql" is not the same as "nosql" when used in a message
If you mean't no-sql = nosql then no
no-sql != nosql
lets eat, grandpa
lets eat grandpa
What is the difference?
that no-sql is not nosql
What is the difference?
@sudden geyser grandpa is eaten is one sentence
interesting
Stop being silly, it's obvious what they meant
So you're saying a mistake with my grammar is the reason it's not correct even though I'm implying what is obvious
I think I started something accidentally. What you implied was obvious. However nosql is not hyphenated.
.
Yeah you're right on it not being hyphenated but to say they're not the same when what I implied (and you knowing) is obvious is just petty.
Petty indeed. My mistake.
Not sure if this counts an an "optimization". What do you all think? I think i should be able to offload this to the mongodb as a query instead of just getting everything.
?
I have some args let args = ['a', 'b', 'c']
When I mention arg that doesn't exist ie, args[3], it returns undefined of course.
But I want the undefined arg to return "" an empty string.
I'm trying args[3] === undefined) ? "" : args[3]
What am I doing wrong and how to correct it?
it starts from 0
Should I iframe a gitbook space on my docs page or do I make my own HTML shenanigan
Anyone got any recommendations for an app or something I can use to develope my bot on the computer Windows 7
oh lul i thought args was ["a", "b", "c"]
Anyone got any recommendations for an app or something I can use to develope my bot on the computer Windows 7
@earnest phoenix chrome
@earnest phoenix visual studio code?





