#development

1 messages · Page 1871 of 1

boreal iron
#

.addField("name", "value1\nvalue2\line3”)

terse flume
#

then i got it in 1 line

#

want more for looking clean

boreal iron
#

If you want clean code don’t use the MessageEmbed builder

terse flume
#

im listening 🙂

earnest phoenix
#

I need to do for me lmao

#

I will pay sadge

boreal iron
#

{
description: "text",
fields:
[
{ name: "title", value: "line" }
]
}

lament rock
#

The internals of Discord.js v12 are not type safe and are very jank to work with. Since they're moving to typescript, it's required to make the lib type safe

#

v13 is a step up, but still leaves a bit to be desired

uneven fulcrum
#

Why this no work:```
this.on('guildMemberUpdate', function (guild, oldMember, newMember) {

            const wc = new Discord.WebhookClient("885310964348624896', 'GjpnkjDLKGYPQofPN-cHG7xO-Sm1DrDullvlnZ_v4jyhQZTflsOmONvd0dohtHJ_3SUu");
            if (oldMember.roles.cache.size !== newMember.roles.cache.size) {
                
                if (!oldMember.roles.cache.has("851156630748921927") && newMember.roles.cache.has("851156630748921927")) {
                    wc.send(`yo !`);
                }
            
            }

        
    
    
        })

I get the error
TypeError: Cannot read property 'roles' of undefined```

Im tryna check if a user gets a specific role

terse flume
#

btw is mongoose "shared" trustable?

lament rock
#

It's similar to supporting the (key: K, value: V) => V | null; overload for Collection.find

boreal iron
#

Oh you meant using multiple lines for the value

#

Got it now

terse flume
boreal iron
#

Well use template strings

#

Or string concating, but don’t tell Papi I said this

terse flume
#

wdym

#

can u show an example

#

pls*

boreal iron
#

`string line 1
string line 2`

terse flume
#

but then the code is corrupt

#

like theres a lot of spaces

boreal iron
#

Or
"String line 1\n" +
"String line 2\n"

terse flume
#

yeah thats an good idea

#

thank you

boreal iron
#

Tell nobody about it

#

I’ve said nothing about concating strings

#

Never

boreal iron
#

Tim actually does anything for money tho

#

Even selling his socks

#

He’s a real capitalist

pallid jungle
#
   LogsChannel: { 
      type: String,
      isEnabled: { type: Boolean, default: true }
   }

why when i try to set isEnabled to true it's not working ?

boreal iron
pallid jungle
#

mongoose

fleet lion
#

Using macOS? Try running this cool command:say -v Ralph Hi

terse flume
#

he is saying cannot send empty message

#

ôh wait i see theres a new "send" system

#

approved as working 👍

pallid jungle
pallid jungle
#

and it's not add it in bath

boreal iron
#

{ embeds: [embed] }

earnest phoenix
#
08.09 20:34:04 [Bot] Startup { body: commands },
08.09 20:34:04 [Bot] Startup ^
08.09 20:34:04 [Bot] Startup ReferenceError: commands is not defined
08.09 20:34:04 [Bot] Startup at Client.<anonymous> (/index.js:45:10)
08.09 20:34:04 [Bot] Startup at Client.emit (node:events:394:28)
08.09 20:34:04 [Bot] Startup at MessageCreateAction.handle (/node_modules/discord.js/src/client/actions/MessageCreate.js:23:14)
08.09 20:34:04 [Bot] Startup at Object.module.exports [as MESSAGE_CREATE] (/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
08.09 20:34:04 [Bot] Startup at WebSocketManager.handlePacket (/node_modules/discord.js/src/client/websocket/WebSocketManager.js:345:31)
08.09 20:34:04 [Bot] Startup at WebSocketShard.onPacket (/node_modules/discord.js/src/client/websocket/WebSocketShard.js:443:22)
08.09 20:34:04 [Bot] Startup at WebSocketShard.onMessage (/node_modules/discord.js/src/client/websocket/WebSocketShard.js:300:10)
08.09 20:34:04 [Bot] Startup at WebSocket.onMessage (/node_modules/ws/lib/event-target.js:132:16)
08.09 20:34:04 [Bot] Startup at WebSocket.emit (node:events:394:28)
08.09 20:34:04 [Bot] Startup at Receiver.receiverOnMessage (/node_modules/ws/lib/websocket.js:978:20)```
#

help

boreal iron
#

Bad mobile connection over here oldEyes

earnest phoenix
#

now got this 08.09 20:37:57 [Bot] Startup Started refreshing application (/) commands. 08.09 20:37:57 [Bot] Startup /node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.js:198 08.09 20:37:57 [Bot] Startup throw new DiscordAPIError_1.DiscordAPIError(data, data.code, res.status, method, url); 08.09 20:37:57 [Bot] Startup ^ 08.09 20:37:57 [Bot] Startup DiscordAPIError[10002]: Unknown Application 08.09 20:37:57 [Bot] Startup at SequentialHandler.runRequest (/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.js:198:23) 08.09 20:37:57 [Bot] Startup at processTicksAndRejections (node:internal/process/task_queues:96:5) 08.09 20:37:57 [Bot] Startup at async SequentialHandler.queueRequest (/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.js:99:20) 08.09 20:37:57 [Bot] Startup at async Client.<anonymous> (/index.js:43:5) { 08.09 20:37:57 [Bot] Startup rawError: { message: 'Unknown Application', code: 10002 }, 08.09 20:37:57 [Bot] Startup code: 10002, 08.09 20:37:57 [Bot] Startup status: 404, 08.09 20:37:57 [Bot] Startup method: 'put', 08.09 20:37:57 [Bot] Startup url: 'https://discord.com/api/v9/applications/875607866340438000/commands' 08.09 20:37:57 [Bot] Startup }

boreal iron
#

Load the commands you got from your files into a map

earnest phoenix
#

after changing

#

how

#

it ended after that

#

shutdown

boreal iron
#

Loop though the map, then register them
client.application.commands.create()

#

Only once not on every startup

earnest phoenix
#
 * Load all the available commands
 */
for (let dir of readdirSync("./commands/")) {
  let commands = readdirSync(`./commands/${dir}/`).filter(file => file.endsWith(".js"));
  for (let file of commands) {
    const command = require(`./commands/${dir}/${file}`)
    command.category = dir
    if (!command.data) continue;
    client.commands.set(file.replace(".js", ""), command)
  }
}```
#

my find command portion

terse flume
#

how do i get the guild member from a pinged target (interaction)

earnest phoenix
#

is that right?

boreal iron
boreal iron
terse flume
earnest phoenix
boreal iron
terse flume
boreal iron
earnest phoenix
#

do I have to do that for every command?

boreal iron
#

Each command needs to be registered

#

That’s what the loop does for you

earnest phoenix
#

whats command for loop?

boreal iron
terse flume
#

oh ig interaction.option.getmember("target");

boreal iron
earnest phoenix
#

so the directory?

boreal iron
earnest phoenix
#
  }``` this part needs to be changed right?
boreal iron
#

No

earnest phoenix
#

so I add right after that?

boreal iron
#

As I said the commands being loaded is correct

earnest phoenix
#

oh, thought said needed to be

boreal iron
#

The commands are saved in a map, client.commands

limber mica
#

The commands are saved in a map, client.commands

#

The commands are saved in a map, client.commands

earnest phoenix
#

so what do I need to add/change then

limber mica
#

so what do I need to add/change then

earnest phoenix
#

client.commands?

limber mica
#

client.commands?

earnest phoenix
#

but which one

earnest phoenix
limber mica
#

dont bully

boreal iron
#

You need to loop through clirnt.commands

quartz kindle
#

self bot?

boreal iron
#

@earnest phoenix

terse flume
#

why can i only send 1 time the command and then the bot "ghost crash" the command dont work again @boreal iron

earnest phoenix
earnest phoenix
boreal iron
#

Look above oldEyes

quartz kindle
#

@limber micaare you actually here, or did you self bot?

earnest phoenix
boreal iron
#

Trolling or not, just annoying if I’m trying to explain something

limber mica
terse flume
boreal iron
quartz kindle
#

what program

limber mica
#

He said it does something cool with discord, i got bored so i ran it

#

Fuckin ell

quartz kindle
#

lol

earnest phoenix
earnest phoenix
boreal iron
#

Wut

earnest phoenix
quartz kindle
#

no he was repeating the previous person's message instantly

earnest phoenix
#

Anyone here coding by python

limber mica
boreal iron
#

Doesn’t seem like it’s eras day

limber mica
#

Im talking to him now

earnest phoenix
#
{ MessageEmbed } = require("discord.js"),
{ SlashCommandBuilder } = require('@discordjs/builders')

module.exports = {
  data: new SlashCommandBuilder()
    .setName("bite")
    .setDescription("Bite them for being a baka!")
    .addUserOption((option) => option.setName('member').setDescription('The person who you want to bite').setRequired(true)),
  run: async (client, interaction) => {
    const user = interaction.options.getUser('member')

    const image = await axios("https://api.waifu.pics/sfw/bite").then(res => res.data ?.url || null).catch(err => { console.log(err) })
    if (!image) return interaction.followUp("⚠ | There was some issue in getting image.")

    const embed = new MessageEmbed()
      .setDescription(`**${user.username}**, You got bitten from **${interaction.member.displayName}**`)
      .setImage(image)
      .setColor(client.color.positive)

    return interaction.followUp({ embeds: [embed] })
  }
}``` my base command for each command nearly except like 3
#

what file do I need to change I dont understand sadge

#
    "prefix": "/",
    "token": "removed token",
    "color": {
        "positive": "GREEN",
        "neutral": "BLUE",
        "negative": "RED"
    }
}``` is in next file
#

I removed the token for privacy thingy

#

thats settings.json

limber mica
#

again

#

dammit

#

he did it again

#

Welp

earnest phoenix
#

@boreal iron

limber mica
#

Changing password time

earnest phoenix
#

@earnest phoenix how to add loop?

#

@limber mica Maybe be more careful with the programs you run, self botting is against ToS and a bannable offense here.

#

trying to go global rn

#

with slash

#

so not just my server

#

you do JS? @earnest phoenix

#

No

#

Stop pinging me regarding Development support

#

can you get someone to explain it in dummy language

boreal iron
#

Dude don’t forget I’m driving meanwhile

earnest phoenix
#

oh, still?

boreal iron
#

It takes time sometimes until I can answer

#

Patience

earnest phoenix
#

I thought you got home my b

wheat mesa
#

angeryBOYE texting and driving

boreal iron
#

anything the cops don’t know is legal, am I right?

earnest phoenix
boreal iron
#

God that took forever to write

blissful coral
#

So

earnest phoenix
#

so put that in index or where

blissful coral
#
export class A {
// Main Class
}
export class B extends class A {
}

export class C {
constructor(otherclass: A | typeof A) { }
}
#

How would I check with typings that the passed class object is extended off of another

#

in typescript?

blissful coral
#

I don't think typeof is correct

#

typeof is objects

boreal iron
errant flax
#

home.html

<!DOCUMENT html>
<html>
  <head>
    <title>GuildStats</title>
    <link rel="stylesheet" href="style.css">
  </head>
  <h1>GuildStats</h1>
</html>

style.css

h1 {
  text-align: center;
  color: red;
}
wheat mesa
#

didn't use the right path for css file iirc

errant flax
#

both files r in the views folder

#

is that the prob?

wheat mesa
#

actually wait that's the right way to link a css file

#

you're sure it's named style.css?

errant flax
#

lemme sc the files and folders rq

wheat mesa
#

idk then ¯_(ツ)_/¯

#

I'm bad with frontend

boreal iron
#

Did you change the css code first loading the website?

#

If so always clear the cache on a reload as most CSS properties are cached by your browser

#

(If you change anything)

#

And don’t forget to put your elements in the <body>

#

Your html code is missing that completely

errant flax
#

oh

#

i need to clear my cache then?

errant flax
#

lmao

#

nope doesnt change it

boreal iron
#

You did all steps?

sterile holly
#

[Symbol(code)]: 'CLIENT_MISSING_INTENTS'
How do I solve this

errant flax
boreal iron
#

Code?

errant flax
#

home.html

<!DOCUMENT html>
<html>
  <head>
    <title>GuildStats</title>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <h1>GuildStats</h1>
  </body>
</html>
#

and i know i cleared the website cache bc i got logged out of my website

boreal iron
#

Just CTRL + F5

errant flax
#

lemme clear it again

boreal iron
#

Or SHIFT + F5

errant flax
boreal iron
#

Oh that’s an issue

errant flax
#

wdym

boreal iron
#

Clearing the cache doesn’t work if the app is still running in the background

#

At least for me tho

errant flax
#

so u mean i need to restart my web browser?

boreal iron
#

Watching changes for CSS on mobile is a mess without being able to easily clear the cache for each change like in a browser

errant flax
#

so how do i clear my cache

lament rock
#

pray to steve gates

#

or kim took

steep coral
boreal iron
#

Phone settings on iOS -> Safari -> Advanced -> website data

#

Search your website and remove its data, there’s no separate cache to clear

#

If you got an Android phone, take it, go outsite, search a deep hole, throw it in, fill the hole with concrete, drill a hole into, put TNT into the hole, blast it

#

To make sure

#

I recommend using a real browser on your PC to develop frontend, not your mobile

#

A real browser isn’t called Chrome btw

errant flax
#

i dont have pc

#

well its getting fixed

boreal iron
#

If you got that thing installed, same steps as mentioned above just for the whole PC

errant flax
#

so ill prob test there

boreal iron
#

Hmm that’s not so easy then

errant flax
#

wym

boreal iron
#

Try to visit your website using private browser mode only

errant flax
#

sure

boreal iron
#

This shouldn’t cache much stuff

#

At least I hope it doesn’t

errant flax
#

nope

#

fixed it by adding the style element

#

instead of using an external file

slender thistle
#

Are you using a framework to serve static files?

#

Welp seems so

#

Make sure you got the path right and that your framework actually serves it instead of dropping the request

errant flax
#

im using express

boreal iron
#

Building webservers using JS…

#

World is going crazy

#

Wut

boreal iron
#

(assuming u’re using djs)

coarse topaz
#

Hi, how can I get a list of the users who reacted to a message with a specific reaction?
It should get displayed like this:

<@user.id> <@user.id> <@user.id>
//The more users who reacted, the more users' IDs that will be displayed when consulting said data```

discord.js btw
proven lantern
#

has anyone used aws lambda to host slash commands?

#

i was going to use firebase, but it's super slow

old cliff
earnest phoenix
#

@proven lantern how the heck do you use firebase for hosting dynamic apps

#

you need google cloud run for that

earnest phoenix
#

don't you need the gateway for those

proven lantern
#

lol

#

i'll scan some barcodes

earnest phoenix
#

for a second i thought you were going to scam someone

old cliff
#

node-tesseract-ocr best

#

although I have to separately install binaries

earnest phoenix
#

google lens rules

old cliff
#

node-tesseract-ocr is fast + accurate

proven lantern
#

is that hosting?

#

lambda seems like it'll be a good fit for slash commands

earnest phoenix
#

yeah but google > amazon mmLol

proven lantern
#

that is true

#

my command takes like 30 seconds to run on firebase

#

<1 second when i run it from my computer

restive furnace
wary flame
#

@drowsy crag

earnest phoenix
proven lantern
#

is it possible to make a Promise with an async executor function? new Promise(async()=>{})

#
    resolve(await new Promise((resolve, reject)=> {
        setTimeout(() => {resolve("hi")}, 1000)
    }))
}).then(console.log)```
#

this seems to work

snow gorge
#

!help

proven lantern
#

no

quartz kindle
#

and eslint will scream at you

old cliff
#

Resolving a promise with another promise?

small tangle
#

inception wants to know your location

proven lantern
small tangle
#

damn destructuring and renaming inside of destructuring

jaunty ore
#

how to make bot discort?

small tangle
#

learn a programming language first

jaunty ore
#

Oh okay. Do you know how to install windows?. I installed Windows yesterday, I don't know how. but don't know how to install it

quartz kindle
#

doesnt look like you depend on them to resolve your return value, so you might as well use them without awaiting?

stuck star
#

Python has a bigger library and better api

#

Better performance

quartz kindle
#

lmao

stuck star
#

My first ever bot written in python

#

Does everything

quartz kindle
#

ah yes, an abandoned library is bigger and has better api and better performance

stuck star
#

I shut it down in the past because of college

quartz kindle
stuck star
#

You must be brain dead

proven lantern
stuck star
#

Im a 10 year experiance developer with associates degree in developing. I also work for a cyber security company

#

I know exactly what i am talking about

quartz kindle
stuck star
#

Im never wrong

#

Nothing is impossible

#

Word its self says "Im possible"

quartz kindle
stuck star
#

I fork all my code

#

I have my own version of shit

quartz kindle
#

well good for you

stuck star
#

I dont use other random developers shit

quartz kindle
#

i have my own library written from scratch

#

with my own websocket implementation

stuck star
#

Nice

#

I use lavaplayer for better quality for music 😂

quartz kindle
#

lavaplayer is not even python

stuck star
#

I know

#

I made my own music bot written i java

quartz kindle
#

then why are you going around starting language wars in the name of python lmao

jaunty ore
stuck star
#

I wasnt starting language wars

quartz kindle
#

and flaunting your credentials

#

for no reason

stuck star
#

I was telling the guy to learn python

#

Dont assume shit buddy

#

Learn to have common sense, morals and values for everyone

#

I can clearly see you are uneducated and very rude, toxic and disrespectful

#

Enjoy block

quartz kindle
#

you tried to convince a guy to learn a language by stating incorrect information as a reason lmao

stuck star
quartz kindle
#

oh im disrespectful? lol ok

small tangle
stuck star
#

Way advanced then you

small tangle
#

Tim at this point

modest maple
#

pithink if you have those creds then yikes

#

Because that is a woefully uninformed opinion

#

The "Js has small ecosystem" argument is just bs, maybe not as big as python's but big non the less

#

And this is coming from a Python developer

stuck star
# jaunty ore how to make bot discort?

I do personally recommend reading books about certain lanagues, taking online cources and watching youtube to learn yourself or going to college if you really want a degree in developing after studying all languages

modest maple
#

This dude gotta be a troll lmao

stuck star
#

My favorite book is called "Coding for dummys"

#

You will learn alot

rose warren
quartz kindle
#

and then throwing around his supposed status and credentials as proof that he is right, and im the rude one

small tangle
#

he straight up copied groovy and stated it as a rewrite soo

modest maple
#

Honestly i dont think he has those creds tbh

stuck star
#

Code if fully custom

quartz kindle
#

so much for morals and values :^)

stuck star
#

The name does not have a copyright licence

rose warren
#

And used their icon KEKW

stuck star
#

You must be brain dead

small tangle
#

what about profile picture

modest maple
#

The day i see a experienced developer having this as their banner

quartz kindle
#

calling other people brain dead, and we are the toxic ones

#

lmao

modest maple
#

Is the day i buy google

rose warren
#

Groovy's avatar is still their intellectual property even if the bot is offline.

jaunty ore
stuck star
#

You willing to take 2 to 3 hours a day learning?

modest maple
#

Honestly pick a language and start googling flr tutorials etc... It doesnt matter if its Python or Js or some other popular language

small tangle
#

whitespace

modest maple
#

Think of some basic projects you want to do

quartz kindle
#

chef is a great language

#

:^)

modest maple
#

And just start trying to code them from there

#

You learn by doing rather than watching

small tangle
#

you can actually make functional recipes with it

modest maple
#

So start with basic pronects and just work up

stuck star
#

You can always do small basic projects for practice the gradually work on bigger projects, then sometimes huge projects with multiple developers

jaunty ore
stuck star
#

xD

jaunty ore
stuck star
#

What time is it for you?

#

Its 3am for me rn

#

I will start you off with learning PHP as your first language

#

You can do anything with PHP

earnest phoenix
#

What the fuck

slender thistle
#

Write a performant OS in PHP

earnest phoenix
#

fandi might get sick if you teach em php

modest maple
#

CR_WaitWhat man says js is shit to learn for beginners but then goes aha yes php

jaunty ore
slender thistle
#

Them calling Python the best would be the tip of the cake

modest maple
#

Js has a bigger ecosystem than php mmLul

quartz kindle
#

hes literally a minecraft streamer lmao

slender thistle
#

PHP is the abandoned kid

stuck star
#

I made a whole minecraft pocket edition server written in PHP

#

Lmfaooo

earnest phoenix
#

prove it

stuck star
#

I made over 4k to 5k in revenue

earnest phoenix
#

:^)

stuck star
#

I used to work for a team called TuranicTeam

earnest phoenix
#

but why php

stuck star
#

Better for pocket edition

modest maple
#

Thats a fork

earnest phoenix
#

better question: why the h in php

stuck star
modest maple
#

Of a existing server

stuck star
#

Its a fork with better implements

modest maple
#

Written by other developers

#

Not you

stuck star
#

Still written by us

earnest phoenix
#

us

#

not you

modest maple
#

No you modified part of it

stuck star
#

Altay has implemented more then pocketmine

rose warren
#

Gosh sometimes I hate being a mod 🤐 KEKW

stuck star
#

You must be uneducated

small tangle
#

lmao

#

poor mac

rose warren
#

So many things I'd like to say rn

stuck star
slender thistle
#

Joined GitHub in March 2021

small tangle
#

another thing "modified"?

stuck star
#

GeyserMC suck ass

#

Never use this software

modest maple
#

Secondly i dont see your github in any of those comits

earnest phoenix
#

there is a reason why binance is overloaded with altcoins
people fork bitcoin and say OMG I MADE A CRYPTO HAHAHA

small tangle
#

i'd never use your advice thank you

quartz kindle
#

all his social media was joined this year, all has less than 20 followers

slender thistle
quartz kindle
#

except twitch where he streams minecraft

stuck star
modest maple
#

But honestly it sums up this dude in a nutshell lmao

modest maple
#

You cannot hide those

stuck star
small tangle
#

lmaoooo

slender thistle
#

🤣

quartz kindle
#

what a troll lmao

slender thistle
#

Dude just shut the fuck up and stop embarrassing yourself

stuck star
earnest phoenix
stuck star
#

I keep my shit private on my desktop buddy

slender thistle
#

Though you did that for long enough to make a good first impression

modest maple
#

Dude

#

Thats not how github works

slender thistle
#

In other words, you don't have evidence of your contributions to public projects.

#

(:

jaunty ore
modest maple
#

Unless you're dktapps you did not write this

earnest phoenix
#

I took screenshots of the best parts and now I have free reddit karma

small tangle
#

stonks

stuck star
#

Anyways, ignore these uneducated kids who have no degree in developing. There rude, toxic and disrespectful including have no common sense, morals or values for anyone or anything except themselfs @jaunty ore

quartz kindle
#

lmao

stuck star
#

I will be willing to teach you

small tangle
#

rude and toxic okay buddy, to speak in your slang

slender thistle
#

I'd rather have someone who's not a lying POS teach a newbie

#

than you

#

any day

stuck star
#

These types of people are those who only listen to their own opinions and never anyone else

#

There stubborn developers

modest maple
#

Guys he's right, what did amazon ever see in my skills Aqua_cry

slender thistle
#

Mac lol why is he still here

earnest phoenix
#

monke creates
mentionable destroys
monke > mentionable

slender thistle
#

Hypocrisy shows

#

😛

modest maple
#

Why am i even here i need to get ready

#

Although this is entertaining

quartz kindle
#

i need to pack my suitcase lmao

slender thistle
#

I'm literally in class laughing at this shitshow

quartz kindle
#

im travelling in a few hours

earnest phoenix
#

lmfao

modest maple
small tangle
#

he is still here to entertain us

slender thistle
#

Ah yeah right

modest maple
#

We have a worl festival going on over the weekend

quartz kindle
#

cool

modest maple
#

I nearly forgot to do my covid tests blobpain

rose warren
#

-mute @stuck star Trolling, being highly judgemental, looking down on people, calling everyone "uneducated kids with no degree", toxic and disrespectful. | 3d

gilded plankBOT
#

🤐 Muted 𝙷𝚝𝚝𝚙𝚜𝚓𝚘𝚑𝚗𝚊𝚝𝚑𝚊𝚗#6801 (@stuck star)

#

🤐 Muted 𝙷𝚝𝚝𝚙𝚜𝚓𝚘𝚑𝚗𝚊𝚝𝚑𝚊𝚗#6801 (@stuck star)

small tangle
#

ive never been to a festival peepoCry

earnest phoenix
#

we might just get muted for off topic

slender thistle
#

I vote 1 week!

quartz kindle
#

welp, time to go, see ya

earnest phoenix
#

bye

small tangle
#

he gets one week and each contribution he made lowers it by one day.. wait aPES_Giggle

earnest phoenix
#

not to worry, but i passed captcha bot with google lens

small tangle
#

cya tim ASwave2u

jaunty ore
slender thistle
#

It might have some issues with compiling stuff

#

But for the most part you should be good I believe, depending on what programming language you choose

earnest phoenix
#

You can't run nodejs 14+

modest maple
#

Python also dropped windows 7 support for newer versions

summer torrent
#

imagine using windows 7

earnest phoenix
#

i do

#

because linux has no error content intent and i can't install it smh

jaunty ore
earnest phoenix
#

try using an online coding platform for now

#

I want you to guess which website I'm gonna say

jaunty ore
earnest phoenix
#

are you using wifi instead of connecting your router with a cable

#

because Wi-Fi sucks as heck on windows 7 ethernet rules

summer torrent
#

it is outdated

signal estuary
#

I have here a next file:

module.exports.run = async (inter, con, client) => {
    const connection = getVoiceConnection(inter.guild.id);
    const player = createAudioPlayer({
        behaviors: {
            noSubscriber: NoSubscriberBehavior.Pause,
        },
    });
    connection.subscribe(player)
    player.stop();
}

And I think actually the player should go into idle state in this file:

    let channel = inter.member.voice.channel
    if (!channel) {
        return inter.reply({ embeds: [embedManager.warnEmbed(`${language(inter.guild, 'MUST_CONNECTED')}`)] })
    } else {
        await joinVoiceChannel({
            channelId: channel.id,
            guildId: channel.guild.id,
            adapterCreator: channel.guild.voiceAdapterCreator,
        });
        inter.reply({ embeds: [embedManager.successEmbed(`${language(inter.guild, 'CONNECTED')}`)] })
    }
    let connection = getVoiceConnection(channel.guild.id);
    const player = createAudioPlayer({
        behaviors: {
            noSubscriber: NoSubscriberBehavior.Pause,
        },
    });
    connection.on('disconnect', () => {
        console.log("disconnected")
    })
    connection.on('error', () => {
        connection.destroy()
        client.queue.set(inter.guild.id, undefined);
    })
    let pathM = path.resolve('./music'), currentMusic = 0;
    const playlist = fs.readdirSync(pathM).filter(file => file.endsWith('.mp3'));
    connection.subscribe(player)
    let currentMusicName = playlist[currentMusic]
    client.queue.set(inter.guild.id, currentMusicName)
    let resource = createAudioResource(path.resolve(`./music/${playlist[currentMusic]}`));
    player.play(resource);
    player.on(AudioPlayerStatus.Idle, () => {
        console.log("idle")
        currentMusic++
        if (playlist.length === currentMusic) currentMusic = 0;
        console.log("Music ended, playing:" + playlist[currentMusic])
        currentMusicName = playlist[currentMusic]
        client.queue.set(inter.guild.id, currentMusicName)
        let resource = createAudioResource(path.resolve(`./music/${playlist[currentMusic]}`));
        player.play(resource);
    })

Why?

earnest phoenix
#

that command handler is a pretty smart idea tbh

jaunty ore
earnest phoenix
#

headphones?

jaunty ore
#

Yes, my house has no wifi

valid frigate
#

hi guys so recently i updated most of my projects to use the go 1.17 sdk but the issue is that when running go mod tidy literally everything in go.mod gets filled with indirect require lines

#

did i do summin wrong or is that just a funny bug

jaunty ore
terse flume
#

is that right that the developer of discord js wanna delete the "messagecreate" event?

#

is it true that Discord want to Remove MessageCreate Event?

earnest phoenix
#

@terse flume that's wrong

#

discord is removing message content and you need permission from discord to get it
there are no plans to completely remove message create

earnest phoenix
terse flume
earnest phoenix
#

But verified bots need permission from discord

terse flume
#

how do i get informations about an emoji? \:emoji: doesnt work for me
(like this ':GUILD_OWNER:' for send emojis in bot)

#

discord

outer perch
#

Does anyone know or can give insight about any of the following hosts?
GoDaddy, HostGator, Ultahost, Hostinger

terse flume
#

like this. how i get these info easy

outer perch
earnest phoenix
#

try that

outer perch
#

what's the price for the lowest tier?

#

I found here maybe that's 5.40€

terse flume
outer perch
#

no

terse flume
earnest phoenix
#

But the price decreases per month if you buy a longer plan

terse flume
#

can send a recommend server hoster in the channel?

earnest phoenix
terse flume
#

no i mean can i send a good hoster

#

or is it then like ad?

outer perch
#

send it

earnest phoenix
#

if only someone asks for it you can send them in dm

#

Unless it's a well known trusted site

quartz kindle
#

hostgator = owned by EIG = stay away

small tangle
#

i only heard horrible things of godaddy

outer perch
#

I really want a decent host under 10€/mo

earnest phoenix
tired panther
#

are there any redis alternatives?

outer perch
quartz kindle
#

there's memcached

tired panther
quartz kindle
#

keyv is also a redis fork

tired panther
# quartz kindle like for caching?

I would like to have a dezentral cache, where all Documents will be cached and kept up to date with a change stream.

Bot --------
             |
           Cache Server
             |
Apis ---------
hollow forge
#

HI MY BOT IS NOT GETTING APPROVED IN TOP.GG WHY ?

quartz kindle
#

when did you apply?

hollow forge
#

today

#

2hr before

quartz kindle
#

then wait

#

it takes 2 weeks

hollow forge
outer perch
#

@quartz kindle ppl have been reccomending Contabo. do you know any competitor?

quartz kindle
#

they offer the best stats for the price of any other competitor

#

but their hardware might be older and/or slower

outer perch
#

they offer the best stats for the price of any other competitor
even on user support?

quartz kindle
#

wdym?

#

if they offer customer support?

outer perch
quartz kindle
#

well they have the best stats for the price

#

like 4 cores and 8gb ram for the same price others give you 1 core 2gb ram

outer perch
#

I was actually talking about fast/good customer support

#

😂

quartz kindle
#

oh lol

#

no idea

#

never used them

outer perch
#

I guess I have no other doubt ¯_(ツ)_/¯

#

Contabo gonna be my next investment

#

now with the OS... Thonk

terse flume
#

why is user.presence.clientStatus dont working? (tried Guildmember aswell)

small tangle
#

missing intent?

terse flume
#

i got all intents on ig

outer perch
#

that's not enough

terse flume
outer perch
#

you have to define the intents on the index

terse flume
#

what do i need to define?

outer perch
#

example:

const client = new Discord.Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
terse flume
#

(i miss v12)

tired panther
terse flume
outer perch
terse flume
#

thx

#

why does my bot only send it one time then i need to restart?

#

need code?

outer perch
#

because you're not handling the Interaction correctly I think

modest maple
terse flume
# outer perch because you're not handling the Interaction correctly I think
const {
    REST
} = require('@discordjs/rest');
const {
    Routes
} = require('discord-api-types/v9');
const { token } = require('../../../config.json')
const fs = require('fs');


const guildId = "818660032739672074";
const clientId = "745982051685105674";


module.exports = (client) => {
    client.CommandHandle = async (commandFolders, path) => {
        client.commandArray = [];
        for (folder of commandFolders) {
            const commandFiles = fs.readdirSync(`${path}/${folder}`).filter(file => file.endsWith('.js'));

            for (const file of commandFiles) {
                const command = require(`../../commands/${folder}/${file}`);


                client.commands.set(command.data.name, command);
                client.commandArray.push(command.data.toJSON());
            }
        }
       

        const rest = new REST({
            version: '9'
        }).setToken(token);

        (async () => {
            try {
                console.log('Started refreshing application (/) commands.');

                await rest.put(
                    Routes.applicationGuildCommands(clientId, guildId), {
                        body: client.commandArray
                    },
                );

                console.log('Successfully reloaded application (/) commands.');
            } catch (error) {
                console.error(error);
            }
        })();

    }
}
outer perch
#

hmm, I actually haven't tried slash commands myself

terse flume
#

rip

#

i can try to swap them to global commands

outer perch
#

I only have been using buttons and select boxes

#

I'm still thinking if I really need to fully change to slash cmds, or keep both ways of using the bot

terse flume
#

i wanna keep both but first im trying to do all with slash commands cuz there many dumb ppl who didnt understand how commands with args working and in / commands they see it

outer perch
#

I'm not acquainted with enough Linux OS

#

I only know that Ubuntu 18.04 has the most support, and that Arch Linux is a bragging thing

#

😂

cinder patio
#

Go with ubuntu

outer perch
#

just like that? xD

#

so, 20.04 vs 18.04. which one?

#

and even though 20.04 has better features/improvements, I know the community on 18.04 is bigger iirc

cinder patio
#

I don't think that's a big deal in this case - go with the newest

outer perch
#

aight ¯_(ツ)_/¯

cinder patio
outer perch
#

yeah xD

#

but I am thinking I could use it for other things later

#

so I want to make sure it's a good pick

cinder patio
#

yeah go with ubuntu, generally the OS of the VPS isn't that big of a deal, unless your app is OS-dependent, or needs some software that is OS-dependent

outer perch
modest maple
cinder patio
#

there most likely won't be a problem, I've never dabbled in that area, but isn't a minecraft server essentially a TCP server

modest maple
#

Yes

#

Also its java

#

It doesnt really care where its ran

outer perch
#

all my homies hate Aternos and Hamachi

random flax
#

Hey

#

I want help in one question

#

I want the code for this question please

radiant kraken
#

no

#

we won't spoonfed you

random flax
#

This is the last one of my file

radiant kraken
#

still

cinder patio
#

then why not do it yourself

#

if you did the previous 14

radiant kraken
#

^

random flax
#

I dont know how to do menu driven programs

outer perch
#

that smells like a console program

#

C++?

gritty fractal
#

update: I made it o!

cinder patio
#

it says a menu driven program

random flax
outer perch
#

I think he didn't get how simple it is

outer perch
random flax
#

lmao I was told that I could get any help here but you people cross questioning me :c

radiant kraken
cinder patio
#

Are you in high-school or college

radiant kraken
#

because that's spoonfeed

random flax
outer perch
#

I have no patience for school projects

cinder patio
#

The question is very weirdly worded

#

"Write a menu driven program to do the following option on binary file "Student" "

#

tf?

outer perch
#

the binary file should already exist from previous exercises

#

there are also some grammar errors I think xD

cinder patio
#

it doesn't make much sense, if someone gave this to me as an assignment I wouldn't know what to do either

waxen bough
#

Student: "010001011101010"

earnest phoenix
#

Hi! I have this error :

/moontest/commands/General/npm.js:6
const fetch = require("node-fetch")
              ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /moontest/node_modules/node-fetch/src/index.js from /moontest/commands/General/npm.js not supported.
Instead change the require of index.js in /moontest/commands/General/npm.js to a dynamic import() which is available in all CommonJS modules.```

How can i do bc yesterday i didn't get this error ...
waxen bough
#

i tried to recreate it and it threw the same error

outer perch
#

try import() instead

waxen bough
#

isn't import() async?

outer perch
#

I use like import fetch from 'node-fetch'

waxen bough
outer perch
#

sad

waxen bough
outer perch
#

I use TS

waxen bough
#

yeah the solution is to use import()

#

but it will return a promise

outer perch
#

wait, I use CommonJS

#

look at my tsconfig

{
  "compilerOptions": {
    "target": "ESNext",
    "module": "CommonJS",
    "moduleResolution": "Node",
    "outDir": "out",
    "sourceMap": true,
    "esModuleInterop": true,
    "importHelpers": true,
    "resolveJsonModule": true,
    "experimentalDecorators": true,
    "noImplicitReturns": true,
    "noImplicitAny": true,
    "lib": ["ESNext"],
    "declaration": true,
    "watch": true,
    "baseUrl": "."
  },
  "exclude": ["node_modules", ".vscode", ".env", ".eslintrc.json"]
}
#

but I have the imports previously done

#

before entering any scope

#

@modest maple how are you accessing the VPS? PuTTy?

boreal iron
#

What does the Windows command prompt or the Unix shell miss Putty can do for you better?

modest maple
#

I just use ssh for setting up a new server, from there i just use docker and portainer for everything else after

outer perch
#

I'm using Git Bash for the first login

boreal iron
#

Putty doesn’t do anything better.
Telnet, SSH, cURL, nFTP etc. are natively supported by Windows and Unix these days.

#

(nFTP may needs Windows Pro, not sure)

outer perch
#

yeah I found a tutorial on that, that's why I asked xD

#

only thing I've done was sudo apt install nodejs lmao3d

#

idk what to do after lmao3d

#

git installed

#

now it's the first time setting up an SSH key ever 😮

earnest phoenix
#

sudo apt install nodejs gave me outdated node version 8

outer perch
#

wot

boreal iron
near stratus
#

use nvm instead

#
nvm install v16.8.0
errant flax
#

v16.9.0

#

instead

#

thats the latest version

outer perch
#

my nodejs is 10.19.0

near stratus
errant flax
#

16.9 says in the nodejs page

outer perch
#

nvm is what though?

errant flax
#

node version manager

near stratus
outer perch
#

yes

errant flax
#

what the fu

outer perch
#

so how do I update it?

errant flax
#

use nvm or something

#

as Akio said

outer perch
#

nvm is not found

near stratus
errant flax
#

u need to install nvm

#

afaik

outer perch
#

yeah dumb me

errant flax
#

it isnt built in

#

how do u install nvm anyways

outer perch
#

sudo apt install nvm?

errant flax
#

whats sudo?

outer perch
#

superuser

#

super user do!

near stratus
#
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash 
errant flax
#

whats curl

outer perch
#

client url

near stratus
errant flax
#

cli?

near stratus
#

Command Line Interface

outer perch
#

new to Linux? @errant flax

errant flax
#

ah

#

yes indeed

outer perch
#

I am sorta new

#

had it in high school

near stratus
#

I'm veteran on Linux

outer perch
near stratus
#

I use Windows for gaming tho

outer perch
near stratus
outer perch
#

xD

#

oh wait

#

node is different from nodejs

#

what have I installed?

#
root@*********:~# node --version
v16.9.0
root@*********:~# nodejs --version
v10.19.0
near stratus
#

sus

outer perch
#

well I just removed nodejs

near stratus
#

node is from nvm and nodejs is from package I guess

outer perch
#

hmm

#

I can't add a ssh I just created

#

wtf, it doesn't find the file

#

😦

#

woohoo

#

this is funnier when it works

#

and their

#

hahaha

#

imagine

earnest phoenix
#

so how can i do ?

waxen bough
#

you tried import('node-fetch')?

earnest phoenix
#

my bot start but i have this message

#

(node:24250) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use node --trace-warnings ... to show where the warning was created)

#

@waxen bough

waxen bough
random flax
#

Lmao

#

I sent the assignment pdf without the q.15

earnest phoenix
#

He say me fetch isn't defined, how can i do for fetch so ?

pale vessel
#

why import

#

const fetch = require("node-fetch")

earnest phoenix
waxen bough
pale vessel
#

it shouldn't

waxen bough
#

says it's unsupported

pale vessel
#

how RaidenThink

earnest phoenix
#

ye

pale vessel
#

Where did it say it

earnest phoenix
#
/moontest/commands/General/npm.js:6
const fetch = require("node-fetch")
              ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /moontest/node_modules/node-fetch/src/index.js from /moontest/commands/General/npm.js not supported.
Instead change the require of index.js in /moontest/commands/General/npm.js to a dynamic import() which is available in all CommonJS modules.```
earnest phoenix
#

but yesterday it's worked but not today

outer perch
#

do one thing in the console

#

npm i

#

just that

earnest phoenix
#

ok

#

up to date, audited 295 packages in 2s

44 packages are looking for funding
run npm fund for details

outer perch
#

k it's alright

earnest phoenix
#

yes

pale vessel
#

what version of node is that

outer perch
#

do node --version

earnest phoenix
#

v16.9.0

outer perch
#

aight

waxen bough
#

same version where i tested

earnest phoenix
#

and u got this error ?

waxen bough
#

yes

earnest phoenix
#

mmh

waxen bough
earnest phoenix
#

hey so im making a website where the visitors ip address is shown but instead it shows invalid ip instead, i assume its the repl ip addrss not mine

outer perch
#

can I access my VPS through RDP? @modest maple

#

and maybe install a UI

waxen bough
earnest phoenix
waxen bough
#

can't really think of other solution

worthy iron
#

@everyone

outer perch
#

k

waxen bough
#

nice try

earnest phoenix
#

@waxen bough , @outer perch and @pale vessel I succeeded: I installed an older version which is 2.6.1 (the last one is 3.0.0) and it works perfectly

#

for node-fetch problem

outer perch
#

@pale vessel caught listening to Linked Horizon

quartz kindle
#

@waxen bough @earnest phoenix

This module was converted to be a ESM only package in version 3.0.0-beta.10. node-fetch is an ESM-only module - you are not able to import it with require. We recommend you stay on v2 which is built with CommonJS unless you use ESM yourself. We will continue to publish critical bug fixes for it.
Alternatively, you can use the async import() function from CommonJS to load node-fetch asynchronously

earnest phoenix
earnest phoenix
rapid forge
#

;w;

#

I switched to esm

#

I find it better then cjs

earnest phoenix
#

Slt

#

Qui parle francais

wicked pivot
quartz kindle
lyric mountain
#

man how do I wish discord allowed more than 5 buttons per row

outer perch
#

haha

#

I split them into two rows for my shop

lyric mountain
#

I'll have to do that too, but it's mildly inconvenient

outer perch
#

so, what does docker do?

lyric mountain
#

it docks

outer perch
lyric mountain
outer perch
#

should I access my VPS with RDP?

grim aspen
#

discord.js is hurting my brain

#

const hash = this.hashes.get(${request.method}:${routeID.bucketRoute}) ?? Global(${request.method}:${routeID.bucketRoute});
^

SyntaxError: Unexpected token '?'

quartz kindle
#

whats your node.js version?

#

?? requires node 14 i believe

grim aspen
#

security version... that's the issue

#

it's not getting the right package

outer perch
#

I don't understand

#

I am connected through ssh

#

tried to start an instance of the bot's dev version

#

it ain't starting

quartz kindle
#

define "not starting"

outer perch
#

let me show you a print

#

@quartz kindle I run the command, and it does nothing

quartz kindle
#

that means the script completed successfully

#

and has nothing left to do

outer perch
#

but the bot isn't running

quartz kindle
#

maybe you forgot to login?

#

show code

outer perch
#

if I run on my machine it works

#

on the VPS it doesn't

quartz kindle
#

did you try tsc then node?

#

instead of tsnode

outer perch
#

ts-node is the command I always use

#

ts-node is installed as a package

quartz kindle
#

tsnode is just a shortcut for compiling and running typescript

#

try compiling it yourself and running it normally

outer perch
#

how

#

I always did like that xD

quartz kindle
#

but you use typescript right?

outer perch
#

yea

quartz kindle
#

the nornal way to use typescript is to run tsc file.ts

#

that should create js files

outer perch
#

it never did with ts-node

quartz kindle
#

and use node on the generated js files

outer perch
#

but why doesn't ts-node work?

quartz kindle
#

tsnode is just a shortcut that does it for you

outer perch
#

what's the difference between my machine and the vps??

quartz kindle
#

so one of the steps to figuring out whyvit doesnt work is to get rid of shortcuts to see if it still doesnt work

#

also tsc will create js files, which you can open and check if ts compiled it wrong

#

idk what the difference is, you have to figure that out yourself

#

check if dependencies are properly installed

outer perch
#

but how would it compile wrong from just changing the place where it's done 😂

outer perch
quartz kindle
#

check if they are the same versions, etc

outer perch
#

it installed every missing package

#

package-locks are the same

#

just compared

humble crane
#

How to put playing invite cater bot in our status like MAC's status

quartz kindle
#

well try the tsc method

outer perch
quartz kindle
#

thats what i would do

#

welcome to debugging

outer perch
#

I'll have to do that all through commands

quartz kindle
#

no

#

tsc the main file does it to all files it imports

outer perch
#

ok

#

oh wait

#

does npm i install dev dependencies??

#

omg, I guess ts-node needs to be installed globally instead of locally

#

nah, not working still

outer perch
#

k @quartz kindle, the file weighs 0

#

just noticed

quartz kindle
#

lol

outer perch
#

gonna transfer the file again through scp

quartz kindle
#

scp? secure contain protect?

#

xD

outer perch
#

hahaha no

#

scp means secure copy

quartz kindle
#

scp-477384 a computer file that is unexplainably always empty, no matter how many times you save it and overwrite it

outer perch
#

now it's something

earnest phoenix
#

ah

outer perch
#

6681 what

#

kB?

earnest phoenix
#

and now its showing queued

quartz kindle
#

usually its bytes

outer perch
#

B so

quartz kindle
#

otherwise that yould be 6mb

outer perch
#

yeah

earnest phoenix
#

mB is Bits

outer perch
#

in decimal

earnest phoenix
#

and Mb is Bytes

quartz kindle
#

and mib is mebibytes

outer perch
#

Fontconfig error: Cannot load default config file

quartz kindle
#

install it with apt

outer perch
#

comic sans ms

#

but I have the font files in the folder

quartz kindle
#

apt install fontconfig

outer perch
#

done

sage bobcat
#

One message removed from a suspended account.

outer perch
#

yes! dev version is now completely running on the VPS!

#

now, is it possible to close ssh while running the process?

#

or make a startup process every time the server goes up?

quartz kindle
#

use a process manager

#

like pm2

outer perch
#

oh wait, I actually need to be logged in

#

for it to run

#

😅

outer perch
quartz kindle
#

not a system process but yes, a managed process

outer perch
#

😮

grim aspen
#

const token = this.client.token ?? this.client.accessToken;
^

SyntaxError: Unexpected token '?'

#

but the code doesn't even exist in my main file

sage bobcat
#

One message removed from a suspended account.

grim aspen
#

so i'm running with discord.js newest version. i'm not sure what it wants from me if it

#

it's giving me that code even though i don't have it in the file

boreal iron
#

You need to update nodejs

grim aspen
#

What is the newest version?

boreal iron
#

Older node versions don't know the null coalescing operator

boreal iron
#

You need at least 16.6 or 16.8 afaik

pale vessel
#

16.6+

boreal iron
#

The djs update notes from v12 to v13 should mention this

pale vessel
#

Yeah

#

First paragraph kekw

grim aspen
#

New error:

#

Npm install

#

Signal: killed

boreal iron
#

Just copy the error and paste it in here

grim aspen
#

Literally all it says

boreal iron
#

Updating djs to v13 will require a lot of changes in your code anyway

#

You might wanna read the update notes

grim aspen
#

Sigh

earnest phoenix
#

Hey so its midnigth where i live my brain kinds stopped workiingk

#

Why does it says data is undefined??

#

While bro its right above that

outer perch
#

how can I ensure that pm2 is running my bot on startup?

#

I started the process and then used startup and save

pale vessel
#

that should do it

#

You ran the command it sent with sudo right?

outer perch
#

fuck, no

pale vessel
#

pm2 startup should send a command for you to use, iirc

#

pretty sure it asks for root privilege

outer perch
#

alright

#

gonna try again

outer perch
#

only said this

#
[PM2] Init System found: systemd
Platform systemd
Template
[Unit]
Description=PM2 process manager
Documentation=https://pm2.keymetrics.io/
After=network.target

[Service]
Type=forking
User=root
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
Environment=PATH=/root/.nvm/versions/node/v16.9.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
Environment=PM2_HOME=/root/.pm2
PIDFile=/root/.pm2/pm2.pid
Restart=on-failure

ExecStart=/root/.nvm/versions/node/v16.9.0/lib/node_modules/pm2/bin/pm2 resurrect
ExecReload=/root/.nvm/versions/node/v16.9.0/lib/node_modules/pm2/bin/pm2 reload all
ExecStop=/root/.nvm/versions/node/v16.9.0/lib/node_modules/pm2/bin/pm2 kill

[Install]
WantedBy=multi-user.target

Target path
/etc/systemd/system/pm2-root.service
Command list
[ 'systemctl enable pm2-root' ]
[PM2] Writing init configuration in /etc/systemd/system/pm2-root.service
[PM2] Making script booting at startup...
[PM2] [-] Executing: systemctl enable pm2-root...
[PM2] [v] Command successfully executed.
+---------------------------------------+
[PM2] Freeze a process list on reboot via:
$ pm2 save

[PM2] Remove init script via:
$ pm2 unstartup systemd
terse flume
#

what is interaction.defer() interaction.deferupdate()
What is defer?

pale vessel
#

Defer your reply if you're going to respond later than 3 seconds or if you want to add attachments to your original response

#

It'll say X is thinking... while you defer

terse flume
#

why does my client says defer is not a function?

static trench
#

hello. im getting a "no module named requests" error even though I have it installed. any ideas on how to fix?

grim aspen
#

i somehow got my bot to work

brittle oyster
#

ok

#

congrats Creeper55k

grim aspen
#

even though it is running on really old code

proven lantern
#

anyone here used aws lambda to host slash commands?

static trench
#

hello. im getting a "no module named requests" error even though I have it installed. any ideas on how to fix?

brittle oyster
#

try reinstalling requests

static trench
#

i did

#

its still showing errors

#

ive done sudo pip3 install requests

#

update computer

#

everything

brittle oyster
#

hmm

#

did the install fail?

static trench
#

nope

#

it worke

brittle oyster
#

check for a typo mby

#

else idk

static trench
#

ok

#

i do pip3 list and its there