#development

1 messages ยท Page 1091 of 1

dull badger
#

how to fix

opal plank
#

how to error?

dull badger
misty sigil
#

show us full code of message.js file

#

in code block

dull badger
#

ow

#

wait

misty sigil
#

in hastebin or wutever its called if its too big

opal plank
#

hastebin**

misty sigil
#

ty

opal plank
sudden geyser
#

[GraphQL] [Rust] I'm looking into using a GraphQL API for a bot I've written in Rust with the graphql_client library. However, it seems I need a schema.graphql file, which would contain the valid GraphQL schema, and I have no idea how to get/generate it based on the API I'd be using (and did not find much help on Google). How would I be able to use it?

weak rain
#

need help regarding Canvas

#

anyone?

winter basalt
weak rain
#

Js?

tired panther
#

hi

pure lion
#

@weak rain issue?

tired panther
#

do u know how to set a timer for 1 hour without db?

misty sigil
#

setTimeout?

pure lion
#

^^^^

tired panther
#

setTimeout?
@misty sigil that does not work

pure lion
#

Wdym

misty sigil
#

it does if you use it right

tired panther
#

i have tried that 20 times

#

yes

pure lion
#

What time are you putting in?

pure saddle
#

try use db

tired panther
#

i tried with 20 second and it workes

pure lion
#

Did you wait an hour?

tired panther
#

wait can i send here the code?

opal plank
#

node schedule should also do the trick

misty sigil
#

yes

pure lion
#

Um

misty sigil
#

code bloc

pure lion
#

1 hour is 360000

opal plank
#

ty

pure lion
#

Head my shake

tired panther
#

i made 2 hours

misty sigil
#

it says 2 hours

tired panther
#

ik

opal plank
#

node-schedule

pure lion
#

But have you waited 2 hours?

tired panther
#

yeah

#

10 times

opal plank
#

USE NODE SCHEDULE

weak rain
#

@pure lion no

lusty walrus
#

๐Ÿ™‚

tired panther
#

@opal plank do have to install that?

opal plank
#

here, no more time problems

pure lion
#

@weak rain what is your issue?

#

If you say no again I'm leaving the server

opal plank
#

you can execute the function at a specific time

pure lion
#

Lmao

opal plank
#

make a new date when command is issued and then add 2h onto it

weak rain
#

@pure lion no issue i just want the code

pure lion
#

Um

#

No

weak rain
#

nd test it

pure lion
#

Pay me money

opal plank
#

no spoonfeeding

pure lion
#

And I'll write something for you

weak rain
tired panther
#

Pay me money
@pure lion may be

winter basalt
#

spoonfeed moment

opal plank
weak rain
#

lol

pure lion
#

No

#

Not lol

#

Serious >:(

tired panther
#

i am not a beggenner

#

i hate db

pure lion
#

Why

pure saddle
#

why

pure lion
#

You say you aren't a "beggenner" yet you don't use a db

tired panther
#

how can i do that with db

pure lion
#

You don't

tired panther
#

that it creates

opal plank
#

why would you need a db for a schedule?

pure lion
#

^

tired panther
#

every time a new variable

pure saddle
#

why u dont use db

tired panther
#

for each server

#

yes k i will do with db

opal plank
pure lion
#

You realise

#

You can set multiple timeouts at once

opal plank
tired panther
#

i k
but the thing is how can i create each time when the reminder is set
that it creates a variable with the server id and the time

opal plank
#

no db, just node schedule

#

ยฏ_(ใƒ„)_/ยฏ

tired panther
#

but

lusty quest
#

is it persistent?

opal plank
#

unless its 6h+, then incase the bot goes down i keep the timestamps loaded

tired panther
#

does it works for many server?

opal plank
#

yes

pure lion
#

e

tired panther
#

and this is interval?

opal plank
#

everytime you issue the function it creates a new one

#

you said 2h

tired panther
#

yes

#

okay

opal plank
#

just set a date from 2h of when someone typed the command

tired panther
#

how can i set the date?

opal plank
#

create a new Date and then add number of seconds

tired panther
#

and where should it be saved

opal plank
#

or ms

#

it dont get saved mate

#

thats the whole point

#

unless you are messing with big dates you dont need a database

#

i do it only for 6h or more reminders

#

when the bot goes down it loses all those values

#

but because you only want 2h, its fine

earnest phoenix
#

@scenic kelp beat halyx yet?

tired panther
#

but because you only want 2h, its fine
@opal plank and it works seperate , when i remind in 20 server , it will not mix the data

tacit cairn
#

pls

#

pls help

pure lion
#

Dude

opal plank
#

@tired panther yes

#

i literally showed you

pure lion
#

Just say what the damn issue is and stop crying

opal plank
#

2 different commands

#

each run with their own timers

tired panther
#

okay

#

i was confused

#

becuase i did not

#

see the upper message

#

u have setted the reminder 2 times

opal plank
#

indeed

#

they are individual

pure lion
#

But it's not capped at 2

opal plank
#

^^

pure lion
#

It's probably somewhere around 4 billion

opal plank
#

as many as you'd like

#

i should be coding rn tbh

#

i still havent added my chat parsers

#

they removed twitch emotes from discord, right?

pure lion
#

ยฏ\_(ใƒ„)_/ยฏ

#

It's probably on some docs somewhere

opal plank
#

ugh, i might have to create emojis for that

#

fml

tired panther
#

okay i am trying

#

thx @Not Erwin#8753

opal plank
#

no prob

pure lion
#

||@Erwin Not#8753 ||

#

Fuck

tired panther
#

๐Ÿ˜†

opal plank
#

thanks @Dice(disableMentions = true)#2213

tired panther
#

do u have the verified dev badge?

opal plank
#

not yet

pure lion
#

I'll get it soon

#

I submitted a good week ago

opal plank
#

i might just go advertise the fuck out of my bot just to get done with it

pure lion
#

Lmao

opal plank
#

dont wanna deal with verification down the line

tired panther
pure lion
#

Mood tbh, it's gonna blow up big

tired panther
#

shedule means

pure lion
#

@tired panther try to read the docs

tired panther
#

cocs ๐Ÿ˜†

opal plank
#

hehehe

tired panther
#

okay docs

#

i will read them

#

but u are all so honest

pure lion
#

Yeah we are

opal plank
#

someone motivate me for the love of god

pure lion
#

Uh

#

Go

opal plank
#

im chained to this channel giving support

pure lion
#

!!!

#

You can do it

#

I'll cover you

opal plank
#

ty, i needed that

pure lion
#

Np

#

What's the issue?

#

"again"

tired panther
#

how do i get hour , date .......

pure lion
#

Okay looking at the screenshot

misty sigil
#

Date.now()

pure lion
#

a

tired panther
#

and for year

#

year.now()

#

?

pure lion
#

new Date().getFullYear()

#

I think

#

Unless that's the decapricated one

#

Like, make a channel named announcements?

restive furnace
#

just use moment

pure lion
#

Oh

#

Public server

misty sigil
#

partner

pure lion
#

Oh

misty sigil
#

dev thingi

pure lion
#

Devvy thingy-y

misty sigil
#

yea

#

its $25

pure lion
#

Bruj

restive furnace
#

you get it from dev thing or become partner

pure lion
#

Dev thing?

robust moth
pure lion
#

You have shit internet

#

In other news

restive furnace
#

or his host ^

pure lion
#

a

digital ibex
pure lion
#

The what

digital ibex
#

i used no library

#

!

#

and got bot online

#

woo

pure lion
#

The how

#

How the fuck

digital ibex
#

idk!!

#

im so happy rn

#

im gonna be like

#

inactve now

pure lion
#

How the hecking hecc

digital ibex
#

bye

pure lion
#

Lmao

restive furnace
#

i did too

#

congratz

#

xd

pure lion
#

But how

digital ibex
#

wdym?

restive furnace
#

make websocket connection and start sending heartbeats

sudden geyser
#

by coding

robust arrow
#

djs12: quite new to arguments, how do I replace the commas that separate words

pure lion
#

Oh

sudden geyser
#

Use .split?

pure lion
#

@robust arrow join with ' '

pure lion
#

*has read it like 7000 times*

digital ibex
#

oof

#

this was like

#

my second time

pure lion
#

Wait

#

So that's how we make libraries

digital ibex
#

yeah

#

its just an API wrapper

pure lion
#

Time to scratchX

#

x)

digital ibex
#

its gonna be heavily inspired by eris and detritus

#

not gonna be public tho :p

pure lion
#

Aw :c

digital ibex
#

its too hard to support all endpoints

pure lion
#

Oh

digital ibex
#

and the code isnt very modular :(

pure lion
#

a h

sudden geyser
#

and voice

tired panther
#
 if(command === 'remind'){ 
    var schedule = require('node-schedule');
                var date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), 10);
                var j = schedule.scheduleJob(date, function(){
                  message.channel.send("test");
                });       
        
}
#

will it remind after ten seonds?

digital ibex
#

i uh dont think so..

#

new Date doesnt work like that afaik

tired panther
#

what should be changed?

digital ibex
#

use a setTimeout

tired panther
#

does not

#

work

digital ibex
#
setTimeout(() => {
message.channel.send('its been 10 seconds');
}, 10000);```
restive furnace
#

setTimeout(func, timeout)

tired panther
#

they told ti use node schedule

#

its for 2 hours

#

@opal plank

digital ibex
#

use moment then

tired panther
#
 if(command === 'remind'){ 
    var schedule = require('node-schedule');
                var date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), 10);
                var j = schedule.scheduleJob(date, function(){
                  message.channel.send("test");
                });       
        
}

@tired panther

digital ibex
#

node schedule also probaly works tho

opal plank
#

Pong

#

who dareth ping me

tired panther
#

ping ๐Ÿ˜ฌ

digital ibex
#

why repost?

tired panther
#

that erwin

placid hazel
#

hmm

tired panther
#

can see he helped me

opal plank
#

no var

tired panther
#

then wht??

opal plank
#

var bad

#

let/const

misty sigil
#

How do I make my math/fast command only have 1 running at a time?

digital ibex
#

USE STROOPLEJS

opal plank
#

if you dislike date manipulation, use moment

digital ibex
placid hazel
#

hi

tired panther
#
 if(command === 'remind'){ 
    var schedule = require('node-schedule');
                const date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), 10);
                const j = schedule.scheduleJob(date, function(){
                  message.channel.send("test");
                });       
        
}
#

so?

opal plank
#

so what?

sudden geyser
#

moment is quite large though

digital ibex
#

pls i have to feed kids jeremy

opal plank
#

indeed

sudden geyser
#

@misty sigil probably some form of queue

kind wharf
#

^

misty sigil
#

yes

placid hazel
#

wtf ur valuating a constructor for j but not using it.

#

whats the point

sudden geyser
#

I like using dateformat for manipulating dates

#

simple and small

digital ibex
#

jeremy u making a math command?

placid hazel
#

tf

opal plank
#

anyhow, back to chat parsing

misty sigil
#

jeremy u making a math command?
@digital ibex yea

tired panther
#

so what?
@opal plank u said to use const

opal plank
#

or let

tired panther
#

and it doest not work

placid hazel
#

@misty sigil Basically a Calculator..

#

Lol

misty sigil
#

no

tired panther
#

it should remind after 10 seconds

placid hazel
#

a math command

digital ibex
placid hazel
#

calculator

opal plank
#

why you doing all that?

tired panther
#

but it does nothing.

opal plank
#

just add 10 seconds onto the date

misty sigil
#

not a calculator

opal plank
placid hazel
#

whats a math command then

opal plank
#

this whole thing is uneceesary

placid hazel
#

lol

tired panther
misty sigil
#

fast math

opal plank
#

yeah no shit

digital ibex
#

huh

bright quartz
#

: /

misty sigil
#

like a fast command

#

but for math

opal plank
#

im telling you doing all that other stuff is completely uncessary

tired panther
#

that was the place for seconds

placid hazel
#

so

opal plank
#

new Date.now() + secs

digital ibex
#

fast command?

placid hazel
#

give me an example

pale vessel
#

just Date.now()

winter basalt
#

whoever counts faster wins

placid hazel
#

like !math 4+5

#

wtf

opal plank
#

literally what i said

sudden geyser
#

watch it has to be exactly 10 seconds

#

I don't think date.now() + secs will do it

misty sigil
#

you get time

pale vessel
#
  • 10000
misty sigil
#

like 15 seconds

tired panther
#

const date = new Date(Date.now() +10);

#

so?

opal plank
#

data manipulation can get messy

placid hazel
#

Meister what are u trying to make

pale vessel
#

why

placid hazel
#

WTF

tired panther
#

or how

opal plank
#

no, use the proper docs

#

that was an example

tired panther
#

or how should it be?

placid hazel
#

im so confused rn

opal plank
#

get now() date and then manipulate it

#

dont make a date with whatever the fuck that was

placid hazel
#

what are u trying to make @tired panther

tired panther
#

it is a reminder

placid hazel
#

wtf??

opal plank
#
const date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), 10);

date.now() and then add the desired timer

#

dont do that

#

you cant declare a variable using the same variable

placid hazel
#

im so confused

#

const date = require("date");

date.now()

pale vessel
#

what in god's name is that

opal plank
#

his code

placid hazel
#

wtf

opal plank
#

idk either wtf that attempt was

#

either way, im busy

placid hazel
#

thats literally what im seeing

tired panther
pale vessel
#

that is so cringe

placid hazel
#

Meister what are u trying to do

#

im so fucking confused

#

my brain is exploding

tired panther
#

okay

#

let me

pale vessel
#

how are you still alive

tired panther
#

begin

placid hazel
#

@pale vessel idk ask god

pure lion
#

I go away for 5 minutes

#

What the fuck

placid hazel
#

ye wtf

opal plank
#

@pure lion i shame you for letting them ping me angeryBOI

pure lion
#

I wasn't there either I had to cook

#

:c

opal plank
#

lmao

tired panther
#

we are using node schedule
and then we want that when u run the command . it will remind u after 10 seconds @placid hazel

placid hazel
#

@PlotTwitsItsActuallyNotErwin

pure lion
#

Omg

#

Ffs

#

You cookie

#

setTimeout(function(){}10000)

opal plank
placid hazel
#

why every 10 sec

#

wtf

opal plank
#

10, 10hour, 10 years

#

do whatever the heck you want

tired panther
#

that is a test

pale vessel
#

why not just schedule.scheduleJob(Date.now() + 10000, () => {});

opal plank
#

thaths literally what i was saying

pure lion
#

Why do you even need to be using that shit

placid hazel
#

You cant use the same fucking word as a value while valuating it in a constructor WTF

#

are u stupid

opal plank
tired panther
#

yeah i am

pure lion
#

Secksy

opal plank
#

or ms

pale vessel
#

more like secs in millisecs

opal plank
#

postgres uses secs

#

im used to seconds

pale vessel
#

i see

placid hazel
#

secs in millisecs?

pale vessel
#

what

placid hazel
#

wait oops

pale vessel
#

js uses milliseconds in everything

placid hazel
#

ye

#

wait no

#

its the package ms

pure lion
#

Why do you even need to use any packages

opal plank
#

bruh, you are one confused mofo

placid hazel
#

@opal plank exactly

opal plank
#

this whole chat you just been confused all over the place

pure lion
#

Just set timeout for 10000 ms when the command is run

opal plank
#

literally every mesasge

#

just listen to what we are saying

placid hazel
#

Ok

opal plank
#

there are plenty of ways to accomplish what he wants to do

pure lion
#

Listen to the green Bois and officiallylost

placid hazel
#

but its just filled with stupidity ..

opal plank
#

setTimeout function, can do a promise with a timeout too, could use node scheduler, there are plenty of options

placid hazel
#

you cant define a value when defining the value

opal plank
#

could do a function with a callback

#

there are a lot of things that can be done

robust plume
#

i have made an AI chatbot lol

pale vessel
#

okay

winter basalt
#

ok

opal plank
#

node scheduler in my opinion is the less troublesome one

#

since you just slap the date and the function

placid hazel
#

@robust plume my friend made Alexa bot

pure lion
#
a = a;
console.log(a) //a
a = b;
console.log(a) //b
placid hazel
#

cool

robust plume
#

how can i get my bot onto the website?

placid hazel
#

submit an app

winter basalt
opal plank
#
new Promise((res) => setTimeout(res => {
//say hi
}, ms));

schedule.scheduleJob(date(), function () {
//say hi
});

setInterval(function () {
  //say hi
}, 300000);
 
#

those are 3 methods you can use for shecule

#

there are plenty others you can do aswell

#

pick whichever you are more comfortable with

pure lion
#

The easiest is setTimeout imo

#

Straight to the point

opal plank
#

indeed

pure lion
#

Bing boom you waited 10 seconds

#

Wait doesn't interval run over and over?

opal plank
#

he's struggling in vain tbh, all those are thoroughly explained over in the docs

#

it does

#

thats why i said he can do whichever he prefers

#

if he wants a reminder every 2h, use that

#

if he wants a reminder in 2h ONLY ONCE, do shceule or timeout

#

there are other stuff he can do aswell

#

anyhow, back to chat parsing

tired panther
#
 if(command === 'remind'){ 
            const schedule = require('node-schedule');
            schedule.scheduleJob(Date.now() + 10, () => {
              message.channel.send("test");
        });
}
``` what have i done here wrong?
#

vs code

#

is showing an error

opal plank
#

ms

#

not seconds

misty sigil
#
  • 10000? its in ms
pale vessel
#

why the unnecessary module

pure lion
#

^^^^^^^^^^^

opal plank
#

modules at top of index my man

#

FUCK why do i keep coming back here?

misty sigil
#

same

tired panther
#

the same error

pure lion
#

Not jeremy sorry I'm tired rn

misty sigil
#

oh, right

pure lion
#

@tired panther use setTimeout

#

Please

#

For the love of satan

tired panther
#

noterwin told to use shedule

pure lion
#

DONT

#

FFS

tired panther
#

and i used tiemout that is fine

#

but know i want to use

pure lion
#

Stop trolling and use setTimeout

tired panther
#

schedule

pure lion
#

Don't

tired panther
#

but it does not work when i set it for 2 hours ๐Ÿ˜ญ

misty sigil
#

well

#

your hosting must be bad?

tired panther
#

no

#

i am trying

#

with my beta

#

bot

#

on pc

pale vessel
#

bruh nice status

tired panther
#

really ๐Ÿ˜“

pale vessel
#

no

pure lion
#

:l

tired panther
#

no it works

#

with node schedule

#

๐Ÿฅณ

pure lion
#

Nice omghowunnecessary

digital ibex
#

hmm, @restive furnace sry for cold ping. quick question tho, is ur library public or r u still doing it?

opal plank
#

l.eval client.twitch.emit({gateway: 1, type: config, once:true}).then(client.db.set(config.connected = true))

digital ibex
#

?

opal plank
#

i need to stop alt tabbing

#

and checking where the heck my chat is -.-

#

i got canary and ptb open, working on canary with alt, alt tabbed thinking it was canary and just sent command

honest perch
#

howwouldibeabletopicktheamountofshardsiwant

restive furnace
#

hmm, @restive furnace sry for cold ping. quick question tho, is ur library public or r u still doing it?
@digital ibex private, and im very slowly doing it.

digital ibex
#

ook

earnest phoenix
#

gaus

sudden geyser
#

Well "yes", but actually no.

earnest phoenix
#

how is that

#

my friend have verified without any bots!

misty sigil
#

so i have a website with port 3000

#

how do i make it so i can connect without the port at the end of the URL

pale vessel
#

make it 80 or 443 (SSL)

placid iron
#

@misty sigil get the router to forward port 80 to port 3000 in your system

delicate shore
#

^^^^^^^^^^^
@pure lion
u also got role

misty sigil
#

flaz's solution seems simpler

placid iron
#

that is true

#

but if you have it on port 80 then that means you have to have it as root

#

and that isnt really very secure

#

but that may or may not matter

misty sigil
#

im not accepting user input of any kind

placid iron
#

i didnt think i was until i couldnt log into my raspberry pi XD

final summit
#

โ•‘

opal plank
#

you got the order reverse

pure lion
#

Whodafukpingedme

opal plank
#

@pure lion wave

pure lion
#

:<

pure lion
#

ptb?

opal plank
#

i havent done shit throughout that whole time

#

yeah, im using ptb

pure lion
#

A what

opal plank
#

PTB

pure lion
#

Enlighten me then go back to the twitch bot stuff

opal plank
#

discord instance

pure lion
#

Oh

opal plank
#

stabe/canary/ptb

pure lion
#

O h h h h

opal plank
#

bruh its been 2h and i havent done anything

#

just created a couple tables on PG and added some relations

#

thats it

#

both of which takes 5 minutes to do

pure lion
#

Where's the latest build

#

Also bruh

#

Would you like a hug

opal plank
#

sure

#

always down for hugs

#

latest build for what?

pure lion
#

Discord mobile

opal plank
#

google play store i assume

pure lion
#

Not da Google play release

opal plank
#

doesnt DDevs have their own thing too?

pure lion
#

Where

#

?,

#

Hm

opal plank
pure lion
#

Oh I'm there

opal plank
#

DDevs is just shortened

#

same for when i say Dapi

#

rather than Unofficial Discord Api

pure lion
#

I swear there was a channel somewhere with APKs

opal plank
#

i kow

#

i was looking for that

#

there were updates somewhere

#

though i cant recall where

pure lion
#

So annoying

opal plank
#

dont they have a beta branch on google play?

tight plinth
#

so im doing a music play command with shoukaku, and here is how it works: js normal code checking args trying to find a track if there is a server queue { add track to server queue return; } else { create server queue }I just dont know where i should put the code to start a track and handle loop/errors

#

any suggestion?

opal plank
#

ah it was in dtesters

#

@pure lion

#

it was there not in devs

mild flower
#

how do i prevent this from happenin

opal plank
#

prevent what?

tight plinth
#

wdym by this

#

also nice client mod

opal plank
#

parse your arguments

#

^^

mild flower
#

wdym

#

how can i do that

tight plinth
#

basic js

mild flower
#

ok i got it

worn zephyr
#

Why my bot is not here? It was accepted

mild flower
#

do u mean this
var obj = JSON.parse('{ "name":"John", "age":30, "city":"New York"}');

misty sigil
#

Why my bot is not here? It was accepted
@worn zephyr whats it's id?

worn zephyr
#

713411071997640745

misty sigil
#

dont bother

#

its common prefix actually

mild flower
#

i cant parse it :(

#

im getting an error

stable nimbus
#

I'm trying to make a new command handler, and I need it to be able to look through subfolders, so commands/subfolder/subfolderfiles/subfolder2/subfolderfiles type of deal, and I am unsure how to do this. If anyone can help that would be much appreciated.
Using discord.js v 12.2.0

digital ibex
#

anyone know how i can fix this error? js error: 'implements', 'interface', 'let', 'package', 'private', 'protected', 'public', 'static', or 'yield' cannot be used as an identifier in strict mode ?

#

im using deno with javascript

#

no idea how i can disable strict mode

topaz fjord
#

code?

digital ibex
#
export interface test { name: String }
muted vortex
#

Is there an existing bot that can echo user posts from one server to another? (Networking essentially. We had bots that could do this on IRC.)

earnest phoenix
#

What is the best location for a Discord bot VPS for europe users ?

solemn latch
#

Iirc discord only has one text server

#

If your doing text only with your bot, closest to that server is best

digital ibex
#

okay, i fxed it...

#

and now im getting this error.. error: Uncaught SyntaxError: The requested module '../structures/client.js' does not provide an export named 'Client'

#

and i hvae given it Client

#

export default Client;

#

Client is a class btw

stable nimbus
#

@earnest phoenix It would be anywhere in europe, but I recommend IcedHostLLC for hosting, they use Discord Bot containers and have great locations and a great team to help. A lot cheaper than a VPS too if you ask me.

solemn latch
#

๐Ÿค”

#

Isn't the discord text servers in the US?
That means the bot sends the text data to the US then back to Europe

stable nimbus
#

They have servers racked up in the EU for their containers.

solemn latch
#

Discord does?

stable nimbus
#

Oh you mean discord? Not sure.

#

IcedHost does.

solemn latch
#

Discord has one text facility from what ive been told

#

In the US

misty sigil
#

mines canada montreal

#

and i get 100ms message ping at times

solemn latch
#

Ah I was close

stable nimbus
#

So they have more than one.

solemn latch
#

More than once voice server

#

Only one text

stable nimbus
#

Okay.

solemn latch
#

Or well, their text servers are based in one location

misty sigil
#

its somewhere us

#

or canada

#

as montreal gets great performance

stable nimbus
#

IcedHost does make it easy though, since it sends it back and forth easily between locations.

solemn latch
#

I thought it was new York, which is why my bots are hosted in New york

#

Generally more expensive tho

empty owl
stable nimbus
#

I have a container for 5 bucks a month since upgrading it.

empty owl
#

Any ideas?

stable nimbus
#

Using default is about 2 bucks a month, with 5gb storage and 200mb of ram.

solemn latch
#

๐Ÿค”

#

Thats kinda expensive

empty owl
#

With 3 bucks you can use 1gb of ram

solemn latch
#

^

empty owl
#

But any ideas?

stable nimbus
#

Again its a container not a VPS.

empty owl
#

Whatโ€™s the diff

solemn latch
#

Vps's can have containers

#

๐Ÿค”

empty owl
solemn latch
#

You could fit 4 of those containers in that vps

empty owl
#

When running npm rebuild

opal plank
#

screenshots are native to windows btw

empty owl
#

wdym

opal plank
#

means you can screenshot without pulling your cellphone

solemn latch
#

Mom get the camera

empty owl
#

ig

solemn latch
#

I'm on discord

opal plank
#

either snipping tools(which is built in windows) or download sharex

empty owl
#

Iโ€™m running Mac so Iโ€™ll just cmd shift 4

opal plank
#

also works

empty owl
#

ill try deleting all my bot files

#

and reuploading em

earnest phoenix
#

How can i install quick.db to windows?

empty owl
#

npm i nameofpackage

pure lion
#

No

#

Lol

#

You gotta follow the tutorial on the better-sqlite3 npm page

earnest phoenix
#

What do they mean exactly with How often do you refresh YouTube API Data?

solemn latch
#

whos they

#

and why are they asking

celest schooner
#

I got thnis when I ran npm install

solemn latch
celest schooner
#

oh that was for me

solemn latch
#

it was for both of you

#

you both are installing better-sqlite3

#

it likes to error

celest schooner
#

Im not using better-sqlite3 tho

#

im using better-sqlite-pool

earnest phoenix
#

npm i nameofpackage
@empty owl are you serious? I really know this already.

solemn latch
#

better-sqlite-pool could have dependencies

celest schooner
#

but what if im onmac

#

wait nvm

misty sigil
#

anyone here know about express-subdomain

solemn latch
#

seems simple enough

misty sigil
#

indeed

#

but it's not working

solemn latch
#

hmm

#

theres a few ways it could not work

#

whats not working

misty sigil
#

the subdomain just redirects to the main page

solemn latch
#

are you using one router?

misty sigil
#

yea

solemn latch
#

the main page, and the subdomain i think need to be on their own routers

misty sigil
#

oh yea there seperate

#

theres the app and theres the router

solemn latch
#

the app holds the routers doesnt it?

#

app would be the entire webapp

misty sigil
#

so i create a seperate router

solemn latch
misty sigil
#

the thing is

#

earlier it says you use app.listen for main

#

and router.listen for subdomains

solemn latch
#

express boilerplate code just means normal express

misty sigil
#

but it says code examples below go here

stable nimbus
#

I need help with my command handler, I wanna remake it so I can use files that are in subfolders, so in the commands folder I have more folders for commands with a specific purpose, and I need help doing this if someone doesn't mind helping out.

misty sigil
#

thus making app.get the main domain

solemn latch
#

i mean i guess you can do it that way

#

the using two separate routers makes more sense to me

zealous idol
#

hey how can make an action when someone has voted?

#

in java/jda

solemn latch
#

have you looked at the api docs?

zealous idol
solemn latch
#

lmao

opal plank
#

nice cropping

nimble kiln
#

My god yes the api docs are broken, layout wise

digital ibex
#

????.?.

solemn latch
#

its loading fine for me

#

๐Ÿค”

nimble kiln
#

It loads, but the layout is broken

solemn latch
#

๐Ÿคทโ€โ™‚๏ธ

digital ibex
#

its fine

nimble kiln
digital ibex
#

it looks like dapi docs a bit

#

oh

#

F in the chat boooiiss

nimble kiln
#

I can click on the links just fine, they work. But yeah, the design/layout ๐Ÿ˜„

#

Disabling adblock and uBlockOrigin does not help

wild current
#

How can I make my bot background green , I mean when someone join my bot page on top.gg the background to be green

solemn latch
#

css
background: green

wild current
#

Just that?

#

bodyย {
ย ย background-color:ย green;
}

#

This

solemn latch
#

yeah, that sets the body background to green

wild current
#

Didnt worked @solemn latch

solemn latch
#

๐Ÿค”

#

what happened

wild current
#

Nothing

#

I have to put in description right?

solemn latch
#

yeah, in html style tags

#

<style></style>

delicate shore
#

-api

#

alr

#

@solemn latch Can u suggest some good and cheap VPS which give remote access

lusty quest
#

Digital Ocean

solemn latch
#

i use galaxygate, i like it

lusty quest
#

Galaxy Gate

solemn latch
#

DO is a good option too

delicate shore
#

ok

solemn latch
#

bit more well known, but costs a bit more

delicate shore
#

ok

misty sigil
#

no

delicate shore
#

galaxy is Linux

#

or windows?

misty sigil
#

Oxide hosting is my VPS

lusty quest
#

digital ocean can give you a vps with preinstalled node.js idk if galaxy does it too

misty sigil
#

its ยฃ3/mo

#

and their support

delicate shore
#

Are they Linux or windows

misty sigil
#

is EPIC

#

its linux

lusty quest
#

Linux

misty sigil
#

but the support team

#

they help u so much

solemn latch
#

windows vps's cost more

delicate shore
#

ok

misty sigil
#

let me know if u go for oxide @delicate shore cuz then i can give u the server link

delicate shore
#

but not more than 10$/month

solemn latch
#

galaxygate offers windows if you buy the 4GB plan

lusty quest
#

DO 1CPU /1GB Ram 5$/Month

wild current
delicate shore
#

let me know if u go for oxide @delicate shore cuz then i can give u the server link
@misty sigil i will not see this month as glitch already made auto payment for second month so

misty sigil
delicate shore
#

next month

misty sigil
#

but i recommend their linux vps

#

because its cheaper

#

and they will support you a lot in using it

lusty quest
#

Windows VPS are usually 50-80% more expensive

misty sigil
#

(this is actually from experience btw)

delicate shore
#

alr

#

ok

#

i will keep in mind

#

ABCDEFGJIJKLMNOP

#

I am doing so i can just type this in search bar

#

and get name of all the vps when i want

solemn latch
#

theres a pin with some suggestions aswell

delicate shore
#

o

#

p

#

and also

#

how many port requests

#

can i get in all the vps's

lusty quest
#

as many as you want usually

delicate shore
#

ooo

solemn latch
#

^

delicate shore
#

glitch takes 10 dollars and give noone

#

only one which is used by itself

solemn latch
#

glitch is dumb overpriced

delicate shore
#

ok

#

I will buy Vps next month

lusty quest
#

they need to pay somehow the free stuff

delicate shore
#

thanks for advice

#

everyone

#

i might go for DO

#

not sure tho

#

and what do u think minimum req should be for my bot?

earnest phoenix
#

ram?

delicate shore
#

ye

earnest phoenix
#

1GB is fine

delicate shore
#

ok

solemn latch
#

if your moving from glitch, youll have more resources

earnest phoenix
#

for a small bot

delicate shore
#

and processor

solemn latch
#

even with the smallest plan

delicate shore
#

for a small bot
@earnest phoenix how you define it

earnest phoenix
#

One that's not in 1000 servers

#

Lmao

delicate shore
#

even with the smallest plan
@solemn latch alr but it will take take some time

#

Dank memer also uses DO

earnest phoenix
#

what is do

lusty quest
#

the 5$ plan from DO will get you pretty far if you optimize the bot for low ram usage

earnest phoenix
#

cool

delicate shore
#

the 5$ plan from DO will get you pretty far if you optimize the bot for low ram usage
@lusty quest i don't thnk that low ram is suitable for me as my bot usally crashes because i get less ram in glitch

lusty quest
#

you get 1GB

delicate shore
#

u said low

lusty quest
#

my bot with now about 200 Guilds use 90MB of ram

#

i mean on the longrun

delicate shore
#

alr

#

i get 400mb ram

#

in glitch

#

so that is much better than glitch

lusty quest
#

if you optimize the bot for low Ram usage you can probably get 1k - 1500 guilds with the DO 5$ plan

delicate shore
#

ook

#

but i won't reach that many guilds ๐Ÿคฃ

misty sigil
#

you get 2gb of ram

#

for less than do

#

on oxide

#

atleast i think ยฃ3.59 is less than $5

solemn latch
#

its about $5

#

ish

lusty quest
#

4,63$ ~ 3,59ยฃ

#

for me its cheaper to go for the $ pricing bcs 1โ‚ฌ ~ 1,05$ or something like this. used to be 1,10$ per 1โ‚ฌ

#

ohh lol 1โ‚ฌ is now 1,18$

keen gull
#

having some trouble with embeds, not really good at them, (node:15664) UnhandledPromiseRejectionWarning: ReferenceError: MessageEmbed is not defined

I know something is wrong here, but not really sure what exactly, just need some help on whats the wrong thing and I'll try to fix it, (give me a sec, getting screenshot

earnest phoenix
#

Discord.MessageEmbed

#

Though I recommend using an object imo

#

{embed:{...}}

#

the message embed class is cursed

#

lol

solemn latch
#

if you dont want to require all of discord, you can also just require MessageEmbed
const { MessageEmbed } = require('discord.js')

lusty quest
#

discord.js V11 or V12?

keen gull
#

uh, i forgot, how do I check?

solemn latch
#

package.json

lusty quest
#

you can see it in your package.json

keen gull
#

v12

lusty quest
#

then it should be Valid

keen gull
#

probably something i did, im checking it over

#

so like, if im trying to dm somebody an embed using a cmd, how would i send it?

i tried this:

message.mention.send(pEmbed);

I don't really understand embeds

lusty quest
#

where did you want to send the embed?

#

so you want to dm the user you mention?

keen gull
#

yeah

lusty quest
#

message.mentions.users.first().send()

#

but make sure that you should take some stuff into account

#

like if you relay messages add the message author to it

keen gull
#

Yes, thats the point of the embed I was making

#

adding message author, guild, etc

lusty quest
#

ok

pure lion
#

Brju

zealous idol
#

org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]

#
DiscordBotListAPI api = new DiscordBotListAPI.Builder()
                .token("token")
                .botId("493066387183632387")
                .build();```
amber fractal
#

uh

#

by learning python

#

there you go then

solemn latch
#

you seem to be using a lib, which means the python code will look entirely different, and will need to rewrite it entirely

#

what do you not know how to do in python thats happening here?

digital ibex
#

hi

#

anyone know im getting this error: error: Uncaught SyntaxError: The requested module '../structures/client.js' does not provide an export named 'Client' ?
the code is just:

#
class Client extends EventEmitter {
}   

export default Client;
#

using deno btw

#

???

#

yes?

#

...

#

what source code?

#

ok

#

lemme get it

#
class Client extends EventEmitter {
}   

export default Client;```
#

there

#

im confused

#

yes

#

event emitter?

#

thats what it is

#
import EventEmitter from 'https://deno.land/std@0.51.0/node/events.ts';
earnest phoenix
#

TypeScript?

digital ibex
#

javascript

#

no

#

its ES6 syntax

pure lion
#

Shit wrong channel

#

@digital ibex what's the diff between require and import?

digital ibex
#

import is ES6

#

require is node

pure lion
#

Oh got it

digital ibex
#

like

#

oh

#

but ya

pure lion
#

It's for files?

#

And links apparently

digital ibex
#

its basically the same thing

#

no

pure lion
#

Yes I know

#

import x as y from bob

digital ibex
#

deno uses ES6 module, and the way you require somehting in node is the NPM package name, the way you "require" something with deno, is through https://deno.land

pure lion
#

Ohhhh okay

#

Thanks for being da teachy boi

digital ibex
#

yw

#

anyone know how to fix the error then D:

earnest phoenix
#

unorganically grown application, what does it mean ?

solemn latch
#

unorganically means a lot of servers from a few number of server owners

#

lmao

celest schooner
opal plank
#

wait what

#

since when does tooltips show for channels?

solemn latch
#

idk

pure lion
#

@opal plank ....
.
.
.
.
.
.
.
A while.

opal plank
#

@pure lion pong

pure lion
#

@opal plank pond

earnest phoenix
#

Guys... Is there a list or an array of JavaScript code that i can use for my JavaScript quiz command anywhere? I wrote 30 JavaScript code question but i need a lot more

pure lion
#

There's probably some kahoot stuff somewhere

opal plank
#

what exactly are you trying to do?

#

just map those values and call them as needed

#

or build object with all of them

#

{
question:awnser,
question1:awnser1,
...
}

pure lion
#

Maybe

#

There's

#

A

#

Use the w3schools website

#

There's probably some way you can scrape the quiz questions

earnest phoenix
#

@opal plank trying to create an object containing a question property which is the code for questioning and a answer property for the answer

#

I've done 30 objects in an array but i need a lot more tho

#

@opal plank come to testing-1

opal plank
#

loop a function on them

#

i got something ish similar for my JSON builder

earnest phoenix
#

I mean that's not the issue, but i need a lot more code questions

opal plank
#

you want more questions or how to execute code?

earnest phoenix
#

More questions

opal plank
#

aaah, i see

pure lion
#

a

opal plank
#

then yeah, use w3schools or mozilla

earnest phoenix
#

What can i get from them tho

opal plank
#

scroll thru their snippets, change the names of the variables and ask them the output

#

just scroll thru the left tab

#

choose a different topic

earnest phoenix
#

Hmm that would be good, i was gonna do that but i was asking if there was any ready array of questions

#

Anywhere

opaque seal
#

What does it mean when a role is hoisted?

opal plank
#

im not aware of any unfortunately

#

maybe you can get codeacademy or something

#

those types of website do usually have quite a few tests

earnest phoenix
#

Well anyway imma have a look, thanks

opal plank
#

np

pure lion
#

*cries in bad at coding*

opal plank
#

cries in havent done anything today

bright dove
#

since when does tooltips show for channels?
@opal plank bruh always

pure lion
#

I said that first

#

Stop trying to be original nOob

#

Ok I'm actually sorry

opal plank
#

i should prob not say that

pure lion
#

*cries in hasn't done anything except hang out with my gf all day and not be productive at all*

solemn latch
#

well, ive hung out with my cat all day, and not been productive at all

#

so

obtuse jolt
sudden geyser
#

inb4 random crash

obtuse jolt
#

hopefully not

blazing ravine
#

i need help with html who can help me if any1 know tag me pls

obtuse jolt
#

wut

#

its free to use

#

just use mine

misty sigil
#

dude

#

did you realise delete is