#development

1 messages Β· Page 1365 of 1

earnest phoenix
#

or the loads of other methods of database sharding so how do you shard a bot

gilded dawn
#

@earnest phoenix You can send to me a image

earnest phoenix
#

No need for an image, just go to the commands tab and click on the package manager and then type in the package you want

neon heart
#

you can change version in package.json and then click run button

boreal iron
#

Since that’s too much for him already somebody should at least tell v12 requires a few changes in your code in order to work. Probably create a backup of your whole project incl. node

neon heart
#

now djs version is 12.4.1,

gilded dawn
#

@neon heart okk

#

Thanks

#

@earnest phoenix and htanks you

earnest phoenix
#

How can i make when someone invites my bot redirect him to my support server link?

#

Cause i have added a redirect url but it doesn't work

gilded dawn
#

@earnest phoenix you can speak arabic?

earnest phoenix
#

No why?

gilded dawn
#

Becuse i can help you @earnest phoenix

earnest phoenix
#

Ok but why i have to speak arabic?

tepid grove
#

I want to ask how do I add a bot to top.gg

gilded dawn
#

Becuse i'm speak arabic @earnest phoenix

earnest phoenix
#

@gilded dawn you can't speak english?

rustic nova
gilded dawn
#

C'ant speak english@earnest phoenix

earnest phoenix
#

Ok then i can't

gilded dawn
#

Ok

earnest phoenix
#

@rustic nova could you pls help me too?

rustic nova
#

No clue about redirects on the bot page

gilded dawn
#

How can I put my bot on your site

#

@rustic nova

earnest phoenix
rustic nova
#

How can I put my bot on your site
@gilded dawn see what i said to ohayou

tepid grove
#

@rustic nova thx

gilded dawn
#

@rustic nova thanks

earnest phoenix
#

hi i haven't been running the bots console for about 1 hour i get this back and whatever i do is not good but if i write another bot id then emg starts what could be the problem

[NODE.JS]

2|yue-chan | [WS => Manager] Fetched Gateway Information
2|yue-chan |     URL: wss://gateway.discord.gg
2|yue-chan |     Recommended Shards: 1
2|yue-chan | [WS => Manager] Session Limit Information
2|yue-chan |     Total: 1000
2|yue-chan |     Remaining: 0
2|yue-chan | [WS => Manager] Spawning shards: 0
2|yue-chan | [WS => Manager] Exceeded identify threshold. Will attempt a connection in 71146268ms

elfin vortex
#

please someone tell me what I did wrong
(posting stackoverflow because I dont want to type it out again for discord)
https://stackoverflow.com/questions/64679139/nameerror-name-open-is-not-defined-when-trying-to-log-to-files

rocky hearth
#

In programming how should I tackle these situation.
I know I can't access the speak method.
I want the animal to speak while moving...

class Animal {
  move() {
    console.log(`Moving.... ${this.speak()}`);
  }
}

class Dog extends Animal {
  speak() {
    return 'Bark!';
  }
}

const dog = new Dog();
dog.move();
quartz kindle
#

@rocky hearth you can

#

the code above works as intended

rocky hearth
#

I know I could, override the move method for all Child instances

quartz kindle
#

the only thing is that not all animals can speak, so inside the move method you can check if the speak method exists

cinder patio
#

Define an empty speak method for the Animal class

quartz kindle
rocky hearth
#

Wat?? How it is accessing the child method

quartz kindle
#

its not a child method

earnest phoenix
#

please help i haven't been running the bots console for about 1 hour i get this back and whatever i do is not good but if i write another bot id then emg starts what could be the problem

[NODE.JS]

2|yue-chan | [WS => Manager] Fetched Gateway Information
2|yue-chan |     URL: wss://gateway.discord.gg
2|yue-chan |     Recommended Shards: 1
2|yue-chan | [WS => Manager] Session Limit Information
2|yue-chan |     Total: 1000
2|yue-chan |     Remaining: 0
2|yue-chan | [WS => Manager] Spawning shards: 0
2|yue-chan | [WS => Manager] Exceeded identify threshold. Will attempt a connection in 71146268ms

quartz kindle
#

the prototypes get merged into a single object

#

the dog methods are merged into the animal methods

#

the resulting instance has all methods

rocky hearth
#

Ooh, I think I'm getting it

quartz kindle
rocky hearth
#

The only way it will generate error is when, I create instance of Animal

quartz kindle
#

yes, or any other child instance that doesnt provide a speak method

#

so in the animal class you can check if the speak method exists before calling it

#

@earnest phoenix you reached your daily login limit

#

you can only connect to discord 1000 times per day, and you used all of that up

#

you can connect again in 19 hours

earnest phoenix
#

@quartz kindle WHY???

rustic nova
#

When you loop the login process

crisp fable
#

How can you even manage to login to Discord 1000 times a day

earnest phoenix
#

how is it possible when the bot 0-24 is running without stopping?

rustic nova
#

Time to fix your code

rocky hearth
#

might be network issue, it may have tried to connect multiple times

rustic nova
#

Can maybe be the case

quartz kindle
#

your bot crashed or disconnected and reconnected 1000 times

earnest phoenix
#

oh i found a domain problem

crisp fable
#

πŸ€”

earnest phoenix
#

then I have to wait 19 hours

quartz kindle
#

guild owners are not guaranteed to be cached

#

you need to fetch it

earnest phoenix
#

weird asf

#

thanks for the advice though

#

How can i make when someone invites my bot redirect him to my support server link? Cause i have added a redirect url but it doesn't work

rocky hearth
#

What it is called, when its opponent's turn

earnest phoenix
#

To who you are talking to?

crisp fable
#

bruh

quartz kindle
#

@earnest phoenix redirecting people after adding can only be done with oauth2

#

the person needs to "login with discord" in your website or wherever, then you get their access token and permission to redirect them

earnest phoenix
#

I already did that but it doesn't work

#

Oh, i thought this could happenes when someones invites my bot then it gets him to the link i added

#

@quartz kindle but when someone can get this access tab?

earnest phoenix
#

What is that business you put in .setColor that adapts to the discord theme, I forgot

restive furnace
#

simply the same css color

#
  • 1
#

or - 1

earnest phoenix
#

No, it's on the embed

#

I think it was hex color display

slender thistle
#

Won't work on both themes, but #36393f for dark theme

earnest phoenix
#

I already did it once but I don't remember

ivory seal
#
        console.log(servercheck);
        if(servercheck){
            var role = message.guild.roles.cache.find(role => role.id=== "773443476615987231");
             message.member.roles.add(role);
             message.channel.send("You are verified successfully!")
        }
        if(!servercheck){
            message.channel.send(":x: You must join the required server to verify!");
        }``` well even when im in the server it returns as false
#

can someone help

cerulean salmon
#

hey, how turn based games works in discord ?
do u need to use database for that ?
and how u manage multiple user at a time ?
like if i say -game , bot will guess a number and will give the range in reply , the command user need to guess the number within 30 sec(try multiple times) .

how to handle multiple user ,when they will use the command at a time ?

ivory seal
#

ig message collectors

rocky hearth
#

@earnest phoenix You can give the ColorResolvable name of the color

#

all in caps

earnest phoenix
#

hm

#

I don't think that's what I used, but I'll try

rocky hearth
earnest phoenix
#

its like

#

.setColor(displayHexColor....

rocky hearth
#

displayHexColor is on <GuildMember>

#

it gives the role color, the member has currently

earnest phoenix
#

oh

rocky hearth
#

The color above are all the color, discord has built-in. They are also the same you choose to set color of the role, in server settings

ivory seal
#
        console.log(servercheck);
        if(servercheck){
            var role = message.guild.roles.cache.find(role => role.id=== "773443476615987231");
             message.member.roles.add(role);
             message.channel.send("You are verified successfully!")
        }
        if(!servercheck){
            message.channel.send(":x: You must join the required server to verify!");
        }``` well even when im in the server it returns as false

@ivory seal umm pls help

lyric mountain
#

@cerulean salmon message collectors and a metric ton of logic

earnest phoenix
#

ok sir

sterile ridge
#

if I use nekos.life api and put a footer that says (all boys and girls u show are more than 18 years old)

#

can I use it? D:

rustic nova
#

No

sterile ridge
#

f

#

D:

#

thanks :3

rustic nova
#

You won't be able to use any nsfw endpoints on the nekos.life api

#

Doesn't matter what you do

sterile ridge
#

okie thanks πŸ˜„

lyric mountain
#

nekos has the specific issue of returning loli/shota images

#

which per discord's ToS is illegal as it goes under "no minor images" rule

sterile ridge
#

hmmm other api that makes the same but... without "minor images"

#

?

lyric mountain
#

idk, I'm not into nsfw stuff for bots

earnest phoenix
rustic nova
#

It's better to not implement nsfw stuff until you have a trusted and acceptable service for that

lyric mountain
#

yeah, nsfw can get REALLY dangerous REALLY fast

sterile ridge
#

yup, i think... maybe I can filtler I mean, downloads those images or gif and put those in a sql

lyric mountain
#

it's just a snap of the wrist and everything is...gone

#

no filter will save you if their filter is weak

#

like, there's always 1% that doesn't get detected by the filter

#

or 1% where the user that posted didn't use the right tags

sterile ridge
#

noo I mean I see it and if this image has something about minors I dont download that image

#

filetered by me, by my self

lyric mountain
#

then it'd not be an api at all

#

but yeah, that'd work

sterile ridge
#

yeeh, I mean not use api

#

use sql and storage there gif fitered by me

lyric mountain
#

but prepare to have a huge load of questionable images in ur disk

sterile ridge
#

but prepare to have a huge load of questionable images in ur disk
@lyric mountain hahah yeeh

#

thanks :3

lyric mountain
#

ah, one more thing: no nsfw outside nsfw channels

#

that WILL get ur bot banned regardless if you added a disclaimer footer or not

sterile ridge
#

yeeh I have this security implemented on my bot

#

πŸ˜„

#

thanks <33

drowsy raven
#

How to detect if a message DON'T have a image? (To delete it)

crimson vapor
#

which language and lib?

lyric mountain
#

regardless of the lib, check if the message has attachments, if it has then check if it's an image

prime glacier
#

TypeError: Cannot read property 'toDateString' of undefined

solemn latch
#

Whatever your using toDateString on is undefined

prime glacier
#

my code : - var created = "Created: " + user.createdAt.toDateString();

solemn latch
#

What's user defined as

prime glacier
#

What's user defined as
@solemn latch var user = message.mentions.users.first() || client.users.cache.get(args[0])

solemn latch
#

Ah global variable

prime glacier
#

any solution

vague imp
#

Are u using id?

#

If you are using id then probably the user is not cached

#

Instead of get use fetch

#

message.guild.members.fetch(id)

prime glacier
#

not using id

vague imp
#

If you are mentioning then log user and see the property name

bright pewter
#

Hi

cunning timber
#

hi, can anyone help me with a SSLPeerUnverifiedException?
I host my bot (JDA) on a ubuntu server and it sometimes throws this Exception:
javax.net.ssl.SSLPeerUnverifiedException: Hostname cdn.discordapp.com not verified (no certificates)

crystal wigeon
#

any gamer here?

#

need help figuring out some stats

earnest phoenix
#

Question.....Whats the Difference Between Bot.event and Bot.listen() ?

#

yes

earnest phoenix
#

k

rocky hearth
#

does embed.setDescription accept array of string??

mystic wharf
#

πŸ’ƒπŸΎ

crystal wigeon
#

i dont think so

earnest phoenix
rocky hearth
#

HoaX What stats??

quartz kindle
#

@earnest phoenix lmao finally

#

now you should be able to install better-sqlite3 without errors

earnest phoenix
#

...

#

Does anyone have a link to a document to correct this error?

#

I literally look at another file that works with better-sqlite3 and it doesn't give that error

lyric mountain
#

hi, can anyone help me with a SSLPeerUnverifiedException?
I host my bot (JDA) on a ubuntu server and it sometimes throws this Exception:
javax.net.ssl.SSLPeerUnverifiedException: Hostname cdn.discordapp.com not verified (no certificates)
@cunning timber maybe I can help

#

I use jda too

#

what's ur version?

#

also, java or kotlin?

quartz kindle
#

@earnest phoenix whats logs.js line 10

earnest phoenix
quartz kindle
#

your query is wrong

#

you're passing in the guild id but you dont add this guild id to the query

#

the correct query should be SELECT username, message FROM lounge WHERE id = ? LIMIT 1

#

you need the WHERE id = ? to include the id you're passing to .all()

#

not sure how your database is sturcutred tho

#

it might not be id, but guild or guildid or something else

earnest phoenix
#

ok

#

I am going to try

#

you need the WHERE id = ? to include the id you're passing to .all()
@quartz kindle the server id?

open rune
#

try focus on guildmemberremove

#

I tried many ways, and doesn't works

rocky hearth
#

Suppose I've a embed footer with a image and text. If I update the embed doing embed.setfooter('updated'), will the image be removed?

lyric mountain
#

you'd need to edit the message to apply the changes

rocky hearth
#

yaya, I mean after applying the changes

lyric mountain
#

as long as you don't clear or create again the embedbuilder the image will be there

#

that's one of the advantages of using a builder πŸ™‚

pale vessel
#

no, the image will be undefined

crimson vapor
#

is that a bot on one file?

pale vessel
#

you can use setFooter("updated", embed.footer.iconURL) to keep it @rocky hearth

lyric mountain
#

ah, you meant the footer image

rocky hearth
#

so I need to keep adding the footer image again?

pale vessel
#

ye

rocky hearth
#

that's weird

#

any workarounds?

lyric mountain
#

you could create a custom builder that overrides the setFooter

#

this way you could make it always use the latest image

pale vessel
#

use embed.footer.iconURL

rocky hearth
#

by extending MessageEmbed?

pale vessel
#

you can just get the old reference

lyric mountain
#

ig he wants a single-param function

rocky hearth
#

I just want to change the text

pale vessel
#

yeah

#

just change it and use the old icon

rocky hearth
#

or what if I do embed.footer.text = 'updated'

earnest phoenix
lyric mountain
#

or what if I do embed.footer.text = 'updated'
@rocky hearth definitely don't even try

#

most stuff is encapsulated

#

rarely something like that would work

rocky hearth
#

hmm I understand

lyric mountain
#

if you want a single-param way of updating the text you'll need to extend the embedbuilder

#

it's easier to just pass the icon everytime tho

#

like, it'll make negligible difference performance-wise

pale vessel
#

@rocky hearth sure, that works

#

that's what the embed constructor do anyway

#

it just does that and return this

severe pike
#
<style>   
.content {
color: "blue" }
</style>

<p class="content"> hi </p>

This is not changing the color of my text in my bots description.

lyric mountain
#

that's what the embed constructor do anyway
@pale vessel what he said isn't inside the constructor

pale vessel
#

come again

lyric mountain
#

like, he wants to reuse the same builder, without creating another one

pale vessel
#

ye?

#

you can still modify it

quartz kindle
#

@earnest phoenix as i said, idk what your database structure looks like

#

could be id, guild, guildid, guild_id, whatever

earnest phoenix
lyric mountain
#

you can still modify it
the constructor itself?

quartz kindle
pale vessel
#

it's just an embed object

#

the methods just modify the object and return it back

earnest phoenix
#

then why do you have .all(message.guild.id)?
@quartz kindle so that it can be used on all servers and not just the one I tested

lyric mountain
#

yeah, ik

#

what I pointed out is that he tried to directly modify the attribute

#

which wouldn't work without the method

pale vessel
#

yep, it's fine

lyric mountain
#

js is weird

pale vessel
#

let me test it out

rocky hearth
#

LOL

quartz kindle
#

@earnest phoenix thats not how that works

earnest phoenix
#

ouch

#

la cague xd

quartz kindle
#

better-sqlite3 uses something called a "prepared statement", do you know what that is?

pale vessel
lyric mountain
#

js is definitely weird

earnest phoenix
#

better-sqlite3 uses something called a "prepared statement", do you know what that is?
@quartz kindle πŸ‰ ?I honestly don't know what that is

lyric mountain
#

stopping to think, does js even have private variables?

quartz kindle
#

have you ever heard about sql injection?

earnest phoenix
#

yes

quartz kindle
#

private variables are a thing from node 12+ afaik

#

@earnest phoenix a prepared statement is to protect against sql injection

#

for example

rocky hearth
#

There were no private variables before

quartz kindle
#
// this is vulnerable to sql injection. the variable can add unsafe commands to the SQL
.prepare(`SELECT * FROM table WHERE id = ${variable}`).get()

// this is safe. the variable is added to the query in a special way that protects the query from unsafe commands
.prepare("SELECT * FROM table WHERE id = ?").get(variable)
``` @earnest phoenix
rocky hearth
#

you can access and modify anything

lyric mountain
#

that's quite bad library-wise

#

like, too many ways of messing everything up

crimson vapor
#

so instead of allowing a string that may include another command to pass through, it only does one variable?

earnest phoenix
#

I get it

#

But in English it's like I can't explain it

rocky hearth
#

Yes, I reliased that few months back. Therefore I started working with typescript. It's alot easier and type safe

quartz kindle
#

because you dont have a guild id field in your data

lyric mountain
#
//Example SQL injection

"SELECT * FROM user WHERE name = " + name;
//User's name is "1;DELETE FROM user;"

"SELECT * FROM user WHERE name = 1;DELETE FROM user;"
//Resulting SQL
#

which will give u headache for days

severe pike
quartz kindle
#

@severe pike google "css specificity"

lyric mountain
#

Yes, I reliased that few months back. Therefore I started working with typescript. It's alot easier and type safe
@rocky hearth ain't it? something I always hated about JS is having way too many weird stuff

pale vessel
#

you need .longdescription, i guess

earnest phoenix
#

I think I had a stroke

severe pike
#

Ok thanks tim ill take a look

rocky hearth
#

flaze, is that eval command created by you? Looks cool

lyric mountain
#

incredible how tim said almost the same thing as I but you treated me like a horse would

earnest phoenix
#
//Example SQL injection

"SELECT * FROM user WHERE name = " + name;
//User's name is "1;DELETE FROM user;"

"SELECT * FROM user WHERE name = 1;DELETE FROM user;"
//Resulting SQL

@lyric mountain But the thing is, I don't understand why I have to store that

lyric mountain
#

store what?

#

the sql?

severe pike
earnest phoenix
#

the users and id

lyric mountain
#

you're not able to query for users without some key or unique index

#

like, let's say I have 100 users in my database, all having IDs from 1 to 100

#

if I do SELECT * FROM users it'll return me 100 entries

#

if I do SELECT * FROM users WHERE id = 1 it'll return me one entry

#

that is absolutely faster than filtering the collection in the code

spiral crag
#

hey guys i wanted to ask can a discord bot stream video in a voice channel

lyric mountain
#

impossible, at least for now

#

bots have no access to GoLive stuff

earnest phoenix
lyric mountain
#

oh my

#

did you just murder sql?

earnest phoenix
#

ea

lyric mountain
#

what are you trying to achieve?

earnest phoenix
#

a command to see the logs

quartz kindle
#

you murderer

earnest phoenix
quartz kindle
#

lol

earnest phoenix
#

I screwed up a lot?

quartz kindle
#

just do SELECT * FROM lounge LIMIT 10).all()

#

you will probably need to order by timestamp tho

earnest phoenix
#

wait i have an error on the messageembed

violet haven
#

is this chat just for bot dev or something else?

#

because i have an issue with vba and i don't know if it's right to ask a question about this on this server

bright pewter
#

Nani

quartz kindle
#

this channel is for all kinds of development

violet haven
#

oh ok

#

does anyone know vba?

lyric mountain
#

never heard of before I gave it a quick google lul

#

it's something about excel right?

violet haven
#

yes

quartz kindle
#

vba is visual basic lol

violet haven
#

yes

quartz kindle
#

you never heard of visual basic before?

violet haven
#

i'm on an internship and i have to deal w/ vba

#

shit

lyric mountain
#

I only heard of, but never used it ig

quartz kindle
#

i've done some shit with excel vba, but i dont remember much about it

lyric mountain
#

also didn't knew it's also called vba

quartz kindle
#

if i wanted to use it again id have to learn it again

violet haven
#

Dim extension As String
Dim chemin As String, nomfichier As String
Dim style As Integer

extension = ".xlsm"
chemin = "path"
nomfichier = ActiveSheet.Range("b1") & "_" & Range("b3") & "_" & Range("d3") & "_" & Format(Now, "yyyymmdd hh""h""mm") & "_Calcul corp" & extension

    With ActiveWorkbook
        .SaveAs Filename:=chemin & nomfichier
    End With
End Sub
lyric mountain
#

I thought it'd be VB or something like

violet haven
#

i want "path" to be a drive

#

gdrive or onedrive

lyric mountain
#

ok, now I hate vba

violet haven
#

xD

quartz kindle
#

if you have these drives auto syncing with a folder on your pc, give it that folder

#

if you want to upload directly to these drives without autosync, you'd need some sort of oauth2 or login api

lyric mountain
#

oh, discord's code block has syntax highlighter for vb

violet haven
#

this will be a file for customers so i can't specify a local path

quartz kindle
#

it has syntax highlighting for like 150 languages

violet haven
#

i want one drive for all users

lyric mountain
#

couldn't u use relative paths?

earnest phoenix
#

I already got it

quartz kindle
#

the problem is that gdrive is not a physical path, its an api

earnest phoenix
#

porfin puta madre

quartz kindle
#

you need to make it connect to the api, provide credentials and authorization, possibly oauth2

#

google how to connect to to gdrive with excel vba

lyric mountain
#

definitely oauth2 since it's sensitive data

bright pewter
#

︻╦̴╦═─

earnest phoenix
#

It no longer gives an error and the command works

lyric mountain
#

nice, I'm happy = true that you solved it

quartz kindle
#

unneeded variable

lyric mountain
#

damn

quartz kindle
#

xD

normal sage
graceful dock
#

FROM before SELECT WaitWhat this is cursed

crimson vapor
#

"happy" is declared but its value is never read

drifting wedge
#

what r good ways to like schedule a task in python that happen even if you restart the program?

lyric mountain
#

cron

drifting wedge
#

crontab?

lyric mountain
#

cronjob ig, iirc crontab is a linux-only naming

#

but it's all the same thing

#

cron works on scheduled dates, so it'll execute regardless if you restart the code or not

#

as long as it's online when the time comes

drifting wedge
#

ok cool

#

ty

trail orchid
#

how can I check if someone has voted for my bot?

#

I understand I get a POST at my python app's webhook server

#

but when I upload my application to heroku

lyric mountain
#

there are the easy and the reliable ways

trail orchid
#

it doesn't recognize it as a websever

#

typically you'd add something like web gunicorn app:app

#

to the procfile

lyric mountain
#

are you using the correct path to your app?

trail orchid
#

wdym?

lyric mountain
#

like, you need to specify an URL in your bot's top.gg page

trail orchid
#

oh yes

#

I am specifying the heroku app

lyric mountain
#

is that path correct?

trail orchid
#

yes it is

lyric mountain
#

also, have you made a request handler in ur code?

trail orchid
#

heroku recognizes that is has received a post when I test

#

no I haven't

lyric mountain
#

that's the issue

trail orchid
#

I thought using the built in handler would work

lyric mountain
#

you need to tell ur code how to handle the requests

trail orchid
#

self.dblpy = dbl.DBLClient(self.bot, self.dbl_token, webhook_path='/dblwebhook', webhook_auth=self.webhook_auth_token, webhook_port=8000)

#

doesn't this line

#

do that?

lyric mountain
#

that's an on-demand watcher

#

you request -> it tells you if an user has voted

#

the webhook is the inverse

#

it tells you whenever someone votes -> you handle it

trail orchid
#
class TopGG(commands.Cog):
    def __init__(self, bot):
        self.dblpy = dbl.DBLClient(self.bot, self.dbl_token, webhook_path='/dblwebhook', webhook_auth=self.webhook_auth_token, webhook_port=8000)

    @commands.Cog.listener()
        async def on_dbl_vote(self, data):
            # do something
#

yeah

#

so that's whyI have this listener

lyric mountain
#

that's quite confuse

trail orchid
#

the webhook calls the on_dbl_vote event

#

the issue is that heroku doesn't recognize this file as a webhook server

lyric mountain
#

dbl for py is different then

#

mb

trail orchid
#

no you're good

lyric mountain
#

do you get any error?

#

or heroku doesn't boot it up at all?

trail orchid
#

I do get an error

lyric mountain
#

which?

trail orchid
#

It says

#

at=error code=H14 desc="No web processes running"

tame kestrel
#

r u using a worker dyno

trail orchid
#

yes

#

I am using a worker dyno

#

I also tried adding a web dyno

#

but I have no idea what file to point it to

tame kestrel
#

worker dynos do not open ports at all, you need to separate your processes into web/worker or figure something out

trail orchid
#

that's what I have been tryna do

lyric mountain
#

that'll effectively murder your quota tho

trail orchid
#

but where would I point my web dyno to?

tame kestrel
#

idk the specifics on if worker and web dynos can see each other, assuming they cant, you'll need to the web dyno to point to a database or something

trail orchid
#

interestingly enough by replacing my worker

#

with a web dyno

tame kestrel
#

the web dyno gets it's own domain and you can reach the endpoint there

trail orchid
#

it still works

#

okay let me try hosting the bot with just a web dyno

acoustic bridge
#

I might be a little off-topic here but would y'all recommend using a Raspberry Pi to host bots?
The new Raspberry Pi 400 looks tasty

lyric mountain
#

a web dyno will shutdown the bot after some minutes of inactivity

#

I might be a little off-topic here but would y'all recommend using a Raspberry Pi to host bots?
The new Raspberry Pi 400 looks tasty
@acoustic bridge depends

#

for smaller bots it's a nice deal

trail orchid
#

wait will the web dyno actually shut down?

#

so I can't rely on it to receive commands on the fly?

tame kestrel
#

400 looks sexy btw, but if you're going to scale the pi will definitely hold u back after a certain extent

trail orchid
#

if that's the case, can't I run a web dyno and worker dyno side by side

lyric mountain
#

web dynos are meant to boot up only when there are requests being sent to the url

#

bots don't use the url

trail orchid
#

if the web dyno shuts down

#

yeah

lyric mountain
#

that means every single time the dyno sleeps your bot will need to login again

acoustic bridge
#

400 looks sexy btw, but if you're going to scale the pi will definitely hold u back after a certain extent
Not sure how far i could scale but i'd have a simple bot who has some fun commands, welcome messages and may run music commands.

lyric mountain
#

which will reach ratelimit pretty fast

#

Not sure how far i could scale but i'd have a simple bot who has some fun commands, welcome messages and may run music commands.
@acoustic bridge the issue is the caching itself

#

commands don't matter much alone

acoustic bridge
#

How much effect would that take

#

I mean if my python script for example is just 21 KB

lyric mountain
#

OOM errors, parallelism limitations, etc etc

#

no matter how small yer code is, discord sends a metric ton of data

#

constantly

acoustic bridge
#

Oh if that's the case

tame kestrel
#

@acoustic bridge you'll be fine, just remember to move off the pi once you start getting larger guilds n whatnot, or find a way to use less cache by using a lighter library or efficient code

lyric mountain
#

larger guilds -> here

#

lul

acoustic bridge
#

Yea i guess

#

My private server is just like 20 users right now, so it should be fine

lyric mountain
#

ah is it for private purposes?

acoustic bridge
#

Pretty much

lyric mountain
#

then it's fine

acoustic bridge
#

well i dont expect the server to blow up with people

#

also

lyric mountain
#

if you're going to run a single-guild bot then hardware matters quite little

acoustic bridge
#

and what if i would go for 2 different bots?

lyric mountain
#

still little

#

only thing that limits that is cpu time

acoustic bridge
#

so it all depends on the size of a guild/server

lyric mountain
#

it depends on the guild count

#

rarely you'll have many members to be considered "too much"

acoustic bridge
#

Welp

#

I'd say my bots are just fun bots, they dont administrate a whole company so yeah. I guess i'm safe with a Pi

pale vessel
#

username, not name

#

also, you don't need to put it inside ``, it's already a string

sterile pebble
#

@sand dune but u can guarantee if is a string, doing ``

wicked pivot
#

guildMemberUpdate does not work anymore ?

prime cliff
#

It should work regardless of intents

#

Server members intents is locked to guild user join/leave events and presence intent effects userupdate not guilduserupdate

earnest phoenix
#

i believe it shouldn't

#

it's a member related event

#

you need the intent enabled to recieve the member

hot crest
#

yea

#

you have to request for intents

gilded ice
#

can anyone help me with vcpkg

#

im trying to add it to my cygwin thingyℒ️ but i keep getting the error Unknown uname: CYGWIN_NT-10.0

wicked pivot
#

how ?

gilded ice
#

running ./bootstrap-vcpkg.sh in the vcpkg dir

#

but nothing happens D:

#

other than that error ofc

#

i'm gonna run the batch file

drowsy kite
#

Hi

#

My token is invalid

#

how do i resolve this?

tulip ledge
#

message.author.roles.cache.has cannot read cache of undefined ;-;

drowsy kite
#

;-;

earnest phoenix
#

get a valid token

#

🧠

drowsy kite
#

get a valid token
@earnest phoenix how, this is the question

#

'-'

earnest phoenix
#

well, where did you get the token in the first place

tulip ledge
drowsy kite
#

well, where did you get the token in the first place
@earnest phoenix discord developer portal?

earnest phoenix
#

yeah, you'd regenerate your token and get a new one at that same place, or copy the existing one

drowsy kite
#

I regenerated, and gave the same token as before

solemn latch
#

woah

#

luckiest man alive to get the same token

drowsy kite
#

this is the error

#

luckiest man alive to get the same token
@solemn latch ahah

tulip ledge
#

You already gave us the error ;-;

earnest phoenix
#

computers don't lie

#

therefore you passed an invalid token πŸ€·β€β™‚οΈ

drowsy kite
#

Β―_(ツ)_/Β―

earnest phoenix
#

im guessing you're reading it from the config

#

yeah?

drowsy kite
#

therefore you passed an invalid token πŸ€·β€β™‚οΈ
@earnest phoenix i passed the token that was on portal

#

'.'

tulip ledge
#

did you press ctrl + s

#

after you entered the new token?

earnest phoenix
#

are you sure you're using the token and not the client secret

#

they're not the same

tulip ledge
#

^^

drowsy kite
#

did you press ctrl + s
@tulip ledge no

tulip ledge
#

thats prob ur issue

drowsy kite
#

i will try

tulip ledge
#

if u edit a file u always save

drowsy kite
#

keeps giving the same

#

@tulip ledge

tulip ledge
#

yes yes

#

no need to tag

drowsy kite
#

sorry

earnest phoenix
#

does your token look like this

tulip ledge
#

are you sure you're using the token and not the client secret
@earnest phoenix

drowsy kite
#

πŸ˜…

#

yeah

#

this type of token's

#

;-;

tulip ledge
#

oh cool I didnt know that

earnest phoenix
#

are you returning the token from your config

drowsy kite
#

are you returning the token from your config
@earnest phoenix what do u mean

earnest phoenix
#

exactly what i said

#

are you reading the token from your config

drowsy kite
#

hm yeah

earnest phoenix
#

console.log it and see what it outputs

drowsy kite
#

πŸŽ‰

#

finally

#

thanks for support

young flame
#

hhhhh

#

so i'm making a confess command and uh

#
if(command === "confess") {
      message.delete().catch(O_o=>{}); 
      let confess = args.join(" ").slice(1);

      if(!confess) return message.reply({ embed: { color: ('RANDOM'), description: (`please provide a confession to make,`) } }).then(message => message.delete({timeout: 5000}));

      msssage.guild.channels.cache.find(i => i.name === 'confessions'.send(new Discord.MessageEmbed()
      .setColor("RANDOM")
      .setTitle("Incoming Confession")
      .setDescription(confess)
      .setFooter("Confession posted anonymously")))

      await message.reply({ embed: { color: ('RANDOM'), description: ("you're super secret confession has been submitted, thank's and come again.") } }).then(message => message.delete({timeout: 5000}));
}
#

this is my code

#

moon need halp lmao

earnest phoenix
#

is that all it says?

solemn latch
#

msssage

young flame
#

ues

#

nvm i stupid hhhhh

earnest phoenix
#

I would help but I’m at school lolll

solemn latch
#

creeper ssssssss

young flame
#

apparently i constipated and on my serverinfo thing i put another ) so it ended the message event

#

hhh these glasses are fucking me over today

#

wait nevermind still says message is now defined

solemn latch
#

now defined

#

ez

drowsy kite
#

my bot is sending 4 messages at the same time

solemn latch
#

make sure you only have one instance

drowsy kite
#

make sure you only have one instance
@solemn latch how am I going to make sure?

solemn latch
#

you had this issue yesterday

drowsy kite
#

yap

solemn latch
#

remember?

drowsy kite
#

πŸ‘

#

but I couldn't solve the bug

solemn latch
#

you fixed it yesterday by closing out all the other instances

drowsy kite
#

editors?

solemn latch
#

every time you run the command in the console, and dont close it, it stays open

#

then you open a new one and now the bots logged in twice

#

then again, until you get to 4 times

young flame
#

wait no

solemn latch
#

so when you want to restart the bot, end it before opening a new one

young flame
#

i fixed it

drowsy kite
#

ah

solemn latch
#

you can quickly fix it by restarting your pc, but from now on only open the bot once

drowsy kite
#

@solemn latch

sterile pebble
#

@young flame Try catch, is a async error i guess, for me i got this error twice, one is async error, and two is because i need it to upload a docker in heroku

#

sorry for bad english btw

#

im from br

young flame
#

@young flame Try catch, is a async error i guess, for me i got this error twice, one is async error, and two is because i need it to upload a docker in heroku
@sterile pebble oh no i just goofed

#

it works now

solemn latch
#

it was the fact you misspelled message right?

opal plank
#

also variable shadowing

solemn latch
#

also, whats this catch statement.
message.delete().catch(O_o=>{});

#

O-o

#

? Thonk

opal plank
#

imagine not checking for permission before deleting it

#

API is not your error handler, properly code your bot before doing requests

quartz kindle
#

i dont check for permissions either

#

xD

opal plank
#

WOT?

young flame
#

@young flame
@opal plank IKKK

#

IT'S MY GLASSES I SWEAR

opal plank
#

tim you're old enough to know that the API also has error limits

#

get enough erros and your token revoked

young flame
#

i just got them and i've been googing all day

sterile pebble
#

guys, can u help me my code works, but idk why

#

hahahahahaha

quartz kindle
#

i dont get errors

opal plank
#

CUZ U VOID THEM

young flame
#

api is my error handler lmao

opal plank
#

U CUCK

young flame
#

i dont check permissions

quartz kindle
#

i mean, api errors, i dont get nearly enough of them to warrant anything

#

lmao

young flame
#

i just code and test and if it works yay if not i find loop holes

opal plank
#

lmao

#

still though

#

proper coding

young flame
#

my token has been rejected more times then i have been pinged

quartz kindle
#

i dont cache permissions, and i dont wanna cache them just for this, since i can just try to delete and ignore if it fails

sterile pebble
#

Why my code can`t search by a gif using giphy api in Heroku, but acttualy i can search if i run my bot in nodemon or i made a dockerfile and upload in heroku

#

somebody can tell me why?

#

i really dont understand

solemn latch
#

permissions is like super tiny to cache though right Thonk

opal plank
#

wellll

young flame
#

hh

opal plank
#

i see the point, but at the same time

young flame
#

sorry

quartz kindle
#

besides missing permissions is not the only cause for delete failures, the major cause for failing a delete is the message no longer existing or being accessible, which will fail even if permission check passes

young flame
#

missed clicked and sent my unban commanD

opal plank
#

its more about proofing it, not to make sure

#

there always can be errors

young flame
#

yes

#

that's why you use

#

your api

#

to catch it

opal plank
#

shileding probably the better term

quartz kindle
#

besidesΒ² my bot doesnt delete other people's messages, only its own so no need for permissions anyway :D

young flame
opal plank
#

proof implies absolute

young flame
#

besidesΒ² my bot doesnt delete other people's messages, only its own so no need for permissions anyway :D
@quartz kindle yes

#

i like you tim

opal plank
#

wdym yes? you are deleting other peopels msgs

#

it doesnt apply to you

young flame
#

ik

opal plank
young flame
#

but he doesnt care about permissions

#

let the api handle everything

opal plank
#

you completely mistook what we both said

young flame
#

hhhhhhhh

#

i need sleep

solemn latch
#

he ignores them because he gets none since his bot doesnt really do that

young flame
#

i didn't take a nap

opal plank
#

go sleep and then fix that code

young flame
#

today so i might be bonkerS

#

sorry for caps

sterile pebble
#

nap is unnecessary

opal plank
#

we all told you whats wrong with it

young flame
#

yes

#

no sleep

#

starve yourself of sleep

#

coding is worth more

#

brb

sterile pebble
#

only sleep when finish the app

opal plank
#

sleep is for the weak, nothing that vodka and energy drinks wont solve. As a plus, you get so pale on the 5th day people might actually think you're a vampire, win-win situation

sterile pebble
#

Or some adderal

#

hahahah

opal plank
#

ah yes, forgot to add the drugs onto the mix

#

jk, dont do lasagna kids

#

anyhow, back to coding

sterile pebble
#

or dot it, i really dont care about

#

your body your rules

opal plank
#

i already set a bad example with my code, rather not be a drug addict example here too

young flame
#

sleep is for the weak, nothing that vodka and energy drinks wont solve. As a plus, you get so pale on the 5th day people might actually think you're a vampire, win-win situation
@opal plank i have drank more alcohol when coding a bot them my dad does now

#

drink*

#

my english is oout the roof

sterile pebble
#

i dont like to drink, but i smoke weed

young flame
#

out

sterile pebble
#

a lot of

#

btw

young flame
#

english

solemn latch
#

i just noticed i have some major typos in my bot

opal plank
#

people unironically starting to become me, im not found of that, staph

solemn latch
young flame
#

why is english red

#

i dont like to drink, but i smoke weed
@sterile pebble i do every unholy thing you can

#

that's why i'm the dark side of the moon

sterile pebble
#

kkkkkkkk

#

we are my friend

young flame
#

kkk

#

yes

solemn latch
opal plank
#

im gonna pull a sneaky, ngl

sterile pebble
#

guys how long for my bot to be judged
?

quartz kindle
#

regardless, i rather sacrifice a few api errors than cache extra stuff :D

solemn latch
#

5+ weeks

sterile pebble
#

omg

young flame
#

guys how long for my bot to be judged
?
@sterile pebble 5+ weeks

sterile pebble
#

i just do it for fun, and for my friends

#

wtf

opal plank
#

Speaking of approval, i think imma about to put my bot on the queue rn, even though it has jack shit. Doubt it'd be reviewed in less than 4 days

solemn latch
#

if its a private bot you dont need top.gg

#

to make a bot

sterile pebble
#

it's not like i wanted to make this a fucking job, 5 weeks man

opal plank
#

then dont

solemn latch
#

^

sterile pebble
#

I have a lot of friends

opal plank
#

dm a mod to remove your application, move on to something else

quartz kindle
#

well, there are like 1000+ bots waiting to be reviewed so...

solemn latch
#

zero reason to submit your bot to top.gg if its for friends

sterile pebble
#

I believe it would be easier if I had top.gg to just invite my bot

solemn latch
#

you can just share the invite link though

opal plank
#

^^^^

sterile pebble
opal plank
#

fuck it, imma post it on the page

#

0 function bot

#

les go

#

actually, lies, it has 2 commands

sterile pebble
#

damn boys

solemn latch
#

i was going to make a lazybot, that complains at every command done, and leaves if you make it do too many commands

#

because memes

sterile pebble
#

i think is like "docker hub"

quartz kindle
#

how to make a bot:
step 1 - create account on discord developer
step 2 - add bot to top.gg
step 3 - code bot

sterile pebble
#

npm and stufss

solemn latch
#

a place to share your bot to people who are not your friends

opal plank
#

Timy, wanna help me with fresh from start noodle botum codum?

#

it gon be big botum, trust me

#

got my mony on this one

quartz kindle
#

bit italian botum

opal plank
#

lasagna botum

earnest phoenix
#

in html how would you make it so its not completly left but like left center

#

and i dont want complete center

opal plank
#

i see you quite a lot here, so im assuming you got spare time, a lot of it, how bout we coop a bot?

sterile pebble
#

flex box

quartz kindle
#

make the width of the container smaller

sterile pebble
#

br

#

bro

#

u r asking to me?

opal plank
#

TIm

#

i have yet to code something with Tim

earnest phoenix
#

oh ok

sterile pebble
#

@earnest phoenix I can use flex box

#

you**

opal plank
#

Botum feat. Tim the CodingMan

quartz kindle
#

ive never coded with anyone

opal plank
#

first time for everything

sterile pebble
#

@earnest phoenix You gonna need it justify content space around and align items center

#

i think this gonna help u

wicked pivot
quartz kindle
#

presences are no longer enabled by default

#

you need to enable them in the dev portal

sterile pebble
#

guys, i`m new in this discord world

#

u do this for cash or fun

#

?

wicked pivot
#

really ?

opal plank
#

im gonna scream if this bot gets more than 75 servers, legit, 50% of the things im adding on it are guild_presence reliant

quartz kindle
#

for fun and for challenge

wicked pivot
#

I don't understand why they did that

opal plank
#

for fun

sterile pebble
#

i like to dev my bot

opal plank
#

if you going into discord bots to get money, sorry to breakk it to you, not happening

quartz kindle
#

although if your bot gets big enought, you can monetize it

sterile pebble
#

is really fun

quartz kindle
#

i added premium features to mine at around 1000-1500 guilds

sterile pebble
#

can i see ur bot

#

?

quartz kindle
#

sure

opal plank
#

i can probably live share my bot once it gets somewhat completed, just dont want anyone yoinking the idea rght away, it falls under unique bot

tribal blade
#

What

#

Hjonk

#

Oh that’s what this server is

earnest phoenix
#

?

opal plank
#

3 unique bots for the collection, git rekt bot community with ya oversaturated common bots

tribal blade
#

Sorry I have no boys

#

Bots

earnest phoenix
#

oh

sterile pebble
#

@quartz kindle
what is the name

#

of bot

#

?

quartz kindle
#

name is astrobot

sterile pebble
#

i found it

earnest phoenix
#

Hey guys, i just noticed my bot turns off every time it receives a DM, well if there's a command in the dm, could anyone help me with making the bot ignoring dm messages?

opal plank
#

i wonder how against TOS the shit im making is tbh

#

not discord's

quartz kindle
#

@earnest phoenix check if the message came from a dm channel, if it did, return

#

most libraries have a way to check channel type

#

for example in discord.js it would be if(message.channel.type === "dm") return

opal plank
#

hmmm....

#

im wondering if what im doing is stupid or smart

#

time to ask tim

#

@quartz kindle

earnest phoenix
#

for example in discord.js it would be if(message.channel.type === "dm") return
@quartz kindle thanks

opal plank
#

how smart is it to make maps with objects just for easy chganging them?

#

like
map.set(123, {bool: true});

so then i can change obj.bool = false
rather than simply declaring it as true/false raw values

solemn latch
#

isnt djs mostly just mapped objects

opal plank
#

object referencing

dreamy thistle
#

anyone knows how to make a message counter with a database?

#

for expressions like "hello" and then the bot identifies how many times you tiped it

sterile pebble
#

@quartz kindle thanks
@earnest phoenix u can do it with includes too

#

To catch every dm word

#

btw

dreamy thistle
#

I can't manage to detect the message

proper bolt
#

im working on adding a music module to my bot, whats the best way to do youtube search?

#

youtube api limits are pretty small

sterile pebble
#

if(message.channel.type.includes('dm')) // do stufs

#

im working on adding a music module to my bot, whats the best way to do youtube search?
@proper bolt Search about DisTube

#

Wait a sec

dreamy thistle
#

ty

sterile pebble
proper bolt
#

i already have my commands made

#

i dont want some prebuilt discord module

sterile pebble
#

you can just take the func man

proper bolt
#

ill just use what they use for search

#

yeah

sterile pebble
#

your command is a if statement

#

dosent matter

proper bolt
#

im guessing its just cheerio

sterile pebble
#

take a look into

#

is easy to manage

proper bolt
quartz kindle
#

is youtube-dl still borked?

proper bolt
#

like taken down?

blissful coral
#

Think so

proper bolt
#

yea it is

blissful coral
proper bolt
#

github CEO tweeted something about it

quartz kindle
#

what did he say?

drifting spruce
#

hey can someone help me on how to get images in the bots description

quartz kindle
#

@drifting spruce either upload them somewhere like imgur and then link them in the description
or convert them to base64 and embed them in the description

drifting spruce
#

ok thanks

proper bolt
#

they said they were working on getting it back

#

removing some part of it in compliance with RIAA iirc

slender wagon
#

is there a way i can get a discord username and only use one letter of it or just like seperate the letters??

opal plank
#

wot?

proper bolt
#

like turn Grainger into an array of letters?

slender wagon
#

yeah

proper bolt
#

if its js

#

then

#

.split('')

opal plank
#

actually i think i can 300iq this

#

one sec

slender wagon
#
 h4.text-center #{user.username} is cool! 
.word.text-center
  span M
  span A
  span N
  span G
  span U
``` it is actually pug and at the span i want each letter
proper bolt
opal plank
#

im a genius

#

destructuring ftw

#

just do js [...'string here']

#

see? this is what i mean, sometimes i can be smart, but sometimes, i do some stupid fucking shit

sterile pebble
#

Not sending nothing.
@earnest phoenix Omg, my eyezzzz

proper bolt
#

thats not that readable tho

opal plank
#

who cares about redable? destructuring best

sterile pebble
#

how can u dev in white board man?

opal plank
#

looks fancy

#

shows you know about js

proper bolt
#

if you are working with others

#

readability matters

opal plank
#

if they dont know about destructuring, sorry, they shouldnt be coding

sterile pebble
#

yeah, but i`m talk about dev

proper bolt
#

if someone isnt familiar with es6+

sterile pebble
#

sooooo

#

u don`t need to be ignorant dude

opal plank
#

i gave you another option

#

take it as you will

sterile pebble
#

everybody here is talking about dev, but sometimes is about ide`s and projects dude

#

lol

#

is not stackoverflow xD

quartz kindle
#

"not sending nothing" is a double negative which implies a positive

sterile pebble
#

@quartz kindle Can i ask something?

#

You know about requisitions inside discord.js

#

?

quartz kindle
#

requisitions? wdym

sterile pebble
#

Like, i want to take wirte a word

#

like "example"

#

and search a gif named example

drifting spruce
#

how would you get a link to an image from your pc

sterile pebble
#

Actually i can do it, but only if i run it on localhost or i create a container and deploy in heroku

#

and the problem is

quartz kindle
#

@drifting spruce re-read what i said before

sterile pebble
#

i dont understand WHY docker works

quartz kindle
#

upload it or base64 it

drifting spruce
#

im kinda confused with imagur

quartz kindle
#

if you dont like imgur, try another website

sterile pebble
#

if i deploy my code in heroku, without be in a container, he can`t search by gifs

quartz kindle
#

there are many image hosting websites

#

just google for image hosting

drifting spruce
#

ok

quartz kindle
#

@sterile pebble lol wut

sterile pebble
#

yeah, exactly that i said

quartz kindle
#

you're doing a web search for gifs right?

sterile pebble
#

yeah

quartz kindle
#

with some module that uses http or node-fetch

#

then there should be no reason for it not to work

sterile pebble
#

the giphy npm

#

ok, but why works in container

#

i hijacked this shit? hahahahha

quartz kindle
#

any error? how exactly does it "not work"?

sterile pebble
#

actually works in heroku, as if there was an implant then make the code

opal plank
#

why is SDK so inconsisten? holy shit

solemn latch
#

who needs consistancy?

opal plank
#

fuck that

quartz kindle
#

which sdk

opal plank
#

for presence

quartz kindle
#

discord sdk?

opal plank
#

game sdk

#

yeah

quartz kindle
#

ah

sterile pebble
#

@quartz kindle
the problem for me is that I don’t understand why it’s working, it wasn’t supposed to work, as you said, it’s used http module

#

I understand why works in localhost

opal plank
#

this shit and bans/kicks on logs has to be the most inconsistent shit discord has

sterile pebble
#

But why it works on heroku only if it's in the container

#

?

sterile pebble
#

exactlyyy

#

hahaha

solemn latch
#

it works, why sucks so much

#

I am playing around with a game, and the physics are setup in a way that I have no idea why it works one way but not the other

sterile pebble
#

maybe i just hijacked this shit

#

so guys, if http requests not working on heruko, just docker.

#

but dont ask me why works

#

hahaha

blissful coral
#

Starring this shit

#

Literally me in a nutshell

rocky hearth
#

How do I remove all users from a reaction but one?

solemn latch
#

is the one the bot?

rocky hearth
#

yes

solemn latch
#

remove them all, then add the bots reaction again

rocky hearth
#

I too thought of that. But it will append the reaction to last

#

Can't I just filter it out?

solemn latch
#

I don't believe so.

rocky hearth
#

The best I can think of is to remove users with a loop

solemn latch
#

going to be api abuse

rocky hearth
#

hmm πŸ€”

solemn latch
#

plus, if theres more then a couple hundred it could take awhile

opal plank
#

@quartz kindle do you happen to know if d.js would screech if i were to randomly add emitters onto it? Like, theres no errors but i feel like it cant be that simple. I know im doing dum dum stuffz

#

like, legit just adding client.on('lol_test', 'heheh') and a client.on('lol_test', () => {}) somewhere

quartz kindle
#

sure, you can do that no problem

rocky hearth
#

reaction.users.remove() vs reaction.remove()?

quartz kindle
#
client.on("bla", hue => console.log(hue)) // huehuehue

client.emit("bla","huehuehue")
#

@rocky hearth first removes a single user from a reaction, second removes the entire reaction

rocky hearth
#

to remove the single user, the para shouldn't be optional

opal plank
#

okay perfect

#

cuz im doing that but it feels wrong to just hack it

quartz kindle
#

i did that before

#

with djslight v2

#

it had a built in command handler, that emmited commands as events

#

client.on("/help", msg => {})

opal plank
#

perfect then

#

cuz before i used to have my own emitters since i knew i wasnt fucking with anything

solemn latch
#

I always wondered about doing commands like that

opal plank
#

specially cuz i have routers, like in the twitch ddos project

#

so idk if it might interfere

quartz kindle
#

as long as you dont emit an existing event its fine

opal plank
#

perfect then

#

hehehehe

#

time to abuse more stuff

quartz kindle
#

abuser smh

opal plank
boreal iron
#

Im sure there are humans out there wanna be abused

misty sigil
#

stop

boreal iron
#

lmao

misty sigil
#

stop ddosing twitch

#

please

opal plank
#

you cant make me

misty sigil
#

ugh fine

opal plank
#

enjoy laggy stream!

#

speaking of stream, i think i accidently killed my bot's stream for the past week and never bothered to put it back on

#

oh well

#

shame

quartz kindle
#

why do people keep making event emitter libraries smh

opal plank
#

i need 2 though

#

im covered

#

one router and one for the user to use

#

lel

#

there we go

#

works fine, yay

#

presence is annoying to play with

#

its so inconsistent

#

if theres no trigger it doesnt update

#

even though it should

sharp thicket
#

Hi

#

is there a way to use like in a discord embed footer?

#

likle

#

like

#

.setFooter("check discord community guidelines here")

#

but that won't work so what do i do?

quartz kindle
#

it only accepts an icon, not a link

#

if doesnt work, then there is not much you can do

blissful coral
#

How can I set a constant for all my files through one file?

#

Or is that not possible

#

Don't think so but making sure