#development

1 messages · Page 481 of 1

earnest phoenix
#

and install it with npm from your form

#

npm install whatever@githubusername/repo

#

@earnest phoenix yeah can you help me cause me not good at yt

#

like step by step by step

bright spear
#

ytdl-core works fine for me 👀

earnest phoenix
#

@bright spear you using python

#

@earnest phoenix yeah

#

because i dont know how to do it

bright spear
#

No I use js

earnest phoenix
#

thats why

#

its just youtube dl

#

come on

#

i know nothing about it

#

at least give me help

slender thistle
#

Google can help you out

remote heart
#

@vernal rivet Nein noch nicht

lusty dew
#

Is there a way

#

I can make an image

#

wait to send?

#

I am doing it on an embed

#

but it is sending before the embed

#

so it looks werid

vernal rivet
#

ok, Haben Sie sich die Discord.js Dokumentation schon angesehen?

bright spear
#

Uh, is the image supposed to inside the embed or outside it? @vernal rivet

vernal rivet
#

like the thumbnail?

lusty dew
#

?

#

It is a file

#

OOO

#

Wait

#

I can ust

#

nvm

#

Thank you guys

vernal rivet
#

np

lusty dew
#

You reminded me of something

#

xD

#

I can upload image

bright spear
#

Lol yw I guess

lusty dew
#

to imgur

vernal rivet
#

lol

#

@remote heart

#

do you guys know how to make an invitation for the bot, like when the bot joins the server, it sends a message about the help server? kartoffel is wanting to know how to do that

#

i would guess an event

sick cloud
#

guild create event

vernal rivet
#

ok

sick cloud
#

you can dm the owner (bad) or find the first channel your bot can post to and send (best but gets annoying)

earnest phoenix
#

or not send a welcome message awesmart

#

the owner just invited it not like they need a welcome message

vernal rivet
#

no like when you invite aki, you are invited to the aki server

sick cloud
#

it adds you?

#

or it sends an invite

vernal rivet
#

sends

bright spear
#

Mee6 figures out who added it and dms them the info

#

I guess they use the dashboard

sick cloud
#

they make you login to add the bot first

#

its kinda an ingenious idea

vernal rivet
#

ok

#

so i would assume that isn't a good idea to do?

sick cloud
#

usually people hate getting a dm or message from a bot

#

so i say no, don't do it

vernal rivet
#

what if its a guild message, would that still be annoying?

bright spear
#

Yeah

vernal rivet
#

ok

#

@remote heart Von dem, was ich von jedem höre, ist, dass ein Einladungssystem ein GildeCreate Event braucht, aber es wird Leute nerven, was für dich schlecht sein kann, wenn sie genervt werden

lusty dew
#

Hmm

#

How do I assign a command

#

to one person

#

I know I need their ID

#

but I forgot how to

#

isn't it

#

if( something here !== "486674992981999648")

#

xD

bright spear
#

@lusty dew like, only one person can use the command?

lusty dew
#

Yes

#

Cause

#

this is ow I have it set up

#
    if(message.content.includes(`${secret}`))
    let embed =  new Discord.RichEmbed()
    .setDescription(`Also secret`)
    .addField("ha it is secret")
    .setImage(`${image}`)
     message.channel.send(embed)
          }
        }
bright spear
#
if( message.author.id !== "486674992981999648")
return
vernal rivet
#

do the if(message.author.id !== "486674992981999648"){ let embed = new Discord.RichEmbed() .setDescription(`Also secret`) .addField("ha it is secret") .setImage(`${image}`) message.channel.send(embed) }

earnest phoenix
#

is this right?

lusty dew
#

@vernal rivet No

#

Oh wait

#

yes

#

I forgot

#

if it is assigned to them

#

the secret code

vernal rivet
#

then add an else statement

lusty dew
#

is not needed

#

xD

#

No

#

you are correct

vernal rivet
#

lol

lusty dew
#

my brain

vernal rivet
#

ok

lusty dew
#

is just half working

#

Ty ❤

vernal rivet
#

np

lusty dew
#

Oh wait

vernal rivet
#

i am here everyday

lusty dew
#

How can I add another person

earnest phoenix
#

guys

#

i need help no one is helping me

vernal rivet
#

@earnest phoenix whats up?

lament meteor
#

wat u need help with @earnest phoenix ?

earnest phoenix
#

is this right

vernal rivet
#

ummmm.....

lament meteor
#

u dont need to fill everything

earnest phoenix
#

i know

#

but i want it to download it in 326kps

lament meteor
#

lemme check the docs for a while

lusty dew
#

@vernal rivet how could I add one more person to the ting

#

like

lament meteor
#

thats ytdl-core right?

#

wait nvm

earnest phoenix
#

this is my code

#

asking

lusty dew
earnest phoenix
#

ytdl

lusty dew
#

?

#

Something like that

vernal rivet
#

monika i would say do if(message.author.id !== "id1" || !== "id2") i think

bright spear
vernal rivet
#

you could also go by the role id

lament meteor
#

i was just gonna say wat u said advith

bright spear
#

However spoon-feeding isn't allowed here so I suggest you try learning js and googling answers to questions

earnest phoenix
#

so

bright spear
#

It's not specific to discord bots

earnest phoenix
#

do you guys know the format code for wav?

vernal rivet
#

yes, i would suggest learning from codecadency

lusty dew
#
C:\Users\User\Desktop\LoverBot v3\commands\secret.js:8
    if(message.author.id !== "486674992981999648" || !== "479603748382179329"){
                                                     ^^^

SyntaxError: Unexpected token !==
    at new Script (vm.js:74:7)
    at createScript (vm.js:246:10)
    at Object.runInThisContext (vm.js:298:10)
    at Module._compile (internal/modules/cjs/loader.js:670:28)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
'bot.guild.size' is not recognized as an internal or external command,
operable program or batch file.
earnest phoenix
#

you guys talking to me?

bright spear
vernal rivet
#

yes

bright spear
#

@earnest phoenix no, nobody here knows the answers to your questions

earnest phoenix
#

oof

#

sadly

vernal rivet
#

what kind of set up are you doing @earnest phoenix

#

i might be able to help

earnest phoenix
#

i'm trying to get my bot to download 326kps audio

vernal rivet
earnest phoenix
#

what sooo thining about it?

#

you realise youtube limits their audio

#

id be surprised if its over 256kbps

vernal rivet
#

yes

earnest phoenix
#

well, i didnt know that

vernal rivet
#

you learn things everyday

earnest phoenix
#

yea

#

but like youtube dl supports wav

lusty dew
#

I has a question

earnest phoenix
#

i mean, here are the audio only options for a popular music videoon youtube

lusty dew
#

Is there a way to make a AFK command

#

where like

earnest phoenix
#

highest is 160kbps

lusty dew
#

they can do

#

@quartz dune afk

#

well fuck

#

that is an actual person

#

Oh well anyway

#

it will set there name to [AFK]<Therename>

#

and when someoen pings them

#

it tells them they are afk

#

and how long they been afk

earnest phoenix
#

yeah its very very simple

lusty dew
#

Can you help me?

earnest phoenix
#

you store (for example in database) who uses the AFK command, and when somebody mentions a user, check if they are marked as afk

lusty dew
#

Ok

#

I will try

sick cloud
#

okay, the fuck. every time i install a new module, discord.js uninstalls itself

earnest phoenix
#

lol

remote heart
#

@vernal rivet Wie mache ich so ein Event?

bright spear
#

@sick cloud just add the package to package.json then use npm i

vernal rivet
#

du würdest `` bot.on ("guildCreate", guild = {

}); ``

#

Es ist genau so, wie du es gemacht hast, wenn dein Bot online ist, er wird eine Nachricht an die Konsole senden, etwas wie "Ich bin bereit", aber stattdessen auf dem Async, ersetze es durch Gilde, glaube ich. Überprüfen Sie die Discord.js Dokumentation dafür

#

Ich muss jetzt schlafen, es ist wie 12:40 Uhr für mich, viel Glück mit Ihrem Bot, sagen Sie mir, wenn etwas passiert @remote heart

jolly mist
#

help me, for which it does not work!

if (message.content.startsWith(p + 'fortnite')) {
        //!fortntie
        let username = args[0];
        let platform = args[1] || "pc";

        let data = ft.getInfo(username, platform).then(data => {

            let stats = data.lifetimeStats;
            let kills = stats.find(s => s.stat == 'kills');
            let wins = stats.find(s => s.stat == 'wins');
            let kd = stats.find(s => s.stat == 'kd');
            let mPlayed = stats.find(s => s.stat == 'matchesPlayed');
            let tPlayed = stats.find(s => s.stat == 'timePlayed');
            let asTime = stats.find(s => s.stat == 'avgSurvivalTime');

            let embed = new Discord.RichEmbed()
            .setTitle("Fortnite Stats")
            .setAuthor(data.username)
            .setColor("ffa500")
            .addField("Kills", kills.value, true)
            .addField("Wins", wins.value, true)
            .addField("KD", kd.value, true)
            .addField("Matches Played", mPlayed.value, true)
            .addField("Time Played", tPlayed.value, true)
            .addField("Avg Survival Time", asTime.value, true);

            message.channel.send(embed);

        }).catch(e => {
            console.log(e);
            message.channel.send("Не удалось найти это имя пользователя в базе данных");
        });

    }
slender thistle
#

Are you sure args[0] is not !fortnite?

bright spear
#

Explain please

#

Is there an error? If so send it

jolly mist
#

let data = ft.getInfo(username, platform).then(data => {
^

#

error

slender thistle
#

Not really an error

jolly mist
#

?

idle mountain
#

Post the full error

bright spear
#

That's not the error

slender thistle
#

Там просто показано, где команда ломается. Кинь полный текст ошибки

#

Excuse me for the Russian

jolly mist
#

Is it possible to make a ready-made version, without errors?

slender thistle
#

Nope

jolly mist
#

C:\Users\nikita\Desktop\PlanBot\index.js:91
let data = ft.getInfo(username, platform).then(data => {
^

TypeError: ft.getInfo is not a function
at Client.bot.on.message (C:\Users\nikita\Desktop\PlanBot\index.js:91:23)
at Client.emit (events.js:182:13)
at MessageCreateHandler.handle (C:\Users\nikita\Desktop\PlanBot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
at WebSocketPacketManager.handle (C:\Users\nikita\Desktop\PlanBot\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:103:65)
at WebSocketConnection.onPacket (C:\Users\nikita\Desktop\PlanBot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
at WebSocketConnection.onMessage (C:\Users\nikita\Desktop\PlanBot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
at WebSocket.onMessage (C:\Users\nikita\Desktop\PlanBot\node_modules\ws\lib\event-target.js:120:16)
at WebSocket.emit (events.js:182:13)
at Receiver._receiver.onmessage (C:\Users\nikita\Desktop\PlanBot\node_modules\ws\lib\websocket.js:137:47)
at Receiver.dataMessage (C:\Users\nikita\Desktop\PlanBot\node_modules\ws\lib\receiver.js:409:14)

slender thistle
#

You gotta learn and do it yourself

bright spear
#

We won't code it for you...

#

And it's pretty self explanatory

#

ft.getInfo is not a function

jolly mist
#

?

bright spear
#

...

slender thistle
#

Такой функции не существует

bright spear
#

Did you even write that code

#

Do you even know js?

jolly mist
#

poorly

bright spear
#

Did you write that code

#

Or did you copy it

jolly mist
#

no

slender thistle
#

That is not a valid answer

#

:^)

bright spear
#

^

#

Pick one

jolly mist
#

In terms of

bright spear
#

"I wrote it" or "I copied it"

jolly mist
#

so what's the error code?

slender thistle
#

Ты по-русски говоришь?

jolly mist
#

да

slender thistle
#

Так вот

#

тебе уже сказали, что ft.getInfo не является функцией

remote heart
#

@vernal rivet Verstehe ich nciht so ganz

slender thistle
#

И что за ft вообще?

jolly mist
#

а как сделать её функцией ?

#

const ft = new Fortnite(apikey.Fortnite);

slender thistle
jolly mist
#

npm i fortnite --save ?

#

если это то да

slender thistle
#

@bright spear Can I ask you

#

Would his way of defining ft be good

#

I am not a js coder sooo

bright spear
#

Well it depends on what package he's using

#

Idk how to use it

slender thistle
#

The one I linked above

#

Well, the package page tells to use this:

// Bring in the Fortnite module
const Client = require('fortnite');
// Create an instance of the client with your API Key
const fortnite = new Client('Your-API-Key');
bright spear
#

Yeah it seems fine

jolly mist
#

стойте !

slender thistle
#

Я просто не знаю как ты обозначил Fortnite в своем коде

bright spear
#

Is .getinfo a thing tho

jolly mist
#

стой, это API ===> https://api.fortnitetracker.com/v1/profile/{platform}/{epic-nickname}

slender thistle
#

message: "No API key found in request" нууу

jolly mist
#

?

#

const Fortnite = new Client('https://api.fortnitetracker.com/v1/profile/{platform}/{epic-nickname}'); ^

slender thistle
#

Meh, looks like getInfo is not for this package

cinder stratus
#

hmm its need api key

bright spear
#

Looks like it should be .user

jolly mist
#

?

cinder stratus
#

hmm i think its need an api key to use

sick cloud
#

@bright spear no

#

its in the package

#

but it keeps saying it cant find it

bright spear
#

The example says .user though

cinder stratus
#

Hey anyone knows how to fetch a bot in discord.js ?

bright spear
#

?

cinder stratus
#

i want to fetch bot info in discord.js

sick cloud
#

use the dblapi js module

cinder stratus
#

it can fetch bot

jolly mist
#

The example says .user though ???

sick cloud
#

yes

#

@cinder stratus from the example

#
dbl.getBot("264811613708746752").then(bot => {
    console.log(bot.username) // "Luca"
});
cinder stratus
#

yes but it can only fetch dbl bots

bright spear
#

@jolly mist the example in the package says .user not .getinfo

sick cloud
#

@cinder stratus what do you want then?

bright spear
#

@cinder stratus there's no way to get a bots info other than from a bot list

sick cloud
#

the dbl api cant get bots off other lists

#

^

bright spear
#

There's no central system with all bots

sick cloud
#

you can get member info if the bots in a server

#

thats it tho

slender thistle
#

@jolly mist getInfo не существует. Есть user

bright spear
#

But not stuff like prefix and description

cinder stratus
#

no i meant that i want to fetch any bot by client id of bot

slender thistle
#

A.K.A ft.user

sick cloud
#

@cinder stratus you cant

bright spear
#

@cinder stratus what info do you want though

slender thistle
#

Почитай пример на странице

sick cloud
jolly mist
#

стой

cinder stratus
#

bot icon and bot name

slender thistle
#

Don't mind me, I was just telling the guy to use user instead of fetchInfo

bright spear
#

So basically just a userinfo command? @cinder stratus

sick cloud
#

@cinder stratus what are you using? djs stable or master?

slender thistle
#

Because he seems to not understand some parts of what we tell him

jolly mist
#
(node:6448) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toLowerCase' of undefined
    at new User (C:\Users\nikita\Desktop\PlanBot\node_modules\fortnite\src\User.js:13:73)
    at C:\Users\nikita\Desktop\PlanBot\node_modules\fortnite\src\Client.js:61:24
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:6448) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6448) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
cinder stratus
#

stable

sick cloud
#

@bright spear i got this mmLol

bright spear
#

Lol k

sick cloud
#

@cinder stratus use client.fetchUser

#

it should provide basic info

slender thistle
#

@jolly mist Ты на чем используешь toLowerCase, можешь напомнить?

sick cloud
#

username, discrim, avatar hash, bot and something else

slender thistle
#

И вообще, кинь полностью код

cinder stratus
#

ok

#

lemme try

sick cloud
#

it takes an ID

jolly mist
#
if (message.content.startsWith(p + 'fortnite')) {
        //!fortntie
        let username = args[0];
        let platform = args[1] || "pc";

        let data = ft.user(username, platform).then(data => {

            let stats = data.lifetimeStats;
            let kills = stats.find(s => s.stat == 'kills');
            let wins = stats.find(s => s.stat == 'wins');
            let kd = stats.find(s => s.stat == 'kd');
            let mPlayed = stats.find(s => s.stat == 'matchesPlayed');
            let tPlayed = stats.find(s => s.stat == 'timePlayed');
            let asTime = stats.find(s => s.stat == 'avgSurvivalTime');

            let embed = new Discord.RichEmbed()
            .setTitle("Fortnite Stats")
            .setAuthor(data.username)
            .setColor("ffa500")
            .addField("Kills", kills.value, true)
            .addField("Wins", wins.value, true)
            .addField("KD", kd.value, true)
            .addField("Matches Played", mPlayed.value, true)
            .addField("Time Played", tPlayed.value, true)
            .addField("Avg Survival Time", asTime.value, true);

            message.channel.send(embed);

        }).catch(e => {
            console.log(e);
            message.channel.send("Не удалось найти это имя пользователя в базе данных");
        });

    }
sick cloud
#

also if that doesn't work

#

then you can make direct calls to the API

cinder stratus
#

which api

slender thistle
#

Я так понимаю, это уже в другой команде проблемы

#

Ибо я toLowerCase здесь тупо не вижу

jolly mist
#

а можно готовый вариант ???

sick cloud
#

the discord api ofc

#

smh

slender thistle
#

Нет

cinder stratus
#

oh

jolly mist
#

а чо ?

slender thistle
#

Тебе никто готовый код не даст

#

Тебе придется учиться кодить самому

jolly mist
#

ок

#

я ток не понял, а почему он не работает или выдаёт ошибку ?

slender thistle
#

Я сам не ебу

cinder stratus
#

User.iconURL

slender thistle
#

У тебя где-то toLowerCase() используется на том, что тупо не существует

cinder stratus
#

is this right to display bot icon

jolly mist
#

У тебя где-то toLowerCase() используется на том, что тупо не существует ???

slender thistle
#

Ты ошибку саму читал?...

#

Cannot read property 'toLowerCase' of undefined

jolly mist
#

эту

(node:6448) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toLowerCase' of undefined
    at new User (C:\Users\nikita\Desktop\PlanBot\node_modules\fortnite\src\User.js:13:73)
    at C:\Users\nikita\Desktop\PlanBot\node_modules\fortnite\src\Client.js:61:24
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:6448) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6448) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
slender thistle
#

Да

#

Я это сократил выше

jolly mist
#

а хз чо тут написано

slender thistle
#

Блять, ты можешь на Hastebin кинуть свой полный код?

jolly mist
#

бота ?

slender thistle
#

Да

jolly mist
#

ща

sick cloud
#

@cinder stratus no

#

do you see an iconURL property?

cinder stratus
#

done

#

thnx

#

it worked

sick cloud
#

ok

cinder stratus
#
return message.channel.send(embed);
  
client.channels.get("488241752319197184").send(`**${message.author.username}** Added ${User.username} It Will Be Tested Soon`)
#

it is wrong

slender thistle
#

Returning before doing something Thonk

cinder stratus
#

ok trying

sick cloud
#

lol

#

are you trying to make a bot list @cinder stratus

cinder stratus
#

well no only for my bot support server

#

i am learning js

sick cloud
#

why are you learning on a bot then

cinder stratus
#

no i like to spend my half time on bot coding

sick cloud
#

why are you tagging me the shitpost channel

#

and you should learn js on a non bot project tbh

sick cloud
#

js question, is it possible to get the date format for 7 days ago like this 2018-8-31 using js Dates?

queen fog
#

Can someone teach me coding?

earnest phoenix
#

youtube can

sick cloud
#

google can mmLol

#

and you can

cinder stratus
#
earnest phoenix
#

how can i set 2 bot prefix?

my source is

const prefix1 = ["w."]
const prefix2 = ["W."]

client.on("message", async message => {

    if(message.content.indexOf(prefix1 || prefix2) !== 0) return;

    const args = message.content.slice(prefix1.length || prefix2.length).trim().split(/ +/g);
    const command = args.shift().toLowerCase();

try {
  let commandFile = require(`./commands/${command}.js`);
  commandFile.run(client, message, args);
} catch (err) {
console.log(err)
}
});

plz help me T.T

steel drum
#

or you could just do const prefixes = ["kek", "kek2"];;

#

and then

#

hmm

earnest phoenix
#

then..?

steel drum
#

do all your prefixes

#

have string lengths of2 ?

#

if they are consistent

earnest phoenix
#

w. , W.

steel drum
#

kk

#

so you could do something like

earnest phoenix
#

use toolowercase

steel drum
#

if (prefixes.includes(msg.content.slice(0, 2)) return commandFunction();;

earnest phoenix
#

my internet down

#

fu*k

#

if (prefixes.includes(msg.content.slice(0, 2)) return commandFunction();
^^^^^^

bright karma
#

you can also use something like to check for the prefix as well

const prefix = ["w.","W."];
if (new RegExp(`^(${prefix.join('|')})`).test(message.content)) {
    // Do something here
}
jagged plume
#

wouldnt that option be slower?

#

i thought if you used regex like that it's slower than just comparing it with includes

whole mural
#

trying to shit around with java and hit an issue.

#

im never getting the JDA finished laoding message.

#

ideas?

#

intellij is also telling me that builder.buildAsync(); is being deprecated

#

nevermind, it just took bloody ages. like about 2 minutes its workig now

earnest phoenix
#

@earnest phoenix Use a for loop and regex

#

@earnest phoenix i'm updated it!
thank you everyone ><

cinder stratus
#
(node:7589) DeprecationWarning: Collection#find: pass a function instead

(node:7589) DeprecationWarning: Collection#find: pass a function instead
west raptor
#

Are you using find like: .find('name', 'name')?

cinder stratus
#

yes

west raptor
#

That's the issue

earnest phoenix
#

You have to pass a function

knotty steeple
#

dont do that

earnest phoenix
#

hence the error

cinder stratus
#

so what i use to find

earnest phoenix
#

A function

knotty steeple
#

arrow function

cinder stratus
#

?zoomeyes 😕

knotty steeple
#

like

#

hi => hi.there

west raptor
#

^

cinder stratus
#

role => rolename

west raptor
#

no

knotty steeple
#

^ thats gonna find a role named whatever

cinder stratus
#

ok

west raptor
#

Also that's basically the same with users, guilds, etc

earnest phoenix
#

help guys .find() says to pass a function

#

whats a function?

west raptor
#

/shrug

knotty steeple
#

can you do deconstruction in python?

main mica
#

//me

nimble star
#
    #---SETNAME---#
    @commands.command()
    @commands.is_owner()
    async def setname(self, ctx, *, name: str):
        """Sets the bot's name!

        Parameters:
          name - The name to set.

        Requirements:
          Bot ownership"""
        await ctx.me.edit(username=name)
        await say(ctx, ":white_check_mark: - Name changed!")```

The name doesn't change. Help?
knotty steeple
#

why not just do ctx.send mmLol

west raptor
#

Are you the server owner?

#

Wait

nimble star
#

I want the bot to change usernames, yet it doesn't do so.

west raptor
#

Oh

nimble star
#

I experimented a lot around and this one seems to not raise errors (errors mostly focused around the usage of "self"), though still the username remains the same.

knotty steeple
#

are u sure username is a parameter

nimble star
#

It points all to the same, "ClientUser", except in member instance.

knotty steeple
#

very weird

nimble star
#

Using ClientUser.edit raises an unavoidable wave of errors focused around "self".

#

Either that it's not defined, or, when it is, that Owner.Owner has no avatar option.

slender thistle
#

Uhm

#

ClientUser != ctx.me

nimble star
#

Though it also has an "edit" option, and ctx.me hints to the same, just in a member instance.

#

So far, only ctx.me worked at all and didn't raise an error.

slender thistle
#

You still need ClientUser

nimble star
#

This was when I used ClientUser.

#

To be exact, "discord.ClientUser.edit".

slender thistle
#

How did you even use it...

nimble star
#
    #---SETNAME---#
    @commands.command()
    @commands.is_owner()
    async def setname(self, ctx, *, name: str):
        """Sets the bot's name!

        Parameters:
          name - The name to set.

        Requirements:
          Bot ownership"""
        await discord.ClientUser.edit(self, username=name)
        await say(ctx, ":white_check_mark: - Name changed!")```
#

This is the past code.

slender thistle
#

Uh...

#

That's wrong

#

Literally

nimble star
#

How do I do it then?

slender thistle
#

Print type(self.bot.user)

#

and see how it's done

nimble star
#

sighs

#

Of course it's self.bot.user

#

Thanks.

#

For anyone who can find it useful, this is the command:

    #---SETNAME---#
    @commands.command()
    @commands.is_owner()
    async def setname(self, ctx, *, name: str):
        """Sets the bot's name!

        Parameters:
          name - The name to set.

        Requirements:
          Bot ownership"""
        await self.bot.user.edit(username=name)
        await say(ctx, ":white_check_mark: - Name changed!")```
slender thistle
#

😄

upper ember
#

how do I remove and add roles for user in JDA?

gilded blaze
#

Use the docs

nimble star
#

How do I check a member's permission value?

#
    # ---EVENT INVITEFILTER---#
    async def on_message(self, message):
        with open("../DSB_Files/filters.json", "r") as file:
            invfilter = json.load(file)
        try:
            invfilter = invfilter[str(message.guild.id)]["invite"]
        except KeyError:
            invfilter = False
        if invfilter:
            if "discord.gg" in message.content or "discordapp.com/invite" in message.content:
                if message.author.permissions != 8192:
                    await message.delete()
                    await message.channel.send(f":exclamation: - Please do not send invite links, {message.author.mention}!")
        elif not invfilter:
            pass```
#

Trying to make an invite filter check if the member has permissions to delete other's messages. The current code doesn't work.

steel drum
#

in discord.js you can do message.member.hasPermission();so im sure there is the same method in python

#

message.author returns a "User" class

#

message.member returns a GuildMember class

#

which has the data for roles

#

iirc message.member.roles is some sort of map

#

bur using hasPermission is overall better

carmine echo
#

How exactly should I use .resolve? I have a relative path ../../Data/asset.mp3. How would I turn it into an absolute path?

steel drum
#

require.resolve ?

sullen path
#

why do you need an absolute path?

steel drum
#

some modules / methods

carmine echo
#

Discord.js has weird quirks

steel drum
#

need absolute paths

sullen path
#

ah k

steel drum
#

not just that

#

fs.readdirSync requires a absolute path iirc

#

its relatively common

#

well, common enough

carmine echo
#

The file is an mp3 file, require gives errors as it's not a .js file. I think

upper nymph
#

hi

slender thistle
#

@nimble star Question still up?

upper nymph
#
public class Manager {
    public static List<Guild> guildList = new ArrayList<Guild>();
    public static void initialize(JDA bot) {
        for(int i = 0;i < bot.getGuilds().size();i++) {
            Guild guild = new Guild(bot.getGuilds().get(i).getId());
            guildList.add(guild);
        }
    }
}
#

why does it doesnt add any guild into guildList

nimble star
#

I need to get my friend to test it.

nimble star
#

It's also if 8192 in message.author.guild_permissions:

slender thistle
#

Either that or ==, depending on your needs 😄

steel drum
#

@upper nymph

#

are you sure bot.getGuilds

#

returns an array?

upper nymph
#

yes

#

its return array and have size 1

#

because my bot only at my server

#

and its returned my server it if i do bot.getGuilds().get(0).getId();

#

then its not added to guildList array

#

idk why

nimble star
#

I don't think == would do the job, since the permissions aren't equal.

steel drum
#

change List to ArrayList ?

#

idk man sry

upper nymph
#

No, not work

#

ok got it

#

in a loop

#

i was so (mem.getUser().isBot()) return;

slender thistle
#

Oh well, ignore me

upper nymph
#

it should be continue;

slender thistle
#

I never touched those, so eh

nimble star
#
    # ---EVENT INVITEFILTER---#
    async def on_message(self, message):
        with open("../DSB_Files/filters.json", "r") as file:
            invfilter = json.load(file)
        try:
            invfilter = invfilter[str(message.guild.id)]["invite"]
        except KeyError:
            invfilter = False
        if invfilter:
            if "discord.gg" in message.content or "discordapp.com/invite" in message.content:
                if message.author.permissions.value(8192):
                    await message.delete()
                    await message.channel.send(f":exclamation: - Please do not send invite links, {message.author.mention}!")
        elif not invfilter:
            pass```
#

Nope.

#

Doesn't work.

slender thistle
#

value is an int

#

This value is a bit array field of a 53-bit integer representing the currently available permissions.

nimble star
#

message.author doesn't have a permissions ...thing

slender thistle
#

Because it's guild_permissions

nimble star
slender thistle
#

That's not how it's done

nimble star
#

fuck now i understand why discord.commands.ext is so much better

#

because you dont need 2 years to figure out how to check permissions

slender thistle
#

Why don't you check for the permission like guild_permissions.administrator instead?

#

These things exist too

spring ember
#

It is easy

#

You need to use &

#

On 0b<perm bit> or smth like this

nimble star
#

finally, thanks

#

i need to remember that guild_permissions.(permission name) is a thing

slender thistle
#

😄

slender thistle
#

Yeah

#

Btw wrong channel :^)

tribal turtle
#

$look

fair minnow
slender thistle
#

It has

#

you are using async branch

#

rewrite one exists

#

Now, that one is updated

fair minnow
#

Where?

#

Ohhhh I see

slender thistle
#

And do not do pip install discord-rewrite

ruby dust
#

discord.py is surprisingly very active in development

slender thistle
#

To install d.py rewrite, you have to use
pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]

fair minnow
#

ok

#

Is it safe to use that, considering it's a re-write? Or has the re-write finished?

slender thistle
#

It is never finished

#

It's up-to-date

#

You will have to update your code to that version, though

fair minnow
#

No I mean as in there's going to be no huge changes that suddenly come out of nowhere?

slender thistle
#

Not really

fair minnow
#

Except if discord forces them to

slender thistle
#

Not in public releases, at least

fair minnow
#

ok

#

goodo

#

Thanks for telling me about it, I hadn't noticed it

lusty dew
slender thistle
#

Which branch?

#

async or rewrite?

lusty dew
#

async

slender thistle
fair minnow
#

What;s the docs for rewrite?

slender thistle
fair minnow
#

oh lol ty

earnest phoenix
#

hmmm

lusty dew
#

Damn

#

This would have been helpful when I was writing in py

earnest phoenix
#

this what ?

slender thistle
#

What?

earnest phoenix
#

this code for what ?

lusty dew
#

Lol The docs would have been helpful when I was coding in py

#

Bruh

slender thistle
#

Why are you reposting it even? bloblul

lusty dew
#

Stop doing that

#

lol

earnest phoenix
#

hmm

slender thistle
#

Rainbow roles

#

Don't do that

earnest phoenix
#

hmmm

#

this give banned ip
?

#

from discord

slender thistle
#

Rainbow roles are prohibited

lusty dew
#

Yea

#

Anything that can change the colors of the roles

#

constantly

#

like that is bad

slender thistle
#

I mean, you could do it but get ready to face the consequences eventually

lusty dew
#

Ye

#

There is a bot called Ghost something

#

and it gets you banned for using it cause of rainbow roles

#

Anyway

#

Good morning

#
const Discord = require('discord.js');
const Manager = new Discord.ShardingManager('./index.js');
Manager.spawn(2)
#

isn't this how you shard?

vernal rivet
#

@remote heart Im Discord.js doc im Abschnitt client gibt es eine Sache namens gildeCreate, die den Namen des Ereignisses darstellt. und wie Sie ein Ereignis einrichten, ist ähnlich wie bei der Erstellung des Bot.on ("message", message = {

}); ``

earnest phoenix
#

what

earnest phoenix
#

@lusty dew

🤔 How many servers is your bot in?

lusty dew
#

Not many

#

I was just wondering

#

lol

#

One day I hope to come to the point of needing to shard

#

so it would be good to know

#

before hand

earnest phoenix
#

People usually use this:

lusty dew
#

eris?

#

isn't eris a forked version of d.js

earnest phoenix
#

no its completely different

lusty dew
#

oh

#

ok

nimble star
#
async def prefix(ctx):
    with open("../DSB_Files/prefixes.json", "r") as file:
        cpredict = json.load(file)
    cpre = cpredict[str(ctx.guild.id)]
    return ["D.", "/", "@ancient mirage ", cpre]

bot = commands.Bot(command_prefix=prefix(ctx), description=description)```
How do I make it know what 'ctx' is, or be able to identify the guild ID at all?
quasi halo
west raptor
#

👀

lusty dew
#

👀 damn

#

long error

west raptor
#
discord.ext.commands.errors.CommandNotFound: Command "ping" is not found``` im still receiving this error
earnest phoenix
#

@quasi halo that error tells us nothing

west raptor
#

the command exist

quasi halo
#

thats all it said tho .-.

earnest phoenix
#

@gleaming glen Botumdaki Komutlar Bunlar Ana İşlevi NSFW Olmamasına Karşın nsfw Komutları var Kabul Edilir mi?

gleaming glen
#

yes

earnest phoenix
#

güzel

gleaming glen
#

but this channel is english only as well afaik

west raptor
#

no

earnest phoenix
west raptor
#

@earnest phoenix i like your bot's help command

#

its clean and simple

earnest phoenix
#

I would have done better if I had the chance

gleaming glen
#

yea looks good

earnest phoenix
#

material design <3

west raptor
#

it looks good to me

earnest phoenix
#

thanks

west raptor
#

yw

earnest phoenix
#

If I write 300 characters description, I would like to add to DBL

west raptor
#

absolutely

plush shadow
#

pls uptime @old python

west raptor
dapper ether
ruby dust
#

that is a dbots command anyway

wide ruin
#

How do you say "if message.content.includes("thanks")" in a DM?

bright spear
#

its the same thing lmao

primal adder
#

why does my site's long desc js not work?

#

<script src="https://codepen.io/Joshuliu/pen/eMqppw.js"></script> is in my long desc

sick cloud
#

@primal adder is your bot cert?

primal adder
#

yes

#

my code isn't wrong right?

sick cloud
#

i mean, the code in the pen might not be working

#

try directly adding the js?

primal adder
#

i have

#

it didn't work

#

it's as if i never even pasted it in

#

which leaves me to thinking that my code is wrong

#

but it doesn't look wrong at all

bright spear
#

think its that?

primal adder
#

hmm... that might be it

bright spear
#

server isnt defined

primal adder
#

hmm... so it is the code's problem

bright spear
#

yes

#

you have some function server code at the top but its commented out

#

did you not check the console

primal adder
#

nope

#

i'm completely new to web development and i'm trying my best lol

bright spear
#

well
lesson 1: dont comment out code you need
lesson 2: if you have a js issue check the console

primal adder
#

alright

#

lcv2

sick cloud
#

anyone know how to generate a graph as a png then embed it in an embed? (node.js)

lusty dew
#

What is that

#

o.O

bright spear
#

wrong channel

sick cloud
#

uh, anyone..?

bright spear
#

i dont think anyone knows lol

#

google "nodejs graph to image" maybe?

frank forge
#

I dont understand how to fix my error. @west raptor tried to help but she said to ask #development. If you need me to add you ask me to dm you the link.

west raptor
#

wait

#

wut

#

did you change

frank forge
#

no

west raptor
#

oh

quartz kindle
#

you cant use [] without anything inside it

#

@sick cloud what kind of graph?

sick cloud
#

idk, i have an array of numbers (downloads per day) and wanna make some kind of graph showing those downloads

quartz kindle
#

@sick cloud use canvas

#

@frank forge i have no idea what you just sent me. i dont see anything remotely relevant to a discord bot in there

earnest phoenix
#

Where is youtube DL core located

sick cloud
#

@quartz kindle too much hard work

#

i just want a simple graph

#

also how do you remove from the end of an array?

quartz kindle
#

its not that hard, just make something with x dimensions and draw a bunch of lines with % coordinates

#

to remove from the end i believe its .pop()

sick cloud
#

okay

earnest phoenix
#

how i can change color in this hello

sick cloud
#

change the colour in what

earnest phoenix
#

this hello

west raptor
#

<lang> //code or whatever

#

h

sick cloud
#

go there

#

check out the info channel

west raptor
#

advertising

sick cloud
#

whatever

earnest phoenix
#

ty

sick cloud
#

np

#

can embed images take message attachments?

earnest phoenix
#

🤔

lusty dew
#

Can someoen help me make a pornhub command 👀

#

I am trying to do what I did with steam

#

But it returns this

#

when I console log body

#
<Buffer 3c 21 44 4f 43 54 59 50 45 20 68 74 6d 6c 3e 0a 3c 21 2d 2d 5b 69 66 20
6c 74 20 49 45 20 37 20 5d 3e 20 3c 68 74 6d 6c 20 63 6c 61 73 73 3d 22 69 65 ..
. >
bright spear
#

@sick cloud yeah

#

use attachment://

sick cloud
#

ty

bright spear
sick cloud
#

@lusty dew you can make a message attachment from it

bright spear
sick cloud
#

ok

lusty dew
#

@sick cloud ?

sick cloud
#

turn the buffer into an image

earnest phoenix
#

How can I use a variable in a let statement? This is nodeJS. Example:

#

let yeet[VARIABLE_HERE] = 1;

#

First of all, it's always good to ask one question before you post here

#

Does this make sense

#

No...

#

Good

sick cloud
#

smh

earnest phoenix
#

😉

#

Then it's probably not what you want to do

sick cloud
#

@earnest phoenix is yeet an object?

earnest phoenix
#

No, yeet is the start of the variable name.

#

It doesn't matter if it is or not, because as it is, this doesn't make any sense, thus improper syntax

sick cloud
#

you can do this

let yeet = {}

yeet['hello'] = "world"

console.log(yeet['hello'])
// => "world"
earnest phoenix
#

Next question: what do you want to do

#

Would hello be a preset variable? @sick cloud

sick cloud
#

no you need to set it

#

yeet['hello'] = "world" like here

earnest phoenix
#

ah ok

#

thanks

sick cloud
#

@earnest phoenix can you stop shitposting in this channel while i'm trying to help someone

#

np

earnest phoenix
#

What?

#

What blind assumption is this now

#

I'm trying to rationalize with what he is saying

sick cloud
#

don't post here unless your helping someone or being helped

earnest phoenix
#

I'm trying to help him

#

Kind of weird that you just said that out of nowhere but okay.

sick cloud
#

you aren't helping at all.

earnest phoenix
#

I asked two questions

sick cloud
#

its been resolved anyways, out. kthx

earnest phoenix
#
SyntaxError: Unexpected token [
at new Script (vm.js:73:7)
at createScript (vm.js:245:10)
at Object.runInThisContext (vm.js:297:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:266:19)```
#

One was answered, still waiting on the other

sick cloud
#

is rate an object tho

earnest phoenix
#

rate is just text

#

base is a preset variable

#

@earnest phoenix what do you want to do..

#

I don't want to assume

#

@earnest phoenix set this:

rate[VARIABLE_HERE]
to this
1

#

rate is just text

#

I have infront of it

#

Ehm

#

?

#

Can you fix that

#

...

#

What you just showed doesn't look right

#

Maybe you missed the backticks or something

#

......

#

alright then

#

ur on mobile

#

See what I mean

#

heh

#

You should know by now that mobile only does one format per message

#

I don't really see this a lot, so no

#

Anyways, the syntax you are using is for an object[key] reference

#

Is rate an object?

#

no...

#

ive said it before

#

rate is just text

#

!

#

Then you don't want that, then

gilded blaze
#

What are you trying to do? The notation you are using is for setting a certain value in an array or object.

earnest phoenix
#

I'm still confused as to what you want*

#

Do you just want to assign a string to a variable or what

#

${rateUSD}

#

THIS IS A VARIABLE IN TEXT, CORRECT?

#

DO YOU UNDERSTAND THAT?

quartz kindle
#

jesus

earnest phoenix
#

No

#

..

#

rateUSD could be anything

#

..........................

#

Not just a string

#

Well assuming I just said it was a variable

#

it probably is

#

Okay, let's assume it's s string

#

Explain exactly what you want to do

#

do you see the rate in it?

#

Yes

#

mk

quartz kindle
#

${rateUSD} this doesnt mean its a variable in text. this only means its a variable being accessed inside template literals `

earnest phoenix
#

...

#

mk

#

fucking jesus

#

Hey, it's hard to follow along when you're not referencing proper JavaScript

#

I'm trying my best here

#

Everyone is

quartz kindle
#

if rate is an object, and you want to create a new property and assign it a value, then its rate.base = 1

earnest phoenix
#

It's not an object, tim

#

(͠≖ ͜ʖ͠≖)👌

#

its not an object how many fucking times have I said ITS JUST TEXT

#

my god

quartz kindle
#

if rate is an object which contains a property called base, to access it its rate.base or rate["base"]

earnest phoenix
#

I appreciate the help

#

but if your going to help just read

#

rate is nothing

#

I hope you realize that the code you have makes it look like an object

quartz kindle
#

if rate is just text, then rate[bla] is not valid javascript

earnest phoenix
#

It was an [insert text here]

#

That is how you would reference an object value in JavaScript

#

have you never seen that before?

#

heh

#

No, because that's not valid JavaScript you showed me

#

its not javascript lol

#

Referring to the code you showed

quartz kindle
#

why dont you try to explain what you want again... slowly...

earnest phoenix
#

mk

quartz kindle
#

with as much information as possible

earnest phoenix
#

^

quartz kindle
#

and code examples if possible

earnest phoenix
#

let is how you would set a variable... are we all clear on that?

#

let rate = 1; do we understand that using ${rate} would output 1?

#

No

quartz kindle
#

only inside template literals

earnest phoenix
#

........................................................................................

#

Right

#

fucking god

#

It will output 1

quartz kindle
#

let me explain it to you

earnest phoenix
#

Not like that it wont

#

it will

#

if u put it in a

#

message.chanel.send or wutever

#

Dude

quartz kindle
#
let rate = 1;
console.log(rate) //works
console.log(${rate}) //doesnt work
console.log(`${rate}`) //works```
earnest phoenix
#

I'm not going to argue basic JS with you

quartz kindle
#

do you understand now?

earnest phoenix
#

I already knew that my fucking god

#

JUST LISTEN

#

STOP TALKING

#

mk?

#

are we clear that it would output 1?

quartz kindle
#

again, it will only work inside template literals

earnest phoenix
#

that is what I am refering ti

#

to*

#

Im pretty sure i know basic js

#

I don't assume anyone know things these days

#

Because I'm always wrong

#

@earnest phoenix I swear to god

#

shut up for 1 minute

#

ok?

#

you just asked for me to explain it

#

so

#

mk

#

I'm listening

#

I'm just here to correct any misconceptions as soon as I see them

#

it would output "1" (shut the fuck up tim)

#

now I want

#

let rate = 1;
but AFTER rate is a variable

#

so it owuld look like

#

${rateINPUT}

#

understand?

quartz kindle
#

no

earnest phoenix
#

Nooe

quartz kindle
#

what is INPUT?

#

do you want to create a new variable?

earnest phoenix
#

yes

quartz kindle
#

do you want to change rate?

earnest phoenix
#

I want to put a already set variable

#

after

#

rate

quartz kindle
#

you want to concatenate?

earnest phoenix
#

Realky

#

That's all

#

Basic string concatenation

quartz kindle
#
console.log(rate+input);```
earnest phoenix
#

You wasted our time for basic string concatenation.....and getting mad when we tried to help

#

.....

#

no thats not what i want tim

#

fucking god

#

its either im really dumb

quartz kindle
#

you want to change rate into a combined variable?

#
rate = rate+input```
earnest phoenix
#

I want to put a variable after rate

#

so if it was

#

let yeet = 1;

#

it would be

#

let rate1 = 1

#

understand?

quartz kindle
#

ah

#

a dynamic variable

#

eval(let input = 1) i guess

earnest phoenix
#

Tim, uhm

#

Thats not what he wants to do at all

#

He wants to change the name of the declaration

gilded blaze
#

The way you are approaching this is not good practice.

earnest phoenix
#

Sei4or unless your helping I would love you to leave and type your shit in #memes-and-media

#

Ill look at it never

#

You can't do what you want to do

#

wur

#

wut

#

You must declare a variable with a name

#

i know

#

the name will be

#

name + old variable

#

lol

quartz kindle
#

so if i understand correctly, you want js let rate = 1; let abc = 1; //create rate1 = 1 //using rate + abc

#

is this what you want?

earnest phoenix
#

You can't concatenate a declaration

#

@quartz kindle yes

#

wait no

quartz kindle
#

then yes, its a dynamic variable

earnest phoenix
#

rate doesnt exist

#

only abc does

#

rate is just text I need infront of the var

#

it is not a object

#

variable

#

or anything

quartz kindle
#

so yes, a dynamic variable declaration

earnest phoenix
#

sure

quartz kindle
#

eval is one way, but there is a specific way for that

#

let me look up

gilded blaze
#

This is so stupid.

#
eval("var rate1" + rate + " = 12")```
quartz kindle
#

nah the only options are eval and a window global

earnest phoenix
#

@gilded blaze wut

#

no

quartz kindle
#

hes right lol

earnest phoenix
#

I want a new variable tho

#

.....

quartz kindle
#
let input = 1;
eval("let rate"+input+" = 1");
console.log(rate1)```
earnest phoenix
#

o wait

#

ok thaks

#

hold on let me try

quartz kindle
#

or with template literals js eval(`let rate${input} = 1`)

#

but why dont you use an object instead? its pretty much the same thing and much easier

earnest phoenix
#

I cant

quartz kindle
#

why?

earnest phoenix
#

let me try something

#

if it doesnt work ill explain

#

Caused some kind of error...

quartz kindle
#

before you try it with discord, why dont you try it in the console using console.log?

#

and check for errors there

#

apparently eval doesnt work with let

earnest phoenix
#
    at Object.<anonymous> (C:\Users\charl\Desktop\MM\index.js:3:16)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)```
quartz kindle
#

but it works with var

earnest phoenix
#

o ok

#

wait a sec

#

Most likely because let is block scoped

lusty dew
#

Tim

#

can you help me

#

I am trying to make a pornhub command

quartz kindle
#

havent i helped you enough already?

lusty dew
#

but it can't be done

#

like how I did steam

#

it returns a Buffer

#

instead of info

quartz kindle
#

how are you getting it?

lusty dew
#

By doing

earnest phoenix
#

```console.log(${rate1});
^

ReferenceError: rate1 is not defined```

#

o wait nvm

quartz kindle
#

dont use template literals when you dont need them

#

just do console.log(rate1)

earnest phoenix
#

And I thought he knew basic JS

#

Tim mind if I DM you code?

#

I still dont know why this wont work in my bot

quartz kindle
#

just post it here

earnest phoenix
#

but it works outside of it

slender thistle
#

What are `` in JS btw?

earnest phoenix
#

I would rather not...

quartz kindle
#

template literals

#

they are used for concatenation

slender thistle
#

Thanks

quartz kindle
#

instead of "blabla"+variable+"blabla" you use them to do blabla${variable}blabla

slender thistle
#

👌

lusty dew
#
const Discord = require("discord.js")
const request = require("node-superfetch")

module.exports.run = async (client, message, args, ops) => {


var porn = args[0]
try{

var { body } = await request.get(`https://www.pornhub.com/video/search?search=${porn}`)
console.log(body)
}catch (err){
message.channel.send(`Oh no, Looks like you have an error. Error:${err.message}`)
}

}


module.exports.help = {
names: ["pb", "pornhub", "porn-hub"]
}
#

Like that

quartz kindle
#

what does body give you in the console?

lusty dew
#

Buffer

#

here

#

let me show you

#
<Buffer 3c 21 44 4f 43 54 59 50 45 20 68 74 6d 6c 3e 0a 3c 21 2d 2d 5b 69 66 20
6c 74 20 49 45 20 37 20 5d 3e 20 3c 68 74 6d 6c 20 63 6c 61 73 73 3d 22 69 65 ..
. >
#

That

quartz kindle
#

try console.log(body.toString("utf8"))

#

but you're not getting a json response, you're gonna get the full html page source

#

as a string

lusty dew
#

OOF

#

Damn

topaz fjord
#

pornhub

#

nice

lusty dew
#

When VScode lags

#

Well yea

#

I have no other ideas

#

so why not

#

xD

west raptor
#

Make uh

#

Reddit command

#

Idk

lusty dew
#

I have a reddit command

#

Wel

west raptor
#

H