#development

1 messages ยท Page 1525 of 1

slim void
#

welp

gilded olive
#

LMFAOOOO

mellow kelp
slim void
#

idk how that one happened ๐Ÿค”

earnest phoenix
#

Breaking rules i see

#

Man

slim void
#

oh I remember

#

a lonnnnng time ago

#

I was acting dumb

#

FINE I won't do the delete all channels -_-

gilded olive
#

Good boy

slim void
#

your making me feel bad about it now

gilded olive
#

๐Ÿ‘๐Ÿ‘๐Ÿ‘

slim void
#

and I don't want a ban

#

removed the code

opal plank
#

please do report those bots you see that "do worse"

mellow kelp
#

and thus one more person was saved from an ip ban

gilded olive
#

Dyno does something that would be api abuse iirc

opal plank
#

big bots have a pass

gilded olive
#

But it does it so slowly it isnt api abuse

opal plank
#

i even remember them blatently stating stuff like that

slim void
#

What does Dyno do

gilded olive
#

moderation

slim void
#

how is it api abuse

earnest phoenix
#

1>"Deleting many channels is not API abuse"
2>"But it's"
1>"How?"
2>"Ask in discord API server"
1>"K I'm going in there"
1>"Wait I'm banned from the discord API server"

Banned from the discord API guild, desperate to be also banned from the actual discord API? :KEKW:

gilded olive
#

I dont remember exactly

slim void
#

How does one appeal the api discord ban

solemn latch
#

honestly doubt its appealable

earnest phoenix
#

By contacting support

slim void
#

damn

earnest phoenix
#

Have you realized

gilded olive
#

Doubt you can appeal

#

But you can make a ticket

slim void
#

It was so long ago

#

before I even did bots

#

before my name ๐Ÿ˜‚

#

I'm pretty sure I just trolled

earnest phoenix
#

All of the big bots gets API banned such as Dank Memer, they have to appeal and sort it out everytime

slim void
#

Really?

earnest phoenix
#

Of course, you know how many requests they're making?

slim void
#

Invite Manager has that problem

#

In my opinion..

gilded olive
#

considering how I see people use the bot

slim void
#

Invite Manager should be banned

gilded olive
#

At peak times

#

It can be

solemn latch
#

invite manager is dead isnt it

slim void
#

invite manager is used in mainly nitro scam servers

#

85% of it

#

I've never seen invite manager used for the good

earnest phoenix
#

Invite Manager dug it's own grave

slim void
#

It needs to die

gilded olive
#

I have invite tracking for my bot but its like not a feature we point out to people

slim void
gilded olive
#

People just use plasma

#

Or uhhh that bucket pfp bot

opal plank
#

just back to the topic discord has stated quite a few times that some bots are allowed to do it, so if a verified bot does it, remember that it might have a pass, keyword: MIGHT

Source:https://support-dev.discord.com/hc/en-us/articles/360043053492-Statistics-Bot-Verification-Policy

earnest phoenix
#

Well it's not the bot's problem that it's used for scams

slim void
swift cloak
#

i dont rlly need help but
how can i connect my backend into
my website?
i dont want the website to be https://localhost:4000/
i wanna connect to the website i bought

slim void
#

I have a question.

#

Is deleting a max of 10 channels considered api abuse?

swift cloak
slim void
#

oh

#

so 1 at a time is only allowed?

opal plank
#

dude, just delete the server

#

stop thinking about deleting one a time

earnest phoenix
#

No

Making large amount of API requestes in a short amount of time is API abuse

opal plank
#

what else is going to be left after you delete every channel?

#

literally

#

delete the guild

slim void
#

is deleting 25 at a time bad?

opal plank
#

period

swift cloak
solemn latch
#

honestly, shouldnt ask here. we are not discord support we cannot give an exact line on this.

slim void
#

I wanna make a cmd called

!massDelete channel/role/vc

mellow kelp
#

its all fun and games till the bot shuts off the moment channels are being replaced KEKW

earnest phoenix
#

You're literally aiming to delete all channels, what are you left with? Empty guild, just delete the guild

slim void
#

my 50 members

#

๐Ÿ˜ญ

#

my roles

#

my icon

#

and my welcome screen

earnest phoenix
#

Ah yes, members > API abuse, seems completely legit, bruv

slim void
#

im doing a max of 15

#

to play it safe

#

every 2mins

#

channels delete every 2 seconds

opal plank
#

stop trying to do anything that includes more than 1-10 members or anything more than 2 channels, TOTAL. this does not mean adding delay. means NOT doing aANTYHING touching more than 1-10 members or 2 channels, no looping, nothing

#

thats my 2 cents to you, follow if you will

#

a bot should not be doing anything that implies MASS

slim void
#

still don't get why backup bots are allowed

#

since they are mass

opal plank
#

MASS deleting channels, MASS member kicking, MASS member role adding, MASS MASS MASS

#

anything that you can call it mass

slim void
#

dyno officials server has mass ban?!!

opal plank
#

did you bother reading what i said?

#

cuz i dont think you did

solemn latch
#

note, not all bots follow the same tos

slim void
#

I saw dyno do

#

!massBan

opal plank
#

AGAIN

#

read

slim void
#

from a raid

opal plank
#

what

#

i said

slim void
#

I don't feel safe

opal plank
#

specially big bots

slim void
#

clicking your link

opal plank
#

then dont and go somewhere else

slim void
#

I'm kidding

#

I will

#

;D

opal plank
#

jesus christ, asking for ehlp and not listening

#

ffs

#

im done with this shit

#

enjoy getting ratelimited

slim void
#

private bot

#

at most used once a year

solemn latch
#

private bots get ratelimited and can be against tos.

#

no matter if its never used even

slim void
#

I will make sure it doesn't.

opal plank
#

you dont seem to understand the implications of it

#

the bot is linked to YOUR account

#

just going to remind you of that

slim void
#

alt?

opal plank
#

anything or bot does carries over the responsibilites to YOU

slim void
#

use a dif acc

solemn latch
#

lol

opal plank
#

lmao, now you trying to avoid it?

slim void
#

no

opal plank
#

yeah, good luck developing a bot dude

slim void
#

I just have 2 accs xd

opal plank
#

enjoy, have fun

earnest phoenix
#

Ah yes, brutally ignoring what i said

Doesn't matter public or private, the API calls are made in the same route :KEKW:

slim void
#

API discord said it isn't api abuse

#

๐Ÿฅณ

earnest phoenix
#

You're banned in that guild, how did you even ask?

solemn latch
#

api discord?

earnest phoenix
#

Discord API server

slim void
#

My friend asked for me?

solemn latch
#

ah, is that discord support?

earnest phoenix
#

Bro

slim void
#

I just told my friend to join

#

and paste my question

earnest phoenix
#

Tell him to take an screenshot, let's see if it's legit or not

slim void
#

about what?

opal plank
#

stop reading what makes it convient for you

slim void
#

this channel is cursed

opal plank
#

you are cursed

#

we gave you the same answer they gave you

#

dont abuse the api

slim void
#

:/

#

I won't

opal plank
#

and you keep on pestering

slim void
#

I'm not an idiot

#

I won't abuse it

opal plank
slim void
#

But asking about it is fine

opal plank
#

we said no

slim void
#

I'm banned

opal plank
#

now move on

slim void
#

from that one

opal plank
#

cuz you likely did the same thing you did here

slim void
#

jk I'm kidding but I gtg

earnest phoenix
#

You're banned from all official discord servers

slim void
opal plank
#

sinister isnt one to get annoyed with every little person that drops by

slim void
#

Who is sinister

opal plank
#

literally the guy you quoted

slim void
#

Oh

#

he banned my friend

opal plank
#

before deleting it

#

likely cuz you and your friend kept pestering him just like you did here

slim void
#

true

#

but my friend got mad

#

and said "stfu"

#

to him

#

so.. he deserved it.

earnest phoenix
#

Erwin, let's go back to developing our projects, there's no hope in bothering to teach this guy KEKW

#

Half brain cells lost

slim void
#

I don't call myself a bot dev ๐Ÿ˜„

#

I hate coding

#

I like making videos though

opal plank
#

im too good of a nice guy tho

slim void
#

if I leave this server

#

do I keep my bot/role on top.gg

opal plank
#

i dont think so

slim void
#

hmm

opal plank
#

though dont quote me on that

slim void
#

ima ask in support

earnest phoenix
#

๐Ÿ—ฟ Brain damage

queen needle
#

I've lost braincells reading this

solemn latch
#

i think luca gives it on join. if you dont you can always just ask a mod to give it when you join

slim void
#

๐Ÿค”

#

I need to leave for like 1hour

#

to join this server

#

I'm in max servers

#

Which is normally why I use a alt.

earnest phoenix
slim void
#

alr bye everyone

#

tysm for the helpful information

opal plank
#

not even going to question why not leave another server rather than the one that might get you trouble

slim void
#

And most likely saving me from a ban.. I was finna delete all 200 channels ๐Ÿ˜ณ

#

๐Ÿ‘‹

vague lake
#

Hello, when you are going to answer me please mark me. How do I make the bot do an action altogether after a user votes for the bot?

mellow kelp
#

@vague lake use the top.gg webhooks

gritty bolt
#

if its js

slim void
#
message.guild.channels.forEach is not a function```
#

what does this mean?

vague lake
#

How can I use this?

earnest phoenix
#

channels is an object

slim void
#
message.guild.channels.forEach(channel => channel.delete())```
#

doesn't work?

mellow kelp
#

wait

slim void
#

how would it be done then

earnest phoenix
#

you're probably looking for the cache property

mellow kelp
#

yea i mean ChannelManager doesn't have a forEach() function

earnest phoenix
#

(Is this guy still out to API abuse)

slim void
#

Any alternatives?

mellow kelp
#

you know what

mellow kelp
#

he's probably going to use this to delete every channel or something

slim void
#

I am

#

all 0 channels ๐Ÿ˜‰

mellow kelp
#

why did we help him notlikenoot

slim void
#

Idk

#

I didn't do anything wrong.

earnest phoenix
#

"Thanks for saving me a ban, was gonna delete all 200 channels"

"Yes I'm gonna delete all channels"

#

djs is supposed to respect ratelimit headers

#

API abuse KEKW

#

if not

#

well

#

you're fucked

slim void
#

Call it api abuse it's not

mellow kelp
#

what a madlad

slim void
#

and you don't know why I'm using it

#

It's not for deleting channels

#

I want to get every single channel

#

to copy them

mellow kelp
#

you just said it is

earnest phoenix
slim void
#

Was a joke smh

earnest phoenix
#

Whatever you're doing, we'll know what's it's for

#

something here doesn't add up

#

Lmao

#

before as in 2 and a half minutes ago

#

Plan change in 50 seconds speedrun?

mellow kelp
#

this guy is about to speedrun bot ideas

queen needle
#

bruh

earnest phoenix
#

why are you ignoring everything we're telling you

mellow kelp
#

and we're not gonna tell you anyways

opal plank
#

jesus christ dude

cinder iron
#

bruh

earnest phoenix
#

Weren't you about to change what you're doing, wtf KEKW

#

you got the solution twice

#

five times if we include the times you got told it's an object

mellow kelp
#

you're contradicting yourself over and over again kekw

earnest phoenix
#

what exactly do you think forEach is lmfao

#

Sure go ahead bud, do whatever your mind says, don't come back to us saying why did i get API banned or ratelimited or something

#

read above

#

we told you why and how

opal plank
#

how does ignoring every answer you've been given for the past 20 minutes and then posting the same question multiple times count?

#

what even is your purpose here then?

#

came here to ask a question

#

doesnt listen to the answers

#

so why are you even here?

mellow kelp
#

he's using api abuse to ask the same question over and over again KEKW

slim void
#

Maybe I didn't understand your answer.

opal plank
#

HOW

earnest phoenix
#

WTF

slim void
#

Idk I am a human, no need to be rude.

opal plank
#

not only us frmo this server, the ones from API told you the exact same shit dude

#

and then you even asked your friend to repeat the question

#

AGAIN

mellow kelp
#

do you know what an http request is?

opal plank
#

you've been given the answer more than 6 times by now

#

the SAME answer i must say

earnest phoenix
#

We lost half brain cells explaining and this guy be like, "i didn't understand you"

#

What in the fuck

#

all the times you got your answer

#

5 times

opal plank
#

thats only here

#

theres also DAPI

slim void
#
var server = Client.guilds.get('Your servers ID'); //Check Discord's Help For it
for (var i = 0; i < server.channels.array().length; i++) {
    server.channels.array()[i].delete();
}```
#

this works fine

earnest phoenix
mellow kelp
#

what the

slim void
#

You can use Xenon (the official backup bot), to raid you know?

opal plank
earnest phoenix
#

that's O(n^3)

#

yikes

slim void
#

Since you can make a empty template..

#

and paste it in.

opal plank
#

now you understand why i was saying a mod could drop by ehre

slim void
#

I'm gonna just use that.

opal plank
#

you literally ignored everything we said here

earnest phoenix
#

mmLol Guys, wanna watch a movie or something and let them do whatever, this guy won't understand so, imma get the popcorns ready

mellow kelp
#

you've seen O(n), you've heard of O(n^2)

now get prepared for

O(n^3)

slim void
#

GUYS DO not worry i won't be getting rate limits

#

since I'm gonna use xenon to delete all my channels

earnest phoenix
earnest phoenix
#

๐Ÿฟ

cinder iron
#

o ye

opal plank
cinder iron
#

isnt there like big o complexity

#

but

#

like

earnest phoenix
#

This guy do be lagging tho

sudden geyser
#

O(2^64)

earnest phoenix
#

Up that by 5

#

Komedy gold

sudden geyser
#

5.902958104E20 ๐Ÿ˜”

opal plank
sudden geyser
#

There was some other notation for measuring time that I forgot

#

it started with a T I think

earnest phoenix
sudden geyser
#

Would the computer executing it even live to exist lol

earnest phoenix
#

Which would win

Running a function that takes O(n!) in time or running minecraft with seus shaders

slim void
#

guys

#

I'm kidding but how do you do a status? lol.. it was a joke..

earnest phoenix
#

what's the most recommended DB for beginers?

solemn latch
#

mongo is good and has a lot of features.

earnest phoenix
#

oh right

#

thx

slim void
#

just make a folder for everyone

solemn latch
#

your database solution is extremely uncommon

slim void
#

I'm kidding but woo you know that's how I do it and you hate me ๐Ÿ˜‰

earnest phoenix
#

๐Ÿ—ฟ Are you clowning son

slim void
#

No i legit use folders for my db

earnest phoenix
#

after seeing the complexity of that for loop

#

i'm not surprised

#

"as long as it works" type of dev

#

same reason why yandere sim runs like cyberpunk but has graphics like tetris KEKW

solemn latch
#

pretty sure im a "as long as it works" for a lot of things.

earnest phoenix
#

Both 7 years of development

#

Still shit

#

so which db should i use?

#

MongoDB

#

Or postgres

#

Or

#

Redis

#

That's an accurate flowchart tbh

dusky sundial
#

I'll ask again, any MariaDB experts in here? SadKitty

summer torrent
#

command: ```ts
import { Client, Message } from "discord.js";
import Command from "../components/Command";

export default class Ping extends Command {
constructor(client: Client) {
super(client, {
triggers: ["ping", "latency"]
});
}
public run(message: Message, args: string[]): Promise<Message> {
return message.reply(${this.bot.ws.ping} ms.)
}
}```

mellow kelp
#

oh i remember that was kinda weird

#

try regrouping the parenthesis in some way

summer torrent
#

regrouping ๐Ÿค”

hasty mulch
#

Iโ€™m trying to create an application command with a Discord Python bot using wait_for and I need help cause the error Iโ€™m getting is this: Ignoring exception in on_message Traceback (most recent call last): File "/home/pi/.local/lib/python3.8/site-packages/discord/client.py", line 333, in _run_event These are usually :class:`.VoiceClient` instances. TypeError: on_message() takes 1 positional argument but 2 were given

Can post code if needed

mellow kelp
#

or just make a variable with the required file first

#

that'd be more readable ig

dusky sundial
earnest phoenix
#

@summer torrent Tried logging what the require() returns on that case?

hasty mulch
# dusky sundial What does your on_message() method look like?
class HouseCog(commands.Cog, name = "House Setup Cog"):
    
    def __init__(self, bot):
        self.bot = bot
        
    @commands.Cog.listener()
    async def on_ready(self):
        pass
    
    @commands.Cog.listener()
    async def on_message(message):
        if message.content.startswith('!house'):
            channel = ctx.bot.get_channel(799393207045455914)
            user = ctx.bot.get_user(id=ctx.author.id)
            await user.send('Did this test work?')

            def check(m):
                return m.content == 'hello' and m.channel == channel

            msg = await client.wait_for('message', check=check)
            await channel.send('Hello {.author}!'.format(msg))
            pass
        pass
    
    pass
earnest phoenix
#

Yea, like console.log(require(path))

hasty mulch
earnest phoenix
#

What does it log

summer torrent
#

one sec

dusky sundial
#

Why are you using listeners instead of just making a command?

hasty mulch
summer torrent
vague lake
#
const 
summer torrent
#

i have that file

earnest phoenix
dusky sundial
vague lake
#

#co?

hasty mulch
earnest phoenix
#

Learn basic oop, you need self in every method as the first parameter, which represents the instance of the class

#

Also, client isn't even defined

dusky sundial
#
    @commands.command()
    async def hello(self, ctx, *, member: discord.Member = None):
        """Says hello"""
        member = member or ctx.author
        if self._last_member is None or self._last_member.id != member.id:
            await ctx.send('Hello {0.name}~'.format(member))
        else:
            await ctx.send('Hello {0.name}... This feels familiar.'.format(member))
        self._last_member = member
#

This is an example

summer torrent
#

this is so weird smh

earnest phoenix
#

I assume the path isn't really that clear, like doing ./<path> or ../<path> or whatever? @summer torrent

#

๐Ÿ—ฟ Confusing

summer torrent
#

im using require('path').resolve btw

#

like resolve("commands") returns root/bot/commands

earnest phoenix
#

What happens if you try to pass that exact route to <fs>.readdirSync()

#

Try to see if it works

hasty mulch
summer torrent
earnest phoenix
#

Hmm

dusky sundial
summer torrent
#

is it because im using export default?

earnest phoenix
mellow kelp
#

you should access the default property of the required file

earnest phoenix
#

new (require(resolve(path)))(this) โ†’ new (require(resolve(path))(this))

mellow kelp
#

new (require(resolve(path)).default)(this)

earnest phoenix
#

The behavior of the new keyword WeirdChamp

summer torrent
#

what is the difference ๐Ÿง

dusky sundial
mellow kelp
#

pretty sure the problem is that you have to get the default property from the required file

#

maybe the parenthesis are messing something up, but not sure

earnest phoenix
#

I mean, the require() already returns the class tho

mellow kelp
#

it doesn't

#

i did this once, and i had to use the default property

#

it's because of export default

earnest phoenix
#

Oh wait, i had to open the image, bruh, thanks discord mobile

summer torrent
#

require() is not a function lmao

mellow kelp
#

what

earnest phoenix
#

Try to access default

mellow kelp
#

yeah

summer torrent
#

pog it work

mellow kelp
#

poggers

earnest phoenix
#

Loggers

summer torrent
#

thanks

earnest phoenix
#

Then define it

summer torrent
#

^, and use hastebin or something. No one wants to download your files

solemn leaf
#

yeah get them nasty files out

solemn leaf
#

ew

summer torrent
#

you have typo

#

mentionedMemeber

quartz kindle
#

yo @green kestrel i'd like your c++ knowledge for a sec

#

i have dozens of C functions for which i need to typecheck JS inputs before executing them

#

and i was following the node-addon-api docs, so my type checking ended up looking like this

#

on every single function

#

so i though about simplifying it, and make something reusable everywhere

#

and came up with this

solemn leaf
#

you could just loop

#

remove 20 lines

quartz kindle
#

rate pls

green kestrel
#

it looks good to me

quartz kindle
#

is std:pair alright for this? im not too familiar with c++ data structures

green kestrel
#

if you want two arbitrary values grouped together, sure

solemn latch
#

isnt that exactly what std::pair is for

quartz kindle
#

the alternative would be to use strings or ints instead of enum

#

for identifying types

green kestrel
#

i wouldnt have had an array of std::pair

#

i'd have done std::vector<std::pair<int, std::string>>

#

avoid char* if you can unless NAPI needs it

quartz kindle
#

alright

green kestrel
#

and avoid the bare array

quartz kindle
#

what are the reasons for avoiding them?

green kestrel
#

theyre too easy to overflow, and if you use vector you dont need the special case of element 0

#

you can take element 0 away and use types.size()

#

so it all auto adapts if you add more items

quartz kindle
#

i wont need to add items, these are all static

green kestrel
#

plus appending and manipulating char* strings is a ballache, they cant auto resize

#

i'd still use vector

#

using char* and raw arrays is kinda C like

quartz kindle
#

any performance implication should be virtually non-existent right?

#

another thing that confused me, is that the class Napi::Object supports getting and setting using map syntax, however every single example in their docs uses obj.Get() and obj.Set() instead of obj["key"], it shouldnt make a difference right?

summer torrent
quartz kindle
#

exdee

mellow kelp
#

programming in a nutshell

summer torrent
#

i need sleep

eager crag
#

yo

#

I want my bot dev rol

#

@hardy matrix

#

Tats me

#

Tyvm

hasty mulch
#
@commands.command(name='house')
async def _house(self, ctx):
    user = ctx.bot.get_user(id=ctx.author.id)
    channel = ctx.bot.get_channel(799393207045455914)
    await user.send('Did this work?')
    
    def check(m):
        return m.content == '_house' and m.channel == channel
    
    answer = bot.wait_for('message', check=check)
    await channel.send(f'{list.append(answer.content)}')
    pass
#
Ignoring exception in command house:
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/pi/Documents/Room_Sealer/cogs/room-sealer-house.py", line 21, in _house
    await channel.send(f'{list.append(answer.content)}')
TypeError: descriptor 'append' for 'list' objects doesn't apply to a 'str' object
slim void
#

How do I do a discord status in js

#

@hasty mulch better Discord

hasty mulch
slim void
#

LIPD you use better Discord

#

why?

hasty mulch
#

No, because BetterDiscord is against TOS to use

#

@coral trellis

slim void
#

What?

#

Modifying chrome isn't against the ToS

summer torrent
slim void
#
message.user.setStatus('dnd', 'Backup: 799469461617901571')```
#

correct method?

summer torrent
#

message.user.setStatus what

summer torrent
slim void
#

message.user.setStatus this doesn't work?

#

I can't use client

summer torrent
#

what do you want to do

slim void
#

So when you use the cmd

#

sets the status to the ID

summer torrent
#

change bot's status?

slim void
#

ye

mellow kelp
#

if you want to set the bot's status, use <Client>.user.setActivity()

summer torrent
#

message.client for access client

slim void
#

so message.client.setStatus?

summer torrent
#

user

mellow kelp
#

it's setActivity

slim void
#

which one, your both telling me diff things lol

craggy pine
#

Reading docs for that would be handy.

summer torrent
#

message.client.user.setActivity

slim void
#

client isn't defined is what I was getting but let me define it

#
message.client.user.setActivity('dnd', 'Backup: '+backupData.id+'')```
#

ok got it working

craggy pine
#

well "Client" is whatever you set your "bot" too. People use client, bot ect. Its whatever you coded it too.

slim void
#

but

#

How do you make it dnd?

summer torrent
#

i sent docs link

slim void
#
client.user.setPresence({ activity: { name: 'with discord.js' }, status: 'idle' })
  .then(console.log)
  .catch(console.error);```
#

so this would set it to idle with the status with discord.js?

summer torrent
slim void
#

I hate try it and see ๐Ÿ˜ญ

summer torrent
#

because you should try it and see

craggy pine
#

That's how coding works. Trial and error. It's better than "Does this work" every two seconds

slim void
#
       message.client.user.setPresence({ activity: { name: 'Backup: '+backupData.id+'' }, status: 'dnd' })
  .then(console.log)
  .catch(console.error);```
#

I tried this

#

It works but doesn't set to do not disturb

#

is it not dnd?

summer torrent
#

it is setActivity ๐Ÿ˜ฉ

slim void
#

this works for activity?

#

it does both

#

I saw in docs

summer torrent
slim void
#

activity ^^

summer torrent
#

oh

craggy pine
#

message.client.user.setPresence - > message.client.user.setActivity

slim void
#

no but u can do them both in same cmd?

#

for less lines

#

I was asking is it dnd ?

#

what's the name for do not disturb

craggy pine
#

I see.

summer torrent
#

dnd ig

slim void
#

yeah idle worked

#

but dnd didn't

summer torrent
#

wait for 1-2 minutes

slim void
#

looking in docs rn

#

yeah says dnd idk why it wouldn't set it

#

bingo got it ๐Ÿ˜„

#

idk just has to do it twice lol

crimson vapor
#

is there a way to run something like appname://action in node js ex. file://path or explorer ms-screenclip:

solemn latch
crimson vapor
#

ill test but I think thats just cmd

#

yeah I think that may work actually

solemn latch
#

pog

crimson vapor
#

but maybe I can do it with child_process

#

I think thats the name

vale garden
#

hi

#

i was just making a basic bot

#
@bot.event
async def on_message(msg):
  print(len(msg.guild.members))
#

and this prints 1 for some reason

#

and when i tried getting the name of each member thru a for loop it only gives the bot's name

dusky sundial
vale garden
#

didnt work

#

im stlll getting the same output

pale vessel
#

What do you want to do

blissful coral
#

Code hell

#

Enjoy your eyes

pale vessel
#

Nice

blissful coral
#

@pale vessel nice job hopping over to djs randomly lmao

earnest phoenix
swift cloak
#

hi so i ran npx create-react-app and

it sent me to localhost:3000

how do i change it to localhost:myport?

cerulean ingot
#

for my bot, it has drops, like coin drops. should i have it give the last person to talk the coins or make a like .pickup command for them to get the coins

swift cloak
#

i ran npm i cors x15.

and it says it cant find the module

ping if you can help

solemn latch
#

whats your package.json look like @swift cloak

near stratus
swift cloak
swift cloak
solemn latch
#

and your cors require looks like this? require('cors')

swift cloak
#

yes

#

and when i defined it

#

cors() is a function

#

so it is getting 'cors'

#

OHH

solemn latch
#

pogey something just clicked

slim void
#
@client.event
async def on_member_join(member):
    embed1 = discord.Embed(description="The **Mending Army** is intended to be a fun, welcoming, and friendly environment for anyone. As such, we have a list of rules we expect everyone to follow with no exceptions. By choosing to join the **Mending Army Discord**, you agree to follow all the rules listed below. When chatting with other people, you also accept the responsibility of keeping yourself safe through the use of muting and blocking players. Nevertheless, enjoy your stay, and remember to contact us if you have any questions!", color=0x3cbbfa)
    embed1.add_field(name="Listen Carefully", value="It is required that you read through [#792230750601871361](/guild/264445053596991498/channel/792230750601871361/) before using our Discord.")
    await member.send(embed=embed1)```
long marsh
#

I think I talked with some of you about this for; however, how do you guys manage deploying your nodejs bots to your VPS?

slim void
#

How come this doesn't work for on_member_join?

long marsh
#

I was looking into PM2?

slim void
#

It's suppose to DM the user.

#

But doesn't.

solemn latch
#

i always use pm2 these days.

mellow kelp
#

i use pm2 to restart the bot on crashes

long marsh
#

What about automatically deploying the bot through a controlled CI/CD environment?

solemn latch
slim void
#

yes

long marsh
#

Do you guys leverage a CI/CD process?

solemn latch
#

no

long marsh
#

Dang

slim void
#

this??

#

my bot is private

#

is that why?

solemn latch
slim void
#

wdum in the client?

solemn latch
#

in djs you select which intent's you want enabled, i would presume the same is true for py

slim void
#

how to do that

#

oh nvm

#
intents = discord.Intents()
intents.members = True
intents.presences = True```
#

your talking about this?

solemn latch
#

that would be it i would guess.

long marsh
#

Does Brian normally talk in here? I know he's running that Trivia bot ๐Ÿค”

slim void
#

ye lol

#

they weren't on ๐Ÿ˜ญ

long marsh
#

I'm curious what his server requirements are.

slim void
#

why mee6 never talk here

solemn latch
#

mee6 stinky thats why

slim void
#

does everyone here hate mee6 lol?

#

bot still won't dm Woo

#

even with intents on

solemn latch
#

i think its mostly a meme at this point, imo its average but everythings premium KEKW

#

no errors?

slim void
#

no

#

let me try printing in the event

#

to see

solemn latch
#

yeah was about to suggest that

slim void
#

๐Ÿ˜›

long marsh
#

imagine debugging

#

ew

#

I just write code and it works.

#

๐Ÿ˜„

#

Kidding, obviously

slim void
#

the print didn't go through wtf

#
@client.event
async def on_member_join(member):
    print('Test')
    embed1 = discord.Embed(description="The **Mending Army** is intended to be a fun, welcoming, and friendly environment for anyone. As such, we have a list of rules we expect everyone to follow with no exceptions. By choosing to join the **Mending Army Discord**, you agree to follow all the rules listed below. When chatting with other people, you also accept the responsibility of keeping yourself safe through the use of muting and blocking players. Nevertheless, enjoy your stay, and remember to contact us if you have any questions!", color=0x3cbbfa)
    embed1.add_field(name="Listen Carefully", value="It is required that you read through [#792230750601871361](/guild/264445053596991498/channel/792230750601871361/) before using our Discord.")
    await member.send(embed=embed1)```
#

is this the wrong way, please don't tell me it like.. changed lol

#

I'm pretty sure it was on_member_join ๐Ÿค”

slim void
#

ye..

#

why wouldn't it work then

solemn latch
#

when you looked on discord dashboard you clicked on the correct bot right?

#

most your bots names are almost the same iirc.

slim void
#

yes

#

all intents are on for all bots

mellow kelp
#

why tho

long marsh
#

Unlimited power.

mellow kelp
#

sheev palpatine approves

slim void
#

it makes no sense

#

it should be working

long marsh
#

Discord: "Hey, kid. Do you want all the power ... or none of the power? You choose!"

slim void
#

What?

solemn latch
#

pandasad if i knew python id be able to help more.

slim void
#

The bot works to..

#

just the client event work on_member_join won't work

long marsh
#

Haha, just making satire regarding the idea that you can select the intents you want.

slim void
#

let me move it to the top of the code and check

long marsh
#

If the print didn't fire, then that function wasn't called.

slim void
#

yeah

#

so Im moving it

#

if that doesn't work, then something else is causing the fail

#

yup no

#

wtf

long marsh
#

Where did you move the print statement to?

slim void
#

it's on top

swift cloak
#

how can i connect my react app frontend to my backend?

mellow kelp
#

that vscode color theme looks cool ngl

slim void
#

I modified it xd

#

the other one hurt my eyes

mellow kelp
#

but be more specific

slim void
swift cloak
mellow kelp
#

yeah but how

#

what do you want exactly

swift cloak
swift cloak
slim void
#

any python devs?

long marsh
slim void
#

How come it won't be called?

swift cloak
slim void
#

It's the right function..

long marsh
#

Because it's not firing ๐Ÿ˜„

slim void
#

why??

long marsh
#

You know the answer, lol

slim void
#

How lol

long marsh
#

That I'm not sure

slim void
#

It can't just not fire

long marsh
#

No way!

solemn latch
#

i dont see the difference between the two.

long marsh
#

Woo, I had that exact same stackexchange answer

solemn latch
#

lool

long marsh
#
import discord
from discord.ext import commands

#try add this 
intents=intents=discord.Intents.all()

#if the above don't work, try with this
#intents = discord.Intents()
#intents.members = True

TOKEN = 'your token'
bot=commands.Bot(command_prefix='!',intents=intents)
slim void
#
intents=intents=discord.Intents.all()```
#

wtf is this

#

never seen it in my life ngl

solemn latch
#

no idea

long marsh
#

That's the way to initiate the intents

slim void
#

wasn't rlly explained tooo well in the docs smh

#
intents = discord.Intents()
intents.members = True
intents.presences = True```
#

docs said this ^^

solemn latch
#

the docs examples i thought where good tbh

slim void
#

the js docs is so much better than the py docs

long marsh
#

Wait - is there another intent?

solemn latch
#

thats also a valid intent setup afaik.

slim void
#

py docs low key bad

solemn latch
#

i like the py docs.

slim void
#

js is cleaner

solemn latch
#

dont even know py and i get around it fine

long marsh
#

intents.messages = True

slim void
#

alright attempting to add the intent

#

didn't work

#

let me try the one u sent

long marsh
#

๐Ÿ‘

#

Also, where are you adding those?

slim void
#
intents=intents=discord.Intents.all()
intents.messages = True
intents = discord.Intents()
intents.members = True
intents.presences = True```
#

screw it

#

I'm adding it all

long marsh
#

Before the bot is instantiated?

solemn latch
#

honestly, would just use all and only all

slim void
#

no

#

after

solemn latch
#

oh good point thomas

long marsh
#

Do it before, lol

slim void
#

let me try before

long marsh
#

Your bot is starting without the intents - no bueno

solemn latch
#

it also needs to actually be passed to the client

long marsh
#

Yep

slim void
#

smh

sacred trout
#

does anyone know html i need help with my sute

#

site

wild ore
#

.setImage not work

#

Why doesn't it happen?

slim void
#

html is easy

solemn latch
#

This is used to disable certain gateway features that are unnecessary to run your bot. To make use of this, it is passed to the intents keyword argument of Client.
^ docs

slim void
#

css is easy but still hard

long marsh
#
#try add this 
intents=intents=discord.Intents.all()

#if the above don't work, try with this
#intents = discord.Intents()
#intents.members = True

TOKEN = 'your token'
bot=commands.Bot(command_prefix='!',intents=intents)
#

See what they did there?

slim void
#

ok im doing it

long marsh
#

bot=commands.Bot(command_prefix='!',intents=intents)

wild ore
long marsh
#

Well, I did my good deed of the day ๐Ÿ˜„

slim void
#

ayy

long marsh
slim void
#

we got a dm ๐Ÿ‘€

long marsh
#

Nice!

slim void
#

I hate the intents

sacred trout
#

i ma sorry but i needed help

slim void
#

I liked it how it was before

long marsh
solemn latch
#

intents are very useful

slim void
#

no but before we didn't require them

sacred trout
#

@slim void can you please check your dms?

slender thistle
#

Well, HTML is technically still development

wild ore
#

Discord.MessageEmbed @long marsh

sacred trout
#

yes

slim void
sacred trout
#

yes

slim void
#

pls do not dm people without asking first!

sacred trout
#

sorry ๐Ÿ˜ฆ

slim void
#

At least not me ๐Ÿ˜„

#

Dm woo

#

he is a nice guy ๐Ÿ˜‰

long marsh
solemn latch
#

we technically allow any dev stuff within reason

sacred trout
#

@solemn latch this wooo?

solemn latch
#

this is woo

long marsh
#

Ah, my fault

#

Is @solemn latch Woo ... hmm

sacred trout
#

@solemn latch can i dm you?

slim void
#

is html / css bot development tho ๐Ÿค”

#

is it even development?

slender thistle
#

Yeah, (bot) just puts an emphasis but any development stuff is allowed, as Woo said :p

slim void
#

it's a markup language

long marsh
#

Sorry shivaco, I'm probably not in here as much as you and I have 0 authority. My apologies.

slim void
#

html is gay

solemn latch
#

if its top.gg related sure, if its dev help you should ask your question here.

sacred trout
#

umm it's web related

slim void
#

I don't like making websites in html tbh

slender thistle
#

No need to apologize. That was a reasonable guess anyway ๐Ÿ˜„

sacred trout
solemn latch
#

im not good at html/css

wild ore
#

who can help me?

slim void
#

Woo htm.css isn't hard but it's like weird

sacred trout
#

i want the firework thing to be the background not an element

slim void
#

the box-sizing and margins can get confusing

solemn latch
#

i just dont practice it enough to help with general issues.

long marsh
#

I just finished building my site from the ground-up using html + css. Learned a lot; however, hated every second of it ๐Ÿ˜„

slim void
#

and svg is hard af

sacred trout
#

lol

wild ore
slim void
#

I learned a little html and css, hated it xd.

long marsh
#

Israfil, paste your full block of code where it's used in

solemn latch
#

@long marsh theres a really good skillshare class on it apparently, kinda want to take it.

wild ore
#

.setImage not workin in MessageEmbed

sacred trout
#

can anyone help me?

long marsh
wild ore
#

okey

long marsh
slim void
#

wtf dyno broken

#

I muted my atl

#

and now my alt has like perm mute lol

#

even if u remove when u rejoin it stays ๐Ÿ˜‚

solemn latch
#

thats a feature of dyno

slim void
#

?

wild ore
#

const help = Discord.MessageEmbed()
.setDescription("bla bla")
.setImage("link")
message.channel.send(help) @Thomas#0059

slim void
#

but it's not persisted lol

wild ore
#

@long marsh

solemn latch
#

prevents leaving and rejoining to lose mute.

long marsh
wild ore
#

yes

solemn latch
#

is it a link to a proper image host? many links do not contain the image data in a way discord can see it.

wild ore
#

A small photo appears under the embroider I want

long marsh
#

Yeah, my next question

wild ore
#

@solemn latch dbl widget

long marsh
#

Does the url end in .png?

wild ore
#

no

#

.svg

long marsh
#

Or, I guess, .jpg

#

svgs ... are they supported?

solemn latch
#

you cant directly use the dbl widget in .setimage afaik.

earnest phoenix
#

svg?

#

Does discord supoort .svg?

solemn latch
#

theres a trick to it, lemme see if i can find it again.

slender thistle
#

Replace .svg with .png in the URL

long marsh
#

I didn't think they did support .svg

solemn latch
#

oh was that it LOL

wild ore
#

okey

slender thistle
#

As far as my memory goes at least ๐Ÿ˜

long marsh
earnest phoenix
long marsh
#

Lol

solemn latch
#

just do the one shiv suggested

long marsh
#

Yeah, Woo, he's waiting

solemn latch
#

shiv did the py lib

long marsh
#

๐Ÿ˜„

#

The entire py library?

earnest phoenix
solemn latch
#

not sure how much of it, but he maintains it now

long marsh
#

I'm so sorry you had to go through that, Shiv. You poor soul.

slender thistle
#

I maintain dblpy

wild ore
#

how do i adjust this photo now?

slim void
#

Dyno has a feature where, if you are banned from the official Dyno server, then Dyno will mute that user from any server with Dyno in it (only if they join it)

slender thistle
#

๐Ÿ˜‚ Come on, most of it was already done for me since I only took owneship of a dead library

solemn latch
#

how are you banned from so many servers wth

slim void
#

my alt lol

#

The alt is banned not me

earnest phoenix
long marsh
# slender thistle I maintain dblpy

Actually, on another note, why do you do it? I couldn't fathom the idea of maintaining a library without some sort of compensation. What exactly about it gives you the motivation to continue?

earnest phoenix
#

Or the pixels number that you want

slim void
#

Hey at least I'm not banned from top.gg lol

wild ore
long marsh
#

Super personal question, feel free not to respond ๐Ÿ˜„

earnest phoenix
#

I only did it with displayAvatarURL

slender thistle
#

Well, I haven't thought about it, really. I guess I was looking for experience in maintaining public projects and generally just something to do

slim void
#

@slender thistle what is db py

solemn latch
slim void
#

I'm not in Dynos server.

solemn latch
#

your in their support server on your main, while you are banned on alt

#

i just looked and your in their member list

slender thistle
#

I don't get money for it, so it's all voluntary work ๐Ÿ˜

slim void
#

I'm not in there

#

This is my main acc.

#

What acc did you find that's in there?

solemn latch
#

the one you are on

slim void
#

Might be a dead non-verified acc lol

#

I'm not there?

solemn latch
#

used your id to find it.

slim void
#

I'm legit not in Dynos server

#

I don't see it on my list..

#

it's not there

long marsh
# slender thistle Well, I haven't thought about it, really. I guess I was looking for experience i...

First of all, I'm coming from a purely non-confrontational / non-criticizing point of view. Let me get this straight, you chose to do open source because you wanted more Python / exposure to maintaining libraries? In addition, it gives you something to do? Surely, with your skill, you could probably create some sort of profitable venture ๐Ÿ‘€. Either way, thank you for your work on that. Truly, it's people like you that make my life easier. Thanks!

slim void
#

yeah im not there lol

#

idk how u finding my id if i'm not there

long marsh
#

Also, forgive me, I'm so money focused - I never think people could enjoy doing something voluntary ๐Ÿ˜„

slim void
#

@solemn latch I'm not in there

#

try pinging me.. I'm not there.

solemn latch
#

bot reviewing is volunteer pandasad

long marsh
#

WHAt

slim void
#

Woo elaborate

long marsh
#

Dang!

slim void
#

you said I was in Dynos server

solemn latch
slim void
#

wtf

#

it's not the same acc then

long marsh
slim void
#

what's the ID?

long marsh
#

They don't at least give you auction credits ๐Ÿฅบ

slim void
#

might be a old/non-verified acc

slender thistle
solemn latch
#

671912452480434186

slim void
#

671912452480434186

#

HOW

#

if I'm not in there

long marsh
slim void
#

want me to screen it

#

join vc

#

join vc Woo

#

I will show u

#

..

slim void
pale vessel
slender thistle
#

Now you're just flattering me... I struggle with making a decent approach to the webhook manager system I'm planning to implement!

slim void
#

legit I'm not there

solemn latch
#

nah, we work for head pats from iara.

slim void
#

Woo ur lying

pale vessel
#

at least a mod told me that

long marsh
slim void
#

u trolling me

#

I'm legit not there

#

Becaue I'm banned

solemn latch
#

so you got banned on your main and alt?

slim void
#

I cannot join if I'm banned ๐Ÿ˜ฆ

#

yup

solemn latch
#

you know thats also ban evasion

#

lol

slim void
#

how

#

I got banned at same time lol

#

we were both in there

solemn latch
#

ah

slim void
#

And then I said something stupid

#

I pinged the owner

#

and said f

#

and they banned ๐Ÿ˜‚

#

then I did it on alt

#

and I got banned

slender thistle
slim void
#

idk I can appeal it in dynos email. Just to lazy.

long marsh
#

Do you have a draft PR or anything open?

slender thistle
#

Nope. I usually test my changes locally and then simply commit them to prod once I'm somewhat sure they work

long marsh
#

๐Ÿ˜ฌ

#

No change control process ๐Ÿ˜„

slender thistle
#

True. Could use one when I get lost in my own stuff often ๐Ÿ˜‚

#

Thanks for the idea!

slim void
#

yo my Grammarly isn't working

#
Welcome to the **Mending Army**, it's such a pleasure to have you here! New members must wait at least 10 minutes before sending messages. If you have any additional questions, just send us a message here!```
#

someone use brain pls

slender thistle
#

Could probably use ; in the first sentence instead of the comma. But, other than that, you're good

slim void
#

๐Ÿ˜› thx

long marsh
slim void
#

๐Ÿค”

slender thistle
#

That works too, yeah

slim void
#

why go bold

earnest phoenix
#

lol

slim void
#

when u can go allllll bold

long marsh
#

I copied it directly from your message, lol

slim void
#

go italics, bold, underline

solemn latch
#

||or make it a secret||

slim void
#

||wtf||

slender thistle
#

Because bold is usually put on parts you want to emphasize

earnest phoenix
slim void
#

btw Discord banned me from using the bold feature

#

**I abused it wayyy to much** so they don't let me lol

earnest phoenix
#

What the hell is that?

#

bold

slim void
#

**yeah ik it sucks ;(**

#

๐Ÿ‘€

earnest phoenix
#

a

slim void
#

*dude how*

#

*doesn't even work for me*

long marsh
#

two probably

slim void
#

**oh I tried two but look**

long marsh
#

You on mobile?

slim void
#

desktop

#

**it's soooooo dumb**

#

```
work god dammit
```

#

*wtf*

solemn latch
#

**get got**

slim void
#

๐Ÿ‘€

#

he knows the hack

#

Woo shh don't tell them

solemn latch
#

thomas knows it too, he just hasnt realized it yet.

slim void
#

๐Ÿ˜‚

#

I troll people doing that