#development
1 messages · Page 1164 of 1
You'd have to fetch the message manually
fetch from where tho lol I don't have a ctx
i should have done the privacy policy stuff when everyone was doing it a few months back
🤔
got a channel_id property for the payload?
yeah
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
its not hard even woo, just say what you store and what you dont
get_channel(channel_id).fetch_message(message_id)
I'll give that a go, thanks
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?
yeah, it's awkward but I need to use on_raw_reaction_add, it's one of those reaction role things
Why don't you just DM me the issue instead of saying "need help"
ah, makes sense
thanks for the help
👍
how did you end up in #development
#development gang
didnt notice the side bar
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
@gleaming glen ben muzik açtığımda bot ses kanalına gelipp gidiyor
what do you want to use hashes for?
so,
user ID's stored with guild ID's isnt personally identifiable information, right?
like on a webpage?
oh, for a bot.
what lib?
discord.js
use the messageembed there you can set a link
I’ll try .setLink
ähm sorry wait.. maybe i think wrong. normal message or MessageEmbed?
Message embed
pretty sure you use setImage for that
i think so.
Ok
Hi everyone, what's the best alternative to request package ?
i think i have removed it. but you can set image. maybe that works
got bent node-fetch axios are all good
got bent m8
or make your own :)
heccing: try .setImage('yoururl')
Thanks Tim
why is vs making {} and [] black how do i reset this
if it does not work try youtube lib
maybe you have installed a special syntacs highlighting
im using VSC, VS ist killing my data 😄 vsc ist confusing to find anything. but it should be the same interface system...just wait
restarted vs its normal now wtf
wtf is that string
https://code.visualstudio.com/docs/getstarted/themes#_customizing-a-color-theme
here you can change settings
that's some ugly ass code
do anyone knows how to take a screenshot a url with node js
you're transforming the string every single if check, transform it outside and then use Contains on that
@glass wren check out puppeteer on npm
I'll show u kek
ewww no switch case
akairo is k
ssomething not popular
axoncore, but it is eris, and its still pretty popular
oh wait it supports d.js too
<@&304313580025544704> 2 boost can i get bot verfy
-atmods @earnest phoenix
@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.
Lol
@earnest phoenix Bot approval takes 4+ weeks, boosting the server does not let you skip queue
broh 
hm ok
like 30
why is the role even pingable
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"]
just gives idiots something to be idiotic about lol
for emergencies
has there even been a need for it, a case where it had to be used lol?
Occasionally and surprisingly
tell us stories 
i want to grab "balance" btw
what i'm using to get that is obj["profiles"]
@karmic compass banking.balance?
i need to get to that last object tho
@karmic compass As that returns an array, in your case it would be js Array[3]
thanks voltrex
ok
What does return that array?
?
obj["profiles"]```?
That thing you sent, what did you do for them to come up?
That?
yes
axoncore, but it is eris, and its still pretty popular
@restive furnace anything else
any other good frameworks
@karmic compass js obj["profiles"][3].banking.balance;
For?
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]
profiles.data?
...["profiles"]["c531ad68a12a428e9593a4f65b3b3b83"].data ?
@karmic compass are those IDs generated each time?
no
@earnest phoenix #topgg-api
they're "profile ids"
oh ok
or what the api i'm using classifies each information
thanks @pure lion
depends on which library you're using
some libraries have different functions for returning a single item or multiple items
SQLite
sql.get only shows the first element
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 ?
what is a bent
@pure lion css 
im going to be sick
.-. sleep bro
.-. i sleep at 7am
yeet yeet people please don't make ur sql queries vulnerable to injection
who the CENSORED here use php
sql injection, fun stuff 
yeet yeet people please don't make ur sql queries vulnerable to injection
good advice
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
i was supposed to not do anything programming today.
added 5 new commands 

normally i add like one every few weeks
@earnest phoenix really hope u don't do things like this anywhere else
@knotty steeple What’s wrong with it
sql injection
of course nothing is gonna happen
but if they did it like this here, perhaps they did it the same way elsewhere
just see my bot offline
And when i turn it on again I see someone traying to kill him by spamming stuff
f
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.
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
if your just doing message.author.id
theres really no way the user can sql inject
🤔
Sometimes I use message.guild.id
you only really have to worry about sql injection where users have control
Yeah
message.guild.id also has no user input
can someone help me code my bot to have a customizable prefix
on discord.py
@solemn latch Ooh ok]
Only time I use it is for autorole, or checking to see whether user has a certain embed colour 
But I guess autorole might be breachable idk
Know nothing of the sort
does someone know how to get an IP adress or a host from a remote computer
a vps?
an RDP?
wdym vps?
Virtual private server
is it a vps? a machine you have control over? more context is needed
i have no clue what dat means
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
^
People used to have any kind of linux dist with only de prompt so the can run whatever they want there
how i can make
4.8968925 to 4.8
js?
Math.floor() in js
or .toFixed(1)
^
@quartz kindle ._.
.toFixed does roudn it
it is not what i mean
dafuq
Like, this 4.89 should look like this 4.9
4.92423 to 4.9
it rounds the number
:0
yea
is it .toprecision?
oh okay, just askin
oop
nope
i think that also rounds the number lol

o o f

Lol
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
a mem leak? yes
hitting a ratelimit? yes
Wdym?
you're changing it too often
10 seconds
15.5s is the absolute minimum iirc
For Discord?
That's way to slow
How do i use cloudscraper to get images from google
20 seconds?
what
@worthy glacier scrape from duckduckgo instead
or at lesat not get my queries flagged as a bot
google does not allow scraping
But, how is that causing my memory leak?
instead of dogpile?
10 minutes is more than enough for basic users, some servers, and a prefix
who do you think is looking at your bots status for longer than a few seconds
🤔
no ones going to see it changing
Debatable
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
make the array outside
you're making a new array each time it runs
or else it might do a leak
I mean when it gets back around to showing the server's/users if there is a new user or server it updates
And more
(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
ok
the world would be a much better place if people would use even a little bit of common sense
...
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?
i dont think you even need to set the headers
but
try it and see
duckduckgo allows and promotes scraping
@quartz kindle i corrected it to (4.11), then tried it in the console, and was understandably surprised
what the fuck lmfao
Bruh
@earnest phoenix it keeps returning [] as the url
var search is my args
but spliced
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?
?
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
it means that you're doing something wrong
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);
});
},
};
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
@earnest phoenix const embed = new *Discord.*messageEmbed()
@earnest phoenix is that the entirety of your code
ah ok
you can scrape everything with xpaths from that, ie.
cheerio 
js url: "https://html.duckduckgo.com/?q=" + search,
you forgot /html/
changed it to this and still gets []
hmm that didnt work either
@earnest phoenix is that the entirety of your code
what
sorry
@earnest phoenix pastebin the whole thing
pastebin?
place your code into pastebin
Somewhere we can read it properly
but, the code I put it right but it doesn't answer me
then your code must be wrong somewhere
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?
new Discord.MessageEmbed()
show all the code
Even the token 
thanks
why?
You can do bla bla bla -embed bla bla and will still showing the thing
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
aaa ok
mb then 
const client = new Client();```
also
is it
message.guild.channels.cache.create
or
message.guild.channels.create
@glossy elk if you asking v12 " message.guild.channels.cache.create " is worth
https://discordjs.guide/additional-info/changes-in-v12.html you can check here for modules
o
play command and join command doesnt working good
I don't understand
bot dont join channel
What you mean by that
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
oh
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
Could someone send me study material about the player in the bot, a kind of progress bar
a what now?
'player in the bot'
@polar temple can you be more specific?
player as in music bot?
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
most likely unicode characters
^^
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?
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?
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
Heya, I tried to connect with rdp to my vps and I got that error code. How can I solve it ? 🤔
switch (args[0]) {
case 'miercules':
switch (args[1]) {
case '1':
console.log(1);
break;
}
break;
}
@oblique wasp
how do i check if a channel is nsfw or not e.e
you dont need to switch every case @oblique wasp
thats what cases are for
@sharp thicket which library?
ooo
discord.js
channel has property nsfw in it
thank you very much
which is a bool

@opal plank not sure if there is a good way to do it without using an external tool
have you checked npm?
oof thats gonna fuck me up
yeah havent found anything useful
perhaps prometheus
but it seemed like a bitch to use
uh also
i am making a marry command
but idk how to check what the user mentioned replied e.e
trying to get a network usage tab but i need some way to insert it into database first
if you want to measure the bandwidth of something you have control of, you can measure the data it sends and receives
ive seen apps like NetworkLimiter which can measure that
is it for a bot?
one way would be to hack the library's websocket and api handler to measure the size of data packets
hey
uh also
i am making a marry command
but idk how to check what the user mentioned replied e.e
someone plz
and output them somewere
problem with that is its only with one library
you can also just sniff packets
how do i convert my calculated coordinates (long,lat) to kilometers?
stuff like axios, twitchjs and other libs i would have to do the same
i will create a passtebi
not sure if there is a way to globally capture node's data
poerhaps you can... hmm
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
check out how wireshark works
not sure
can anyone help please
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
hmmm
thats basically what i do with some parts of discord.js
Man, I wish I had the patience to fuck with Grafana like that @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

I'm considering setting it up for my VPS, because I saw someone mention you can use it to track webserver resource usage, etc.
can anyone help please
@sharp thicket noone :(
ok bye
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
@quartz kindle
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
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

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)
@opal plank apparently there is process._getActiveRequests()
not sure what it does tho
i might go prom route
sounds a lot less complicated
while being quite complicated
its weird
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"
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
thank you, everythings works now!
thats a fuckton of docs though
Hi I just opened vs to add a cooldown at my commands and just saw that const talkedRecently = new Set();, how does it work?
looks like an array tbh
Also sets use less ram and they are speedy
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
can i get help? pls
Maybe i can help you
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
try npm i ffmpeg-binaries
@placid iron are you sure about that?
left is 999999 array items
right is 999999 set items
On python at least then 
rip js
isn't set a unique map? instead of array
I thought maybe it would be roughly the same
yes
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?
@wild valley
.longdescription .content {
background: #fff;
}
@earnest phoenix you have more options
@low shard hm no, i'm not doing music bots sry
👍
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?
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?
wherever you're running veil
@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.
@quartz kindle can u help me install wine on linux
i tried installing through this
apt-get install wine64
this didn't work?
Why didn't it work? @modest smelt
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)
yeahik
Ie: run with sudo prefixing the command
If your error was that you didn't have permission, yes.
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.
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
@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.
sudo apt-get update -–fix-missing
sudo dpkg –-configure -a
sudo apt-get install -f.
Run those to fix broken packages
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:
Try it again. Had to edit
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1446 not upgraded.
No. And that's an easy way to get your token shanghaied @tacit goblet
Me too.
Nothing in life is free
@faint prism any other comms that may work?
@tacit goblet i use heroku to host
if u r interested?
@modest smelt type the command, don't copy and paste
ok lemme try
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?
@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
Okay so try installing wine again
which com?
The apt install wine one
You need sudo to install any programs with apt
ok
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.
So install wine32 instead
ok
how i can get this
?
how i can get this
@low shard by asking Google nicely
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
LOL
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
which linux are you using? ubuntu?
ubuntu 20.04

@earnest phoenix discord, whatsapp, line, pretty much anything
sudo apt install wine32 libc6:i386 libwine:i386 this assumes your running on an x86 processor
all those alerts can be outputted to a fuckton of other services
even hangouts

and who the fuck uses that
64 bit or 32 bit ?
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
Yeah, its nice
I got it setup to email me & @ me with a webhook in my server now
Feelsgood
then according to the winehq website, there are a few things you need to do
i might add webhook, i havent gotten to that bit yet
first run sudo dpkg --add-architecture i386
Its easier than any other site/service when it comes to Discord, lmao
then run wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
They even have a notification option specifically labeled "Discord"
i mean it shouldnt be that hard tbh
i might even add it on my code rather than that
@quartz kindle both of them worked
most of the events i need a trigger are already in the code
then run sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/focal main'
just store a webhook and send it when event is triggered
then run sudo apt install --install-recommends winehq-stable
ITT: @quartz kindle reads the install instructions for some software lol
I'd say
but tbh Linux shell commands are daunting for the uninitiated :P
@quartz kindle anything next?
Nice
That means wine is an available command
Do that version command you did earlier
Yes
it said bash: wine: command not found
Oh you said it autocompleted to "winexe"
yes
then run
sudo apt install --install-recommends winehq-stable
@bobthefam you sure that worked?
what worked?
Building dependency tree
Reading state information... Done
E: Unable to locate package winehq-stable
so it didnt work lol
if the package was not located that means the repository wasnt added correctly
did you apt update after adding that repo source?
gotta do that lol
sudo apt update
ok
and then i do the command up there?
and make sure it doesn't error during installing, otherwise no "wine" will be installed lol
try rerunning this sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
right, but @quartz kindle you have to apt update after adding a repo so see the new available packages
ah true
so run that then run sudo apt update then sudo apt upgrade
then try installing again
don't think the upgrade is necessary, but a good idea at some point. That will take a while since he had 1000+
try rerunning this
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
@quartz kindleTraceback (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
uh...
_>
hacks?
Lol
You don't need wine for whatever your doing
i do
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
No
here see:
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
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?
??
how are you installing veil?
apt-get install veil
i tried doing sudo apt install veil
and sudo apt-get install veil
also, did you just try following their instructions on their github?
they use python, so you don't need apt or wine
https://github.com/Veil-Framework/Veil-Evasion
well guys how can i get my website ip?
ping websitename.com
now that was pretty easy to do lol
how to do that?
it has the instructions in the link i sent
yee, console dont say nothing abaut
@quartz kindle ?
just follow these instructions
Ethical Hacking | Installing Veil with ethical hacking tutorial, hackers, introduction, hacking, types of hackers, famous hackers, environmental setup, network penetration testing, network hacking, etc.
And you better be ethical, or you'll end up in trouble with whatever you're trying to do with generating payloads
||
||
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
remove the char from the string?
a string is an array of chars ||CS 101||
if i get into hacking, ethical hacking
idk ill still using .github.io pages
i’ll do something retarded ik it
i cant find my .tk web ip
@digital ibex You need to be very familiar with Comp sci to get into whatever InfoSec
idk what that means if im honest
i dont want to be spoonfed dumbass
Infosec Is a shitshow rn
but yeah, im hackerman i big dev man ik everything dw
Theres a lot of allegations
ill just use
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
Not just that
Iirc there's been a lot of irl allegations
Haven't talked to the guy in a bit though
social engineering is where true hacking lies these days
social engineering is where true hacking lies these days
@quartz kindle Yeah, that and exploits against outdated services
message.embeds[0].description
Why do i feel like I'll regret it, lol
anyone knows how get the ip of a .tk website?
Why do i feel like I'll regret it, lol
@faint prism lmao
wdym ip of a tk website?
what are you trying to do?
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. Otherwiseping websitename.tk
.-.
what are you trying to do?
host
get an IP of whatever is serving the website I guess
host what?
the website
what website?
the website isnt hosted
then it has to be hosted first
.-.
social engineering is where true hacking lies these days
@quartz kindle yep, it requires a lot of knowledge
asterki.tk doesn't resolve to anything
yep
that domain may not be registered
nooup
okay, it is registered
plz dont kill me
do you want o learn how they work?
yep
Lesson with tim
a domain is basically just a name that redirects to an ip address
so that websites can actually have names instead of just IPs
because there is defintely an embed
Domain (human readable) -> DNS Server (knows where the domain goes) -> IP address of server
hmmm, yes i think im understand this
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
how do i get the embeds of the message that has been fetched using message.fetch
check if a message.embeds length is greater than 0 before attempting to access it
let daddy = message.fetch(message_link)
but its fetching the message that has been sent
not the message-
oh
im a fucking dumbass
yep @quartz kindle
did you go into your github settings and set a custom domain?
its still giving me the embeds of the message sent not the message fetched
code?
wait wait
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])```
i ran the program again
i ran the /opt/Veil thing
but it didn't work
ran the /opt/Veil/config/setup.sh --force --silent
as well
Please don't post twice
@glossy elk message.channel.messages.fetch()
ah nice
ok, now did you register this domain?
idk bob, check the veil github
yep, i dont remember the page name, let me see
registered on freenom.com @quartz kindle
@modest smelt check this https://github.com/Veil-Framework/Veil/issues/206
@dire obsidian go to freenom, login into your account and go to your domain DNS settings
ok
how do i get a member off a mention
and does message.mentions also have the embed mentions
MessageMentions#members
in an embed?
I don't think so
how do i get mentions in an embed
actually this
use regex on the fields that you need or the description
@dire obsidian in the name put your domain
yep
then in target you need 4 different ip addresses
so create 4 of them, all with the same name, with these ips:
hmmm
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
make it out of the embed
so embed[0].description.??
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
but usually it happens in a few minutes to about an hour
@glossy elk pretty sure embed mentions are not accounted for in message.mentions
but you can test
you need to examine the description and each of its fields
I know its going to be in the description
and check if the content contains a mention pattern
mentions show up like this <@IDHERE>
and couldnt i just send the description to a channel as a message then check if the message has mentions
sure
Would that work?
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
then use regex or splits
i can just slice
right]
i saw this
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
w3
@astral yoke https://www.w3schools.com/
ty
best website out there
You can't use emotes in embed author field?
only unicode ones work btw
emmm, how can i remove that
theres always a start for everything
A lot goes into it. yee
i add cloudfare xd
it isn't hard per se, you just need to have an understanding of how they work
yeah cloudflare also works
Cloudflare good uwu
nicee, sorry for the spam btw
i think that in CS you get taught how they work, dns servers and shit like that, not sure though
ah ok





