#development

1 messages · Page 794 of 1

earnest phoenix
#

@summer torrent see

crude oriole
#

@summer torrent how

earnest phoenix
#

@earnest phoenix have you tried not copypasting code

summer torrent
#

Where do you store the prefix?

solemn quartz
#

thats it

#

my node doesnt work

summer torrent
#

it is your console

#

not vps

solemn quartz
#

?

#

vds? Vsc?

summer torrent
#

connect to your vps

solemn quartz
#

it woerked

#

like for months

#

and now it doenst

summer torrent
#

"Desktop"

solemn quartz
earnest phoenix
#

@summer torrent it’s still messing up and showing code

summer torrent
#

connect to vps's console

earnest phoenix
#

I’ve tried

#

Like what’s the full command of what it should look like?

summer torrent
#

wait 1-2 min for change

earnest phoenix
#

Ok

solemn quartz
#

@summer torrent So how do i fix?

summer torrent
#

connect to vps's console

earnest phoenix
#

I’ll try now

solemn quartz
#

@summer torrent how

#

@summer torrent

earnest phoenix
#

how do i convert this into a string?:

let action = await db.fetch(actions_${user.id})

restive furnace
#

.tostring()?

#

basiiics

#

and on js the user id is alr string btw.

summer torrent
#

@solemn quartz do you know how to connect to your vps?

restive furnace
solemn quartz
#

@solemn quartz do you know how to connect to your vps?
@summer torrent nnope

marble juniper
#

how do i convert this into a string?:

let action = await db.fetch(actions_${user.id})
@earnest phoenix

let action = await db.fetch(actions_${user.id}).toString()

Basics btw you should know

summer torrent
#

🤦‍♂️ I thought someone else was you

#

@solemn quartz where do you host your bot

marble juniper
#

now it comes

solemn quartz
#

@solemn quartz where do you host your bot
@summer torrent Visual Studio Code

summer torrent
#

show files in "Super Bot" folder

solemn quartz
summer torrent
#

node index.js

solemn quartz
#

oki

#

lemme see

#

nope

earnest phoenix
#

@summer torrent

#

its showing a new error now

#

yeh go it , im stuck on 1 last thing

solemn quartz
earnest phoenix
#

Action of 1 from the Bots,Action of 2 from the Bots

#

how to seperate them into a new line in HTML

solemn quartz
#

@summer torrent

earnest phoenix
#

EJS

summer torrent
#

@solemn quartz just type node index.js to console

earnest phoenix
#

i tried actions.toString().split(",").join("\n")

copper cradle
#

@solemn quartz show the error you're getting

earnest phoenix
#

@summer torrent whats wrong with my coding now

amber fractal
#

@earnest phoenix try to put a \ before the @

#

backslash

earnest phoenix
#

ok

amber fractal
#

wrong character

#

mb

earnest phoenix
copper cradle
#

No

earnest phoenix
#

which one

copper cradle
#

\

#

Backslash

earnest phoenix
#

ok

#

Action of 1 from the Bots,Action of 2 from the Bots
how to seperate them into a new line in HTML
i tried actions.toString().split(",").join("\n")

copper cradle
#

You don't need toString

quartz kindle
#

.join("<br>")

earnest phoenix
#

tried

copper cradle
#

It's already a string

earnest phoenix
#

but it does this

copper cradle
#

</br>

earnest phoenix
#

@amber fractal still wont work

copper cradle
#

Not <br>

#

Iirc

amber fractal
#

same error?

earnest phoenix
#

yes

quartz kindle
#

it doesnt matter

amber fractal
#

I usually use <br/>

#

but yeah

earnest phoenix
#

Action of 1 from the Bots<br>Action of 2 from the Bots

quartz kindle
#

<br> works in all different variations

amber fractal
#

I dont think it matters

copper cradle
#

¯\_(ツ)_/¯

#

Then idk

quartz kindle
#

@earnest phoenix you need to insert the text as html, not as text

earnest phoenix
#

it just replaced the ',' with <br>

copper cradle
#

@earnest phoenix yes that's what it does

earnest phoenix
quartz kindle
#

ah you're using ejs

earnest phoenix
#

yes

quartz kindle
#

ejs has different tags for text and for html

#

check their docs

solemn quartz
#

@copper cradle its not an error

earnest phoenix
#

alright will do

#

ill try

solemn quartz
#

its just that when i do "node ." it doesnt work

#

the bot doesnt go on

copper cradle
#

@solemn quartz show what you get when u run node index.js

amber fractal
#

use <%-

quartz kindle
amber fractal
#

<%= is escaped html

earnest phoenix
#

ugh i need help

solemn quartz
copper cradle
#

Weird

#

Show the code inside index.js

solemn quartz
#

There are no problems

earnest phoenix
#

anyone wanna help me? anyone

copper cradle
#

Just show it

#

Lemme see something

solemn quartz
#

what

#

say me

#

Il say u

#

ok

copper cradle
#

Just

solemn quartz
#

This is privacy

copper cradle
#

🤦

#

Do u have <client>.login()

solemn quartz
#

Do u have <client>.login()
@copper cradle ?

#

i have

#

bot.login(token)

#

with token const

mossy vine
#

my man not showing your code when you need help is like the doctor asking what your problem is and saying "privacy smh"

copper cradle
#

Yeah

#

Makes no sense and it's stupid

#

Why whould I steal your code?

#

Why would I do such a stupid thing, your code doesn't even work

solemn quartz
#

it works

#

the terminal doesnt

vivid island
#

what happens if you do "node -v"

solemn quartz
#

it says v12.14.1

copper cradle
#

ThE tErMinAl DoEsN't

vivid island
#

it's the code then 😬

solemn quartz
#

Why

#

wtf

copper cradle
#

Bruh

#

Your code isn't working

#

there's something stopping it from being i terpreted

#

You're just a troll

muted vortex
#

@solemn quartz I hate to break this to you but, in programming people use each other's code all the time

copper cradle
#

i bet there's nothing inside index.js

muted vortex
#

no one really codes things entirely from scratch anymore

#

not for like 30 years or so lol

solemn quartz
#

i did kick and ban cmds lonely

#

and they worked

#

Forever Alone Thug Life

copper cradle
#

Send the code

#

So we can see

earnest phoenix
#

how do i make it so status is how many members the bot is watching?

copper cradle
#

It isn't that hard

earnest phoenix
#

client.user.setActivity('${client.users.size}) users, { type: 'WATCHING' }); this doesnt work

copper cradle
#

Yeah

#

First

#

You missed one '

solemn quartz
#

It is 87 lines and the max letters is 2000

copper cradle
#

At the very end

solemn quartz
#

i dont think i can send it

earnest phoenix
#

where

copper cradle
#

And you're using the wrong `

quartz kindle
#

@solemn quartz pastebin/hastebin/anyotherbin

copper cradle
#

client.user.setActivity(`${client.users.size} users`, { type: 'WATCHING' }); this does

quartz kindle
#

^ wrong placement of backticks

copper cradle
#

Whit

#

Shit

earnest phoenix
#

whats the correct then?

copper cradle
#

Fixed it

#

@earnest phoenix learn the basics of js

#

Then make your bot

earnest phoenix
#

@copper cradle is there a way to put what the prefix is?

#

while including the members?

copper cradle
#

Yes

earnest phoenix
#

how if u dont mind me asking

sudden geyser
#

pastebin bad

quartz kindle
#

the same way

copper cradle
#

^

quartz kindle
#

instead of client.users.size you put your prefix

earnest phoenix
#

wym?

quartz kindle
#

or just add it

earnest phoenix
#

but i want both

quartz kindle
#

then put both

#

each inside one ${}

copper cradle
#

LEARN the basics of js first

earnest phoenix
#

im trying

quartz kindle
#
`${value1} ${value2} ${value3} some text here ${value4} more text here`
earnest phoenix
#

client.user.setActivity(${client.users.size} users, { type: 'WATCHING' });

#

where do i but the second status

quartz kindle
#

i just showed you how

earnest phoenix
#

im confused

#

can u show what the command will look like

quartz kindle
#

what dont you understand?

earnest phoenix
#

do i do this

#

client.user.setActivity(${client.users.size} users, ${prefix}help{ type: 'WATCHING' });

quartz kindle
#

no

earnest phoenix
#

how should it look like then

quartz kindle
#

setActivity takes 2 paramenters

#

meaning, it should be setActivity(VALUE1, VALUE2)

#

notice the comma

earnest phoenix
#

...

quartz kindle
#

so the entire text that you want to show

earnest phoenix
#

can u send me whole command

quartz kindle
#

should go into VALUE1

#

no

#

you have two values

#

one value is this : `${client.users.size} users`

#

the other value is this: { type: 'WATCHING' }

#

you have to edit the first value, to include everything you want to show

earnest phoenix
#

Wait so

#

Like this?

marble juniper
west spoke
muted vortex
#

I would like to build a Youtube bot for my discord server; most of the bots on the site have way more features than what I am looking to do. I just want the bot to post webhook to a youtube video, (not a live video), and keep a log of the videos that the bot has linked to so users can review all the posts after the fact. (Streaming would be nice, but that is a feature I'd rather leave for later.) Is there a github space or something that has a simple youtube script I could use for my bot?

marble juniper
#

you can use a db to store all the videos

earnest phoenix
#

ty Tim

#

i got it now:D

marble juniper
#

and you can also use the youtube api v3

west spoke
#

if you manage to store full quality livestreams in under .5mb per video

#

then gg to you

#

otherwise I'd have it use the YouTube api

earnest phoenix
#

setActivity(${client.users.size} users, ${prefix})`

west spoke
#

@earnest phoenix no spoonfeeding

#

you can see what you're trying to do on the docs

marble juniper
#

l e a r n

west spoke
#

^

copper cradle
#

I mean

#

They're trying at least

marble juniper
#

I not understand give full command

copper cradle
#

Unlike @solemn quartz

west spoke
#

I learned ML by reading like 20 different docs on the math, eventually figured it out.

quartz kindle
#

@earnest phoenix i told you, TWO VALUES, the SECOND value is { type: "WATCHING" }
change only the FIRST value. VALUES are separated by a COMMA

west spoke
#

tim dont even

#

they need to learn this

marble juniper
#

tim its useless

muted vortex
#

yeah the logging part is probably pretty easy, I just need a script to add the youtube hook to the bot. I'm not trying to store entire videos, just the links to them. Not talking any live videos.

west spoke
#

you would just check if <youtube url>/<channel>/live I think

#

and check for a video using web scraping

#

if true, send the URL

#

That's how I'd do it

earnest phoenix
#

setActivity(${client.users.size} users, ${prefix})` like this @Tim#2373

quartz kindle
#

no

west spoke
#

oh my god

quartz kindle
#

why did you remove the {type:"WATCHING"}?

#

put it back in

west spoke
#

@quartz kindle fr just let them figure it out, its not worth it.

marble juniper
#

someone send a docs link

#

he should let his own brain do the work

#

if he can't understand what tim says

west spoke
#

^

marble juniper
#

im just gonna send 2 links

west spoke
#

@earnest phoenix this link and the following link.

#

sent by link

marble juniper
dense drift
#

Literally read that whole thing.

marble juniper
#

read both

#

then we can talk

#

helping is not giving you the entire solution its just to make you understand a certain concept and then be able to do it yourself and learn out of it

#

so you won't be stuck with the same problem over and over

west spoke
#

^

earnest phoenix
#

setActivity(${client.users.size} users, ${prefix})`

west spoke
#

Reason one why when I search for stackoverflow fixes: I use the broken one and make it work.

#

oh my god

marble juniper
#

kms

west spoke
#

Did you read the links

marble juniper
#

pls

west spoke
#

^

earnest phoenix
#

The doc doesn’t show how

#

I can’t find it

marble juniper
#

AAAAAAAAAA

#

I WANT TO SCREAM

#

THIS IS HOPELESS

west spoke
#

oh my fucking god

marble juniper
#

im outta here

#

fuck it

west spoke
#

I dont even use js

#

and I found it

marble juniper
#

like

#

is it so hard

west spoke
#

no

earnest phoenix
#

I’m new and dumb

west spoke
#

you just gotta know how to ctrl+f a webpage smfh

earnest phoenix
#

It’s the beginning of my bot

marble juniper
#

I even gave him everything he needed

west spoke
#

@earnest phoenix learn. The. Language. Before. Developing. Bots.

marble juniper
#

both explaining strings

#

and the discord.js method

dense drift
#

That's why I said, literally read the entire thing.

west spoke
#

^

marble juniper
#

and it even includes an example

dense drift
#

All of the js site.

west spoke
#

^^

earnest phoenix
#

Just wish people would help

#

But kk

dense drift
#

Just read through the tutorial, THEN attempt the bot.

west spoke
#

We are helping

marble juniper
#

Learn js then we can talk

dense drift
#

You need to know what you're looking for.

marble juniper
#

come back with knowledge

earnest phoenix
#

I just simply need the code and I’ll never ask anything again

dense drift
#

That's not how coding works.

marble juniper
#

this is why copy pasting code is a bad idea

dense drift
#

If you want that, pay someone to do it for you.

west spoke
#

you need to learn, we arent going to spoonfeed you the easiest code possible, you can google this..

earnest phoenix
#

I don’t have any commands yet

west spoke
#

I dont even use js and I could probably do that

#

easily

earnest phoenix
#

I just need to set status and I’ll work on commands

dense drift
#

Discord js is SO easy

west spoke
#

by doing a simple ctrl+f on a webpage

#

good lord

dense drift
#

The tutorial will build you the entire bot, with code provided

west spoke
#

ctrl+f and type in SetActivity

dense drift
#

and explain how it all works

west spoke
#

god

marble juniper
#

@earnest phoenix why would you rather code you don't even know what it will do

or use code where you know what it does and you know how to edit it

#

oh god

#

now even money is involved

west spoke
#

pffff

#

bad

dense drift
#

¯_(ツ)_/¯

earnest phoenix
#

I just need the simple

marble juniper
#

for the easiest thing on earth

dense drift
#

It's better than attempting it by just copy pasting things.

marble juniper
#

we are NOT gonna give you any code

west spoke
marble juniper
#

learn it

west spoke
#

seriously

marble juniper
#

LEARN IT

west spoke
#

google

#

it's a magical tool sent by the gods of programming

marble juniper
#

whats so hard to understand under the term "LEARN"

west spoke
#

isnt it?

earnest phoenix
#

But

marble juniper
#

do you use google translate or what

#

no

earnest phoenix
#

I need it to show how many users it’s watching and the prefix

west spoke
#

oh my god.

dense drift
#

Sure

#

Easy

west spoke
#

develop the rest of the damn bot

marble juniper
#

Do you have a knife for me @west spoke

west spoke
#

before adding the little things

#

@marble juniper I might

marble juniper
#

I really need it

west spoke
#

agreed

dense drift
earnest phoenix
#

Wow thanks for helping

west spoke
#

yw

marble juniper
#

don't you dare make complains

west spoke
#

we tried

#

There's your knife

earnest phoenix
#

I just wish someone could help

marble juniper
#

his brain was not able to comprehend anything

#

it feels like he is deafen

#

guess some people really are hopeless

#

please come back after you learned what helping means @earnest phoenix

unique nimbus
#

@earnest phoenix Help is not giving people code

marble juniper
#

help is to make you understand

#

not to give you the solution

#

because thats up to you

#

its so you dont make the same mistake

#

I already said it earlier

#

this is what helping is

earnest phoenix
#

Ok I’m sorry

marble juniper
#

but you still dont listen to me

earnest phoenix
#

I’ll work on the bot and language

#

I’m sorry for being rude and disrespectful

unique nimbus
#

Making a Discord Bot is not recommended as your first project

marble juniper
#

start with something simple like learning variables and strings and template literals

muted vortex
#

java is kind of the hardest programming language

marble juniper
#

like console.log("Text") or something

#

start with something simple

#

discord.js is not for beginners

#

it requires you to know js

copper cradle
#

Switch to eris, it's easier /s

marble juniper
#

and this is why you need to start with very simple stuff

unique nimbus
#

However to use Eris you need to know how to use Eris

marble juniper
#

because js is a language which builds on each other

#

also eris has docs

#

and I looked into eris and it kinda looks better than discord.js

quartz kindle
#

no need to flame beginners that much lol

marble juniper
#

because of the fact that eris has inital support for commands you don't even need to build a command handler like with discord.js

#

and it also seems easier to use

quartz kindle
#

depends on your definition of "better"

#

i like discord.js because i can hack the shit out of it and make it stupidly efficient (havent tried hacking eris tho)

marble juniper
#

my definition of better is when it is simple to understand and simpe to use

#

and also flexebility

muted vortex
#

K.I.S.S. (Keep It Simple Stupid!)

quartz kindle
#

there should be a low-level discord api library for js

#

something that just handles the token exchange and keeps the websocket connections

#

and gives you the raw packets and the rest api methods

slender thistle
#

NTUI

earnest phoenix
#

i did it!

copper cradle
#

Congrats

#

See

#

It wasn't that hard

earnest phoenix
#

true

marble juniper
#

im happy this is over

earnest phoenix
#

@muted vortex how is java the hardest xD

unique nimbus
#

Anything can be hard

earnest phoenix
#

yea but i wanna hear their logic as to why java is harder than..say... c

mossy vine
#

^

unique nimbus
#

Opinion

#

¯_(ツ)_/¯

earnest phoenix
#

ever use c?

#

ever use java?

unique nimbus
#

yes

earnest phoenix
#

c is a PITA

mossy vine
#

peter that is not an opinion that is FACT

earnest phoenix
#

^

unique nimbus
#

It is still an opinion

earnest phoenix
#

no. c is more complex.

unique nimbus
#

you are stating the c is harder than java which is an opinion

earnest phoenix
#

no.

unique nimbus
#

Breathing is complex

#

however we all are doing it fine

earnest phoenix
#

🙄

#

now what i mean

#

and thats instinct.

#

*not what i mean

modest maple
#

c isnt necessarily more complex

#

like i would say ik c and cpp better than js

unique nimbus
modest maple
#

to me i would find js harder

#

but it is just an opinion

earnest phoenix
#

either way.

#

my original point

#

was

#

yea but i wanna hear their logic as to why java is harder than..say... c
@earnest phoenix

unique nimbus
#

opinion

#

¯_(ツ)_/¯

earnest phoenix
#

and i want

#

to hear

#

their logic

topaz fjord
#

you guys are all wrong

#

objective c > *

copper cradle
#

Ewww

west spoke
#

huh

blissful scaffold
#

it disappeared just when I wanted to answer

stiff terrace
#

yeah I found the answer in faq, sorry cirBlind

rugged tusk
#

I'm using PostgreSQL in ElephantSQL and I'm getting this very large text error, the word being only 4 in length.
Does anyone have any idea why this happens?

earnest phoenix
#

whatever you're shoving in the database is toolong

#

o

#

nvm

#

thats odd

rugged tusk
copper cradle
#

That's odd

true ravine
#

From my limited sql knowledge, I assume dan was right, but the original table was only set up to take a single character for example

#

I ran into that issue yesterday

muted vortex
#

@earnest phoenix for one thing java and javaSCRIPT are not the exact same thing. I know a bit of JavaScript. Java is more complex than C++. Maybe by now there is something more complicated than Java, it's been quite some time since the days I was studying programming in college.

true ravine
#

To be fair my bot was my first javascript project

#

But I know python so that's basically the same right xd

copper cradle
#

No

earnest phoenix
#

@muted vortex you cant say js and java are not the exact same thing. they're nothing alike, besides the name

#

but ye, its more complex than c++ in what it can do, but syntax wise, doesnt c++ win in complexity?

peak venture
#

how do i parse sessiondata using express into an HTML file?

muted vortex
#

@earnest phoenix do you realize you just contradicted yourself?

earnest phoenix
#

No?

muted vortex
#

Nothing alike = not the same thing

#

Not sure how that escapes you

earnest phoenix
#

You said non the exact same thing, implying they were very similar

muted vortex
#

I was saying they are different

earnest phoenix
#

how do u reset the leaderboard

#

anyone know?

#

But the way you said it kinda seemed to imply you were saying they were similar but not the exact same..
@earnest phoenix wym?

#

!leaderboard

#

w/e the leaderboard is

#

how do u reset all of it

#

like the invites

empty owl
earnest phoenix
#

ty

astral yoke
#

How can I make a seperate bot that detects my bot, and if it detects if it's offline, it would notify me saying something like "DogBot has crashed. Check console logs."

#

To put in less words,

#

how to make a bot that detects if my bot is online or offline, and when it's off it would dm me?

summer torrent
#

which lib

astral yoke
#

js

summer torrent
#

discord.js?

astral yoke
#

Mhm.

summer torrent
copper cradle
#

Js Best lib

lilac wharf
#

There's presence under client#fetchUser if you want to look into that.

astral yoke
#

Python has a better surrounding though.

#

Where do I go. @summer torrent

summer torrent
#

you can use "presenceUpdate" event for detect presence updates

copper cradle
#

To*

lilac wharf
#

once you use the event you can also include code in there to detect if that presence update was done from your bot (make sure they are sharing at least one server)

astral yoke
#

Yeah, I'm gonna have a testing server that would have both bots in.

#

So it would be something with user.presence.status @summer torrent ?

lilac wharf
#

yes.

summer torrent
#

yes

lilac wharf
#

also in the future try not to use periods like that but more of this: user#presence#status

astral yoke
#

like in the server or in the coding?

lilac wharf
#

in the server ^-^

astral yoke
#

oh

#

can i know what bot you made?

copper cradle
#

Yes you can

#

Run -bots <user id> (not here tho)

astral yoke
copper cradle
#

Yeah

earnest phoenix
#

I use "heroku git: clone - a project name" but all. json comes redefined and I want me to install it with the files inside already
Using "heroku git: clone -a Project name" installs all files from the hosted bot, only for all .json files is reset

lilac wharf
#

is it when the clone is done or over a period of time?

earnest phoenix
#

When I finish cloning, I open the .json file and it is reset as it is uploaded, and the bot stores data all the time in .json

#

example of how it looks:


}```
lilac wharf
#

I think the issue is because of the heroku git clone, try making a test json with a test value and clone that.

earnest phoenix
#

what would be the command to clone just one file then?

lilac wharf
#

The program you're using is heroku git right?

earnest phoenix
#

yes

lilac wharf
#

Let me look into that one, give me a few minutes.

earnest phoenix
#

Okay

lilac wharf
earnest phoenix
#

Okay

#

But then it talks about how to start the bot, I want to install a bot file.

lilac wharf
#

I don't think it does talk about how to start the bot...

amber fractal
#

Anyone able to help me with this?

0|main     |   File "/root/AIDungeon_bot/bot/story/story_manager.py", line 254, in generate_result
0|main     |     block = await loop.run_in_executor(pool, self.generator.generate, full_action)
0|main     | *** print_exception:
0|main     | concurrent.futures.process._RemoteTraceback:
0|main     | """
0|main     | Traceback (most recent call last):
0|main     |   File "/usr/lib/python3.7/multiprocessing/queues.py", line 236, in _feed
0|main     |     obj = _ForkingPickler.dumps(obj)
0|main     |   File "/usr/lib/python3.7/multiprocessing/reduction.py", line 51, in dumps
0|main     |     cls(buf, protocol).dump(obj)
0|main     | TypeError: can't pickle _thread.RLock objects
0|main     | """
0|main     |
0|main     | The above exception was the direct cause of the following exception:
0|main     |
0|main     | Traceback (most recent call last):
0|main     |   File "/root/AIDungeon_bot/bot/story/story_manager.py", line 254, in generate_result
0|main     |     block = await loop.run_in_executor(pool, self.generator.generate, full_action)
0|main     |   File "/usr/lib/python3.7/multiprocessing/queues.py", line 236, in _feed
0|main     |     obj = _ForkingPickler.dumps(obj)
0|main     | TypeError: can't pickle _thread.RLock objects
``` I was having some thread blocking issues and told that running the function with `loop.run_in_executor` would help but that just brought up this error that I don't understand at all and google didn't help.
astral yoke
#

how do you make it so that it holds data? Like a database?

example of this:

(person in server1) verify (gets verified and such)

(same person goes to server2) (and gets automatically verified, having it reconized from last/first time they verified.

#

I've seen it before, so how would you?

amber fractal
#

use their id

#

it's unique and cannot change

astral yoke
#

But how do you make it so that it automatically enters an id into a database

#

?

amber fractal
#

When they join (or whatever) check to see if they're already verified. If they arent, have them verify then add them to the database and when they join next time it will test to see if they're already verified

astral yoke
#

but you would have to manually add them to a database

#

do you know any documents that like, explains?

amber fractal
#

Well you'll have to add them once and that'd be when they verify

#

idk exactly what you're trying to do

#

so idk what type of document to link

astral yoke
#

well like

#

someone verifys one time

violet nimbus
astral yoke
#

then they join a diff server with the same bot

#

so then when they join

#

they get auto verified

amber fractal
#

@violet nimbus might want to change your webhookAuth

violet nimbus
#

@amber fractalwdym?

amber fractal
#

your webhook auth

#

it's just there

violet nimbus
#

Ohh lol that's fake for showing

#

I edited the pic

#

Lol

amber fractal
#

I do have one question

#

you use client.on and you pass bot into the dbl constructor

#

so is it client or bot

astral yoke
#

you should use one or the other

#

i wouldn't suggest trying to do one and the other

fallen arch
#

who use mongoDB Cluster?

#

because im still getting the error. and my cluster is paused. idk why

violet nimbus
#

@amber fractal bcuz i have 2 variables lol

amber fractal
#

seems inefficient but if it works

violet nimbus
#

Yeah

#

But wait

#

Why?

amber fractal
#

is that glitch by chance

#

I cant tell

violet nimbus
#

Ooof

amber fractal
#

just a question

violet nimbus
#

Yep

amber fractal
#

You need to use process.env.PORT as the port

violet nimbus
#

no i did it myself

#

Ik

#

Bcuz that port is already in use

amber fractal
#

yeah

#

by the uptime robot

violet nimbus
#

No

#

Lol

amber fractal
#

you have to then use the same server

violet nimbus
#

I don't use that

amber fractal
#

glitch doesnt let you use other ports

violet nimbus
#

Yeah

earnest phoenix
#

Im doing a site for my bot

#

It uses passport-discord

#

And dont work

#

;-;

#

I think that package might be out of date. im not sure

marble juniper
#

it was made 2 years ago

#

so probably yes

surreal sage
#

const prefix = "cd";
const args = message.content
.slice(prefix.length)
.trim()
.split(/ +/g);

It reacts on the length. With what do i need to replace to let it work?
Could i use if(message.content.startsWith(prefix)) {

//scripts

}

?

warm marsh
#

Do it the other way?

surreal sage
#

wdym

warm marsh
#

If doesn't startwith return;

#

then let args =

surreal sage
#

if(!message.content.startsWith(prefix)) return;

warm marsh
#

Although both ways are fine.

surreal sage
#

ok

warm marsh
#

Yeah

unborn steeple
#
TypeError: Cannot read property 'client' of undefined2:40 AM

at new MessageEmbed (/rbd/pnpm-volume/6ebe09a3-2c8f-4dda-bf12-aea0160c35f9/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/structures/MessageEmbed.js:13:60)2:40 AM

Jump Toat Object.execute (/app/commands/help.js:9:21)2:40 AM

Jump Toat Client.client.on (/app/server.js:44:36)2:40 AM

at emitOne (events.js:116:13)2:40 AM

at Client.emit (events.js:211:7)2:40 AM

at MessageCreateHandler.handle (/rbd/pnpm-volume/6ebe09a3-2c8f-4dda-bf12-aea0160c35f9/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)2:40 AM

at WebSocketPacketManager.handle (/rbd/pnpm-volume/6ebe09a3-2c8f-4dda-bf12-aea0160c35f9/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:105:65)2:40 AM

at WebSocketConnection.onPacket (/rbd/pnpm-volume/6ebe09a3-2c8f-4dda-bf12-aea0160c35f9/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)2:40 AM

at WebSocketConnection.onMessage (/rbd/pnpm-volume/6ebe09a3-2c8f-4dda-bf12-aea0160c35f9/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)2:40 AM

at WebSocket.onMessage (/rbd/pnpm-volume/6ebe09a3-2c8f-4dda-bf12-aea0160c35f9/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/ws/lib/event-target.js:120:16)

I keep getting this error can anyone help me.

dusky marsh
#

Exactly as the errors says, you are reading the client property on some undefined value

#

<undefined>.client somewhere in your code, cant really help any more without some code

unborn steeple
#

@dusky marsh dm me

#

ill give u the code

dusky marsh
#

Mm, I'd prefer to keep it here. Just hide any private things

#

¯_(ツ)_/¯

unborn steeple
#

tell me when u go there

#

the whole bot i think might be breaking ita an old project my friend wants me to fix for him

#

i cant figure out the problem though

dusky marsh
#

you are reading the client property of a message which doesnt exist

#

in help.js

unborn steeple
#

wdym

dusky marsh
#

message.client is not a thing

unborn steeple
#

what do i do

dusky marsh
#

Read the correct property, im not spoonfeeding all i can say is that you cant read the client value property of a message object because that value does not exist unless you explicitly create it

earnest phoenix
#

that sounds complicate

unborn steeple
#

@dusky marsh I fixed that but it still shows an error

#

It says cannot read array of undefined.

dusky marsh
#

you arent passing the client instance in your command handler

#

you are passing message and args, not message and client as implied by your help command

#

so in help.js youre reading the array property of args not client

unborn steeple
#

do i remove args?

dusky marsh
#

pass whatever object you need to access the data from, its all down to your data flow but in this one instance yes

unborn steeple
#

why u in my env file?

dusky marsh
#

i just noticed it existed i was going to tell you to go delete the link message but i see you did already

#

and regen token

unborn steeple
#

it still says cant read property of array undefined or whatever

dusky marsh
#

switch the order in server.js

#

your parameters are switched

#

yeah like that

#

nah it was right the first way

#

does glitch automatically refresh code?

#

you dont have client anwhere on line 10

unborn steeple
#

no i reload it in watch.json

#

wdym client on line 10

#

i have it defined at the top

dusky marsh
#

yeah but the console is saying you have <something>.client on line 10

#

which is why i asked if glitch refreshes the code

#

cause if ya look <something>.client is nowhere on line 10 in the help file

unborn steeple
#

I got it working

#

it needed to be RichEmbed lol

#

I have a few morw errors on the bot

dusky marsh
#

oh right i guess they only changed it to MessageEmbed in v12 huh

unborn steeple
#

there is something wrong with play command

dusky marsh
#

i think you need voiceChannel

unborn steeple
#

lemme try it

#

this bot is so badly outdated

dusky marsh
#

yeah just looks like you need to update some of the properties

#

what version of djs did he originally write that on

#

cause its been voiceChannel for a while

unborn steeple
#

idk

#

Im just gonna tell him to let me make one from scratch lol

#

thanks for the help tho man

dusky marsh
#

ye np sorry for the rabbit hole chase on the one problem, that was not a very descriptive error

unborn steeple
#

your good

dusky marsh
#

and gl with the rewrite i know it can be painful lol

unborn steeple
#

thx lol

dusky marsh
#

and make sure to regen token, not that i think they will do anything with it, but the mods definitely log deleted messages lol

grizzled raven
#

bruh

#

message.client is a thing

#

smh

exotic prism
#

message.client is not a thing isn't it?

#

or i didn't know

grizzled raven
#

almost every class has a client property

earnest phoenix
#

good to see cool devs that help out the community

#

yES

mystic violet
#

Could someone help me with my bassboost command? it sounds terrible, heres the code js function bassboost(msg, guild) { const node = msg.client.player.nodes.first() node.send({ op: "equalizer", guildId: guild.id, bands: Array(6).fill(0).map((n, i) => ({ band: i, gain: 1 })) }) }

copper cradle
#

Gain 0.5

broken jay
#

Is possible to host Discord bot with containers, using 1 container per shard?

mystic violet
#

@copper cradle still sounds distorted as hell, I tried 0.1 doesn't sound any different, 0.2 sounds distorted, are all 6 of those bands bass? or is it like the only first 3

copper cradle
#

Not sure

storm bluff
#
    at WebSocketConnection.client.ws.connection.once.event (/rbd/pnpm-volume/52fd4985-92c5-465a-a9c0-068e8cb10637/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/ClientManager.js:48:41)
    at Object.onceWrapper (events.js:277:13)
    at WebSocketConnection.emit (events.js:189:13)
    at WebSocketConnection.onClose (/rbd/pnpm-volume/52fd4985-92c5-465a-a9c0-068e8cb10637/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:390:10)
    at WebSocket.onClose (/rbd/pnpm-volume/52fd4985-92c5-465a-a9c0-068e8cb10637/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/ws/lib/event-target.js:124:16)
    at WebSocket.emit (events.js:189:13)
    at WebSocket.emitClose (/rbd/pnpm-volume/52fd4985-92c5-465a-a9c0-068e8cb10637/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/ws/lib/websocket.js:191:10)
    at TLSSocket.socketOnClose (/rbd/pnpm-volume/52fd4985-92c5-465a-a9c0-068e8cb10637/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/ws/lib/websocket.js:850:15)
    at TLSSocket.emit (events.js:194:15)
    at _handle.close (net.js:597:12)
(node:782) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:782) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```
i am trying to make if someone mention the bot and type help sand help message
summer torrent
#

your token is invalid

storm bluff
#

what

#

how the bot is online

earnest phoenix
#

you tell us how

#

computers don't lie

storm bluff
#

ok

earnest phoenix
#

@grizzled raven Message.Client is a thing

quartz hill
#

let [needdelete] = await (connection.execute)(SELECT cid FROM characters WHERE ownerid = ? AND cid IN (SELECT cid FROM wish WHERE id = ?), [author , author ]);
let total = needdelete.length;
let array= [];
for (var i=0; i<total; i++){
array[i] = parseInt(needdelete[i].cid);
}
await (connection.execute)(DELETE FROM wish WHERE id = ? AND cid IN (?), [author, array]);
I am running this code but it does not delete it. It does not give error.
What am I writing wrong?
nodejs

#

array is completely correct. but delete command not working

quartz kindle
#

what db/library are you using? does it accept arrays as a prepared parameter?

quartz hill
#

mysql2

#

jawsdb

quartz kindle
#

you're essentially passing [author,[cid1,cid2,cid3]], im not sure how the library will serialize that into a parameter. you could try joining it into a string so it becomes [author,"cid1,cid2,cid3"]

#

also not sure if the library even accepts multiple values in a single parameter

grizzled raven
#

@earnest phoenix thats what i said

quartz kindle
#

you could try making a test like this AND cid in (${array.join(",")}) if the other attempts dont work, just to make sure the query itself is working

quartz hill
#

I will try. thx 🙂

mystic violet
#

Anyone have any good bassboost presets for lavalink (the equalizer)

quartz hill
#

@quartz kindle thx work this

jaunty pike
#

How to add my bot back here

#

My bot was kicked, idk why

#

Is it possible to add him back?

sudden geyser
#

find your bot in #mod-logs for the reason (using the search bar, insert the ID), fix it, contact a mod

jaunty pike
#

Thanks

true ravine
#

Anyone know a route I could go down to display the cpu load of the system my bot is running on?

modest maple
#

what language

true ravine
#

javascript (node js) running on ubuntu

#

Looked at cgroups but according to them my cpu usage is something like 6 billion so I assume some math has to be performed to get that as a percentage

quartz kindle
#

you want the usage of the entire machine or just the node process?

true ravine
#

Entire machine ideally

quartz kindle
#

you could use grep and top

true ravine
#

How would I go about using them?

mystic violet
#

How would I for just the process (cpu usage)

#

Sorry for lurking btw

true ravine
#
var os = require('os');
var loads = os.loadavg();

Found this on stack overflow for process specific usage

quartz kindle
#

os.loadavg() should work for system cpu usage as long as its not windows

#

for process specific usage (node.js's own process), the only built-in way in nodejs is to use process.cpuUsage(), which is a bit complicated to use

finite bough
#

@quartz kindle

#

remember I was asking u about json databases some days ago?

#

well

#

glitch doesnt like updating json files using bot bot itself

mystic violet
#

use quick.db or something

#

its like json databases

#

but its sqlite

finite bough
#

so I will recommend restart after changing project

#

require("child_process").exec("refresh");

#

tried that

#

glitch doesn't like anything

mystic violet
#

What units are these in? js { user: 70093000, system: 9234000 }

#

process.cpuUsage()

amber fractal
#

... whose values are microsecond values (millionth of a second). These values measure time spent in user and system code respectively, and may end up being greater than actual elapsed time if multiple CPU cores are performing work for this process.

neat ingot
#

two questions:
1: Assuming you have a server that hosts your bot, and one that hosts your website. how often would you ping your bot from your website backend to update things like online status, user count, guilds, etc??

2: Do you include bots in the amount of users your bot tells people it has? ie. do you filter out the bots from the real users before displaying user count?

quartz kindle
#
  1. depends, there are many ways to do this
  2. yes i include bots, but depends on what you want
neat ingot
#

I already do ping, just wondering how often i should 😄

#

they are both on same host atm so its sub 20ms latency

#

but it may move to a diff host for the website in future

quartz kindle
#

for 1, the most efficient way would be for your bot to have an endpoint that your website can get data from on page load, and then have a cache for it that lasts however time you want

neat ingot
#

does

#

😛

#

i have docker containers, one for bot, one for site, one for nginx, mongod bd, etc. etc.

#

they share a network

#

and atm, my website app pings the bot every minute to get datas

quartz kindle
#

so for example:
user loads page
page checks cache
if cache more recent than 60 seconds, load from cache
else make a request to bot and update cache

neat ingot
#

yea i could probasbly do it that way

#

iw as thinking more of constant pings for online status

quartz kindle
#

you dont need to ping it every minute if nobody is using your website, thats basically the only difference from what you're already doing

neat ingot
#

no yea i get that 😄

quartz kindle
#

in any case youre already good to go

neat ingot
#

yea thats probly best route

#

since latency isnt an issue anyway

#

like, at most i'd be adding 20-25ms onto the loading of a webpage for 1 user

#

thats negligible imo

#

ty Tim ❤️

oak minnow
#

Just a quick question. Is it safe 2 share the package-lock.json file in the bot?

neat ingot
#

i wouldnt. the package lock file stores machine specific data referencing the install paths/

#

its also regenerated upon npm install / yarn commands

#

so just include the package json itself

#

and when someone runs command to install node modules, it will create either package lock file, or yarn lock file, depending on package manager used

oak minnow
#

no cause i just wanted 2 upload commands and 1 or 2 other files on github for people 2 see

#

i wasnt going 2 host that 1

quartz kindle
#

package-lock is useless, its always auto-generated

#

nobody needs to see it

oak minnow
#

ok

neat ingot
#

thats what i mean, its specific to your machine, they would regenerate their own on installz

oak minnow
#

i just wanted people on a discord server im in 2 see the code for the commands

#

ya

#

well thanks for the help!

neat ingot
#

are you uploading to github via git command?

oak minnow
#

im not 2 advanced in github but im using github desktop 2 upload it

#

I always have issues uploading from the website and i like using the desktop program

neat ingot
#

ahh ok. you can include a .gitignore file in the project directory to specify files to ignore when uploading the git

oak minnow
#

ik, i just created a seperate folder like BotsnameherePublicVersion and i just copied the commands folder from the bot that has everything 2 the Publicversion so i dont need 2 deal with all the other files

#

1 last question. Should i also have the package.json file public or no. cause its just saying what dependencies r installed and links 2 githubs website

neat ingot
#

yes, the package.json is required to build the project node modules foldeer

#

it tells node what modules the app needs to run 🙂

#

you can remove github link if you want

#

or change or w.e

oak minnow
#

ok. well thats it. Am I allowed 2 share my github project on here or no?

neat ingot
#

no clue 😄

oak minnow
#

lol

quartz kindle
#

unless there is a reason to share it, better not

#

it would count as self-advertising, which is not allowed

earnest phoenix
#

im happy, i did my eval command in a embed

#

yay

quartz kindle
#

good job

earnest phoenix
#

!help

vestal star
#

Hello, I'm making a poll bot and need to know if it is allowed to send a user a dm with all the responses?

modest maple
#

if it sends it to all users: not allowed

#

if only to the poll maker: Yes allowed

earnest phoenix
#

@vestal star discord bot maker

modest maple
#

what

vestal star
#

wait what? so I could send the responses to all users, but not to just the poll maker?

modest maple
#

no

#

you are NOT allowed to mass DM

#

one user is fine

earnest phoenix
#

^^^^

#

TRUE

modest maple
#

i typed it diffrently to how i typed that message lmao

vestal star
#

Ok, so I could DM the poll make after the time when they make the poll (poll time is specified)

modest maple
#

yh

vestal star
#

and they don't have to send a command to get the poll responses?

modest maple
#

no

vestal star
#

Okay

#

Wait, so they don't have to send a command to get the responses and can't just get them after the poll ends? Or is this not allowed? Sorry about how I worded my question, just want to be sure

modest maple
#

You can set the bot

#

so the user starts a poll

#

then at end of the poll DM the user the results automatically

#

thats fine

vestal star
#

ok good

vagrant tree
#

is it possible to have a link in a message automatically be sent by the client if clicked on it? or if not automatically sent, typed into their prompt? i am using python

modest maple
#

your first question:

  • not rlly sure what you mean by that, but sounds like a protocol link which is annoying todo

Your second question:

  • wait_for() is basically the input() of discord
vagrant tree
#

can you wait_for click and get the details of what they clicked?

modest maple
#

no

#

doesnt work like that

#

urls have nothing todo with discord

#

and would be an entirely different system

#
"""Examples"""


# Waiting for a user reply:

@client.event
async def on_message(message):
    if message.content.startswith('$greet'):
        channel = message.channel
        await channel.send('Say hello!')

        def check(m):
            return m.content == 'hello' and m.channel == channel

        msg = await client.wait_for('message', check=check)
        await channel.send('Hello {.author}!'.format(msg))

# Waiting for a thumbs up reaction from the message author:

@client.event
async def on_message(message):
    if message.content.startswith('$thumb'):
        channel = message.channel
        await channel.send('Send me that 👍 reaction, mate')

        def check(reaction, user):
            return user == message.author and str(reaction.emoji) == '👍'

        try:
            reaction, user = await client.wait_for('reaction_add', timeout=60.0, check=check)
        except asyncio.TimeoutError:
            await channel.send('👎')
        else:
            await channel.send('👍')

vagrant tree
#

i basically want to present the client with options and if they click/select/type an option, i want it to send another message based on the selection - is the only way for me to allow them to type in the selection themselves?

modest maple
#

could use reactions

earnest phoenix
#

wha

modest maple
vagrant tree
#

i see, i have 10 options though and the reactions would be a bit confusing i think

modest maple
#

use the wait_for message event then

vestal star
#

In discord.js you could use a message collector, but I don't know about discord.py

modest maple
#

ignore that^

vagrant tree
#

thanks, i think for now the wait_for will have to do

earnest phoenix
#

hey how to make the bot was 24/7 online

mossy vine
#

hey what are you using to host it

earnest phoenix
#

python,dbm

mossy vine
#

no i mean

amber fractal
#

that's not a host

earnest phoenix
#

eeee

mossy vine
#

your computer, heroku, glitch, a vps, whatever

#

wait are you using dbm

earnest phoenix
#

because I don't know how to give it 24/7 online

quartz kindle
#

either leave your computer on 24/7, or get a server

earnest phoenix
#

but bot how to give 24 out of 7 online

quartz kindle
#

i told you

#

the bot only works if the bot program is on

#

if you close the bot program, the bot will not work

#

so you need a computer that runs the bot program 24/7

earnest phoenix
#

but bot how to give 24 out of 7

quartz kindle
#

most people use a server/vps, which is like a computer you rent per month to run programs in it

summer torrent
#

@earnest phoenix check pinned messages

earnest phoenix
#

and if you don't have money

#

so what

summer torrent
#

¯_(ツ)_/¯

earnest phoenix
#

Free hosts are trash tho

#

a monthly vps in money value is equivalent to 2 cheeseburgers in McD per month

#

^

#

I'm only 13 years old

#

hi only 13 years old

#

If it's a small bot, honestly I could host it

modest maple
#

den ask parents

earnest phoenix
#

But it'd only really be temporary

#

and if they don't always allow you to spend money

marble juniper
#

then you are screwed if you can't pay 2 Cheeseburgers a month

mossy vine
#

honestly you dont want to trust some whitename with an mc pfp with your token mmLol

marble juniper
#

xX_UltimageGaYmer_Xx

earnest phoenix
#

🙄 Stop.

#

'm from Poland

#

It was an offer. I'm a whitename cuz Ansura is awaiting review.

marble juniper
#

if it comes to hosting glitch is the best way to go as it gives you a powerful hosting

visual sandal
#

You can only delete 100 discord messages at a time... how many can u fetch? Is there a limit or can I get the entire chat and maybe break discord?

earnest phoenix
#

Um.

#

Only one way to find out >:3

visual sandal
#

Lmao

marble juniper
summer torrent
#

You can only delete 100 discord messages at a time... how many can u fetch? Is there a limit or can I get the entire chat and maybe break discord?
@visual sandal in discordjs: 100

earnest phoenix
visual sandal
#

Oh

marble juniper
#

you can only fetch 100 messages

#

ah fuck

#

im too slow

visual sandal
#

Thx for clarifying

summer torrent
visual sandal
#

Kk

#

Wait

#

How’d u get the bot to run the command lol that

#

That’s kinda cool

vestal star
#

How long will bot applications take?

visual sandal
#

2 weeks, but I think they have a lot of request rn

summer torrent
#

How’d u get the bot to run the command lol that
@visual sandal eval command?

visual sandal
#

Yee

blissful scaffold
#

It's an eval command

vestal star
#

Oh, so it got longer? I submitted a bot less than a year ago and it got accepted in a few days.

summer torrent
#

eval("your code")

visual sandal
#

Like the code behind it...

#

To run it

vestal star
#

Eval commands are a BIG security risk, if someone gets access to your account, your bot is screwed.

visual sandal
#

Uh.. idc I still want it lol

vestal star
#

I wasn't trying to stop you, but I would not recommend it if you are hosting your bot on your own computer

visual sandal
#

I’m not

#

hehe

vestal star
#

Ok good 👍

quartz kindle
#

which language are you using?

visual sandal
#

Js

quartz kindle
#

then the command is literally eval(text)

visual sandal
#

Lmao ok thx.. haven’t tried it before

quartz kindle
#
let command = "10 + 10"
eval(command) // 20```
#

make sure to only allow yourself to use it

#

never let other people use an eval command

visual sandal
#

Ok, thx for telling me

#

I prolly would’ve made it public if u didn’t tell me

earnest phoenix
#

so eval is built in?

quartz kindle
#

in js yes

#

in other languages probably as well, but syntax might be different

earnest phoenix
#

JS is just better

#

what can i say idk

quartz kindle
#

you dont want to start language wars lmao

marble juniper
#

no language wars

#

even tho I agree

earnest phoenix
#

lmao

visual sandal
#

HTML is the best ||dont kill me, yet||

quartz kindle
#

there is always pros, cons, and especially "better tool for the job"

marble juniper
#

HTML is the best Programming language

earnest phoenix
#

i use notepad to write my code MEMEME

ocean frigate
#

html?

marble juniper
#

im already laughing

ocean frigate
#

is html a programmminh language?

earnest phoenix
#

no

visual sandal
#

In my world.. yes

marble juniper
#

its a markup language

quartz kindle
#

its considered a "declarative programming language" by some

summer torrent
#

i use notepad to write my code :MEMEME:
@earnest phoenix vscode is best

quartz kindle
#

as opposed to an imperative language, which are most of them out there

#

like css is also a declarative language

marble juniper
#

no sublime @summer torrent

earnest phoenix
#

@summer torrent it was a joke A_smh

#

it is a programming language

visual sandal
#

Yaas

marble juniper
#

triggered

earnest phoenix
marble juniper
#

im gonna download google.html

#

and delete the entire google servers

visual sandal
#

GL

earnest phoenix
#

my laptop crashed....

marble juniper
#

Lol

#

I wanna see someone try that on a petabyte PC

visual sandal
#

it’s 2 billion lines for the entirety of google

earnest phoenix
#

@visual sandal you want me to pull the latest code or keep it a few versions behind?

visual sandal
#

Either way is fine

earnest phoenix
#

too late

#

i already pulled

visual sandal
#

Ok lol

earnest phoenix
#

did you think i was gonna wait?

visual sandal
#

No

digital ibex
#

hi

#

anyone know what that means?

summer torrent
#

read the error

digital ibex
#

I read it

#

but there is

dusky marsh
#

not according to your error

digital ibex
#

yea, im just resarting it bc i've spent long enough anyways

#

like uploading 4k files

quartz kindle
#

double check your folder structure

digital ibex
#

ok

quartz kindle
#

you dont need to upload the node_modules folder

#

just upload your files and upload package.json

#

then in the terminal, run npm install

#

and it will reinstall everything and regenerate the node_modules folder

digital ibex
#

okay

astral yoke
#

Any recommendations for a database holder?

#

For discord.js

quartz kindle
#

holder?

astral yoke
#

Like,

#

Just a database.

#

Something that holds data and gets auto put in when someone does a command.

#

auto put into the database*

quartz kindle
#

you have to code the auto part yourself

astral yoke
#

is there any documents?

quartz kindle
#

but generally, sqlite is good for small-medium bots

astral yoke
#

Ok.

#

I'm going to investagate into sqlite, thanks.

quartz kindle
#

depends also if you prefer an sql database or a no-sql database

astral yoke
#

The difference?

quartz kindle
#

an sql database works like tables, with rows and columns, and uses the SQL language, which once you learn you can use on multiple databases

#

a no-sql database are other types that use either key-value or document storage, and are more similar to javascript objects. mongodb is a good example

astral yoke
#

what would you prefer for a good database?

#

sql?

quartz kindle
#

generally yes, sql tends to work better for most things that bots do

astral yoke
#

ah okay thanks

quartz kindle
#

also, between all the different SQL databases, SQLite is the only one that is embedded, which means it doesnt require a separate database server running on your machine

astral yoke
#

ah

#

so sqlite is a pretty good one for starting out bot(s)?

quartz kindle
#

yup

astral yoke
#

ok thanks m8

astral yoke
#

Need help.

#

Error:

#

ReferenceError: command is not defined