#development

1 messages · Page 1227 of 1

earnest phoenix
#

you can't fix it

delicate shore
#

i host on Galaxy Gate
Looks like my bot lives in future

earnest phoenix
#

almost perfect

#

@delicate shore atomic clocks are the best clocks invented by humanity (till date)

#

what does the ? operator in JavaScript do

tight plinth
#

value?thing that execute if true:thing that executes if false

earnest phoenix
#

its the ternary operator

tight plinth
#

it's like a mini if else

hazy sparrow
#

guys what emoji can i use for my help command's 'image' section? i wanna split the 'fun' section

earnest phoenix
#

wdym

#

he wants a emoji idea

tight plinth
#

@hazy sparrow your choice bud

earnest phoenix
#

🖼️

hazy sparrow
#

;-; i cant find any good ones

earnest phoenix
#

use that

#

i can escape the emoji for you so you can grab the id without having nitro

#

(only if you pay me 100$ mmLol)

hazy sparrow
#

wot

#

i can give a virtual highfive

earnest phoenix
#

^^^^
(-_-)

hazy sparrow
#

but can it use emojis from servers it isnt in?

earnest phoenix
#

no

#

try to send it in here please

hazy sparrow
#

...

earnest phoenix
#

:DiamondShine:

#

i'll get the emoji gif

hazy sparrow
#

no need

earnest phoenix
#

k

hazy sparrow
#

i dont wanna use a diamond from mc in the image section of my command lul

earnest phoenix
#

🖼️

hazy sparrow
#

🖼️ is better

earnest phoenix
#

its for a image thing correct

hazy sparrow
#

yup

earnest phoenix
#

so photo frame is fitting

hazy sparrow
#

i might use the diamond gif later so i'll save it

ancient nova
#

is message.channel.send possible to do with guildCreate, and make it so it'll dm the first channel avaiable, or the owner

pale vessel
#

🙌

earnest phoenix
#

Google Discord emojis, there's a really good site that has thousands @hazy sparrow

hazy sparrow
#

kk, ty for the info!

earnest phoenix
#

is message.channel.send possible to do with guildCreate, and make it so it'll dm the first channel avaiable, or the owner
@ancient nova yeah thats how all of the bots that when they join a guild do it

ancient nova
#

mine doesn't really send anything, though.

earnest phoenix
#

If you are talking Python, then it would be 'on_guild_join' not on create

ancient nova
#

I'm coding in javascript

earnest phoenix
#

was the server very recently made

delicate shore
#

difference between Java and js

ancient nova
#

so, onCreate event {
message.channel.send('message');
}

#

should work right?

earnest phoenix
#

java has better oop

#

no message doesnt exist

#

unless u assigned something to a var message

ancient nova
#

that's why

#

ni

#

no

#

how do I make it dm top channel?

earnest phoenix
#

foreach the guilds channel

#

check if the channel is a text channel

ancient nova
#

ah

earnest phoenix
#

if so return the channel

#

/ send the message and break;

ancient nova
#

alright

#

I think I get what you mean

#

save the TOP channel ID to a var onCreate and then use it in the channel.send right?

#

alright, thanks

earnest phoenix
#

or just use it in a loop in general i mean like

ancient nova
#

alright

earnest phoenix
#
guild.channels.forEach(channel){
  if (channel.type == "text"){
      channel.send("message")
      break;
    }
}```
tight plinth
#

no

#

not like that

earnest phoenix
#

i dont remember the exacts

#

<Array>.forEach(x => {
x;
});

outer lodge
#

Hi. I would like some help if someone is able to advise. I have built a tiny simple bot for a server I’m on, for keeping track of a specific kind of queue. I’m not really a JavaScript programmer and this was my first Discord bot. I deployed it via Github+Heroku and set Dyno to worker. However, my bot briefly went offline anyway, and lost the queue array. Was this just something strange or should I be looking into storing data? A database seems like an overkill when I just need an array with <20 names at a given time but if I can’t count on heroku to actually not be going to sleep, I guess I’ll have to?

ancient nova
#

hm

delicate shore
#
let upvoter = Tet7.roles.cache.find(role => role.name === "Upvoter!");
        let mo = Tet7.members.cache.get(vote.user);
        mo.roles.add(upvoter);
        setTimeout(() => {
          mo.roles.remove(upvoter);
        }, 43200000);```
#

this does not work

#

but if i enter a short time

#

like 10 seoncds

#

seconds

#

then it works

slender thistle
#

@outer lodge Heroku dynos restart every 24 hours afaik

#

And it seems that you do need a database in this case, preferably one that can be connected to remotely

outer lodge
#

Thank you. Yeah sounds like it. Turning out to be more involved than I hoped. Do you have a recommendation if my priority is simplicity and saving time troubleshooting above all else?

hazy sparrow
paper fjord
#

@hazy sparrow 2nd one

hazy sparrow
#

as i thought

outer lodge
#

Agreed

paper fjord
earnest phoenix
#

yo

#

how do I get when a user was created

#

can some one aprove my bot allready

#

why not

paper fjord
#

Hey can anyone add my bot i am this close to 75 servers plsdoggowave

earnest phoenix
#

hey i dont know what x means

#

unless it means 3

paper fjord
#

Pls add my bot helo me i am very close to 75 doggowave

earnest phoenix
#

sorry im in specuil edd clasesus

#

@weak parrot

hazy sparrow
#

@earnest phoenix <user>.createdAt is what i use

paper fjord
#

@earnest phoenix i already added there

earnest phoenix
paper fjord
#

@earnest phoenix pls yu add my bot in atleast 1 server i am very very close to 75

earnest phoenix
#

lmao

paper fjord
#

I mean invite

hazy sparrow
#

@paper fjord just wait till a server adds it no need to advertise

earnest phoenix
#

^^

#

u see bots are exponential once they get into many servers they spread faster

paper fjord
hazy sparrow
#

ya just like the virus

earnest phoenix
#

say someone sees ur bot on a random server and they think its cool u know they do !invite and then they have ur bot and it repeats

#

its basically stonks

weak parrot
#

👀

hazy sparrow
#

^

paper fjord
#

@weak parrot ok

hazy sparrow
paper fjord
#

@hazy sparrow yu play pubg?

earnest phoenix
#

-development

paper fjord
earnest phoenix
#

@weak parrot fuck i forgot i cant do tag

hazy sparrow
#

@hazy sparrow yu play pubg?
@paper fjord free fire is better and #general

delicate shore
#
let upvoter = Tet7.roles.cache.find(role => role.name === "Upvoter!");
        let mo = Tet7.members.cache.get(vote.user);
        mo.roles.add(upvoter);
        setTimeout(() => {
          mo.roles.remove(upvoter);
        }, 43200000);```
#

this does not work
but if i enter a short time
like 10 seoncds
seconds
then it works

cinder patio
#

does it add the role?

fickle sapphire
#

The number could be too high

delicate shore
#

does it add the role?
@cinder patio yep

cinder patio
#

How do you know it doesn't work? You have to wait 12 hours to see if it works

hazy sparrow
#

Can i make a cooldown system by checking if the author's ID is in a set and if its not then execute the actual command and then add the author's ID to a set for a amount of time?

earnest phoenix
#

U can

hazy sparrow
#

Ok cool

delicate shore
#

How do you know it doesn't work? You have to wait 12 hours to see if it works
@cinder patio
I have seen it smh

#

i waited 24 hr

#

it still

#

did not remove

cinder patio
#

Did your bot process stop at one point?

delicate shore
#

@cinder patio yes many times

fickle sapphire
#

Thats it then

hazy sparrow
#

Thats the reason then

fickle sapphire
#

When it stops the timeout stops too

delicate shore
#

Oh

#

how can i solve the problem

hazy sparrow
#

By not stopping your bot process

fickle sapphire
#

^^

earnest phoenix
#

Orrr

#

You can store time that the role will get removed

hollow forum
#

Where can I make a bot?@fickle sapphire

earnest phoenix
#

@hollow forum anywhere

fickle sapphire
#

Just search on youtube

#

you'll find plenty of tutorials

hollow forum
#

Alright

hazy sparrow
#

It depends pnnthe bot really

delicate shore
#

By not stopping your bot process
@hazy sparrow How can i stop my bot from turning off when an errors occurs

fickle sapphire
#

Make sure there isn't a error

#

XD

hollow forum
#

I mean where do you make them?

hazy sparrow
#

By catching the error and like sending a console/channel message that a error has occurred?

fickle sapphire
#

@hollow forum Visual Studio Code is an easy program to use

hollow forum
#

Is it available on android, tho? 😶

hazy sparrow
#

@delicate shore you can .catch the error and then log it somewhere what the error is

fickle sapphire
#

@hollow forum nope.. I suggest you use a laptop or a desktop

#

It is possible tho.. using github repository

#

and then hosting on heroku for example

hazy sparrow
#

But typing the code..

fickle sapphire
#

It breaks your fingers

hazy sparrow
#

"A small price to pay for mobile coding"

sick cloud
#

get a bluetooth keyboard /s

hazy sparrow
#

What aboutnthe mouse

earnest phoenix
#

bluetooth mouse

hazy sparrow
#

That basically makes a PC

fickle sapphire
#

Just use a laptop or desktop XD

earnest phoenix
#

How can we get multiple parameters of users' choice in functions

#

For example

#

I have x and y arguments, but user wants to send 5 x and 2 y arguments

#

Please ping on reply

hollow forum
#

@fickle sapphire I'm doing on android. Mind helping me a bit?

#

The commands are my wrking.

fickle sapphire
#

You can drop your questions here

hollow forum
#

Alright. I'm using Bothub to do it.

#

Wait. I'll share the co-creator @fickle sapphire option with you. So you can hell.

#

Hell*

fickle sapphire
#

Not neccesary

#

Just drop your questions here..

hollow forum
#

Okay.

#

I have made an custom command '!PHTime' by the bot I not responding.

earnest phoenix
#

How can we get multiple parameters of users' choice in functions
@earnest phoenix please explain your problem better

#

I did??

fickle sapphire
#

I have made an custom command '!PHTime' by the bot I not responding.
@hollow forum Wat is the purpose of the command?

earnest phoenix
#

ph

#

😳

#

lemme explain

#

yeah explain please

hollow forum
#

@fickle sapphire an custom command. It should write 'go to sleep {user}'.

earnest phoenix
#

wtf

#

show code

#
def function(x:str, y:int):
  for value in x:
   ...

I was trying to get more than one amount of x so I can process all one by one

sick cloud
#

they're using a bot maker @earnest phoenix

#

Alright. I'm using Bothub to do it.

earnest phoenix
#

absolutely terrible idea

sick cloud
#

from earlier

earnest phoenix
#

@earnest phoenix python? I'm out i dunno spaghetti i only know javascript

#
function(x, y){
  for(i=1; i<10; i++){
   ...
  }
}

@earnest phoenix

#

i havent used js for a while

#

but heres the same case

#

that's python right

#

for():

sick cloud
#

looks like js and py mashed weirdly

earnest phoenix
#

im not tryna write js

#

explaining a thing in functions

#

still not js

#

typescript it is

slender thistle
#
def function(x:str, y:int):
  for value in x:
   ...

I was trying to get more than one amount of x so I can process all one by one
@earnest phoenix Do you think you can use x: List[str]?

earnest phoenix
#

omg

#

ask shivy

#

he knows python

#

so I'll call the function using a list?
function(['a', 'b'], y)

slender thistle
#

Basically

#

or any iterable object

earnest phoenix
#

but how will I make it from discord text message?

#

user input cannot be ['']

slender thistle
#

Is there any specific separator in the message?

earnest phoenix
#

I made it comma

#

,

slender thistle
#

1,2,3 or 1, 2, 3?

earnest phoenix
#

1,2,3

slender thistle
#

x.split(",")

earnest phoenix
#

thank u

fickle sapphire
#

@hollow forum Send me a link of the website in DM pls

earnest phoenix
#

why

fickle sapphire
#

@hollow forum It works fine for me

hollow forum
#

@fickle sapphire Huh? Then why not me?

fickle sapphire
#

What did you fill in as command name?

hollow forum
#

!PHTime

fickle sapphire
#

change that to: PHTime

#

the ! is automaticly added into the command

hollow forum
#

Oh. Alright

fickle sapphire
#

And then test it again

#

@hollow forum Does it work now?

hollow forum
#

Yup. Thanks!

fickle sapphire
#

np

hazy sparrow
#

If you did !!PHTime it would've worked

fickle sapphire
#

indeed, but it is easier to use just one !

hazy sparrow
#

or no !

fickle sapphire
#

yeah but the host automaticly uses !

earnest phoenix
#

I want to restrict a command for voters, how can I do this

hollow forum
#

@Oscar.#7370 I want to create an command where an user says '!hug <username>'

And the bot says, {user} hugs {member_mention}. Aww! :3

#

@fickle sapphire I want to create an command where an user says '!hug <username>'

And the bot says, {user} hugs {member_mention}. Aww! :3

#

What to write in the trigger command?

#

Since, it is not a single person in that server.

still merlin
#

use a $ symbol before the {

obtuse saffron
#

How to ping a role ??

still merlin
#

<@id> i think

obtuse saffron
#

k

earnest phoenix
#

role.mention @obtuse saffron

pale vessel
#

role is <@&id>

#

@obtuse saffron

hollow forum
#

@still merlin yes? Where?

still merlin
#

Before all the { put a $

hollow forum
#

Oh, okay! Thanks!

earnest phoenix
#

<@id> i think
@still merlin no

#

that's for normal users

#

you need to do <@&id> for roles

#

do NOT test this on <@&304313580025544704> role

#

edited message please don't kill me

hollow forum
#

@still merlin I put the trigger command as '!pls hug ${user}'

And reply = {user} hugs {member_mention}. Aww! :3

Not working

pale vessel
#

what are you using to make the bot

hollow forum
#

@pale vessel me?

pale vessel
#

yes

hollow forum
#

@pale vessel botghost

steep shale
earnest phoenix
#

ik i shouldn't ask2ask but anybody's got an example of how to push your changes in a local git repository to the master branch of a GitHub repository?

#

@Tim#2373

hollow forum
#

@hazy sparrow help

earnest phoenix
#

uhh wut

hazy sparrow
#

?

hollow forum
#

I meant could someone help me with a Little coding?

earnest phoenix
#

@quartz kindle

#

help us Tim our saviour

hazy sparrow
#

Tim is offline

earnest phoenix
#

no

#

idle

hollow forum
#

He's idle

hazy sparrow
#

I meant could someone help me with a Little coding?
@hollow forum just ask your question

earnest phoenix
#

ik i shouldn't ask2ask but anybody's got an example of how to push your changes in a local git repository to the master branch of a GitHub repository?
this what i needed help with

hollow forum
#

I'm using botghost to make codes. And I want to make a code where somebody says 'pls hug <user>'

And the reply comes. {user} hugs {user2} @hazy sparrow

earnest phoenix
#

huh

#

is that a template string

#

show code

hazy sparrow
#

whats a ghostbot

hollow forum
#

@hazy sparrow botghost is an website

hazy sparrow
#

Or botghost srry

earnest phoenix
#

whats a ghostbot
@hazy sparrow it's a freaking terrible service for making bots
not sure if ghost bots exist tho
You never know

hollow forum
#

Hey, where can I make bots on android?

hazy sparrow
#

I can help with code if you want i have no idea how that thing works

hollow forum
#

Oh, wait. you can? But I'm an android user.

earnest phoenix
#

android users can also code

hazy sparrow
#

Hey, where can I make bots on android?
@hollow forum you can make bots anywhere but you cant code anywhere

earnest phoenix
#

but it's harder

hazy sparrow
#

Oh, wait. you can? But I'm an android user.
@hollow forum you can code with android too

earnest phoenix
#

https://repl.it https://glitch.com both are popular services for making STUFF and they work on Android

hollow forum
#

I don't want to code. Just some custom commands.

hazy sparrow
#

Again, i can help with code if you want

pale vessel
#

if you can't help them just shut up man god damn it

earnest phoenix
#

I don't want to code. Just some custom commands.
@hollow forum without coding you're very limited with what you can do with your bot

fluid basin
#

find a bot that has it or find someone willing to add it to their bot

thin turret
#

Command would be ezpz if you knew how to code

hazy sparrow
#

^

earnest phoenix
#

no

hollow forum
#

@earnest phoenix but, where can I code on Android? Like for an bot

earnest phoenix
#

i literally just gave two links

#

where you can code

hollow forum
#

They can be used to code bots?

hazy sparrow
#

You can even code in samsung note if you want to

earnest phoenix
#

they both are optimized for mobile too

hollow forum
#

Discord bots?

earnest phoenix
#

They can be used to code bots?
@hollow forum coding bots is basically coding

thin turret
#

${message.member.displayName} hugged ${member.displayName}

#

Thats all you need lol

hollow forum
#

Ah thanks !

#

I'll try on glitch.

earnest phoenix
#

spoonfeed

#

I'll try on glitch.
@hollow forum glitch hates discord bots tho

slender thistle
#

Using Glitch for Discord bots is a bad idea

earnest phoenix
#

not even an idea

slender thistle
#

can you be more accepting of people's decisions

earnest phoenix
#

we're forced to use it cuz we're broke to buy a good VPS

pale vessel
#

i mean if you don't mind your code being public you can use repl.it and ping itself

earnest phoenix
#

yeah

#

wait

pale vessel
#

store secrets in .env

earnest phoenix
#

ping itself?

thin turret
#

repl sucks

hazy sparrow
#

we're forced to use it cuz we're broke to buy a good VPS
@earnest phoenix hey there are actually good ones which are free

pale vessel
#

yeah

thin turret
#

Bot crashes randomly every few hours on repl

hazy sparrow
#

like BlueFox for example

pale vessel
#

ping the project website using the project itself

earnest phoenix
#

@earnest phoenix hey there are actually good ones which are free
@hazy sparrow credit card verification intensifies and most of us are under 18

pale vessel
#

works for my eval vm

slender thistle
#

"crashes"? You mean just going to sleep mode because that's intended behavior?

hazy sparrow
#

BlueFox doesesnt ask for credit card

earnest phoenix
#

what the fuck

#

WHAT THE FUCK

pale vessel
#

ya bro

#

what have you been doing?

hazy sparrow
#

Yup

#

You just need a email

earnest phoenix
#

google is re||blahblah||ed to not show me a search result for blue fox

hollow forum
#

Where can I make the bot then?

#

You say glitch is trash.

#

I just want to make a command. A try

thin turret
#

@slender thistle nope an error would appear on console

hazy sparrow
earnest phoenix
#

Where can I make the bot then?
@hollow forum you can use repl or glitch as a temporary service but you'll have to move to a VPS in the future

quartz kindle
#

Everything free is trash

thin turret
#

"fields.flat is not a function" every time

slender thistle
#

It's not fit for Discord bots and Glitch themselves are... against it
repl.it, on the other hand, don't mind it but you'll still have to ping the service every X minutes

thin turret
#

Must of been outdated node

quartz kindle
#

@thin turret that means outdated node yes

hazy sparrow
#

Everything free is trash
@quartz kindle bluefox is actually designed for bots and is actuall good for small bots like which are in like 3000 servers, they have a paid option if you want more ram/ etc

#

Or more databases if that makes sense

earnest phoenix
hazy sparrow
#

thats the wrong button

earnest phoenix
#

wuts this

#

and i still don't want bluefox anyways

hazy sparrow
#

Wait hold on

#

They even have a console thingy and a place where you can code btw

hollow forum
#

Bluefox is paid?

earnest phoenix
#

dunno

#

@earnest phoenix how old r u

hazy sparrow
delicate shore
#

Holy crap

#

I did it

#

I did it PoggersRow

hazy sparrow
#

Bluefox is paid?
@hollow forum it has paid and free options too

earnest phoenix
#

@earnest phoenix how old r u
@earnest phoenix under 18

#

12?

delicate shore
#

I finnaly made it such a way that music filters in my bot can only be used by people who upvote my bot

#

finnaly

slender thistle
#

That's a lot to offer for free

pale vessel
#

256mb though

hazy sparrow
#

well try it if you domt believe

slender thistle
#

Yeah, that much RAM is... eh

pale vessel
#

only good enough for a small bot

slender thistle
#

if you manage your caching, you could probably make it handy

earnest phoenix
#

I finnaly made it such a way that music filters in my bot can only be used by people who upvote my bot
@delicate shore uhh music playback without asking permission from the artist/service which you're ripoffing is illegal/against TOS of the service which you're ripoffing

hazy sparrow
#

Yea wait hold on

pale vessel
#

true

delicate shore
#

@delicate shore uhh music playback without asking permission from the artist/service which you're ripoffing is illegal/against TOS of the service which you're ripoffing
@earnest phoenix
bruh
AHhh

#

I search from YT download ut

#

it

delicate shore
#

and aply filter

#

apply*

earnest phoenix
#

@earnest phoenix and which music producer is going to spend thousands on suing a discord bot maker?

delicate shore
#

if you think Rythm is also illegal

slender thistle
#

I need all caching possible for my private bot and I'm using 2 GB RAM just fine

earnest phoenix
#

Rythm isnt legal lol

pale vessel
#

two gigs

#

hmm

earnest phoenix
#

@torpid forge and thats supposed to be cheap..?

slender thistle
#

$1.88/month ($2.5 without discount)

earnest phoenix
#

@earnest phoenix and which music producer is going to spend thousands on suing a discord bot maker?
@earnest phoenix youtube banned discord bots that don't ask for permission from em before using the API because services like youtube and spotify ACTUALLY PAY THE ARTISTS FOR MAKING SONGS

#

mine included

#

Alot of upfront cost though

#

@earnest phoenix Lol

#

wdym lol

delicate shore
#

@earnest phoenix are they gonna watch our bot
Moreover i scrape and don't use API

earnest phoenix
#

You think rythm pays the artists?

#

hahahaha

#

What a joke

#

but still

#

against yt tos to ripoff em

#

Get your facts right kid 😄

#

wtf

slender thistle
#

If you are going to discuss legal matters, keep it civil at least.

quartz kindle
#

Unless youre hosting on RPIs, a servers electricity cost will likely be much higher than the cost of renting it as a vps/dedi

hazy sparrow
#

hi tim lul

earnest phoenix
#

It's kind of annoying me, @slender thistle.
I've seen code913 spread random information that is wrong most of the time.

delicate shore
#

What is meaning of civil

earnest phoenix
#

If you are going to discuss legal matters, keep it civil at least.
@slender thistle uhhh i never read legal shit

delicate shore
#

I am not saying in an offended way

hazy sparrow
#

@quartz kindle how did you learn coding?

#

just rub a ruler against your hair for free electricity smh

quartz kindle
#

@hazy sparrow by reading, testing and experimenting

slender thistle
#

a pen works too

hollow moth
slender thistle
#

What do you mean?

pale vessel
#

a lot is happening mate

hazy sparrow
#

what is not happening is the real question

earnest phoenix
#

What is happening ? on top.gg
@hollow moth
stuff
stuff is happening on top.gg
the response your browser got from the servers at top.gg is being displayed on your browser
now your pc's hacked mmLol

hazy sparrow
hollow moth
#

;-;

delicate shore
#

Himself

hazy sparrow
slender thistle
#

Paid or free

hazy sparrow
#

both

slender thistle
#

bleh

earnest phoenix
#

discord should make their own bot hosting service even if it's paid

thin turret
#

2€ yearly hosting

#

Ez revenue win win

hazy sparrow
#

Imagine if we had a $/month for owning a server on discord

slender thistle
#

@earnest phoenix Can you start being more serious and stop giving people shit for asking questions

earnest phoenix
#

Yea I hate paying external services

hazy sparrow
#

hey i just reached 29315 pings in discord lol

#

Famoos

#

29316 now

slender thistle
#

This isn't #ping-brag channel

thin turret
#

Ill never get people whos server list is stacked with mentions

spare mirage
#

does anyone know how to detect spotify premium on discord?

thin turret
#

Looks unorganized

slender thistle
#

Detect what now?

hazy sparrow
#

Ill never get people whos server list is stacked with mentions
@thin turret lol i keep the servers with tons of pings on a folder at the very bottom

slender thistle
spare mirage
#

?

slender thistle
#

What do you mean by "detecting" Spotify premium?

earnest phoenix
#
~/codeco-discord-bot$ git push bot-repo
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream bot-repo master

Uhhh what?

spare mirage
#

with discordjs, if u have premium you get a role or something like that

slender thistle
#

🤔

cinder patio
#

Do what it says, you have to specify the branch you want to push to

slender thistle
#

Do you mean Nitro/server boosts?

earnest phoenix
#

Do what it says, you have to specify the branch you want to push to
@cinder patio i tried the command that it showed

#

i wanna make a pull request to my repo through git bash

spare mirage
#

no.

#

SPOTIFY PREMIUM

#

...

earnest phoenix
#

use their API

slender thistle
#

No one gets roles for Spotify Premium 🤔

spare mirage
#

omg

cinder patio
#

but you are trying to push

#

you are not pulling

spare mirage
#

I think u just dont understand

slender thistle
#

It would be preferred if you could elaborate on your question

hazy sparrow
#

He means that if someone has spotify permium they get a role on a server

earnest phoenix
#

but you are trying to push
@cinder patio my eyes are buttons or what

spare mirage
#

^ with a discord bot...

cinder patio
#
~/codeco-discord-bot$ git push bot-repo
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream bot-repo master

Uhhh what?
@earnest phoenix

~/codeco-discord-bot$ git push bot-repo

earnest phoenix
#

i needed to open a pull request on my github repo and i tried to PUSH directly to the master branch

slender thistle
#

Use Spotify API if they allow you to get users' Premium status 🤷

earnest phoenix
#

uhh they do

#

discord can detect if we have premium

spare mirage
#

lemme check 👍

slender thistle
#

Without OAuth?

earnest phoenix
#

no

thin turret
hazy sparrow
#
If(person.has("SPOTIFY PERMIUM"){
// code
}

Lul

earnest phoenix
#

Without OAuth?
@slender thistle we need to authorize discord first using spotify's oauth thingy so discord can grab a token and use their api

#
If(person.has("SPOTIFY PERMIUM"){
// code
}

Lul
@hazy sparrow you can actually make that work tbh. javascript classes intensify

slender thistle
#

With a custom wrapper, sure

hazy sparrow
#

Yea ofc but you have to define a bunch of things

earnest phoenix
#

@cinder patio basically i wanna do this. Make a new branch and start a pull request.

hazy sparrow
#

has anyone ever tried to make a all-in-one bot

earnest phoenix
#

yeah

#

a fuckin lot of peeps

#

including me

hazy sparrow
#

like everything; reactroles,automod,games,moderation,leveling system,giveaway system,ticket system, a AI thing to chat with like jarvis, etc

earnest phoenix
#

can anybody help me with my git shit?

#

like everything; reactroles,automod,games,moderation,leveling system,giveaway system,ticket system, a AI thing to chat with like jarvis, etc
@hazy sparrow jarvis? visible marvel fan

#

dyno has a lot of shit

#

and mee6

#

and dank memer

#

even more bots

hazy sparrow
#

But none have all

earnest phoenix
#

they all are open source too (not sure about dyno)

#

cuz

#

that's a huge hit on performance

hazy sparrow
#

Like every feature on every bots combined

earnest phoenix
#

that's not possible

#

there are 3 million bots

hazy sparrow
#

what if all the owner of those bots combined and made a big shit

#

Lul im thinking too much at this point

earnest phoenix
#

how to delete a folder in bash

pale vessel
#

rm

thin turret
#

Megabot

#

Literally everything

earnest phoenix
#

why is git so weird

#
~/codeco-discord-bot$ git push bot-repo master
Username for 'https://github.com': code913
Password for 'https://code913@github.com': 
To https://github.com/code913/codeco-backup-repo.git
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://github.com/code913/codeco-backup-repo.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
~/codeco-discord-bot$ git push --help
warning: failed to exec 'man': No such file or directory
fatal: no man viewer handled the request
~/codeco-discord-bot$ 
#
 ! [rejected]        master -> master (fetch first)

Thonk

balmy knoll
#

In Javascript, what is the fastest method to divide this string (-o list -c collection -w test -p { id: 1234 }) according to different identifiers (-o, -c, -w, -p)? I specify that these identifiers can be in any order.

topaz sleet
#

Can someone help me about HTML & Markdown

earnest phoenix
#

@balmy knoll how about String.split("-"); and in every element of the array the first letter will ALWAYS be the thingy after - and you use -someletter for the identifiers

topaz sleet
#

And can someone give me Vote API

earnest phoenix
balmy knoll
#

@earnest phoenix yes but - split also where the following letters isn't o, c, w or p

delicate shore
#

how to see if user is in a specified server

queen osprey
#

by checking if it exists in the member cache

delicate shore
#

like

#

first i find the guild

#

then the member

queen osprey
#

yea

#

filter the guilds collection to check if a member exists

#
<client>.guilds.cache.filter(guild => guild.members.cache.has('<id>')).first();
delicate shore
#

kkk thnx

queen osprey
#

no problem

delicate shore
#

but @queen osprey i wanna see if user is in my server

queen osprey
#

get the guild

topaz sleet
#

@delicate shore

queen osprey
#

and then check

topaz sleet
#
client.guilds.cache.size```
#
module.exports = (client) => {
    console.log(`Ready as ${client.user.tag} to server in ${client.channels.cache.size} channels on ${client.guilds.cache.size} servers, for a total of ${client.users.cache.size} users.`);
    var i = 0;```
queen osprey
#

what

topaz sleet
#

What?

delicate shore
#

what

still merlin
#

wot on earth

delicate shore
#

@topaz sleet yes?

topaz sleet
#
module.exports = (client) => {
    console.log(`Ready as ${client.user.tag} to server in ${client.channels.cache.size} channels on ${client.guilds.cache.size} servers, for a total of ${client.users.cache.size} users.`);
    var i = 0;```

@topaz sleet .

delicate shore
#

you need help with this?

#

why does this happens

topaz sleet
#
function random(min, max) {
    return Math.floor(Math.random() * (max - min)) + min;
}
module.exports = (client) => {
    console.log(`Ready as ${client.user.tag} to server in ${client.channels.cache.size} channels on ${client.guilds.cache.size} servers, for a total of ${client.users.cache.size} users.`);
    var i = 0;
    setInterval(function() {
        var gamePlaying = ['on ' + client.guilds.cache.size + ' server!', 'with ' + client.users.cache.size + ' thành viên!'];```
earnest phoenix
#

git is making my brain go nuts galaxybrain

still merlin
#

thats not even a ready event-

delicate shore
#

^^

topaz sleet
#

No that it

delicate shore
#

@twilit rapids sorry for ping but i found the real problem
But idk what is it

#

see this timo

still merlin
#

Put your logging in this (inside your main file, not a command file) @topaz sleet, including your game activities

//your code
}
topaz sleet
#

Lmao

summer torrent
fast quail
#

Why emojis doesn’t appear anymore ??

#

like it’s written :coin_emoji:

#

But there isn’t the emoji

thick gull
#

it needs ID

fast quail
#

Even tho it was working since few weeks

#

Everything is good

#

Like today it stopped working

thick gull
fast quail
#

Everything is good
@fast quail

thick gull
#

yea

fast quail
#

The code is good

thick gull
#

uh tim

#

go

fast quail
#

Just today it didn’t show up anymore

#

but yesterday and every other day it did

halcyon moth
#

Why have Zero 2 as profile pic

quartz kindle
#

You know whats funny, you dont need the name of the emoji, you can put there an emoji id with a random name and it will still work lol

halcyon moth
#

That make me sad cuz Ik they aren’t making another season

delicate shore
#
unknown element "blank"```
#

I get this error

halcyon moth
#

Oof

quartz kindle
#

Have you tried googling?

delicate shore
#

@quartz kindle yes
It looks like something related to debian

fast quail
#

Ok for the verificaficatiln process I kicked out my bot from the server were the emojis are

quartz kindle
#

verificaficartiln

warm marsh
#

@delicate shore have you checked that file?

hazy sparrow
#

does anyone know quick.db here?

#

i need some help with quick.db

earnest phoenix
warm marsh
#

Go to their support server

granite holly
#

hi

earnest phoenix
hazy sparrow
#

Go to their support server
@warm marsh yea ie asked there and still waiting for 30 mins

delicate shore
#

Hey @quartz kindle I kind of figured out
My bot crashes saying this 4|index | abort(DiscordAPIError: Missing Permissions). Build with -s ASSERTIONS=1 for more info.

pale vessel
#

make sure it has the correct permissions

delicate shore
#

So i was wondering if I can stop my bot from crashing if it doesn't have perns

pale vessel
#

also, you can try logging commands and see what command a user used that caused the error

delicate shore
#

how

pale vessel
#

bruh

earnest phoenix
#

instead of trying to put a band aid on the error, why not check if you have permissions to do the action in the first place?

#

developer badge not given anymore???

hazy sparrow
#
const db = require("quick.db")

module.exports = {
    name: 'work',
    description: "work!",
    
    execute(message){
      const bal = new db.table('bal') 
      db.set('mybal', 0)
      db.add("mybal", 2)
      message.channel.send(`You worked! Your balance is now ${db.get("mybal")}`)
    }
    }

shoudn't it be 4 the 2nd time?

earnest phoenix
#

it is not @earnest phoenix

#

oh no :c

hazy sparrow
#

developer badge not given anymore???
@earnest phoenix nope

earnest phoenix
#

developer badge not given anymore???
@earnest phoenix no

#

@hazy sparrow aren't you setting it to 0 right before adding 2 to it

#

it's always going to be 2

#

also

#

that db structure is very weird

hazy sparrow
#

how do i fix it?

earnest phoenix
#

you'll share the same data for all users

warm marsh
#

It works as if it were a map

earnest phoenix
#

how do i fix it?
just don't set it to 0?

#

i feel like you're misusing the entire library

delicate shore
#

instead of trying to put a band aid on the error, why not check if you have permissions to do the action in the first place?
@earnest phoenix
I do but idk why it gives the error

#

maybe it is when bot cannot send msg ?

earnest phoenix
#

do you know where and when the error is happening

delicate shore
#

no

pale vessel
#

then debug

delicate shore
#

that's the issue

#

how to debug idk :(

earnest phoenix
#

try catch, log at closures

hazy sparrow
#

you'll share the same data for all users
@earnest phoenix yea thats not a problem for now since i'll delete this thing later

earnest phoenix
#

step through your code one by one

delicate shore
#

i have

hazy sparrow
#

btw ty. ill try that

delicate shore
#

i have catch all over my code

pale vessel
#

if you have try catch and still have those errors then you probably didn't await a promise

#

it's either try catch with await or .catch

delicate shore
#

oh

#

i have try

#

catch

pale vessel
#

await promises

quartz kindle
#

Show your try catches

delicate shore
#

ok

#
function catchErr(err,msg){
  let channel = bot.channels.fetch("751795624932016168").then(channel => {
code here
   channel.send("The message content was" + msg  )
    return;
  })
code here
}
bot.on("message", async msg => {

  try{ 
///  ALL CODE
}catch(err){
  catchErr(err,msg)
}
})```
pale vessel
quartz kindle
#

What is all code

delicate shore
#

My commands

quartz kindle
#

Try catch doesnt work on promises if you dont await them

#

So you have to await everything

delicate shore
#

oh

quartz kindle
#

await channel.send

delicate shore
#

everywhere?

quartz kindle
#

await channels.fetch

#

etc

delicate shore
#

OH WAIT

#

i just realised

quartz kindle
#

Everywhere that you do something that involves the api

delicate shore
#

maybe the function itself is causing error

#

OHh

#

I see

quartz kindle
#

Also possible

late cedar
#

Does anyone have any yt api for searches that has no limits

#

I used googles yt v3 api but limited

delicate shore
#

I am just gonna remove the function

earnest phoenix
#

use a scraper like youtube-dl @late cedar

#

you'll often have to shuffle through ips though since youtube really doesn't like scraping

hazy sparrow
#

guys, how do i add code in a const's name?

pale vessel
#

can you elaborate?

hazy sparrow
#

i want everytime a person does a command, a new set to be created with the author's ID as the set's name

#

oh wair nevermind

pale vessel
#

you should only have one set

hazy sparrow
#

yea nevermind i was stupid

delicate shore
#

Why does a set reset once bot restarts

quartz kindle
#

Because its stored in the programs memory

delicate shore
#

and what is the alternative to it

quartz kindle
#

A database

digital ibex
#

it gets added to the cache, when ur bot restarts it gets cleared.. something
like that

delicate shore
#

oh wait

#

i am just stupid

#

kk

#

how can i see if user id is in databse

digital ibex
#

depends on what db ur using

earnest phoenix
#

^

delicate shore
#

quixk

#

quick.db*

earnest phoenix
#

call get()

delicate shore
#

How I declare
let voterr = db.get(voter);

How I add
db.add(voter, user.id)

earnest phoenix
#

it'll return undefined if it doesn't exist

delicate shore
#

Oh

earnest phoenix
#

actually

#

use has()

delicate shore
#

i did

earnest phoenix
#

i just skimmed over the docs

delicate shore
earnest phoenix
#

you're calling it on a dbl voter

#

not on your database

#

please look at your code

delicate shore
#

umm

#

@earnest phoenix i have one question
Am i adding it correctly

earnest phoenix
#

no

delicate shore
#
     let voterrrrrrrr2 = db.get(`voter`);

      voterrrrrrrr2.add(user.id)```
earnest phoenix
#

read through the documentation because you're using the lib incorrectly

delicate shore
#

ok

#

@earnest phoenix i am still having issues

#

in checking if user has his id in db

#

i cannot get docs correctly

#
let voterlist = new db.table(`voterwow`);

      voterwow.add(user.id)```
#

this is how am i adding

restive furnace
#

db.set(key, value) literally

delicate shore
#

not set

#

i wanna add

earnest phoenix
#

what exactly do you think add does

delicate shore
#

it adds it to a table
Like
Table => One id
Second id
third id

earnest phoenix
#

no

#

you did not read the docs

delicate shore
#

i am reading them

earnest phoenix
#

read them fully

#

and don't skim them

#

because each method is thoroughly explained and very well documented

delicate shore
#

ok

restive furnace
#
let db = ....
// lets "add" aka set a user value
db.set("user", { some: "value" })
// lets get the user and log the contets
let user = await db.get("user")
console.log(user) // -> { some: "value" }```
delicate shore
#

but it will always change user if i am not wrong

restive furnace
#

yeah thats so called pseudocode

#

dont copy paste

earnest phoenix
#

^^

#

you key by the user id

#

ergo

delicate shore
#

oh

earnest phoenix
#

key

delicate shore
#

so user_${user_id}

#

something like this

earnest phoenix
#

yes

delicate shore
#

K i will see to it later

#

thanks

eternal osprey
#
const Command = require('./command');
const { DiscordAPIError, RichEmbed } = require('discord.js');
const Discord = require ('discord.js');



const exampleEmbed = new Discord.RichEmbed()
.setTitle('**All the available commands!**')
.addFooter("**Birthday Bot Hosted for throwin parties!**")
.setColor('#FF0000')
.addField('*`!help` => Shows all the commands of this bot*' + '\n' +
'*`!add [' + process.env.DATE_FORMAT + ']` => Add your birthday*' + '\n' +
'*`!delete` => Will delete your name and birthday from the database*' + '\n' +
'*`!setDefault` => Set the channel where the birthdays will be announced (Admin only)*' + '\n' +
'*`!ping` => Pong (simply to test the bots status)*');


module.exports = class Help extends Command {
    static match(message) {
        return message.content.startsWith(process.env.PREFIX + 'help');
    }




    static action(message) {
        message.channel.send(exampleEmbed);
    }
};```
#

addFooter("Birthday Bot Hosted for throwin parties!")
^

TypeError: (intermediate value).setTitle(...).addFooter is not a function

sand condor
#

it's setFooter

sudden geyser
#

this also you may want to not hard-code all your commands in if you're using a command handler.

pure lion
#

This

ornate tendon
#

i made a music bot if anyone can anyone add more feature to my music bot

tight plinth
#

no

hazy sparrow
#

no

tight plinth
#

we're not gonna add features for a bot you made

hazy sparrow
#

^

pure lion
#

-needdev

tight plinth
#

since you made it, you should be able to add features yourself

ornate tendon
#

ok np

hazy sparrow
#

wait you made a music bot then you want a person to make a music bot for you?

faint prism
#

what are these "more features"?

prisma wraith
#

Hey, does anyone know, is there any free 24/7/365 hosting site, app thing

faint prism
#

Hey, does anyone know, is there any free 24/7/365 hosting site, app thing
@prisma wraith Yeah, check the pins

prisma wraith
#

Welp

#

Rip

faint prism
#

@prisma wraith Cheapest option is to host it on your PC

prisma wraith
#

Yea, and what if I cant have pc open 24/7/365

#

Then its a rip

faint prism
#

Well yeah, that's the point of a server

eternal osprey
#

hey i am using weather-js package

#

how can i actually also display the coordinates

#

of the places

earnest phoenix
#

get a pocket pc like an rpi

though renting a vps is usually going to be cheaper than an rpi

eternal osprey
#
const title = '**Countries/cities ranked by weather type**';

async function get_weather(options) {
    return new Promise((resolve, reject) => {
       weather.find(options, function(error, result) {
         if (error) reject(error);
         else resolve(result);

    });
  });
}

async function get_data(locations) {
  return Promise.all(
    locations.map(
      location => get_weather({search: location, degreeType: 'C'})
    )
  );
}

async function get_location_by_skytext(text) {
  text = text.toUpperCase(); 
  let result = await get_data(locations);
  console.log(result)
  result = result.flat();
  return result.filter(entry => {
    return entry.current.skytext.toUpperCase() === text
  });
}```
#

i have a list of 68 countries

faint prism
#

I can only justify getting an rpi because I like owning my own servers
||which isn't a great justification||

eternal osprey
#

but it is only showing the country names. Any way to display the coords?

sudden geyser
#

power bill

faint prism
#

power bill
@sudden geyser I've got a wattage reader, and it really isn't too expensive tbh

#

Now, I could see a tower PC being overkill and power hungry for a server though

earnest phoenix
#

Good evening

I want to ask about a syntax in nodeJS

exports.run=(client,message,[mention, ...reason])=>{

I don't understand about [mention,...reason] what it is mean ?

drifting wedge
#

hey

#

how can i make a progress bar?

earnest phoenix
sudden geyser
#

It's a combination of destructuring and the spread operator.

#

mention is the first element of the array, and reason is the rest of the array, not including the first element since it starts at the second.

eternal osprey
#

hey guys, how do i actually show my coordinates using weather-js? I have like a list of 70 countries, but it is return the name and weather only. Is there any way to show the coords right next to the place name.

wicked pivot
#

voiceStateUpdate and a real pain

eternal osprey
#

are you talking to me?

faint prism
#

how can i make a progress bar?
@drifting wedge in discord?

eternal osprey
#

is that even possible?

drifting wedge
#

pillow

faint prism
#

You could edit a message at certain points

drifting wedge
#

no im using pillow

#

for a rank card

pure lion
#

Is pillow equivalent to canvas?

drifting wedge
#

yea

#

basicly

#

i mean its different

#

but its the python versionj

faint prism
#

It's probably be easier to do something like
[======>............]
edit previous msg after a function finishes
[==============>....]

#

Then edit again when done with your pillow image or something

restive furnace
#

or make gif, but then you need to know how much time the function consumes

faint prism
#

Which would be prediction rather than actual

restive furnace
#

^^ yeah true

faint prism
#

I mean, I do some loading gif, and replace the link with the result

indigo flax
#

is yarn for discord.js

#

or java

eternal osprey
#

discord.js

indigo flax
#

ok

restive furnace
#

actually for nodejs

indigo flax
#

u sure?

#

100%

restive furnace
#

yarn and npm are for nodejs

eternal osprey
#

yeah exactly.

granite echo
#

/home/container/lemonbot.js:76
if (!cooldowns.has(commandName)) {
^
ReferenceError: cooldowns is not defined
at Object.<anonymous> (/home/container/lemonbot.js:76:1)
https://hastebin.com/ewogoqapar.js
i cannot see that anywhere, and its really confusing me

faint prism
#

cooldowns is not defined

granite echo
#

maybe read my code

dreamy thistle
granite echo
#

before guessing

faint prism
#

I'm not guessing

#

It isn't defined at the point of reference

granite echo
#

well its not in there so u clearly are

dreamy thistle
#

anyway to remove the mentions at the time to send it?

fickle sapphire
#

@granite echo not same file

misty sigil
#

it doesn’t appear to be defined

granite echo
#

it

#

is

fickle sapphire
#

Look it says which file

granite echo
#

no

#

t

#

in

#

the

#

file

fickle sapphire
#

Bro

#

The error says which file

#

It isnt the same

faint prism
#

I don't see it

granite echo
#

bro it really is

#

exactly

#

my point

faint prism
#

what

restive furnace
#

Why can't you type whole sentences, I am just wondering? 🤔

granite echo
#

becuase it isnt in there

#

so idfk why its erroring

fickle sapphire
#

/home/container/lemonbot.js line 76

granite echo
#

here then ffs

faint prism
#

if (!someUndefinedVariable.has(commandName)) {
^
ReferenceError: someUndefinedVariable is not defined

#

?

#

Oh

granite echo
#

ive just proved to u its the right code, and im telling u its not in there becuase i removed it all

#

and i doubled checked

faint prism
#

Are you saying that the error is in a line that doesn't exist?

granite echo
#

yes

faint prism
#

Ah

fickle sapphire
#

Right folder tho?

faint prism
#

See, shoulda opened with that lol

fickle sapphire
#

/home/container

granite echo
#

@fickle sapphire open ur eyes

fickle sapphire
#

I have them open

misty sigil
#

@granite echo can you not be rude to people trying to help

granite echo
#

lol ok staff

fickle sapphire
#

Then go suck your toes

granite echo
#

and if u actually looked i proved it was right

fickle sapphire
#

Imma eat and you figure it out yourself

misty sigil
#

it’s obvious that cooldowns

#

isn’t defined in that file

faint prism
#

The entire line isn't in it

granite echo
#

OPEN UR FUCKING EYES, FFS BECAUSE IT ISNT IN THERE IVE SAID THIS 5 TIMES,

faint prism
#

So make sure you saved, and try rerunning

thick gull
#

are you

#

in the right file

misty sigil
#

WHERE IS IT THEN YOU TWAT

faint prism
#

Easy, Matt

thick gull
#

its not gonna error about something that doesnt exist

misty sigil
#

ok yea

granite echo
#

BECAUSEE IT ISNT FUCKING IN THERE

thick gull
#

ok

#

then open

thick gull
#

the right file

granite echo
#

IT

#

IS

thick gull
#

ok

faint prism
#

Bro, you gotta chill out

thick gull
#

what is on line 76

granite echo
#

i will chill out when u actually understant what im sayong

misty sigil
#

goddamn

granite echo
#

right there

thick gull
#

what is in /readsync

#

restartmessage**

granite echo
#

the channel name and id where it was last restarted

thick gull
#

send?

granite echo
#

wdym?

thick gull
#

the file

granite echo
#

restart msg?

#

idk how that'd help

thick gull
#

its reading that file

#

and there is something not defined

#

on that line where its reading it

ionic dawn
#

Hi, what you guys discussing about

thick gull
#

pain.

granite echo
#

yes, like its meant to, it has always worked but sure

thick gull
#

hm

dreamy thistle
#

how do you track al mentioned users in a message?

thick gull
#

message.mentions

#
earnest phoenix
#

message.mentions.members

thick gull
#

check the docs

earnest phoenix
#

._.

digital ibex
#

what library r u using

earnest phoenix
#

"mentioned user"

dreamy thistle
#


 message.mentions.users``` ?
granite echo
#

im p sure u shouldn't spoon feed members ace

dreamy thistle
#

didnt work

granite echo
#

iirc its in rules

thick gull
#

@dreamy thistle what lib

earnest phoenix
#

wut

#

nvm

misty sigil
#

it’s a collection

earnest phoenix
#

and we forEach a collection ?

dreamy thistle
#

i only made it worrk with ```
message.mentions.users.first();

thick gull
#

yes, like its meant to, it has always worked but sure
@granite echo did you change host or something?

digital ibex
#

you’re looking for members, brenchu. members r the people the server

thick gull
#

map it

#

?

#

or something

#

forget kekw

misty sigil
#

i only made it worrk with ```
message.mentions
.users.first();

@dreamy thistle yup that’s what u do for collections

dreamy thistle
#

ye, but that only takes the first mention

granite echo
#

i switch between self host and vps, self host to edit, but thats my vps rn and ik its rn cuz my friend sometimes checks it over for me

thick gull
#

does it work self hosting?

granite echo
#

right*

#

yep

thick gull
#

then its the vps probably

#

some config or something

granite echo
#

¯_(ツ)_/¯

digital ibex
#

whats the issue, ashley?

earnest phoenix
#

ye

thick gull
#

ye, but that only takes the first mention
@dreamy thistle message.mentions.users is a collection you can .map() it iirc

fervent goblet
thick gull
#

align=center? not sure

granite echo
#
text-align:center;
earnest phoenix
#

is it copyright infringement to use discord.js collections for stuff outside of discord

#

<div align="center">

digital ibex
#

no

thick gull
#

no i dont think so

earnest phoenix
#

hmmm

dreamy thistle
#

could you explain it?

thick gull
#

uh sure

ionic dawn
#

@fervent goblet, you have a lot of options

granite echo
#

wait

ionic dawn
#

center tag on html

dreamy thistle
#

@thick gull

earnest phoenix
#

text-align: center;

granite echo
#

@fervent goblet css or html

ionic dawn
#

using flex

earnest phoenix
#
text-align:center;
#

center tag on html
@ionic dawn no

ionic dawn
#

using flexbox or grid

fervent goblet
#

text align only aligns the text when i tried

#

i want the entire table to go to the center

ionic dawn
#

dnt use text align center over containers

earnest phoenix
#

is it copyright infringement to use discord.js collections for stuff outside of discord

ionic dawn
digital ibex
#

why no center tag?

earnest phoenix
#

copyright is fucking weird

digital ibex
#

@earnest phoenix no

earnest phoenix
#

ok

#
body{
  text-align: center;
}

thick gull
#

so if i mention @dreamy thistle and @thick gull
message.mentions.users
has data on @dreamy thistle and @thick gull
so i could map it;
.map(u => u.tag)
returns Bremchu#4593,borboss#7877

ionic dawn
#

@earnest phoenix no pls

thick gull
#

but im not 100% sure that collections use map

#

kekw

earnest phoenix
#

:))

#

why no center twg?
@digital ibex center twig waitWhatSpin

dreamy thistle
#

it does, thank you

#

will try it out

digital ibex
#

twas a typo

#

i edit message

granite echo
#

@thick gull thxs for being patient and helping, it fixed itself it seems

thick gull
#

it does, thank you
@dreamy thistle you can check this to see what you can get with message.mentions https://discord.js.org/#/docs/main/stable/class/MessageMentions

earnest phoenix
#

but im not 100% sure that collections use map
@thick gull "A compound has different properties from its constituent elements"
Well technology involves a fuckton of chemistry so ig collections are different from Maps

thick gull
#

but be warned, its in order by the API

earnest phoenix
#

Yeah

digital ibex
#

i mean

fervent goblet
#
 .tableArea{
    width: 600px;
    text-align: center;
  } 

did nothing

digital ibex
#

collections extend map, so why wont you be able to use map?

thick gull
#

because i dont memorize that kind of stuff

earnest phoenix
#

no do it in body

thick gull
#

?

earnest phoenix
#

better

#

collections extend map, so why wont you be able to use map?
@digital ibex compounds also extend elements

#

cuz that align the text in ur table

thick gull
#

have fun discussing djs and chemistry

#

time to eat

earnest phoenix
#

bye

thick gull
#

not gonna waste my lunch break on dev again

earnest phoenix
#

have fun discussing djs and chemistry
@thick gull lmfao

digital ibex
#

what