#development

1 messages · Page 1164 of 1

restive willow
#

yeah, I have message_id, but that's just the ID - how would I interact with that as an actual Message object

slender thistle
#

You'd have to fetch the message manually

restive willow
#

fetch from where tho lol I don't have a ctx

solemn latch
#

i should have done the privacy policy stuff when everyone was doing it a few months back

#

🤔

slender thistle
#

got a channel_id property for the payload?

restive willow
#

yeah

faint prism
#

Are they similar to json?
@still merlin Well serializing an object to JSON is usually okay, unless you are doing it a lot and misusing it as a database

restive furnace
#

its not hard even woo, just say what you store and what you dont

slender thistle
#

get_channel(channel_id).fetch_message(message_id)

restive willow
#

I'll give that a go, thanks

slender thistle
#

There's the option of using on_reaction_add that has actual objects but that would rely on caching

#

though I assume that won't be very helpful in your case?

earnest phoenix
#

S@slender thistle

#

Fast dm pls

restive willow
#

yeah, it's awkward but I need to use on_raw_reaction_add, it's one of those reaction role things

slender thistle
#

Why don't you just DM me the issue instead of saying "need help"

#

ah, makes sense

restive willow
#

thanks for the help

slender thistle
#

👍

scenic kelp
slender thistle
sinful lotus
#

didnt notice the side bar

slate oyster
#

Me rewriting my bot, but with difficulty on hardcore
I didn't think it would be this hard to support two chat platforms at once
But I'm literally making 1,000,000 interfaces

#

I have an entire source folder dedicated to interfaces
2 source folders dedicated to filling in those interfaces
And another source folder with quite a few more interfaces

#

And what's worse, the chat platforms have different features, so I have to do some awkward stuff

earnest phoenix
#

@gleaming glen ben muzik açtığımda bot ses kanalına gelipp gidiyor

viral iris
#

how to make code with hash ?

#

like check it with hash

quartz kindle
#

what do you want to use hashes for?

solemn latch
#

so,
user ID's stored with guild ID's isnt personally identifiable information, right?

earnest phoenix
#

Does anyone know how to embed a video?

#

In js

solemn latch
#

like on a webpage?

earnest phoenix
#

In a message

#

For my discord bot

solemn latch
#

oh, for a bot.
what lib?

earnest phoenix
#

discord.js

sharp nimbus
#

use the messageembed there you can set a link

earnest phoenix
#

I’ll try .setLink

sharp nimbus
#

ähm sorry wait.. maybe i think wrong. normal message or MessageEmbed?

earnest phoenix
#

Message embed

quartz kindle
#

pretty sure you use setImage for that

sharp nimbus
#

i think so.

earnest phoenix
#

Ok

woven sundial
#

Hi everyone, what's the best alternative to request package ?

sharp nimbus
#

i think i have removed it. but you can set image. maybe that works

quartz kindle
#

got bent node-fetch axios are all good

solemn latch
#

got bent m8

restive furnace
#

or make your own :)

sharp nimbus
#

heccing: try .setImage('yoururl')

woven sundial
#

Thanks Tim

thin tapir
sharp nimbus
#

if it does not work try youtube lib

#

maybe you have installed a special syntacs highlighting

thin tapir
#

it's stock vd

#

vs*

#

nothing extra

sharp nimbus
#

im using VSC, VS ist killing my data 😄 vsc ist confusing to find anything. but it should be the same interface system...just wait

thin tapir
steel heath
#

wtf is that string

thin tapir
#

I'll show u kek

sharp nimbus
earnest phoenix
#

that's some ugly ass code

thin tapir
#

thx made it myself 🙂

glass wren
#

do anyone knows how to take a screenshot a url with node js

earnest phoenix
#

you're transforming the string every single if check, transform it outside and then use Contains on that

opaque eagle
#

@glass wren check out puppeteer on npm

glass wren
#

ok thnx

#

i will

restive furnace
#

I'll show u kek
ewww no switch case

glossy elk
#

any good frameworks

#

for discord.js

#

something new

restive furnace
#

akairo is k

glossy elk
#

ssomething not popular

restive furnace
#

axoncore, but it is eris, and its still pretty popular

#

oh wait it supports d.js too

earnest phoenix
#

<@&304313580025544704> 2 boost can i get bot verfy

modern sable
#

-atmods @earnest phoenix

gilded plankBOT
#

@earnest phoenix

Please do not mention (ping) more than one or two moderators for help, unless there is an emergency.

Here are some examples of emergencies:

  • Raids / Multiple members mass spamming.
  • Severe disruption of Discord's ToS (NSFW content, etc)
  • Anything that requires more than 2 moderators to handle.
quartz kindle
#

Lol

modern sable
#

@earnest phoenix Bot approval takes 4+ weeks, boosting the server does not let you skip queue

misty sigil
#

broh broh

earnest phoenix
#

hm ok

restive furnace
#

how many seconds since last at mods?

#

3

misty sigil
#

like 30

earnest phoenix
#

why is the role even pingable

karmic compass
#

can anyone help me figure out how to grab a specific section of an api?

[
  {
   (not needed)
  },
  {
    (not needed)
  },
  {
    (not needed)
  },
  {
    profile_id: 'c531ad68a12a428e9593a4f65b3b3b83',
    members: {
     (not needed)
    },
    cute_name: 'Lime',
    banking: { balance: 0.17180613847449422, transactions: [Array] }
  }
]

i want to grab "balance" btw
what i'm using to get that is obj["profiles"]

earnest phoenix
#

just gives idiots something to be idiotic about lol

misty sigil
#

for emergencies

earnest phoenix
#

has there even been a need for it, a case where it had to be used lol?

slender thistle
#

Occasionally and surprisingly

misty sigil
#

tell us stories zoomeyes

#

i want to grab "balance" btw
what i'm using to get that is obj["profiles"]
@karmic compass banking.balance?

karmic compass
#

i need to get to that last object tho

earnest phoenix
#

@karmic compass As that returns an array, in your case it would be js Array[3]

misty sigil
#

thanks voltrex

karmic compass
#

ok

earnest phoenix
#

Arrays has an index which starts with 0

#

First object is 0 then goes on

karmic compass
#

so obj["profiles"].____.banking.balance

#

do i put Array[3] in the _s?

earnest phoenix
#

What does return that array?

karmic compass
#

?

earnest phoenix
#
obj["profiles"]```?
#

That thing you sent, what did you do for them to come up?

#

That?

karmic compass
#

yes

glossy elk
#

axoncore, but it is eris, and its still pretty popular
@restive furnace anything else

#

any other good frameworks

earnest phoenix
#

@karmic compass js obj["profiles"][3].banking.balance;

karmic compass
#

oh ok

#

hey that works! thank you

glossy elk
#

voltrex

#

do u know any known frameworks

#

well not known

#

but good

earnest phoenix
#

For?

solemn latch
#

f, wasnt scrolled

#

lol

karmic compass
#

referencing my previous question...```json
{
profiles: {
'743e2f761ad54ff6a2b6538f2dde8d40': {
(not needed)
},
'7ff280ba415c483bbe3a5d44e8428d33': {
(not needed)
},
c531ad68a12a428e9593a4f65b3b3b83: {
profile_id: 'c531ad68a12a428e9593a4f65b3b3b83',
cute_name: 'Lime',
current: true,
last_save: 1597741871444,
raw: [Object],
items: [Object],
data: [Object] <----
}
}
}

i used obj this time, but obj.profiles is how i get data out of [Object]
pure lion
#

profiles.data?

karmic compass
#

well there are multiple objects

#

mulitple data:

pure lion
#

:l

#

show

karmic compass
#

i want to go to profiles, to the last one on the bottom, and then to data

modest crane
#

...["profiles"]["c531ad68a12a428e9593a4f65b3b3b83"].data ?

karmic compass
#

hmm

#

good idea

earnest phoenix
pure lion
#

@karmic compass are those IDs generated each time?

karmic compass
#

no

pure lion
karmic compass
#

they're "profile ids"

earnest phoenix
#

oh ok

karmic compass
#

or what the api i'm using classifies each information

earnest phoenix
#

thanks @pure lion

pure lion
#

ok then it should be fine if you get the profile ID first

#

np jari

quartz kindle
#

depends on which library you're using

#

some libraries have different functions for returning a single item or multiple items

earnest phoenix
#

SQLite

quartz kindle
earnest phoenix
#

Oh sweet, I'll go try

#

hi

light pine
#

sql.get only shows the first element

woven sundial
#
const getT = bent('https://images.netheberg.fr')
      let t1 = await getI('/json.api')
      if(!t1.statusCode){
        var t = ":x:"
      }else{
      let t2 =  t1.statusCode
      if(t2 =="200"){
          var t = ":white_check_mark:"
      }else{
          var t = ":x:"
      }
    }```
returns me 
```(node:4357) UnhandledPromiseRejectionWarning: StatusError: Not Found```
I would like that if there is no StatusError, the var t is equal to ✅
why does it not work ?
earnest phoenix
#

@light pine try .all

#

Read the error

pure lion
#

what is a bent

dire obsidian
pure lion
#

im going to be sick

dire obsidian
#

.-. sleep bro

pure lion
#

no

#

its 8pm

#

you cant make me sledepeqwg

dire obsidian
#

.-. i sleep at 7am

knotty steeple
#

yeet yeet people please don't make ur sql queries vulnerable to injection

dire obsidian
#

who the CENSORED here use php

solemn latch
#

sql injection, fun stuff pandasad

misty sigil
#

yeet yeet people please don't make ur sql queries vulnerable to injection
good advice

knotty steeple
#

Anyone have any knowledge of using SQL? I'm trying to find a blacklisted word from sql.get(`SELECT * FROM blacklistedWords WHERE id ="${message.guild.id}"`) but it just notices the first word of the database. How can I make it search through each row?
@earnest phoenix really hope u don't do things like this anywhere else

solemn latch
#

i was supposed to not do anything programming today.
added 5 new commands KEKW

misty sigil
solemn latch
#

normally i add like one every few weeks

earnest phoenix
#

@earnest phoenix really hope u don't do things like this anywhere else
@knotty steeple What’s wrong with it fastrun

misty sigil
#

sql injection

earnest phoenix
#

SQL injection with the guild id

#

you must be joking

quartz kindle
#

of course nothing is gonna happen

#

but if they did it like this here, perhaps they did it the same way elsewhere

earnest phoenix
#

true

#

but personally i wouldnt bother sql inject proofing such a statement

ionic dawn
#

just see my bot offline

#

And when i turn it on again I see someone traying to kill him by spamming stuff

solemn latch
#

f

ionic dawn
#

Time to add any sort of slowmode or so... or spam detector to block de user idk

solemn latch
#

i have the normal cooldown, then i have cooldowns on my cooldown message

#

technically, my bots still very abusable. but until its an issue, i dont really care tbh.

modest smelt
#

can someone help me code my bot to have a customizable prefix
on discord.py

#

can someone help me code my bot to have a customizable prefix
on discord.py

#

pls

solemn latch
#

🤔

earnest phoenix
solemn latch
#

you only really have to worry about sql injection where users have control

earnest phoenix
#

Yeah

solemn latch
modest smelt
#

can someone help me code my bot to have a customizable prefix
on discord.py

earnest phoenix
#

@solemn latch Ooh ok]

#

Only time I use it is for autorole, or checking to see whether user has a certain embed colour KEEK

#

But I guess autorole might be breachable idk

#

Know nothing of the sort

modest smelt
#

does someone know how to get an IP adress or a host from a remote computer

solemn latch
#

a vps?

modest smelt
#

wdym

#

does someone know how to get an IP adress or a host from a remote computer

solemn latch
#

lol

#

just copy pasting your question doesnt inform me any

earnest phoenix
#

an RDP?

modest smelt
#

wdym vps?

earnest phoenix
#

Virtual private server

solemn latch
#

is it a vps? a machine you have control over? more context is needed

modest smelt
#

i have no clue what dat means

ionic dawn
#

VPS its a VIrtual Privated Server

#

its a server where you can run pretty much everything, apache servers, bots, any kind of game server etc

#

its like having another pc in any world location

solemn latch
#

^

ionic dawn
#

People used to have any kind of linux dist with only de prompt so the can run whatever they want there

earnest phoenix
#

how i can make

4.8968925 to 4.8
solemn latch
#

js?

quartz kindle
#

Math.floor() in js

earnest phoenix
#

ye

#

ok thx

quartz kindle
#

or .toFixed(1)

solemn latch
#

^

ionic dawn
#

that dsnt "round" the number right?

#

its just a decimal cutter

earnest phoenix
sonic lodge
#

.toFixed does roudn it

earnest phoenix
#

it is not what i mean

quartz kindle
#

dafuq

ionic dawn
#

Like, this 4.89 should look like this 4.9

earnest phoenix
#

4.92423 to 4.9

sonic lodge
#

it rounds the number

earnest phoenix
#

:0

ionic dawn
#

yea

earnest phoenix
#

i am dumb

#

ye

solemn latch
#

is it .toprecision?

ionic dawn
#

oh okay, just askin

solemn latch
#

oop

#

nope

sonic lodge
#

i think that also rounds the number lol

solemn latch
quartz kindle
#

lmao js pls

#

anyway

sonic lodge
#

o o f

quartz kindle
#

just do this

#

Math.floor(n * 10) / 10

solemn latch
#

🤔

ionic dawn
earnest phoenix
#

Lol

white drum
#

Could this be causing a memory leak?

let i = 0;
setInterval(() => {
	let activities = [ `${config.prefix}help`, `${bot.guilds.cache.size} servers!`, `${bot.users.cache.size} users!` ];
	bot.user.setActivity(`${activities[i++ % activities.length]}`, { type: "WATCHING"});
}, 10000)
#

This is how I get my constantly changing status

earnest phoenix
#

a mem leak? yes
hitting a ratelimit? yes

white drum
#

Wdym?

earnest phoenix
#

you're changing it too often

white drum
#

10 seconds

earnest phoenix
#

15.5s is the absolute minimum iirc

white drum
#

For Discord?

misty sigil
#

I’d set it at 10 minutes

#

just to be safe

white drum
#

That's way to slow

worthy glacier
#

How do i use cloudscraper to get images from google

white drum
#

20 seconds?

misty sigil
#

what

earnest phoenix
#

@worthy glacier scrape from duckduckgo instead

worthy glacier
#

or at lesat not get my queries flagged as a bot

earnest phoenix
#

google does not allow scraping

white drum
#

But, how is that causing my memory leak?

worthy glacier
#

instead of dogpile?

misty sigil
#

10 minutes is more than enough for basic users, some servers, and a prefix

solemn latch
#

who do you think is looking at your bots status for longer than a few seconds

#

🤔

#

no ones going to see it changing

white drum
#

Debatable

earnest phoenix
#

you're creating a new array on every interval run, not sure how the JS GC works however it might not be causing a mem leak because the array gets GC'd

white drum
#

What hmm

#

It does refresh

#

By that

misty sigil
#

make the array outside

sonic lodge
#

you're making a new array each time it runs

misty sigil
#

or else it might do a leak

white drum
#

I mean when it gets back around to showing the server's/users if there is a new user or server it updates

misty sigil
#

and it’s gonna use more memory

#

and more

white drum
#

And more

earnest phoenix
#
(250 / 60).split(".")

How i can fix this function

#

the strings are going to be static in the array though, providing a count that isn't realtime

#

250 / 60 = 4.11

sonic lodge
#

toString() first

#

4.11.toString().split('.')

earnest phoenix
#

ok

#

the world would be a much better place if people would use even a little bit of common sense

white drum
#

...

worthy glacier
#
var options = {
  url: "https://duckduckgo.com/?q=" + search,
  method: "GET",
  headers: {
    'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like     Gecko) Chrome/73.0.3683.86 Safari/537.36',
    'Accept':     'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',
  }
};
#

this should work for scraping from duckduckgo right?

earnest phoenix
#

i dont think you even need to set the headers

#

but

#

try it and see

#

duckduckgo allows and promotes scraping

quartz kindle
#

how is 4.11.toString() even valid wtf

#

js pls

misty sigil
#

js broke

#

try later

sonic lodge
#

@quartz kindle i corrected it to (4.11), then tried it in the console, and was understandably surprised

quartz kindle
misty sigil
#

Bruh

worthy glacier
#

@earnest phoenix it keeps returning [] as the url

#

var search is my args

#

but spliced

earnest phoenix
#

I have made an embed message but the bot does not respond when I put the prefix, what do I do?

#

have a mental breakdown

#

the bot?

sonic lodge
#

?

worthy glacier
#

what does it mean when i am trying to scrape a link and it returns url as []

#

does it mean it wasnt able to get a link

earnest phoenix
#

it means that you're doing something wrong

worthy glacier
#
module.exports = {
    name: 'image',
    aliases: ['isearch'],
    description: 'Searches for an image.',
    cooldown: '5',
    usage: '[keywords]',
    execute(message, args) {
        // Extract search query from message
        var search = args.slice().join(" ");

        var options = {
            url: "https://duckduckgo.com/?q=" + search,
            method: "GET",
        };

        request.get(options, function(error, response, responseBody) {
            if (error) console.log(error);
        
            // Extract image URLs from responseBody using cheerio
            $ = cheerio.load(responseBody);

            var links = $(".image a.link");
            var urls = new Array(links.length).fill(0).map((v, i) => links.eq(i).attr("href"));
            var pick = urls[Math.floor(Math.random() * urls.length)];
            console.log(urls);
            if (!urls.length) return;

            
            let embed = new Discord.MessageEmbed();
            embed.setTitle(`Image search result for '${search}'`);
            embed.setImage(pick)
            message.channels.send(embed);
        });
    },
};
earnest phoenix
#
const client = new Client();

    client.on("message" , message =>{
      if(message.content === ("-embed")){
        const embed = new MessageEmbed()
        .setTitle("MENSAJE EMBED")
        .setAuthor(message.member.displayName, message.author.displayAvatarURL())
        .setColor(0x456EB6);
        message.channel.send(embed);
        
      }
    });```
#

it returns the js version by default iirc

#

i think you have to force html version to scrape it

#

sec

worthy glacier
#

@earnest phoenix const embed = new *Discord.*messageEmbed()

sonic lodge
#

@earnest phoenix is that the entirety of your code

earnest phoenix
#

@worthy glacier ^

worthy glacier
#

ah ok

earnest phoenix
ionic dawn
#

cheerio CBGoodOlRun

worthy glacier
#

js url: "https://html.duckduckgo.com/?q=" + search,

earnest phoenix
#

you forgot /html/

worthy glacier
#

changed it to this and still gets []

earnest phoenix
#

it's something wrong with your code eitherway

#

CURLing works

worthy glacier
#

hmm that didnt work either

earnest phoenix
#

like i said

#

it's something wrong with your code

#

still not answering me my bot

sonic lodge
#

@earnest phoenix is that the entirety of your code

earnest phoenix
#

-+

sonic lodge
#

what

earnest phoenix
#

sorry

ionic dawn
#

@earnest phoenix pastebin the whole thing

earnest phoenix
#

pastebin?

sonic lodge
#

place your code into pastebin

ionic dawn
#

Somewhere we can read it properly

earnest phoenix
#

but, the code I put it right but it doesn't answer me

sonic lodge
#

then your code must be wrong somewhere

ionic dawn
#

The isnt right

earnest phoenix
#
      if(message.content === ("-embed")){
        const embed = new MessageEmbed()
        .setTitle("MENSAJE EMBED")
        .setAuthor(message.member.displayName, message.author.displayAvatarURL())
        .setColor(0x456EB6);
        message.channel.send(embed);
        ```
#

have any error?

ionic dawn
#

new Discord.MessageEmbed()

sonic lodge
#

show all the code

ionic dawn
#

Even the token CBGoodOlRun

earnest phoenix
#

thanks

ionic dawn
#

And shouldnt it be startsWith?

#

message content is not the good wat

#

way*

earnest phoenix
#

why?

ionic dawn
#

You can do bla bla bla -embed bla bla and will still showing the thing

sonic lodge
#

no, his code checks if the message content is just straight -embed, not anything else

#

Discord.MessageEmbed should also be unnecessary because of the line const { Client, MessageEmbed } = require("discord.js"); at the top

earnest phoenix
#

aaa ok

ionic dawn
#

mb then Nice

earnest phoenix
#
const client = new Client();```
glossy elk
#

Um how do i create guilds

#

in v12

sonic lodge
sinful idol
#

i have play command on my bot but doesnt work in this server

glossy elk
#

also

#

is it

#

message.guild.channels.cache.create

#

or

#

message.guild.channels.create

sinful idol
#

@glossy elk if you asking v12 " message.guild.channels.cache.create " is worth

glossy elk
#

wait

#

why im

#

no its not cache

#

why im cacheing it

sinful idol
golden condor
#

It should be

#

message.guild.channels.create

sinful idol
#

@golden condor is my problem

golden condor
#

o

sinful idol
#

play command and join command doesnt working good

golden condor
#

I don't understand

sinful idol
#

bot dont join channel

golden condor
#

What you mean by that

sinful idol
#

look i have music bot and now have some problems in play command also join if i do " b!play song " bot give response as like screenshot but dont join my channel

golden condor
#

oh

sinful idol
#

how can i solve that you know or?

#

@golden condor i solved why have problem if i kick bot on channel with right click being bug but i dont know how can solve

polar temple
#

Could someone send me study material about the player in the bot, a kind of progress bar

opal plank
#

a what now?

#

'player in the bot'

#

@polar temple can you be more specific?

#

player as in music bot?

polar temple
#

Like this. This is beautiful

#

I’m Brazilian and don’t have any material on this, as always, I’m asking for help, material in English

quartz kindle
#

most likely unicode characters

opal plank
#

^^

#

either that or emotes, but im assuming its unicode too

#

probably just prepending the icon, then calculating where the ball should be, and finally appending the track length

#

that's what i assume its going on there

#

@quartz kindle , would you happen to know a good way to log bandwith usage on a node process?

oblique wasp
#

hey guys, im developing a simple bot for my friends, that sends our class codes depending on the day/hour, and im having a problem (first time ever coding something)

#

for some reason, the "miercoles" case isnt working, even thou is a copy paste from the previous code, the "martes" case. anyone who knows why this happens?

opal plank
#

you already doing a switch, why not use a siwtch nested?

#

OMG

#

no wait up

#

hooold up

#

nono bro

#

you only need 1 switch case

woven sundial
opal plank
#
switch (args[0]) {
  case 'miercules':
    switch (args[1]) {
      case '1':
        console.log(1);
        break;
    }
    break;
}
#

@oblique wasp

sharp thicket
#

how do i check if a channel is nsfw or not e.e

opal plank
#

you dont need to switch every case @oblique wasp

#

thats what cases are for

#

@sharp thicket which library?

oblique wasp
#

ooo

sharp thicket
#

discord.js

oblique wasp
#

that makes sense

#

xd

opal plank
#

channel has property nsfw in it

oblique wasp
#

thank you very much

opal plank
#

which is a bool

sharp thicket
#

so if i do

#

if(!message.channel.nsfw) return;

opal plank
#

correct

sharp thicket
#

yey

#

ty

opal plank
quartz kindle
#

@opal plank not sure if there is a good way to do it without using an external tool

#

have you checked npm?

opal plank
#

oof thats gonna fuck me up

#

yeah havent found anything useful

#

perhaps prometheus

#

but it seemed like a bitch to use

sharp thicket
#

uh also

#

i am making a marry command

#

but idk how to check what the user mentioned replied e.e

opal plank
#

trying to get a network usage tab but i need some way to insert it into database first

quartz kindle
#

if you want to measure the bandwidth of something you have control of, you can measure the data it sends and receives

opal plank
#

ive seen apps like NetworkLimiter which can measure that

quartz kindle
#

is it for a bot?

opal plank
#

but i havent found a way to input that into a db or log it

#

yes

quartz kindle
#

one way would be to hack the library's websocket and api handler to measure the size of data packets

eternal osprey
#

hey

sharp thicket
#

uh also
i am making a marry command
but idk how to check what the user mentioned replied e.e
someone plz

quartz kindle
#

and output them somewere

opal plank
#

problem with that is its only with one library

earnest phoenix
#

you can also just sniff packets

eternal osprey
#

how do i convert my calculated coordinates (long,lat) to kilometers?

opal plank
#

stuff like axios, twitchjs and other libs i would have to do the same

eternal osprey
#

i will create a passtebi

quartz kindle
#

not sure if there is a way to globally capture node's data

#

poerhaps you can... hmm

eternal osprey
opal plank
#

theres definetly apps that can do, but im not sure if any can output it

earnest phoenix
#

check out how wireshark works

opal plank
#

ive played with wireshark before

#

though can i output it somewhere?

earnest phoenix
#

not sure

opal plank
#

yeah thats the bit im struggling with

#

plenty of ways to monitor, but not to log it

sharp thicket
#

can anyone help please

quartz kindle
#

not sure if it would work, but you can try requiring the built in http/https/net modules before any other lib does, and replace them with a class extension, and then add listeners to that lmao

opal plank
#

hmmm

quartz kindle
#

thats basically what i do with some parts of discord.js

earnest phoenix
#

Man, I wish I had the patience to fuck with Grafana like that @opal plank

opal plank
#

lmao been having quite a bit of fun with it

#

turning into a dataphile

#

i might have to use prometheus

#

but it looks so complicated

earnest phoenix
#

I'm considering setting it up for my VPS, because I saw someone mention you can use it to track webserver resource usage, etc.

sharp thicket
#

can anyone help please
@sharp thicket noone :(

opal plank
#

resource usage is fine

#

you can output that directly from your code

sharp thicket
#

ok bye

opal plank
#

what is annoying is that theres CPU usage, MEMORY and a lot of other junk under process

#

but it doesnt log the total amount of bytes/sent recieved

#

would you look at that

#

does basically what you said lmao

#

it looks hard though

#

already lost my wits getting forever to run on Typescript

#

maybe tomorrow

earnest phoenix
#

i'm making a npm so i want to know how i get the __dirname but of the user

#

Just reinstalled Grafana & sat there for like 3 minutes wondering where tf it was installed

#

And then I remembered

regal jacinth
#

hello
so i made a website where the user have to login via discord so there is that code discord adds to my original url
so i use this code to get the user info like name , id and etc
so when i go to another page the code disappears and i can't get the info to display it in the new page
so i tried to store the info in a db but i can't define that this info belongs to this user (idk how to describe it) so i searched and i found that i can use something called cookies so i searched about cookies but i can't find how to use it in aiohttp , can someone pls help me? (ping me)

quartz kindle
#

@opal plank apparently there is process._getActiveRequests()

#

not sure what it does tho

opal plank
#

i might go prom route

#

sounds a lot less complicated

#

while being quite complicated

#

its weird

oblique wasp
#

hey guys so i fixed the previous problem and now the bot sends everything, however, when i type, for example, "pls martes 9", it sends everything that is labeled under "9", even the ones that arent case "martes"

quartz kindle
#

looking at the source code of prometheus libs for node gives you a good idea of what they do

#

@oblique wasp all switch cases need a break statement

#
switch() {
  case 1:
    bla
    break;
  case 2:
    bla
    break;
}
#

otherwise they continue into each other

oblique wasp
#

thank you, everythings works now!

opal plank
#

thats a fuckton of docs though

ionic dawn
#

Hi I just opened vs to add a cooldown at my commands and just saw that const talkedRecently = new Set();, how does it work?

quartz kindle
#

how does what work?

#

a Set?

opal plank
#

looks like an array tbh

quartz kindle
#

it basically is an array

#

but prevents duplicates

opal plank
#

i can see that being useful in some cases

#

never even heard of that tbh

placid iron
#

Also sets use less ram and they are speedy

earnest phoenix
#

Hello, i have one question
My numbers of users keep changing, and is there a way to map all guilds name with shards?
I'm using

shard#fetchClientValues('guilds.cache.size')

To get number of users

low shard
#

can i get help? pls

earnest phoenix
#

Maybe i can help you

low shard
#

i made a music bot , and i try to run the bot on my pc but when i start to play a song in the middle of the song the song stop idk why and i try to run my bot in glitch and its work good

#

?

#

i download ffmpeg

earnest phoenix
#

try npm i ffmpeg-binaries

low shard
#

i download it

#

@earnest phoenix you have more options

quartz kindle
#

@placid iron are you sure about that?

#

left is 999999 array items
right is 999999 set items

placid iron
#

On python at least then cry

quartz kindle
#

rip js

pale vessel
#

isn't set a unique map? instead of array

placid iron
#

I thought maybe it would be roughly the same

quartz kindle
#

yes

low shard
#

i made a music bot and i try to run the bot on my pc but when i start to play a song in the middle of the song the song stop idk why and i try to run my bot in glitch and its work good

#

help?

opal plank
#

shouldnt run bot on glitch to begin with

earnest phoenix
#

@wild valley

.longdescription .content {
background: #fff;
}
#

@earnest phoenix you have more options
@low shard hm no, i'm not doing music bots sry

low shard
#

👍

modest smelt
#
Reading package lists... Done

Building dependency tree       

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:



The following packages have unmet dependencies:

veil : Depends: wine

E: Unable to correct problems, you have held broken packages.
#

i tried installing veil but this is what comes up

#

do you know why?

quartz kindle
#

veil requires wine

#

and wine is not installed

modest smelt
#

do i have to install wine

#

so im basically running linux on virtual box

#

so im running this code on linux

#

so do i have to install wine on linux or on my main acc?

quartz kindle
#

wherever you're running veil

modest smelt
#

oh ok

#

thanq

#

also don't ask why i need this stuff

#

lmao

faint prism
#

@oblique wasp whatever your doing with that massive switch/case, I don't recommend that approach. It's probably be easier to create a day object with an integer and string property. Move all that data to that, and serialize it to json, or a database if you're going to be modifying the object collection's data. On startup just deserialize it into an object collection again. Then just search the day object collection by what you had in that switch/case/if. Don't hardcode all that text there. That's, pretty rough.

modest smelt
#

@quartz kindle can u help me install wine on linux

#

i tried installing through this
apt-get install wine64

#

this didn't work?

faint prism
#

Why didn't it work? @modest smelt

regal jacinth
#

hello
so i made a website where the user have to login via discord so there is that code discord adds to my original url
so i use this code to get the user info like name , id and etc
so when i go to another page the code disappears and i can't get the info to display it in the new page
so i tried to store the info in a db but i can't define that this info belongs to this user (idk how to describe it) so i searched and i found that i can use something called cookies so i searched about cookies but i can't find how to use it in aiohttp , can someone pls help me? (ping me)

modest smelt
#

um idk

#

im trying a different way that is working so far

faint prism
#

um what was the error?

#

To install a package you usually have to be a sudoer

modest smelt
#

yeahik

faint prism
#

Ie: run with sudo prefixing the command

modest smelt
#

what is the exact command?

#

sudo apt-get install wine64?

faint prism
#

If your error was that you didn't have permission, yes.

modest smelt
#
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine64 : Depends: libwine (= 5.0-4) but it is not going to be installed
          Recommends: wine32 (= 5.0-4)
E: Unable to correct problems, you have held broken packages.
low shard
#

i made a music bot and i try to run the bot on my pc but when i start to play a song in the middle of the song the song stop idk why and i try to run my bot in glitch and its work good
@low shard

modest smelt
#

@faint prism this was the error msg

#
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine64 : Depends: libwine (= 5.0-4) but it is not going to be installed
          Recommends: wine32 (= 5.0-4)
E: Unable to correct problems, you have held broken packages.
faint prism
#
sudo apt-get update -–fix-missing
sudo dpkg –-configure -a
sudo apt-get install -f.

Run those to fix broken packages

modest smelt
#

for the first command this is what happened:

#

for the second com, error:

#

Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
#

third worked:

faint prism
#

Try it again. Had to edit

modest smelt
#
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1446 not upgraded.
tacit goblet
#

Is there any free vps?

#

For discord bots

modest smelt
#

first command

faint prism
#

No. And that's an easy way to get your token shanghaied @tacit goblet

tacit goblet
#

K

#

Sad 😭

#

I wish there was

faint prism
#

Me too.
Nothing in life is free

modest smelt
#

@faint prism any other comms that may work?

#

@tacit goblet i use heroku to host

#

if u r interested?

faint prism
#

@modest smelt type the command, don't copy and paste

modest smelt
#

ok lemme try

tacit goblet
#

Ye same i used to but the whole dyno hours crap sucks

glossy elk
#

let message_link = message.content.split('!')[2]

#

there would split by ! 2 times

#

right

#

so

#

hi! my! name

#

so name would be the message_link

#

right?

modest smelt
#

@faint prism i typed everything by hand but it did wine --version but it said bash: wine: command not found

#

also here are what it said after each command:

#
Reading package lists... Done
#

first command

#

nothing after seccond com

#
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1446 not upgraded.
``` after third com
#

@faint prism

faint prism
#

Okay so try installing wine again

modest smelt
#

which com?

faint prism
#

The apt install wine one

modest smelt
#

sudo apt-get install wine64?

#

or without sudo

faint prism
#

You need sudo to install any programs with apt

modest smelt
#

ok

low shard
#

how i can get this

modest smelt
#
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine64 : Depends: libwine (= 5.0-4) but it is not going to be installed
          Recommends: wine32 (= 5.0-4)
E: Unable to correct problems, you have held broken packages.
faint prism
#

So install wine32 instead

modest smelt
#

ok

low shard
#

how i can get this
?

faint prism
#

how i can get this
@low shard by asking Google nicely

modest smelt
#
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine32:i386 : Depends: libc6:i386 (>= 2.28) but it is not going to be installed
               Depends: libwine:i386 (= 5.0-4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
#

@low shard by asking Google nicely
@faint prism lmao

low shard
#

LOL

modest smelt
#
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine32:i386 : Depends: libc6:i386 (>= 2.28) but it is not going to be installed
               Depends: libwine:i386 (= 5.0-4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

@modest smelt my thing is ded

#

after installing wine 32

#

without the space

quartz kindle
#

which linux are you using? ubuntu?

earnest phoenix
#

@opal plank Grafana has Discord & webhook support, wot

#

POGGERS

modest smelt
#

ubuntu 20.04

earnest phoenix
opal plank
#

@earnest phoenix discord, whatsapp, line, pretty much anything

faint prism
#

sudo apt install wine32 libc6:i386 libwine:i386 this assumes your running on an x86 processor

opal plank
#

all those alerts can be outputted to a fuckton of other services

#

even hangouts

#

and who the fuck uses that

quartz kindle
#

64 bit or 32 bit ?

modest smelt
#
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libc6:i386 : Depends: libgcc-s1:i386 but it is not going to be installed
 libwine:i386 : Depends: libfaudio0:i386 (>= 19.06.07) but it is not going to be installed
                Depends: libgphoto2-6:i386 (>= 2.5.10) but it is not going to be installed
                Depends: libxml2:i386 (>= 2.9.0) but it is not going to be installed
                Recommends: libgl1:i386 but it is not going to be installed
                Recommends: libglu1-mesa:i386 but it is not going to be installed or
                            libglu1:i386
                Recommends: libosmesa6:i386 (>= 10.2~) but it is not going to be installed
                Recommends: libsane:i386 (>= 1.0.24) but it is not going to be installed
                Recommends: libxslt1.1:i386 (>= 1.1.25) but it is not going to be installed
                Recommends: libgl1-mesa-dri:i386 but it is not going to be installed
                Recommends: libasound2-plugins:i386 but it is not going to be installed
                Recommends: gstreamer1.0-plugins-good:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
#

64 bit or 32 bit ?
@quartz kindle 64

earnest phoenix
#

Yeah, its nice

#

I got it setup to email me & @ me with a webhook in my server now

#

Feelsgood

quartz kindle
#

then according to the winehq website, there are a few things you need to do

opal plank
#

i might add webhook, i havent gotten to that bit yet

modest smelt
#

alright

#

lemme know TIM

quartz kindle
#

first run sudo dpkg --add-architecture i386

earnest phoenix
#

Its easier than any other site/service when it comes to Discord, lmao

quartz kindle
#

then run wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

earnest phoenix
#

They even have a notification option specifically labeled "Discord"

opal plank
#

i mean it shouldnt be that hard tbh

modest smelt
#

done

#

done

opal plank
#

i might even add it on my code rather than that

modest smelt
#

@quartz kindle both of them worked

opal plank
#

most of the events i need a trigger are already in the code

quartz kindle
#

then run sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/focal main'

opal plank
#

just store a webhook and send it when event is triggered

quartz kindle
#

then run sudo apt install --install-recommends winehq-stable

earnest phoenix
#

Ez pz

faint prism
#

ITT: @quartz kindle reads the install instructions for some software lol

quartz kindle
#

@_@

#

my damn touchpad is broken

modest smelt
#

lmao

#

all of them worked SO FAR

faint prism
#

I'd say spoonfeed but tbh Linux shell commands are daunting for the uninitiated :P

modest smelt
#

@quartz kindle anything next?

faint prism
#

Try running wine

#

Or type "wine" and press TAB twice to see some command options

modest smelt
#

i did wine TAB twice

#

and it made wine to winexe

faint prism
#

Nice

#

That means wine is an available command

#

Do that version command you did earlier

modest smelt
#

which com?

#

wine --version?

faint prism
#

Yes

modest smelt
#

it said bash: wine: command not found

faint prism
#

Oh you said it autocompleted to "winexe"

modest smelt
#

yes

faint prism
#

then run sudo apt install --install-recommends winehq-stable
@bobthefam you sure that worked?

modest smelt
#

what worked?

#
Building dependency tree       
Reading state information... Done
E: Unable to locate package winehq-stable
quartz kindle
#

so it didnt work lol

modest smelt
#

ya

#

😦

quartz kindle
#

if the package was not located that means the repository wasnt added correctly

faint prism
#

did you apt update after adding that repo source?

modest smelt
#

NO

#

sry for caps

faint prism
#

gotta do that lol

modest smelt
#

talking to someone else

#

so i do?

faint prism
#

sudo apt update

modest smelt
#

ok

modest smelt
#

and then i do the command up there?

faint prism
#

and make sure it doesn't error during installing, otherwise no "wine" will be installed lol

quartz kindle
#

try rerunning this sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'

faint prism
#

right, but @quartz kindle you have to apt update after adding a repo so see the new available packages

quartz kindle
#

ah true

#

so run that then run sudo apt update then sudo apt upgrade

#

then try installing again

faint prism
#

don't think the upgrade is necessary, but a good idea at some point. That will take a while since he had 1000+

modest smelt
#

try rerunning this sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
@quartz kindle Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 95, in <module> sp = SoftwareProperties(options=options) File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__ self.reload_sourceslist() File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist self.distro.get_sources(self.sourceslist) File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources (self.id, self.codename)) aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Kali/kali-rolling

faint prism
#

we assumed he was using Ubuntu

#

rip

#

he's using Kali

quartz kindle
#

he said he was

#

he said ubuntu 20

faint prism
#

That's kali-rolling right there lol

#

Why did you go with kali? @modest smelt

modest smelt
#

uh...

faint prism
#

_>

modest smelt
#

hacks?

quartz kindle
#

Lol

modest smelt
#

im trying to hack rn

#

im learning to do client attacks

#

so i need veil

faint prism
#

You don't need wine for whatever your doing

modest smelt
#

i do

faint prism
#

also, learn how to use bash. You'll need have advanced understanding of that to get anywhere with kali or linux dists in general.

source: I'm a InfoSec student

modest smelt
#

im trying to install veil

#

watch

faint prism
#

No

modest smelt
#

here see:

faint prism
#

You don't need veil, you can use MSFvenom. And this is starting to stray from bot development or what I'm comfortable giving advice with

modest smelt
#
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 veil : Depends: wine
E: Unable to correct problems, you have held broken packages.```
#

what is MSFvenom?

#

??

quartz kindle
#

how are you installing veil?

modest smelt
#

apt-get install veil

#

i tried doing sudo apt install veil

#

and sudo apt-get install veil

faint prism
#

also, did you just try following their instructions on their github?

modest smelt
#

am learning from udemy

#

not github

faint prism
dire obsidian
#

well guys how can i get my website ip?

faint prism
#

ping websitename.com

quartz kindle
#

you dont install veil from apt

#

you install it from git

ionic dawn
modest smelt
#

how to do that?

faint prism
#

it has the instructions in the link i sent

dire obsidian
#

yee, console dont say nothing abaut

modest smelt
#

@quartz kindle ?

quartz kindle
#

just follow these instructions

faint prism
#

And you better be ethical, or you'll end up in trouble with whatever you're trying to do with generating payloads
||doubt ||

modest smelt
#

thanq

#

lmao

#

yes

glossy elk
#

So something results to Like the message id then it puts a random > at the end

#

how do i remove that

#

oh wait i can use pop

faint prism
#

remove the char from the string?

glossy elk
#

wait nvm thats for an array

#

yes

faint prism
#

a string is an array of chars ||CS 101||

digital ibex
#

if i get into hacking, ethical hacking

dire obsidian
#

idk ill still using .github.io pages

digital ibex
#

i’ll do something retarded ik it

dire obsidian
#

i cant find my .tk web ip

glossy elk
#

@faint prism bruh

#

javascript

#

please

faint prism
#

@digital ibex You need to be very familiar with Comp sci to get into whatever InfoSec

digital ibex
#

idk what that means if im honest

glossy elk
#

i dont want to be spoonfed dumbass

honest perch
#

Infosec Is a shitshow rn

digital ibex
#

but yeah, im hackerman i big dev man ik everything dw

honest perch
#

Theres a lot of allegations

glossy elk
#

ill just use

glossy elk
#

replace

#

ill

#

just use

#

replace

faint prism
#

Theres a lot of allegations
@honest perch Remote working has led to a big uptick is cyber crime.
InfoSec has never been so important in the information age

honest perch
#

Not just that

#

Iirc there's been a lot of irl allegations

#

Haven't talked to the guy in a bit though

quartz kindle
#

social engineering is where true hacking lies these days

faint prism
#

social engineering is where true hacking lies these days
@quartz kindle Yeah, that and exploits against outdated services

glossy elk
#

how do i read a message embed description

#

when fetching a message

quartz kindle
#

message.embeds[0].description

glossy elk
#

k

#

thanks

modest smelt
#

Thanks @quartz kindle and @faint prism for helping me!!!!

#

veil is working now!

faint prism
#

Why do i feel like I'll regret it, lol

dire obsidian
#

anyone knows how get the ip of a .tk website?

modest smelt
#

Why do i feel like I'll regret it, lol
@faint prism lmao

quartz kindle
#

wdym ip of a tk website?

dire obsidian
quartz kindle
#

what are you trying to do?

faint prism
#

anyone knows how get the ip of a .tk website?
@dire obsidian If it's redirecting to another domain, you can't without pinging that domain. Otherwise ping websitename.tk

dire obsidian
#

.-.

quartz kindle
#

what are you trying to do?

dire obsidian
#

host

faint prism
#

get an IP of whatever is serving the website I guess

quartz kindle
#

host what?

dire obsidian
#

the website

quartz kindle
#

what website?

dire obsidian
quartz kindle
#

do you have a webserver?

#

where is the website hosted?

dire obsidian
#

the website isnt hosted

quartz kindle
#

then it has to be hosted first

dire obsidian
#

.-.

honest perch
#

social engineering is where true hacking lies these days
@quartz kindle yep, it requires a lot of knowledge

faint prism
dire obsidian
#

yep

faint prism
#

that domain may not be registered

dire obsidian
#

but the web is regitered

#

what

honest perch
#

What

#

@dire obsidian do you know how domains work?

dire obsidian
#

nooup

glossy elk
faint prism
#

okay, it is registered

dire obsidian
#

plz dont kill me

quartz kindle
#

do you want o learn how they work?

dire obsidian
#

yep

honest perch
#

Lesson with tim

quartz kindle
#

a domain is basically just a name that redirects to an ip address

glossy elk
#

^

#

and am i doing some thing wronng

quartz kindle
#

so that websites can actually have names instead of just IPs

glossy elk
#

because there is defintely an embed

faint prism
#

Domain (human readable) -> DNS Server (knows where the domain goes) -> IP address of server

dire obsidian
#

ThinkRotate hmmm, yes i think im understand this

quartz kindle
#

but before you can have a domain name for your website, you have to actually have a website, with html files, inside a webserver, which is a program that listens to requests from the internet and sends them your html files

glossy elk
#

how do i get the embeds of the message that has been fetched using message.fetch

dire obsidian
faint prism
#

check if a message.embeds length is greater than 0 before attempting to access it

glossy elk
#
      let daddy = message.fetch(message_link)
quartz kindle
#

so you want to connect a domain to a github pages website?

#

@glossy elk await

glossy elk
#

but its fetching the message that has been sent

#

not the message-

#

oh

#

im a fucking dumbass

dire obsidian
#

yep @quartz kindle

quartz kindle
#

did you go into your github settings and set a custom domain?

glossy elk
#

its still giving me the embeds of the message sent not the message fetched

quartz kindle
#

code?

dire obsidian
#

wait wait

modest smelt
#

@quartz kindle

#

the thing didn't work

#

this is the error

glossy elk
#
  let message_link = message.content.split('/')[6]
      message_link = message_link.replace('>', '')
      console.log(message_link)
      let daddy = await message.fetch(message_link)
      console.log(daddy)
      console.log(daddy.embeds[0])```
modest smelt
#

i ran the program again

glossy elk
modest smelt
#

i ran the /opt/Veil thing

#

but it didn't work

#

ran the /opt/Veil/config/setup.sh --force --silent

#

as well

faint prism
#

Please don't post twice

modest smelt
#

@quartz kindle

#

ok

quartz kindle
#

@glossy elk message.channel.messages.fetch()

glossy elk
#

and in the fetch()

#

i would put the id?

dire obsidian
quartz kindle
#

ok, now did you register this domain?

modest smelt
#

tim

#

??

quartz kindle
#

idk bob, check the veil github

dire obsidian
#

yep, i dont remember the page name, let me see

modest smelt
#

i did

#

i did exactly the same thing

#

idek y it didn't work

dire obsidian
quartz kindle
#

@dire obsidian go to freenom, login into your account and go to your domain DNS settings

dire obsidian
#

ok

glossy elk
#

how do i get a member off a mention

#

and does message.mentions also have the embed mentions

fluid basin
#

MessageMentions#members

glossy elk
#

in an embed?

fluid basin
#

I don't think so

dire obsidian
#

i think i find it

#

yep, freenom dns

quartz kindle
#

you need to change it to github dns

#

can you show a screenshot of your config?

glossy elk
#

how do i get mentions in an embed

dire obsidian
fluid basin
#

use regex on the fields that you need or the description

quartz kindle
#

@dire obsidian in the name put your domain

dire obsidian
#

yep

quartz kindle
#

then in target you need 4 different ip addresses

#

so create 4 of them, all with the same name, with these ips:

dire obsidian
#

hmmm

quartz kindle
#
185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153
#

it should be something like this

#

but with your domain instead of course

dire obsidian
#

ok

#

now?

glossy elk
#

Hey tim

#

How do I get a mention from an embed

dire obsidian
#

make it out of the embed

glossy elk
#

so embed[0].description.??

quartz kindle
#

now, if everything is correct, your domain should now point to your github page

#

it can take up to 24 hours for dns changes to be applied

dire obsidian
#

THANKS BROOOO

#

im new on this

quartz kindle
#

but usually it happens in a few minutes to about an hour

dire obsidian
#

(rl new)

#

okok

glossy elk
#

so can i

#

or can i not

quartz kindle
#

@glossy elk pretty sure embed mentions are not accounted for in message.mentions

#

but you can test

glossy elk
#

they are not

#

thats why im trying to somehow get mentions

#

in an embed

quartz kindle
#

you need to examine the description and each of its fields

glossy elk
#

I know its going to be in the description

quartz kindle
#

and check if the content contains a mention pattern

glossy elk
#

hm

#

whats a mention pattern

quartz kindle
#

mentions show up like this <@IDHERE>

glossy elk
#

and couldnt i just send the description to a channel as a message then check if the message has mentions

quartz kindle
#

sure

glossy elk
#

Would that work?

quartz kindle
#

kinda inefficient tho

#

but try it

glossy elk
#

Because there is a lot of ways

#

<@idhere> can mess up

#

actually i rather not do that i want something more efficient but i dont think <@ would be the best option

quartz kindle
#

then use regex or splits

glossy elk
#

i can just slice

#

right]

#

i saw this

quartz kindle
#

for example, a simple split trick: ```js
mention = description.split("<@")[1];
if(mention) {
mention = mention.split(">")[0].replace(/\D/g,"");
}

#

sure, there are many ways to do it

astral yoke
#

how would i learn html?

#

like

faint prism
#

w3

astral yoke
#

whats a good way to learn

#

free ofc

faint prism
astral yoke
#

ty

faint prism
#

best website out there

astral yoke
#

has a long side

#

of things

faint prism
#

yeah

#

and one says "Learn HTML"

woeful tendon
#

You can't use emotes in embed author field?

dire obsidian
#

i think if the user have a emote on his name, yes

#

but i think non nitro ones

woeful tendon
#

only unicode ones work btw

dire obsidian
earnest phoenix
#

get an SSL cert

#

you can buy one or get one from letsencrypt

dire obsidian
#

thx

#

wow, make websites is more hard than i think

fluid basin
#

theres always a start for everything

earnest phoenix
#

A lot goes into it. yee

dire obsidian
#

i add cloudfare xd

earnest phoenix
#

it isn't hard per se, you just need to have an understanding of how they work

fluid basin
#

yeah cloudflare also works

earnest phoenix
#

Cloudflare good uwu

dire obsidian
#

nicee, sorry for the spam btw

earnest phoenix
#

i think that in CS you get taught how they work, dns servers and shit like that, not sure though

dire obsidian
#

ah ok