#development

1 messages · Page 1324 of 1

narrow crescent
#
client.once('ready', () => {
    setInterval(() => {
client.user.setActivity(`${client.guilds.cache.size} Servers and ${client.guilds.cache.first().members.cache.size} Users`, {type: 'WATCHING'})
}, 5000);
});

something like this?

quartz kindle
#

yes

narrow crescent
#

how to start py file on package.json
@earnest phoenix it clearly says json

quartz kindle
#

it will always show the number of members from the first guild it finds

narrow crescent
#

Okay

earnest phoenix
#

yah

quartz kindle
#

keep in mind that if your bot ever joins another guild, the first guild is not guaranteed to be yours

slender thistle
#

Glitch doesn't support Python

pale vessel
#

glitch does iirc

crimson vapor
#

could you use client.guilds.cache.first().memberCount instead?

narrow crescent
#

keep in mind that if your bot ever joins another guild, the first guild is not guaranteed to be yours
@quartz kindle Idc about that, its only for 1 server

slender thistle
#

(Since I cba to figure out how it works on Glitch, I'll just recommend repl.it)

quartz kindle
#

yes you can also use memberCount

slender thistle
#

(Since it's less hassle)

narrow crescent
#

Uhh @quartz kindle Can u join and leave my server when i say, so that i can test it's working?

earnest phoenix
#

@narrow crescent your prob. solve ??????///

narrow crescent
#

??

quartz kindle
#

.memberCount will show total amount of members, including offline
.members.cache.size will show the cached members, which means online and active members only

earnest phoenix
#

guild user

narrow crescent
#

Hmm

earnest phoenix
#

yah

narrow crescent
#

That means i should use memberCount?

crimson vapor
#

won't members.cache.size show an offline user until it is purged from the cache?

quartz kindle
#

yes, its better if you want to include offlines

pale vessel
#

but repl.it is so much better for testing

quartz kindle
#

@crimson vapor only if a user becomes online then goes offline. if they never became online in the first place, they are never added to the cache

trim saddle
#

tim, i'll cache you

narrow crescent
#

Okay so I replace the code with ```js
${client.guilds.cache.first().membersCount} Users, {type: 'WATCHING'

earnest phoenix
#

bruh

quartz kindle
#

@crimson vapor btw for your problem, are you using intents?

narrow crescent
#

Without an s in members

quartz kindle
#

@trim saddle cache me bb

crimson vapor
#

one sec let me check

earnest phoenix
#

that code will literally showing the member count for the first server in cache

i dunno how you mess up that much

just realized it won't work cuz there's an s in memberCount

narrow crescent
#

Bro, i am creating this bot for personal use

#

Like only one server

pale vessel
#

wow constructive criticism 100

narrow crescent
#

So i think shouldnt be a problem if its only 1

crimson vapor
#

intents are in clientOptions right?

quartz kindle
#

yes

pale vessel
#

yes, clientoptions#ws#intents

narrow crescent
#

that code will literally showing the member count for the first server in cache

i dunno how you mess up that much

just realized it won't work cuz there's an s in memberCount
@earnest phoenix I told u i would remove s

#

in members

earnest phoenix
#

I'm drunk ig

narrow crescent
#

Without an s in members
@narrow crescent

crimson vapor
#

I don't think so

pale vessel
#

a kid shouldn't be drunk

carmine summit
#

v11

narrow crescent
#

So it would work is i did that code?

#

Okay so I replace the code with ```js
${client.guilds.cache.first().memberCount} Users, {type: 'WATCHING'

@narrow crescent

earnest phoenix
#

had k eba b today and lot of popcron so my mind's dyin'

slender thistle
#

but repl.it is so much better for testing
@pale vessel so trueeeeeeeeeeeeee

crimson vapor
#

are you ok @earnest phoenix?

quartz kindle
#

@crimson vapor it could be the garbage collector cleaning up memory from presenceUpdate events

earnest phoenix
#

nopr

carmine summit
#

Too bad repl doesn't detect infinite loop

crimson vapor
#

ok that seems probable

quartz kindle
#

try enabling intents and removing presence updates if you dont need them

narrow crescent
#
client.once('ready', () => {
    setInterval(() => {
client.user.setActivity(`${client.guilds.cache.first().memberCount} Users`, {type: 'WATCHING'})
}, 5000);
});

Tell me is this fine?

slender thistle
#

Too bad you can't handle your code to not make an infinite loop

pale vessel
#

yes

earnest phoenix
#

had 14 memory leaks today because SOMEONE 👏 WHO 👏 LITERALLY 👏 INVENTED 👏 JAVASCRIPT 👏 made a shitty browser named brave

narrow crescent
#

I will fix the time

crimson vapor
#

Tim what intents should I use? I have never used them

slender thistle
#

I don't exactly see how you'd get an infinite loop in any case

pale vessel
earnest phoenix
#

anything your bot really needs@crimson vapor

narrow crescent
#

Lemme test it rn

quartz kindle
#

you will need those which your bot relies on. check the intents list in the discord documentation

carmine summit
#

Getting my CPU usage to 100%

#

And completely burn down replit

quartz kindle
slender thistle
#

Question

#

Why in the name of all given fucks

misty sigil
#

oh no

pale vessel
#

still waiting

misty sigil
#

oh wait

#

i was behind

#

@narrow crescent its alright but id suggest making it much slower than 5 seconds

earnest phoenix
#

Why in the name of all given fucks
@slender thistle fucks is an empty array mmulu

narrow crescent
#

Yeah I will do that

#

RIght now im testing so cant afford that time

slender thistle
#

You're about to become an empty array

pale vessel
#

more like an empty list

earnest phoenix
#

You're about to become an empty array
@slender thistle are you talking to my wallet

pale vessel
#

but shiv what do you mean

earnest phoenix
#

because it's empty

slender thistle
#

Stop mocking my Python skills flaze, or I'll improperly indent you

pale vessel
carmine summit
#

Ok my brain is not functioning properly. I should go get some sleep

narrow crescent
#

ITS WORKING TYSMMMMMM

#

THANKS A LOT

slender thistle
#

You boutta get 4 unnecessary spaces and break apart

narrow crescent
#

Can't thank u guys enough

slender thistle
#

😤

carmine summit
#

Spunfid

pale vessel
slender thistle
#

😤

earnest phoenix
#

@earnest phoenix

#

<hr> </hr>

#

that?

#

yes

pale vessel
#

<hr>

earnest phoenix
#

Like that?

pale vessel
#

just one

#
<hr> <!-- line -->
hello
<hr> <!-- line -->
world```
#

but you might mean <br>, not <hr>

#

<hr> is a horizontal line

#

<br> just breaks the paragraph into a new line

crimson vapor
#

could someone explain how to use intents with d.js

pale vessel
#

you specify the intents unser clientoptions.ws.intents

#

it can be a bitfield/number or Discord.Intents()

crimson vapor
#

on the guide it also shows an array though

pale vessel
misty sigil
#

theres a good intent calc

#

that

pale vessel
#

bruh

misty sigil
#

play about with the intents until you find something good

crimson vapor
#

I don't need the calc, im just confused on how they are placed, could I put js ws: { intents: 32257 }

#

and would that work

pale vessel
#

yes

crimson vapor
#

ok

pale vessel
#

do you use any privileged intents?

crimson vapor
#

nah

pale vessel
#

you're good then

misty sigil
#

new Client({ws: {intents: 4985938}})

restive furnace
#

I just always do 1 << 3 | 1 << 2 instead :D

#

more IQ move

crimson vapor
#

I forgot a comma

#

nice

pale vessel
#

new Client({ws: {intents: 42069}})

restive furnace
#

why no one uses byte moving and smh

pale vessel
#

poggers

earnest phoenix
#

w a i t

crimson vapor
#

hot

earnest phoenix
#
<hr> <!-- line -->
hello
<hr> <!-- line -->
world```

@pale vessel Only like a normal line comes

#

I want a colored thick line

pale vessel
#

style it

earnest phoenix
pale vessel
#
hr {
    color: x;
    border: x;
}```
earnest phoenix
#

border?

pale vessel
#

or create a class for it

earnest phoenix
#

color in hex?

pale vessel
#

pseudocode

restive furnace
#

but wrong one

#

x should be x and x should be y

earnest phoenix
#

Huh

#

border: x;

#

what should I put there?

thin turret
#

new Hamburger()

restive furnace
#

percent

#

iirc

earnest phoenix
#

hr {
color: #777;
border: 8px solid #4BA1F1;
}

#

@pale vessel will that work?

crimson vapor
#

lmao double ping for him

earnest phoenix
#

<hr>{
color: #777;
border: 8px solid #4BA1F1;
}<hr>

#

Me sad

#

@earnest phoenix can u help me out

#

I need help on two things. I have a json file with keys that are the id of users in a guild and the values as the number of points they have. When someone does ;leaderboard or ;lb, I want it to get the values and order them from greatest to least and stuff that into an embed, with many pages.

Also, since the keys are IDs of users, how would I do the conversion ID> Username?

#

python

wary flame
#

Dont use json as db

#

I have no idea of discord for python but you probably need get the user object (using id) and read out its username property, hope that makes sense

earnest phoenix
#

ok thanks

#

Dont use json as db
@wary flame wdym by this

#

what else should we use

#

that orders it

pale vessel
#

an actual database like postgresql and mongodb

earnest phoenix
#

oh

#

the json file only needs to keep records of around a few hundred people

#

the bot i am making is for one server

#

its a private bot

blissful coral
#

Json is not a good option

pale vessel
#

yeet

earnest phoenix
#

@earnest phoenix JSON is only good for storing a little bit of data for transfering data between two different programming languages
If you use it as a database expect a corruption coming soon

#

ok thanks

restive furnace
#

it's not that json is bad, just almost every single language has bad file system

twin marsh
#

What is the ratelimit on editing channel topics?

earnest phoenix
#

None?

#

there is a rate limit on every single thing on the APO
A pplication
P rogramming
O il

restive furnace
#

Try it and see™

earnest phoenix
#

oo

faint prism
#

I feel like we've said many many times on this server not to use JSON to store data that changes constantly

#

At least 500 times it seems

#

You can't asynchronously write to a file or you'll get access violations.
Inevitably the JSON serialization/tokenization process will mess up because of that and poof, JSON db is gone.

earnest phoenix
#

I feel like we've said many many times on this server not to use JSON to store data that changes constantly
@faint prism I'm feeling bored of programming now because we have to literally shit on newbies to make them understand stuff
Feels like we should bean people for being dicks but also NOT bean people for being dicks

faint prism
#

bored of programming now
Don't spend all your time helping beginners then. Start a new project to respark your interest

slender thistle
#

Feels like we should bean people for being dicks but also NOT bean people for being dicks
A rather contradicting statement.

#

If you don't want to help, don't.

earnest phoenix
#

Don't spend all your time helping beginners then. Start a new project to respark your interest
@faint prism welp i make shitty among us videos on YouTube now but i guess i can grind some time betterifying my rock paper scissors game

faint prism
#

Dive into a new technology and learn all about it

#

Like CI/CD pipelines, Design Patterns, Unit Tests, or something

#

Pretty cool stuff

#

Design Patterns is literally how to structure code correctly or in a maintainable way.

earnest phoenix
#

oooooooooo

faint prism
restive furnace
#

DRY design principle is being kinda forced to use in C++

drifting wedge
#

how do i install apache passenger in cpanel?

earnest phoenix
#

what is the css tag for the bot name in top.gg?

tight plinth
#

whats the rate limit for adding roles to members again? I dont rememebr it

restive furnace
#

@twin marsh
@restive furnace

#

pathc member

#

look up i sent ss

#

ok here it is again

#

and its that patch member

#

@tight plinth ^^

tight plinth
#

ty

#

so if i put one role added per second it wil be ok?

restive furnace
#

yeah

tight plinth
#

k, thanks ^^

earnest phoenix
#

@slender thistle how is it against the tos

#

not only does the support page for glitch support it

#

the main page for glitch supports it

misty sigil
#

j. Infrastructure Integrity
We reserve the right to delete, suspend, or terminate your access to, or ability to use, any and all Services that we determine to be placing undue strain on our infrastructure. These changes were made in response to ping services on Glitch and our efforts to make the site more stable. You can read more about those efforts here.

#

ping services

trim saddle
#

you shouldn't be adding roles in a matter of seconds

misty sigil
#

this could mean keeping it online

#

by any manner of ways

slender thistle
#

Back when Glitch didn't rely on hours and you had to ping the service every few minutes, Glitch essentially disallowed any pinging services and if you were spotted using one, your project would get terminated

earnest phoenix
#

yeah im not using ping services

#

i know ping services is against the tos

misty sigil
#

still keeping it online

earnest phoenix
#

but youre saying bots entirely are against the tos

misty sigil
#

and acting as a ping service

trim saddle
#

@earnest phoenix they legit changed their terms to prevent discord bot hosting

misty sigil
#

^^

slender thistle
#

so it's similar to Heroku now?

trim saddle
#

heroku doesn't care in the slightest

misty sigil
#

read

slender thistle
#

like you have X hours per month and your bot may restart every 12/24 hours

misty sigil
#

also shiv whens that message about json databases being pinned

trim saddle
#

heroku restarts itself

#

so no uptime records :c

earnest phoenix
#

i only dont use heroku cuz almost nothing is compatible

#

whats going on with the vcs

#

what are they doing

trim saddle
#

i had to host 2 of my bots on heroku for while

slender thistle
#

Free hosting may be a good pin but JSON databases can be handled properly and we are not reliable for devs' fuckups

trim saddle
#

one in python one in javascript

#

i never had an issue

earnest phoenix
#

eh

#

well

#

yeah

misty sigil
#

Free hosting may be a good pin but JSON databases can be handled properly and we are not reliable for devs' fuckups
@slender thistle ok fair nuff

earnest phoenix
#

might be my fault for adding too much shit

misty sigil
#

just get a vps

earnest phoenix
#

i dont have money

#

i dont have a job to get money

#

i cant get a job to get money

faint prism
#

Can't?

misty sigil
#

can't?

earnest phoenix
#

well i can

#

but like

#

i dont have a car

#

and theres not that much jobs nearby

drifting wedge
#

how do i log into ssh?

misty sigil
drifting wedge
#

when i try, i cant type passowrd

misty sigil
#

@drifting wedge using a ssh client

faint prism
#

JSON databases can be handled properly
If you implement a thread safe approach I guess

earnest phoenix
#

lol

drifting wedge
#

@drifting wedge using a ssh client
@misty sigil im using cmd

misty sigil
#

ok so

earnest phoenix
#

well ima try

misty sigil
#

ssh <user>@<ip>

earnest phoenix
#

is a vps per month or per year

misty sigil
#

per month

earnest phoenix
#

oki

misty sigil
#

but like $3/month for cheapest ones

earnest phoenix
#

ah

misty sigil
#

thats from galaxy gate iirc

faint prism
#

@earnest phoenix Or use an android phone or leave a PC running 24/7 for free

earnest phoenix
misty sigil
#

yup

#

standards are outta stock

#

kekw

earnest phoenix
#

k ill share it with my friends

#

kekw

trim saddle
#

you could also do google cloud platform

#

it's free but it's complicated to setup for use outside the website

drifting wedge
#

do i do ssh username@domain?

faint prism
#

that's how you ssh into something yeah

drifting bobcat
#

Okay

faint prism
dusky plover
#

Hi

drifting wedge
#

it says password deneied every time

restive furnace
#

@drifting wedge then its wrong pswe

drifting wedge
#

@drifting wedge then its wrong pswe
@restive furnace its not doe

restive furnace
#

it literally is

earnest phoenix
#

channel.send(msg, { disableMentions: 'everyone', 'here'});
^

SyntaxError: Unexpected token '}'

this happens when i start my host

drifting wedge
#

it literally is
@restive furnace i copeied and pasted it tho

misty sigil
#

copy paste doesnt work

#

in cmd

willow mirage
#

does a bot can auto join a server

#

if he got the link ?

misty sigil
#

no

drifting wedge
#

this thing is fucking wrong

earnest phoenix
#

channel.send(msg, { disableMentions: 'everyone', 'here'});
^

SyntaxError: Unexpected token '}'

this happens when i start my host
@earnest phoenix

drifting wedge
#

i put the exact same passowrd

earnest phoenix
#

@earnest phoenix did you read the error

#

mmh but it works on self host

#

you've got different code

#

hmm

charred owl
#

I'm making an embed with a Author but i cant figure out how to do it? I shopld have the Guild name and icon

.setAuthor(`${message.guild.name}`, `${message.guild.icon_url}`)
drifting wedge
#

its not working!!! how the do i connect to ssh?

#

the password isnt working

#

i have a subaccount and the user name is the subaccount name for copanel

#

wtf

#

do i put my pcs name?

#

or the account name to the place im connecringggg

earnest phoenix
#

@charred owl js .setAuthor(message.guild.name, message.guild.iconURL({ dynamic: true, size: 1024, format: 'png' }))

restive furnace
#

@drifting wedge write the password urself

#

copy pasting wont work

#

understand it

drifting wedge
#

@drifting wedge write the password urself
@restive furnace I AM

#

IT FUCKING ISNT WORKINGNGNG

restive furnace
#

you just said u copypasted it

drifting wedge
#

is the username my pc username

#

or the cpanel username

#

you just said u copypasted it
@restive furnace i tried both

restive furnace
#

lol no

#

its ur linux username

drifting wedge
#

linux?

restive furnace
#

and passwd

drifting wedge
#

my pc in windows

#

its ssh

restive furnace
#

well, i don't think you're going to use windows server for hosting

#

so i assumed windows

drifting wedge
#

yea...

restive furnace
#

and it doesn't depend which os ur on

drifting wedge
#

does it has to be linux?

#

like my pc?

restive furnace
#

...

#

you understand it wrong, ssh is a protocol to connect into a linux vps

drifting wedge
#

yea

#

but do i have be on linux?

restive furnace
#

and it doesn't depend which os ur on
do you even read what i send? 🤔

drifting wedge
#

yes

#

but the linux password? idk what the linux account is?? thast im conduzled

restive furnace
#

well ok.. do you even have a vps? or are you just trying to login into some random cpanel? or what??

drifting wedge
#

its my friend's vps

#

i have cpanel

#

and ssh access

#

from his vps

restive furnace
#

then why can't you connect

drifting wedge
#

well it says access denied

restive furnace
#

linux is the vps' kernel, and the distro is probably centos or ubuntu

#

well it says access denied
@drifting wedge why don't you ask new password from your friend then..?

charred owl
#

@earnest phoenix ok

#

@earnest phoenix how can i so make a footer? with the author icon

earnest phoenix
#
.setFooter(<text>, <link>)```
drifting wedge
#

@drifting wedge why don't you ask new password from your friend then..?
@restive furnace i can make new ssh passworrds incpanel

charred owl
#
.setFooter('Request by', `${message.author.name}`);

Like this?

quartz kindle
#

@drifting wedge ssh accounts are separate from cpanel accounts

#

you create both ssh username and ssh password in cpanel

drifting wedge
#

@drifting wedge ssh accounts are separate from cpanel accounts
@quartz kindle ? theyres ssg passwords

#

like ssh access

quartz kindle
#

unless the hosting company defines the ssh username as the same as the cpanel username

earnest phoenix
#

setFooter's first parameter is fotter text, second is avatar or image attachment @charred owl

drifting wedge
#

unless the hosting company defines the ssh username as the same as the cpanel username
@quartz kindle so like i need my friend?

willow mirage
#

can i use

setInterval(() => {
fetch("app.herokuapp.com")
}

to keep heroku 24/7 ?

#

@quartz kindle ?

charred owl
#

first parameter, what is that? Maybe i know what is it if you say it @earnest phoenix

drifting wedge
#

i can make the ssh access?

quartz kindle
#

@willow mirage no idea, i dont use heroku

willow mirage
#

:((

earnest phoenix
#

Functions and methods take parameters magnus

willow mirage
#

i use heroku for my lavalink

#

i don't want to use 2 vps or use in same vps

charred owl
#

so what should i do?

willow mirage
#

cuz it will make my bot slow

earnest phoenix
#

@charred owl For example,

.setFooter(`Requested by ${message.author.tag}`, message.author.displayAvatarURL({
dynamic: true,
size: 1024,
format: 'png'
}))```
First parameter here is `Requested by ${message.author.tag}`
Second parameter here is `message.author.displayAvatarURL({
dynamic: true,
size: 1024,
format: 'png'
})`
charred owl
#

ohhhh

#

Should you always do this

                dynamic: true,
                size: 1024,
                format: 'png'
restive furnace
#

(use jpg/webp instead if u have limited bandwith, and dynamic false)

charred owl
#

@restive furnace me

quartz kindle
#

that option doesnt affect your bot's bandwidth

charred owl
#

what is bandwith

earnest phoenix
#

Depends,
dynamic: boolean converts the constructed url to gif if possible
size: number sets the size of the constructed url
format: string sets the extension of the url constructed

charred owl
#

ohhh

sudden geyser
#

It doesn't effect your bandwidth, but may on what you're doing (are you downloading the user's avatar, or having Discord render it for you)

quartz kindle
#

bots never download images from discord, unless you explicitly fetch them using an http lib

sudden geyser
#

yeah that's what I mean

polar girder
#

im making a music bot i typed the code but it says this "Reference Error: Client is not defined" im new to coding and im writing in java script so yeah i need help

#

and it says that error after i try starting the bot

drifting wedge
#

wait so for ssh, will the vps owner have to give me access or can i make my own acces? it lets me manage ssh

restive furnace
#

@polar girder client is not defined literally, theres nothing that I can do, just make sure it's defined.

willow mirage
#

anyone could help me how i can keep heroku alive

polar girder
#

??? @restive furnace wut do you mean by defined?

restive furnace
#

ok learn javascript then

#

first learn it, then do somethkng on it

polar girder
#

im just following a YT tutorial and i know some coding but not that much and im very knew to JavaScript

#

like my first time using it

restive furnace
#

Tip 1: Don't ever follow some YT tutorials from stone age.

polar girder
#

welp

restive furnace
#

Tip 2: Learn the programming language before hopping into the bot devel.

polar girder
#

welpppp

restive furnace
#

Tip 3: https://anidiots.guide (it's written by idiots to beginners, not for idiots)

polar girder
#

ok thx

#

like would there be anything wrong with the code though???

restive furnace
#

probably

polar girder
#

or is it something else?

#

ok thx @restive furnace

restive furnace
#

but yeah follow my tip 1 always.

#

tip 2 is not required if you understand everything in the guide

wind kayak
#

Can 2 users help me for a second in #commands?

polar girder
#

ok

faint prism
#

steal a yt bot and you'll go into technical debt

polar girder
#

im going through git hub mainly

#

i went to yt to learn how to use it

#

i didnt just c and p the code

faint prism
#

fair enough

drifting wedge
#

someone pls help, for ssh connection

#

in cpanel it lets me make my own ssh key and passowrd

#

is that how i ssh into the server?

#

ping pls

charred owl
#

What is wrong with this?

    async run(message) {
        const latency = msg.createdTimestamp - message.createdTimestamp;
        const embed = new MessageEmbed()
            .setColor("#f4f4f3")
            .setDescription(`:ping_pong:\`${latency}ms\``)
            .setTitle(`Ping`)
            .setThumbnail(`https://i.pinimg.com/originals/53/1f/f3/531ff3381c36b88235ff246973c55a99.gif`)
            .setFooter(`Requested by ${message.author.tag}`, message.author.displayAvatarURL({
                dynamic: true,
                size: 1024,
                format: 'png'
                }))
        message.channel.send(embed);
    }
sudden geyser
#

You tell us. What went wrong? What was the error?

sudden geyser
#

Where did you get msg from?

#

What is it supposed to be.

charred owl
#

ohhh

#

should i remove msg.

earnest phoenix
#

lol

gentle lynx
#

why is this not adding to amounts?

#

it does log

#

btw

sudden geyser
#

It's your code. We don't know what the intentions are. What msg is supposed to help in that expression (latency -> how long something took) and where you're pulling it from is your responsibility.

#

Assuming it's a ping command, you'd typically send a message first, then subtract the time

#

So msg should represent the first message that was sent for testing.

hard anchor
#

does someone know how masked links in discordjs work?

sudden geyser
#

What is a masked link?

#

Like some text you click which acts as the URL?

earnest phoenix
#

are you referring to the exploit

#

doing that is against the TOS and will get your account terminated

hard anchor
#

Like some text you click which acts as the URL?
@sudden geyser yes

earnest phoenix
#

oh, hyperlinks

sudden geyser
#

You use markdown to accomplish that: [text](url). For example, [See Google](https://google.com) would have the text "See Google" appear as a hyperlink.

They can only be used in embeds (webhooks are exempt from this). Typically you use them in the description or field values

faint prism
#

cry is kinda sus

earnest phoenix
#

incorrect terminology throws you off when you know too much mmLol

#

there's an exploit that's literally link masking

#

masking a link as another

faint prism
#

like url redirection?

earnest phoenix
#

well, no

sudden geyser
#

with a metric fuck ton of spoilers yes

faint prism
#

Or are you masking the embed that Discord adds to msgs with links

wind kayak
#

Can I get 2 users again please? 👉👈

earnest phoenix
#

get alts

sudden geyser
#

^ or make some command to simulate a user doing something

earnest phoenix
#

with a metric fuck ton of spoilers yes
this ^
you can display one link but have it function as another

faint prism
#

Or make proper unit tests

#

woah weird

hard anchor
#

You use markdown to accomplish that: [text](url). For example, [See Google](https://google.com) would have the text "See Google" appear as a hyperlink.

They can only be used in embeds (webhooks are exempt from this). Typically you use them in the description or field values
@sudden geyser Do i have to put the custom Text in ""?

faint prism
#

uh

earnest phoenix
#

no

#

what

#

that entire thing has to be a string

#

what's inside is just markdown

#

this will also only work in embed field values and embed descriptions

faint prism
hard anchor
#

Ohh, well im stupid

charred owl
#

Can i do this?

    async run(message) {
        const msg = await message.channel.send('Pinging...');

        const latency = msg.createdTimestamp - message.createdTimestamp;
        const embed = new MessageEmbed()
            .setColor("#f4f4f3")
            .setDescription(`:ping_pong:\`${latency}ms\``)
            .setTitle(`Ping`)
            .setThumbnail(`https://i.pinimg.com/originals/53/1f/f3/531ff3381c36b88235ff246973c55a99.gif`)
            .setFooter(`Requested by ${message.author.tag}`, message.author.displayAvatarURL({
                dynamic: true,
                size: 1024,
                format: 'png'
                }))
        await msg.edit(embed);
    }
earnest phoenix
#

yes

#

i don't know, can you?

charred owl
#

maybe

faint prism
#

Looks good to me

#

Unless your compiler interpreter is screaming at you

charred owl
#

If i run the command its send Pinging... but its do not edits the embed

faint prism
#

set breakpoints

charred owl
#

how and what is that

faint prism
#

on the msg.edit probably

sudden geyser
#

JIT

earnest phoenix
drifting wedge
#

for ssh. do i need the keys at all?

#

like where would i find the username

faint prism
drifting wedge
#

and the domain is just like my domain?

cobalt spruce
#

just wanted to ask

#

can i hide commands in help command?

#

discord js

sudden geyser
#

yes

faint prism
#

like where would i find the username
@drifting wedge
No, but depends on the SSHD config
Its a user on the system
Domain or ip work

drifting wedge
#

i can out the domain?

#

just the domain?

#

like wut about the user?

#

its a cpanel

#

so idk how i would find the user?

faint prism
#

ssh is a remote shell session

drifting wedge
#

ssh is a remote shell session
@faint prism so i would need the vps user?

faint prism
#

VPS is a virtual computer. Typically the only way to access them is via SSH

#

So, yes? Idk how to interpret your question is really

drifting wedge
#

So, yes? Idk how to interpret your question is really
@faint prism how can i access the ssh basically

#

how do i find the credentials?

faint prism
#

You need the machine's IP address (and port unless it's the default SSH of 22)

#

Idk how to use CPanel, that part is on you

drifting wedge
#

You need the machine's IP address (and port unless it's the default SSH of 22)
@faint prism alr

#

Idk how to use CPanel, that parts on you
@faint prism 1 sec

#

so cpanel lets me make keys

faint prism
#

oh even better

drifting wedge
#

like ssh keys

faint prism
#

using is key is a replacement for a password

#

there is an option in ssh to use a key during login

drifting wedge
#

oh pog

#

there is an option in ssh to use a key during login
@faint prism should i be using cmd or a program

#

someone liked me something like putty

#

or something similarly named

faint prism
#

puTTY is a tool that does SSH connections
Windows now has SSH as a command in CMD now though

drifting wedge
#

ok ok lemme open it rq

#

can i use root?

#

as login?

faint prism
#

If the SSHD config allows root logins, sure

#

Since it's a VPS, probably

drifting wedge
#

alr and i can use the key as password

#

?

#

private key?

faint prism
#

Yeah, it's a file, and it's an extra argument where you specify the path to the key file

#

I think it's -i id_rsa if the key file name was id_rsa and in the current directory

drifting wedge
#

Is there any way to run python on a webserver?

rigid raven
#

Hi there <3, Is there a way to have a bot that can connect to two voice channels on the same server at the same time?

slender thistle
#

Is there any way to run python on a webserver?
@drifting wedge Flask, Sanic, aiohttp.web, Django

drifting wedge
#

flask?!

#

owo

#

great

#

poggers

#

also @slender thistle can i dm?

#

i have a report

faint prism
#

not using netcat for a webserver ||🤡||

earnest phoenix
#

but

#

muh aspnet core

#

:(

drifting wedge
#

wait can i run flask on websever?

#

yes right?

faint prism
#

Beginner devs using asp.net webapi be like: check out my weather forcast api mmLol

#

Flask is a type of webserver tho

drifting wedge
#

Flask is a type of webserver tho
@faint prism poggers then

#

alr

#

@faint prism how can i use the private key as the password?

#

ssh root@archbot.tech -i C:\Users\lets_not_doxx_me\Desktop\111\id_rsa

#

but it returned with an error

earnest phoenix
#

qui s'y connais en mongodb

faint prism
#

but it returned with an error
@drifting wedge what error

drifting wedge
#

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

#

copy and paste: not spamming

faint prism
#

Always google an error msg

#

Hm, but you're on windows

#

Never had that issue. I guess rclick key file, permissions, security and make sure it doesn't say everyone or something

drifting wedge
#

i dont have sudo

faint prism
#

You don't have chmod either lol

drifting wedge
#

wait who do i make it?

#

like accesible to?

faint prism
#

yourself

drifting wedge
#

my user account?

faint prism
#

and System, and Admins

#

ye

drifting wedge
#

permission defined

#

lmao

faint prism
drifting wedge
#

no its changed

#

Load key "C:\Users\owowowow\Desktop\111\id_rsa": Permission denied

faint prism
#

Did you give yourself permission? lol

#

show security properties of file

drifting wedge
faint prism
#

I need the part below that

#

And you probably don't want "Users" to have any access

drifting wedge
#

its just me tho

#

so it realyl doesnt matter

faint prism
#

It could be what makes it "Open"

#

so it may matter

#

okay, and that's for your account yeah?

drifting wedge
#

yes

faint prism
#

did you remove users?

drifting wedge
#

i will rn

faint prism
#

mk, then try again

drifting wedge
#

permission defined

#

denied

#

for me

#

i think i fucked something up

faint prism
#

weird

#

That's what my security for my private keys look like

#

you mentioned putty yeah?

drifting wedge
#

yea

faint prism
#

Have you given that a shot?

drifting wedge
#

but using main cmd

#

ill try ig

#

wait

#

i made a new rsa file

#

lemme try that

#

well i dont think i have the password

#

thats the issue

#

thats why im trying to login with key

faint prism
#

That's not abnormal for a VPS's SSH server to only be accessable via private key

#

It's considered to be much safer

drifting wedge
#

That's not abnormal for a VPS's SSH server to only be accessable via private key
@faint prism its a webserver...

faint prism
#

and webservers are services that are hosted on...? ||VPSes||

drifting wedge
#

and webservers are services that are hosted on...?
@faint prism vps's?

faint prism
#

Which is what you're SSHing into

drifting wedge
#

oh without cheating

#

im on a roll!

faint prism
#

lol

drifting wedge
#

🔥 🔥 🔥 🔥 🔥 🔥 v

#

brb gonna threaten my brother to play among us with a nerf gun

#

cya in jail

#

*juvinile detention

#

yo guys, im in jail

#

alr @faint prism i was released

#

so how can i do it like so the permissions ant fucked up

faint prism
#

Just google the error and throw everythin on stackoverflow at it

drifting wedge
#

ok lol

drifting wedge
#

wait it sayd permission denied

#

i cant find any thing on stackoverflow about it

analog walrus
#

anyone got any recommendations on where to host your bot? I currently have mine on heroku but im looking to move it somewhere that supports .json files

earnest phoenix
#

anyone know a bot that gives you topics ?

misty sigil
#

anyone got any recommendations on where to host your bot? I currently have mine on heroku but im looking to move it somewhere that supports .json files
@analog walrus any VPS supports json files

#

and dont tell me you're using a json db

faint prism
#

Not this again

merry thunder
#

Although there is no error, the bot does not respond to commands who have information about the solution?

jovial void
#

anyone got any recommendations on where to host your bot? I currently have mine on heroku but im looking to move it somewhere that supports .json files
@analog walrus you can find some decent VPS providers for cheap. I'd also recommend not going with a json db bc eventually you'll want to switch to an actual one. I had to do that around 1.5 months after first starting and it is just a mega waste of productivity having to switch from json to postgres bc it took time away from further developing my bot, so you might as well switch now and save yourself some time in the future.

drifting wedge
#

dont use json at all

#

you might for like static shit like configs

#

but just dont use json

#

@analog walrus i use heroku but i use mongo

#

same concept

jovial void
#

dpy has this whole thing about not using heroku for hosting, but if its your only option then ig its fine

#

would highly recommend a VPS

analog walrus
#

@jovial void what other dbs do you recommend?

#

im just looking to temporarily store strings at the moment

solemn latch
#

any mainstream database

#

all of them have pros and cons

sage bobcat
#

One message removed from a suspended account.

jovial void
#

I am using postgres for my bot

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

jovial void
#

play around and see which one you like the best

analog walrus
#

okay sweet

#

i looked up mongo but it said it was discontinued

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

analog walrus
#

ahh okay sweet, yeah ill look into all those dbs

#

thanks

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

solemn latch
#

well, temp storage can mean multiple things

#

if you want expiring data, all databases do that well too

inner crow
#

How do i make a botinfo commabd

empty ruin
#

How do i un nuke my general chanel

tame kestrel
#

@empty ruin delete it and make a new one

@inner crow what kind of info would you like on the botinfo command?

inner crow
#

Like who made the bot and command list abd that the bot is for info

#

Sorry bad english

#

I want this to be in embed or a litel cooler and its norwegian so ye

earnest phoenix
#

You think its cool?

inner crow
#

What

earnest phoenix
#

Nvm

tame kestrel
#

@inner crow bots are just users, so however you get user info you can use on the bot

#

You can't get the command list from anywhere though, so if you want to show commands for other bots you're going to have to find a way to store them

faint prism
#

I want this to be in embed or a litel cooler and its norwegian so ye
@inner crow what library are you using and what programming language?

earnest phoenix
#

Someone who knows CSS dm me please

balmy anchor
#

Hey guys,
I want to make a ping command for my bot that will check the author's internet ping (discord.js)
Any help will be great thx

sonic lodge
#

you want to find the author's ping?

balmy anchor
#

yeah ms and that stuff

sudden geyser
#

That doesn't sound like something you can pull off. Typically you check your bot's ping.

sonic lodge
#

you can't do that, you don't have access to any info about their connection

balmy anchor
#

oh

#

ok ill just make something else lol 😄

#

Hello u new

solemn latch
#

hey new, im woo

balmy anchor
solemn latch
#

should add it to the server list

earnest phoenix
#

Why won’t this work

#

It’s supposed to be my bots background but isn’t working

solemn latch
#

is it in style tags?

earnest phoenix
#

That’s all it is...

#

What I put up there is it

solemn latch
#

okay, it needs to be in html style tags

earnest phoenix
#

Like wdym by that...

#
body { background: url('https://i.pinimg.com/originals/00/2d/7e/002d7e638fb463fb7a266f5ffc7ac47d.gif') no-repeat center center fixed; background-size: cover; }``` this didnt work either
solemn latch
earnest phoenix
#
<head>
<style>
body  {
  background-image: url("https://i.pinimg.com/originals/00/2d/7e/002d7e638fb463fb7a266f5ffc7ac47d.gif");
  background-color: #cccccc;
}
</style>
</head>
<body>

<h1>The background-image Property</h1>

<p>Hello World!</p>

</body>
</html>```
#

how about this

#

I just tried this on w#schools and it worked

#

W3schools

solemn latch
#

no need for html, body tags iirc

#

since its aleady in a body and html

earnest phoenix
#

Wait what I just put worked!

#

@solemn latch I have a working code which is posted above but... it makes it hard to see my bots name how is that fixable

solemn latch
#

outline the text, or make the color far away from what the background is

#

light background = black text
dark background = white text

earnest phoenix
#

Hmm no clue where I would put that in code...

cedar maple
#

in the same box that you put your bots description in

earnest phoenix
#

light background = black text
dark background = white text
@solemn latch I’m talking about this...

#
<html>
<head>
<style>
body  {
  background-image: url("https://i.pinimg.com/originals/16/02/b2/1602b26c05ee78120695d592a68b8912.gif");
  background-color: #cccccc;
}
</style>
</head>
<body>

<h1>Dicsord Bot</h1>

<p>Made By Liqxid</p>

</body>
</html>```
**Here is my code now but idk where to put what Woo said to make the colors of my bots name and description visible**
vernal rivet
#

Make a box that goes under your text and change it's opacity. You can contrast the box and text color

solemn latch
#

googles your friend with css

pale vessel
#

please remove those html and head tags

vernal rivet
#

Yea you can ask your best friend google

earnest phoenix
#

the Discord bot and made by liqxid? @solemn latch

solemn latch
#

google?

#

maybe?

earnest phoenix
#

not woo oops i mean @pale vessel

#

Still struggling

#

Can’t find it on google...

quartz kindle
#

remove everything except style, h1, and p

#

html, body and head is useless in a top.gg description

earnest phoenix
#

<style>{
  background-image: url("https://i.pinimg.com/originals/00/2d/7e/002d7e638fb463fb7a266f5ffc7ac47d.gif");
  background-color: #cccccc;
}
</style>

this?

quartz kindle
#

remove html body and head

earnest phoenix
#

that?

quartz kindle
#

you can add back what you had before, the h1 and the p

earnest phoenix
#

well my issue is I cant get the text to be a bright color so its readable...

quartz kindle
#

and dont remove the body from inside the style, only the <body> parts

earnest phoenix
#
<style>
body  {
  background-image: url("https://i.pinimg.com/originals/00/2d/7e/002d7e638fb463fb7a266f5ffc7ac47d.gif");
  background-color: #cccccc;
}
</style>
quartz kindle
#

sigh...

earnest phoenix
#

im sorry i dont understand what you mean tbh

quartz kindle
#

have you never done html before?

earnest phoenix
#

nah im just trying to learn this bit so i can be done with

quartz kindle
#

i suggest you learn a bit about html, will save you a lot of time in the long run

solemn latch
#

the ones that say html, head, body you dont need.

quartz kindle
#

this is called a "tag": <something>

earnest phoenix
#
<style>
body  {
  background-image: url("https://i.pinimg.com/originals/00/2d/7e/002d7e638fb463fb7a266f5ffc7ac47d.gif");
  background-color: #cccccc;
}
</style>```
quartz kindle
#

tags start like this <something> and end like this </something>

#

you can name them whatever you want, but there are several predefined tags with specific functions

#

for example <body> and <head> are built-in tags that serve special functions

#

<html> <body> and <head> should only exist once per page, but top.gg already has them

earnest phoenix
#

okay but I mainly came here because I have everything done just most the text isnt visible and i need that solved.

quartz kindle
#

your description will be added inside the existing top.gg page

#

so top.gg already has its own html, body and head

#

so you dont add your own, you just add the other stuff, like <h1>, <p>, <style> etc...

earnest phoenix
#

Okay Thanks!

quartz kindle
#

now the <style> tag lets you write css inside it

#

which is a whole other language

earnest phoenix
#

mmk

quartz kindle
#

css targets tag inside a page, so for example, your css is targeting the <body> tag, and give it a custom background

#

this will be applied to top.gg's existing <body> tag

earnest phoenix
#

mmhm

#

so which one effects the text color?

quartz kindle
#

you should create a tag for your text, and give it a class

earnest phoenix
#

No clue how to do that tbh

quartz kindle
#

for example, <h1> means a header, its used for big titles, <h2> is a smaller title, etc...

#

<p> is a paragraph

earnest phoenix
#

mmhm

quartz kindle
#

so you can add something like ```html
<h1>my title here</h1>
<p>some description here</p>

#

now in order to target them correctly without screwing up the existing text in top.gg, you need to give them a class

earnest phoenix
#

Is that allowed on top.gg if so ill add that

opal plank
#

for example, <h1> means a header, its used for big titles, <h2> is a smaller title, etc...
@quartz kindle i SO misread that

quartz kindle
#

you can give them a class like this

earnest phoenix
#

Lmao

quartz kindle
#
<p class="myclass">text here</p>
#

so now, inside your <style> tags, you can directly target this specific paragraph, by targeting its class name

#

like this

earnest phoenix
#

<h1>Dicsord Bot</h1>

<p>Made By Liqxid</p>
or this but p is paragraph

quartz kindle
#
.myclass {
  color:"red"
}
earnest phoenix
#

would that change all the text on the whole page?

quartz kindle
#

if you use p {} yes

#

if you use .myclass{} no

#

p will target ALL <p>s

earnest phoenix
quartz kindle
#

.myclass will only target .myclass

earnest phoenix
#

So where would i put the <p> and how would i do it.

#

bc if this turns out to be simple hell ill learn a lot more then.

quartz kindle
#

add your <p>s like you had before, but give them a class name

#

like i showed you

earnest phoenix
#

<p class="myclass">text here</p> this?

quartz kindle
#

yes

earnest phoenix
#

so if I give the class a name could I just use top.gg?

#

and would I just add this onto the current code I have?

quartz kindle
#

not sure if dots are supported, but you should give it a unique name that top.gg is not using anywhere else

earnest phoenix
#

Okay how about Techna?

#
<p class="techna">text here</p>```
quartz kindle
#

sure

earnest phoenix
#

so where would I define the color in that?

quartz kindle
#

inside your <style> tag

#

you can now target this class

earnest phoenix
#

<style/red>?

quartz kindle
#

by using .techna

earnest phoenix
#

so im confused how would I target this?

quartz kindle
#

the same way you have a style rule for body create a new rule for .techna

slender thistle
#

Hey Tim, think IDs might apply as well?

quartz kindle
#

sure, you can also use IDs, but im going for classes because i dont think these paragraphs are gonna be unique

earnest phoenix
slender thistle
#

Yeah fair

quartz kindle
#

no, leave body like it was, make .techna a standalone

earnest phoenix
quartz kindle
#
body {
  ...
}

.techna {
  color:red
}
earnest phoenix
#

oops didnt mean to send

#

how about that ^

#
<style>
body {
  background-image: url("https://i.pinimg.com/originals/00/2d/7e/002d7e638fb463fb7a266f5ffc7ac47d.gif%22");
  background-color: #cccccc;
}

.techna {
  color:red
}
</style>```
#

like that?

quartz kindle
#

yes

#

all of this goes inside your <style> </style>

#

your url is missing a "

earnest phoenix
#

oh thanks

#

so then the </style> would that be after the last }?

quartz kindle
#

yes

earnest phoenix
#

like how I just edited it?

quartz kindle
#

yup

earnest phoenix
#

Alright lemme go try it

quartz kindle
#

now everywhere in your description, wherever you use class="techna", it will be red

#

you can use it both in a <p> or in a <h1> or in other stuff

earnest phoenix
#
<style>
body {
  background-image: url("https://i.pinimg.com/originals/16/02/b2/1602b26c05ee78120695d592a68b8912.gif");
  background-color: #cccccc;
}

.techna {
  color:red
}
</style>
quartz kindle
#

those are not in your description

#

im talking about your description

#

aka, what is gonna show up inside the white box

earnest phoenix
#

oh im trynna change the color of the important text but i get what you mean

#

like the bots name and stuff

quartz kindle
#

if you want to change existing stuff that you didnt create, like top.gg's things, you need to find out what is their original class names and tag names

#

and target that

earnest phoenix
#

yikes.

quartz kindle
#

for example, right click on the thing you want to change, and go to inspect element

earnest phoenix
#

okay

#

its bot-name

#

and bot-description

quartz kindle
#

yes

#

so you make a .bot-name and a .bot-description in your <style>

#

the same way you did .techna

earnest phoenix
#

how would I put both on the same line or can you not do that.

quartz kindle
#

if you want to apply the same thing to multiple classes you can separate them by commas

#

.bot-name, .bot-description {}

earnest phoenix
#

okay

#

ohh thanks I have got it figured out from here I appreciate you very much! you have a nice day!

quartz kindle
#

👍

whole knot
#

Hello, so I have this command and wanted to list all the roles the user has. By default everybody has the @everyone role and it looks rather disturbing. Is there a way to ignore/exclude this role while executing the command?

faint prism
#

Didn’t work...
@earnest phoenix can you tell me what 00000011 equals as a decimal?

whole knot
#

3 🤔

faint prism
#

i have never encountered this before
@swift umbra It's a syntax error

#

Yeah it is

#

what about the 2's complement for 10001011?

#

ok

#

oh

#

ig it is

earnest phoenix
#

@faint prism the decimal is simple it’s 10184018294728.81839391948999

#

Also I solved the bot working issue

faint prism
#

didnt ask for decimal

#

i asked for the 2's complement

#

binary form

earnest phoenix
#

700000000000000000

#

Ez

faint prism
#

to convert to 2's complement you get the 1's complement first
10001011
01110100 <- 1's complement

quartz kindle
#

@swift umbra that happens when you use an outdated version of node.js

#

discord.js requires node.js version 12 or bigger

tame kestrel
#

Hello, so I have this command and wanted to list all the roles the user has. By default everybody has the @everyone role and it looks rather disturbing. Is there a way to ignore/exclude this role while executing the command?
@whole knot idk if anyone answered your question, but remove the role with the same id as the guild from the array or collection or whatever

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

quartz kindle
#

it does

#

its the guild id

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

faint prism
#

01110100

  •          1
    

= 01110101 <- 2's complement

quartz kindle
#

are you sure?

#

add console.log(process.version) to the beginning of your main file

#

before requiring discord.js

faint prism
#

Ez
@earnest phoenix 117 actually lol

earnest phoenix
#

I was close

faint prism
#

eh

#

lol

quartz kindle
#

rip

#

if you're using something like pm2 and ran it before updating node, then the process will still be running with the old version

blissful coral
#
if(args.includes(`field1:`)) message.channel.send(`field 1 found`)
if(args.includes(`field2:`)) message.channel.send(`field 2 found`)
if(args.includes(`field3:`)) message.channel.send(`field 3 found`)
if(args.includes(`field4:`)) message.channel.send(`field 4 found`)
``` Just using this as a test right now, how do I check from this on what argument number it was?
tame kestrel
#

think can you clarify a bit? Like if they later on said field#: you'd be able to get the number?

blissful coral
#

I want to be able to find what arg it was said in

#

Say if it is -test I like field1: it will find field1 and get the arg number

#

So in this example it would be arg 2

tame kestrel
#

oh well how are you passing arguments to your command? just like args[]?

blissful coral
#
let args = message.content.slice(prefix.length).trim().split(/ +/g);
#

Got to this point

#

Where I am getting the array of args

#

How would I get it to tell me what # field1: was found on

#

in the array

tame kestrel
#

okay well you can do like ```js
array[].find(str => { return /(field)\d:/.test(str)})

#

something along those lines

#

/(field)\d:/ is just testing for field + digit + :

sonic lodge
#

huh, just use array.indexOf('field1:')

sudden geyser
#

Regex is appropriate since they want to match the number near the end as well

blissful coral
#

Ah

sonic lodge
#

oh, will it change?

blissful coral
#

👍

tame kestrel
#

guess you should program it according to context then

blissful coral
#

I am only doing it up to 5

#

So

#

I can do either tbh

sudden geyser
#

You could use [1-5] in regex

tame kestrel
#

if you only want 1-5 try doing ^

#

that

#

LOL

blissful coral
#

Okay

#

LOL

tame kestrel
#

instead of \d

sudden geyser
#

speedy hands

sonic lodge
#

since you want the index, use .findIndex instead of .find

tame kestrel
#

^ that too lol I was just doing it off the top of my head

#

something along the lines of what I wrote will work for the filter though

drifting wedge
#

What’s the most reputable, no bullshit, no hidden fee, relativly cheap, vps? Don’t need too much memory, but need to be able to install shit, and about 2 gigs or ram

solemn latch
#

galaxygate ;p

#

$3 a month 1gb vps

drifting wedge
#

Out of stock

solemn latch
#

f

#

lemme ask when itll be in stock

drifting wedge
#

Wdym ask?

#

My devteam finally convinced me to get a vps lol

midnight blaze
#

hey woo

drifting wedge
#

Just a side question, do discord bots actually get donations?

#

Or is it like super rare, and only for huge bots?

solemn latch
#

super rare unless larger imo

midnight blaze
#

not super rare all of the bot owners are filthy rich

sonic lodge
#

heh

midnight blaze
#

hence the green role

#

💵

sonic lodge
#

oh right, i understand the connection

blissful coral
#

Ah yes

#

Hahaha

drifting wedge
#

When restock?

#

Me want vps

limber flume
#

Buy one.

opal plank
#

all bot owners are filthy rich, here i am, a bot owner, eating ramen on a daily basis cuz its cheap mmulu

drifting wedge
#

all bot owners are filthy rich, here i am, a bot owner, eating ramen on a daily basis cuz its cheap mmulu
@opal plank not like 1000000000$ per Sec

solemn latch
#

@drifting wedge do you mind if i pm you?

drifting wedge
#

I mean like a couple bucks per month?

#

Go ahead

#

If it’s open

limber flume
#

5$ pm

drifting wedge
#

If not lmk

limber flume
#

for vps

opal plank
#

how about $0 per month?

midnight blaze
#

yeah, do 5 dollars 0exe

#

not free pm

limber flume
#

how about $0 per month?
@opal plank heroku.

opal plank
#

wot?

#

no thanks i got a host

#

powerful one at that

limber flume
#

Nice 👍

opal plank
#

i'd rather self host than use heroku ngl

#

iirc they dont provide 30 day per month coverage

drifting wedge
#

About 5$ per month?

opal plank
#

so really bad choice of vps

limber flume
#

Heroku is great, low ms. But I use vps.

drifting wedge
#

Like my bot, everyone who uses it loves it

#

It’s at I think 87 servers

limber flume
#

☺️

#

What’s ur bot

drifting wedge
#

89

opal plank
#

whose?

limber flume
#

Both of u

opal plank
#

@earnest phoenix

drifting wedge
#

Ah, dm if u wanna know

midnight blaze
#

it is a very special ping bot that has a command with a 🏓 emoji

drifting wedge
#

-ping

pliant gorgeBOT
#

dslWaddle I'm alive!!!

opal plank
#

you sure @pliant gorge ?

drifting wedge
#

Lol

opal plank
#

actually speaking of bad bots, lemme check the shards

uncut river
#

do websites with bot stats run on the same server as the bot

#

or is data sent from the bot to the website

#

im tryna make a data page

#

not sure if i gotta send stuff from one server to another or not

drifting wedge
#

R there restocks frequently for 1 gb standard vps?

solemn latch
#

ye

#

or just ask for it

drifting wedge
#

POV

#

Pog

#

Imma make some gains

gritty bolt
#

if you're looking for servers I personally use AWS

#

i love them, always had good experiences with their team when i mess something up

#

and it's relatively cheap, some stuff is free for the first year

zenith sapphire
#

uo

#

damit

#

yo

vale garden
#

hi

#
if (C === "C"){
    ctx.drawImage(factoryImg, 665, 400, 250, 250)
  }

  if (n === 1) {ctx.drawImage(mineImg, 700, 35, 200, 200)}
  else if (s === 1) {ctx.drawImage(mineImg, 700, 959, 200, 200)}
  else if (e === 1) {ctx.drawImage(mineImg, 140, 520, 200, 200)}
  else if (w === 1) {ctx.drawImage(mineImg, 1280, 520, 200, 200)}

  else if (na === 1) {ctx.drawImage(automineImg, 700, 35, 200, 200)}
  else if (sa === 1) {ctx.drawImage(automineImg, 700, 959, 200, 200)}
  else if (ea === 1) {ctx.drawImage(automineImg, 140, 520, 200, 200)}
  else if (wa === 1) {ctx.drawImage(automineImg, 1280, 520, 200, 200)}

  const attachment = new Discord.MessageAttachment(canvas.toBuffer(), 'welcome-image.png');

  const embed = new Discord.MessageEmbed()
  .setTitle("Here is your base!")
  .setImage('attachment://welcome-image.png')
  .setColor("GREEN")

    message.channel.send({embed});
#

is there anything wrong here

#

cuz where i did message.channel.send(attachment)

#

it worked properly but .setImage(attachment or this

#

arent working

#

help plz

uncut river
#

needs to be a full link

#

that can be googled

mental tulip
#

I was trying to put the data from the json file to a new Discord Collection

#
const configs_from_storage = JSON.parse(fs.readFileSync(this.#configs_file));


this.#configs_in_memory = new Collection(configs_from_storage);
#

nevermind