#development

1 messages ยท Page 1110 of 1

ionic dawn
earnest phoenix
#

because I can't understand what they send e
@jolly wave then don't ask us bruh

viral iris
#

Brain.exe has crashed probably
@earnest phoenix true lol๐Ÿ˜‚

jolly wave
#

welp

#

Brain.exe stopped working

earnest phoenix
#

If you want the RAM usage check out my public source

quartz kindle
#

@sinful belfry idk if you're on the latest version but can you test the latest commit? npm i timotejroiko/discord.js-light

earnest phoenix
#

If you want the RAM usage check out my public source
@jolly wave ^^^

#

The second setInterval function in my hell messy source

#

It logs the usage every hour

#

You can reverse engineer some stuff

digital ibex
#

huh

sinful belfry
#

@sinful belfry idk if you're on the latest version but can you test the latest commit? npm i timotejroiko/discord.js-light
i was on 3.1.0 but i'll try that out now

earnest phoenix
#

@jolly wave Do you still need help

jolly wave
#

Idk

earnest phoenix
#

Scroll up

jolly wave
#

Let me try a thing

earnest phoenix
#

I kinda spoonfeeded you

#

Check my source

digital ibex
#

your source?

earnest phoenix
#

And DONT demand us to answer you

jolly wave
#

I don't think I'll need to

earnest phoenix
#

ok....

#

bruh moment

digital ibex
#

what is your souce, code913?

earnest phoenix
#

i literally told you you can reverse enginerr a oart of my source for the ram usage

jolly wave
#

nice my bot stopped working

earnest phoenix
#

Bro

ionic dawn
earnest phoenix
#

You took the whole function or what

#

It logs it in my channel and your bot is not in my server

sinful belfry
#

@quartz kindle tysm, i'm not getting that issue any more with the latest commit

#

it seems to be working fine now

jolly wave
#

Now I can't even test my bot

#

nice

quartz kindle
#

awesome

earnest phoenix
#

dude

digital ibex
#

whelp

sinful belfry
#

oh wait

earnest phoenix
#

fuck you

sinful belfry
#

crap

jolly wave
#

Bruh

digital ibex
#

....

jolly wave
#

Let me test what you told me in peace

sinful belfry
#

my console just got flooded with errors to do with guild_members timeout

quartz kindle
#

rip

sinful belfry
#

same thing

#

lmao

earnest phoenix
#

Let me test what you told me in peace
@jolly wave well that's why i said you're demanding me to fix your shit

quartz kindle
#

how many guilds are you on?

sinful belfry
#

around 500

earnest phoenix
#

lmao

quartz kindle
#

hmm

sinful belfry
#

i think there are around 250,000 members total

digital ibex
#

the fuck

earnest phoenix
#

oh wait it's a bot i thought he himself was in 500 servers

digital ibex
#

you need to rewrite that shit @earnest phoenix

earnest phoenix
#

no

snow briar
#

Hello

earnest phoenix
#

it works fine

jolly wave
#

Now i don't need help with he ram usage

#

I need help with my freaking bot launching

earnest phoenix
#

and i intentionally made it messy so noobs can't clone my bot

sinful belfry
#

it worked when the client first logged in, but then it was disconnected by discord with that 1000 error code and then the members fetch didn't work suddenly

digital ibex
#

literally just opened the first one

earnest phoenix
#

Starman can you mute mentionable name

#

He's not getting we're all ignoring him because he's asking us to spoonfeed hin

jolly wave
#

no

earnest phoenix
#

you are

jolly wave
#

Just telling that I c'a't launch my bot now

earnest phoenix
#

dont lie

ionic dawn
#

"Hi guys, can you code my bot for me?, thanks"

wheat jolt
#

is there any html css master that can help me a bit

earnest phoenix
#

umm i am not that big of a master

#

people told you the solution 10 times

ionic dawn
#

is there any html css master that can help me a bit
@alexander.#6820 Ask, and lets see

jolly wave
#

I AM JUST TELLING THAT I CAN'T LAU'CH MY FREAKING BOT RIGHT NOW

earnest phoenix
#

but i can helo you Alexander

solemn latch
#

Then fix the issue?

earnest phoenix
#

I AM JUST TELLING THAT I CAN'T LAU'CH MY FREAKING BOT RIGHT NOW
@jolly wave THEN DEBUG THE ERRORS

jolly wave
#

There is no error

earnest phoenix
#

then send code instead of crying

jolly wave
#

Just an empty output

earnest phoenix
#

then

ionic dawn
#

Mayb its running?

earnest phoenix
#

you aren't starting the bit

ionic dawn
jolly wave
#

It's offline

earnest phoenix
#

the file is not running then

slender thistle
#

is there any html css master that can help me a bit
@wheat jolt just send the details

earnest phoenix
#

that wont help

slender thistle
#

someone will help eventually

earnest phoenix
#

or your internet is shit

snow briar
#

Guyz what's going on here

jolly wave
#

My wifi is fine

ionic dawn
#

node {js route}

earnest phoenix
#

then

ionic dawn
earnest phoenix
#

send the code

#

and we'll check smth

#

but don't demand

#

^

#

why are you pointing at your name

slender thistle
#

No need to flood the chat like that

jolly wave
#

?

earnest phoenix
#

dude

#

i suspect you don't have a brain or smth

slender thistle
#

be nice

earnest phoenix
#

ok qt

#

whats the bots prefix? @pliant gorge <--

#

bruh

slender thistle
#

- but it only has -ping command

quartz kindle
#

@sinful belfry yup, i tested it with my 4k guilds bot and also got issues. the problem is that since djs floods the gateway with member requests it hits the limits pretty fast, and the waiting causes the timeout to expire

slender thistle
snow briar
#

Who

quartz kindle
#

i'll come up with a workaround

slender thistle
#

@snow briar Not you. Please refrain from posting unnecessary messages if you're not going to help anyone or ask for help with programming

earnest phoenix
#

@jolly wave Send the code and be nice and we'll see what stuff is causing your bot to not start

jolly wave
#

OK wait

ionic dawn
#

Pls dnt send the token feelsWoahMan

jolly wave
#

I am not that dumb

earnest phoenix
#

ok is in caps

ionic dawn
snow briar
#

Actually I am new to discord so I m having problem understanding this

solemn latch
#

This is a development channel, for discussing programming

snow briar
#

Ok thank you so I need to join that channel ๐Ÿ‘๐Ÿป

earnest phoenix
#

yes tony

jolly wave
#

Here

#

Script too long to send so yeah had to screen it

lusty quest
#

you know windows has a snipping tool for screenshots right?

solemn latch
#

Omg

earnest phoenix
#

do you even log in

slender thistle
#

That's a separate event per each command at least

jolly wave
#

e

slender thistle
#

which is already quite wrong

jolly wave
#

Wait

earnest phoenix
#

do you even log in

jolly wave
#

const Discord = require("discord.js");
const client = new Discord.Client();

var prefix = '?'
var token =

client.on("ready", function() {
console.log(Logged in as ${client.user.tag}!);
})

client.on('message', msg => {
if (msg.content === '?hi') {
msg.reply('Hello!');
}
});

client.on('message', msg => {
if (msg.content === '?help') {
msg.reply('command: "?help","?hi"," ?warn"," ?newspaper", "?invite", "?usercount", "?servercount');
}
});

client.on('message', msg => {
if (msg.content === '?newspaper') {
msg.reply('1.0.2 : New command "?usercount" and "?servercount" added.');
}
});

#

Only a part

earnest phoenix
#

you dont even log in

jolly wave
#

Wait

earnest phoenix
#

smh

jolly wave
#

?

#

wait ooooof

earnest phoenix
#

thats enough of this server for today

slender thistle
#

@quartz kindle Have you ever worked with socket.io? nekothinking

ionic dawn
#

Jesus christ...

jolly wave
#

Idk what removed that freaking line

#

But it was here

earnest phoenix
#

put the commands in 1 event

slender thistle
#

A bit curious if I really should use python-socketio if I'm going to use Django as backend or if the default websockets library will be enough

#

as in, is there a chance for any compatibility issues?

jolly wave
#

Rectification :I am dumb

ionic dawn
#

Well, just missed something, the real problem was asking that a lot of times

misty sigil
#

put the commands in one event

#

not 3 or 4

ionic dawn
#

@jolly wave

if(message.content.startsWith(prefix + "stats")){
const memoryUsage = Math.ceil(process.memoryUsage().heapUsed / 1024 / 1024);
message.channel.send('**Memory Usage:** ' + memoryUsage + 'MB')
}
slender thistle
#

spoonfeed

ionic dawn
#

Spoonfeed?

solemn latch
#

Spoonfeed.

ionic dawn
#

Whats that

solemn latch
#

Giving copy paste code

slender thistle
#

straight up giving code to someone without any explanations

ionic dawn
#

He literally ask for it

solemn latch
#

And the rules say not to do it

lusty quest
#

this is how spoonfeed works

solemn latch
#

He wont learn anything if you do that

ionic dawn
#

So, if someone needs help or something I can't give any code?

jolly wave
#

Welp even what you sent don't work

lusty quest
#

you can give pointers

#

but not entire commands

ionic dawn
#

it does

jolly wave
#

Message is not defined

#

bruhh

ionic dawn
#

Well, after that reply from him im not giving a shit anymore lol

#

JESUS omg

jolly wave
#

k leave

solemn latch
#

Your events use msg

jolly wave
#

That's what I am changing message to bruh

lusty quest
#

i suggest that you learn some basics in javascript before starting to Write more Advanced stuff

misty sigil
#

i suggest you learn js before attempting a bot

jolly wave
#

Even with msg it say the same error

#

I am out

lusty quest
#

sure writing a bot seems to be easy but the more advanced stuff needs some knowledge

ionic dawn
#

This happends a lot?

solemn latch
#

Yeah

lusty quest
#

atleast once per day

solemn latch
#

Lots of peoples first project is a bot, and they don't learn any of the language before starting

jolly wave
#

I learned lua

misty sigil
#

then make a bot in lua

#

im fairly sure you can do that

jolly wave
#

I'll be lost fast

ionic dawn
#

My first project was a stupid calculator using a raspy, but mate, how can someone ask those questions and act that way with the people

solemn latch
#

If you know lua

#

How would you be lost making a bot in lua

jolly wave
#

e forget what I said

#

But now it's not message is not defined but msg xddddddddd

solemn latch
#

Change message to msg

jolly wave
#

Msg is not defined

solemn latch
#

๐Ÿค”

lusty quest
#

i actually learned javascript by coding bots. but i knew some lua before and know how to find stuff on google (learned this by having some wired issues with gameservers where the only fix was somewhere on Google page 20)

solemn latch
#

Msg wouldn't be

misty sigil
#

lmao

solemn latch
#

If msg is your var

misty sigil
#

google page 20

jolly wave
#

It's the var but it don't work

placid iron
#

Sometimes spoon feeding is nessecary to stop yourself from going mad

misty sigil
#

its casesensitive

solemn latch
#

Or just not responding

ionic dawn
#

I always research at discordjs-guide/stackoverflow etc, I don't really like to ask for help, bothering people for my stuff lol

misty sigil
#

Sometimes spoon feeding is nessecary to stop yourself from going mad
@placid iron this, exactly this.

lusty quest
#

usually i do these steps:

  1. Try some stuff maybe i get a idea what could work
  2. Look into the Docs
  3. Stackoverflow
  4. random Websites that google spew out bcs of a single keyword
  5. ask here if someone has a idea
jolly wave
#

Then

ionic dawn
#

Check page 2 of google

patent geyser
#

i

f o l l o w a y o u t u b e t u t o r i a l

misty sigil
#

biNGO!

jolly wave
#

Let's ask here then

earnest phoenix
#

How i can delete the [afk] in a username

#
from: [afk]name
to: name
#

how

ripe wasp
#

hey guys i rlly need help

#

str(name)

lusty quest
#

replace("[afk]") if you use js

jolly wave
#

Do SoMeOnE KnOw wHy mSg is nOt dEfInEd ?

ripe wasp
#

msg = (var)

solemn latch
#

You said Msg is not defined.
When your var is msg

ionic dawn
#

Because your IQ its equal to your bot uptime

earnest phoenix
#

ok thx

slender thistle
#

-ask2ask @ripe wasp

gilded plankBOT
#

@ripe wasp

Don't ask to ask.
Just ask your question, it wastes time if you say "i need help" or "can someone help me?" instead of just saying what the problem is. Save your time and other people's time and just ask the question.

Please read https://dontasktoask.com/ for an explanation on why this is an issue.

solemn latch
#

Msg and msg are not the same thing

viral iris
#

how to read data from json file ?

slender thistle
#

parse it with special functions

ripe wasp
#

sorry

#

@slender thistle sorry

#

well you see

#

my friends want me to develop an ICE bot bc they're all mexican

misty sigil
#

Because your IQ its equal to your bot uptime
@ionic dawn lmao

ripe wasp
#

and my var doesnt work

#

can i send the script

misty sigil
#

yes

#

p.s we are not free debuggers

ripe wasp
#

from discord.ext import commands
import discord
import os
import sys

client = commands.Bot(command_prefix = "!")

@client.event
async def on_ready():
print("ready")

class Reply():
def init(self, bot, member):
self.bot = bot
self.Member = member

@client.command
async def check(message):
if message.content.startswith('!check'):
channel = message.channel
await channel.send('Any Mexicans here?')
if int(await channel.send) > 1:
exit()

@client.command
async def mexicanfound(message):
if message.content.startswith("!mexicanfound" + str(mexican)):
await channel.send('gtfo spik' and '@GreedyRev kick' + str(mexican) + 'ass out')

@client.command
async def checkformexican():
list[Member]

client.run(token)

misty sigil
#

wtf

ionic dawn
#

code snippet?

#

pls

ripe wasp
#

how

ionic dawn
#

`

ripe wasp
#

thanks

misty sigil
#

```py```?

ripe wasp
#

'from discord.ext import commands
import discord
import os
import sys

client = commands.Bot(command_prefix = "!")

@client.event
async def on_ready():
print("ready")

class Reply():
def init(self, bot, member):
self.bot = bot
self.Member = member

@client.command
async def check(message):
if message.content.startswith('!check'):
channel = message.channel
await channel.send('Any Mexicans here?')
if int(await channel.send) > 1:
exit()

@client.command
async def mexicanfound(message):
if message.content.startswith("!mexicanfound" + str(mexican)):
await channel.send('gtfo spik' and '@GreedyRev kick' + str(mexican) + 'ass out')

@client.command
async def checkformexican():
list[Member]

client.run(token)'

#

oop

misty sigil
#

ah

ripe wasp
#
import discord
import os
import sys

client = commands.Bot(command_prefix = "!")

@client.event
async def on_ready():
    print("ready")

class Reply():
    def __init__(self, bot, member):
        self.bot = bot
        self.Member = member
    
@client.command
async def check(message):
    if message.content.startswith('!check'):
        channel = message.channel
        await channel.send('Any Mexicans here?')
        if int(await channel.send) > 1:
            exit()

@client.command
async def mexicanfound(message):
    if message.content.startswith("!mexicanfound" + str(mexican)):
        await channel.send('gtfo spik' and '@GreedyRev kick' + str(mexican) + 'ass out')

@client.command 
async def checkformexican():
    list[Member]



client.run(token)```
#

here

ionic dawn
#


from discord.ext import commands
import discord
import os
import sys

client = commands.Bot(command_prefix = "!")

@client.event
async def on_ready():
    print("ready")

class Reply():
    def init(self, bot, member):
        self.bot = bot
        self.Member = member

@client.command
async def check(message):
    if message.content.startswith('!check'):
        channel = message.channel
        await channel.send('Any Mexicans here?')
        if int(await channel.send) > 1:
            exit()

@client.command
async def mexicanfound(message):
    if message.content.startswith("!mexicanfound" + str(mexican)):
        await channel.send('gtfo spik' and '@GreedyRev kick' + str(mexican) + 'ass out')

@client.command 
async def checkformexican():
    list[Member]



client.run(token)
#

Oh, sorry

ripe wasp
#

it says Any Mexicans here? three times

#

lol

#

and only !check works

slender thistle
#

Why did you create a class Reply and not do anything with it

ripe wasp
#

for later

#

im done

#

yet

#

but ive noticed that

#

if i do

slender thistle
#

even check isn't supposed to work

ripe wasp
#

!mexicanfound

#

or

slender thistle
#

You're missing parentheses on the decorators

ripe wasp
#

!checkformexican

#

wait where

slender thistle
#

the decorators

#

@client.command

ripe wasp
#

oh yeah

#

my bad

#

its sloppy

#

i wrote it in 5 min

slender thistle
#

if int(await channel.send) > 1:
this doesn't make sense

ripe wasp
#

im saying the number of times the bot says something

#

should not be over 1

slender thistle
#

you can't really check that simply

#

that if is pointless

ripe wasp
#

oh ok

slender thistle
#

and you don't need to check for message content in commands

#

if message.content.startswith('!check'):
this will be useless and unnecessary with commands.Bot because a command will only run if a message starts with a command

ripe wasp
#

but it doesnt work if i dont use it

#

it doesnt work at all

slender thistle
#

doubt

ripe wasp
#

look ill do it

slender thistle
#

I don't use such ifs and my bots worked for 2 years catshrug

ripe wasp
#

ill delete the if statement

ionic dawn
#

I don't see the point of the command, it just send a message?

ripe wasp
#

yes

#

but

ionic dawn
#

why is there an if

ripe wasp
#

im saying

#

that after it detects if the person is mexican, it marks them on list

#

like

#

list[Member] to check

#

and then mark those specific people

slender thistle
#

That's wrong

#

You'd need type annotations to let d.py convert user input into certain objects

ripe wasp
#

sorry, i dont develop discord bots

#

i usually work with machine learning

#

and this is like my third time working with it

jolly wave
#

Because your IQ its equal to your bot uptime
@ionic dawn remade the script myself also for saying this I now consider you as a clown

slender thistle
#

if anyone wants to throw names at someone else, take it to DMs

ionic dawn
#

I dont even consider you a person, you are most like a donkey with power to talk

slender thistle
#

read my message above

lusty quest
#

i would suggest to stop here. i guess otherwise it could give you some trouble

ionic dawn
#

Yeah, offtopic and unnecesary

#

don't know why reply that actually

slender thistle
#

might want to read this

jolly wave
#

Welp blocked him and I am out of here

ripe wasp
#

thans

quartz kindle
#

@slender thistle nope

slender thistle
ripe wasp
#

thanks*

slender thistle
#

aw c'mon

#

I'm on my own then

placid iron
slender thistle
#

very

quartz kindle
#

whats wrong with it?

ripe wasp
#

but idek how to use them

#

my script is so fucking dog shit

earnest phoenix
#

Heyo

ripe wasp
#

i dont even know where to start

#

it's all jumbled and disgusting

placid iron
#

var = commands.MemberConverter().convert(str, ctx)

#

Converts a str to a member in the context

ripe wasp
#

oh so

#

if you were to say

#

mexican

#

that would list the member as that?

placid iron
#

It would try to find a member called Mexican

ripe wasp
#

oh

slender thistle
#

Nothing really, I was just a bit confused, I guess

socket.io claims to be a websocket library with HTTP polling as fallback

ripe wasp
#

im trying to say that the bot lists the member as a mexican regardless of user name

placid iron
#

Ah

#

I didn't read up

ripe wasp
#

sorry if i sound rlly jumbled, im kinda lethargic

slender thistle
#

Was wondering if there would be any general compatibility issues between the Python library and the frontend version

earnest phoenix
#

So, if someone needs help or something I can't give any code?
@ionic dawn you can helo but don't send them the entire code and they learnt nothing but just copy paste
Welp even what you sent don't work
@jolly wave then just go to my source and copy the whole second setInterval function bye๐Ÿ‘‹

placid iron
#

@ripe wasp you would have to code your own database for that

jolly wave
#

@ionic dawn you can helo but don't send them the entire code and they learnt nothing but just copy paste
@jolly wave then just go to my source and copy the whole second setInterval function bye๐Ÿ‘‹
@earnest phoenix you are late I blocked him

slender thistle
#

var = commands.MemberConverter().convert(str, ctx)
@placid iron async def mexicanfound(ctx, mexican: discord.Member) :^))

placid iron
#

Have like user_id then nationality coloumns

ripe wasp
#

oh

#

like

quartz kindle
#

there shouldnt be, websockets are standarized according to rfc, should be the same in all libs

earnest phoenix
#

@earnest phoenix you are late I blocked him
@jolly wave why did you block him

#

When he was trying to help you

ionic dawn
#

Good question

placid iron
#

@slender thistle I am so lost in this conversation tbh I don't think I'm helpingcry

earnest phoenix
#

Mods if you don't mute this guy within the next five minutes I will literally die

ionic dawn
#

I was the only who try to help him a bit with the code and he yell at me

slender thistle
#

leave it

earnest phoenix
#

Anyways gtg block hum

ionic dawn
#

said fuck you at dm and blocked me

earnest phoenix
#

And IP ban him from my source

slender thistle
#

hi leave it

#

last warning

#

thank you

earnest phoenix
#

ok

ionic dawn
#

Srry @slender thistle

earnest phoenix
#

why ping him :/

ripe wasp
#
      def __init__(self, Mexican):
      self.Mexican = Mexican ```
#

?

slender thistle
#

you don't need a class really

ionic dawn
#

You pinged me 4 times hmm

slender thistle
#

what do you want your command to do?

ripe wasp
#

so lemme start over

placid iron
#

if you want to find a mexican on discord. you cant. however, you can have people enter their nationality to your bot and have a thing that takes the member id and checkes if that returns mexican

ripe wasp
#

oh

jolly wave
#

Because your IQ its equal to your bot uptime

#

That's why

ripe wasp
#

that actually makes sense

slender thistle
#

@jolly wave Do I need to repeat myself more than 2 times

#

drop it

jolly wave
#

Drop what

earnest phoenix
#

i am literally triggered by you telling us to stop

jolly wave
#

I fixed everything

slender thistle
#

the topic

earnest phoenix
#

dude

#

well fuck him

#

now im going

jolly wave
#

K time to block you too

slender thistle
ionic dawn
#

Just chill

earnest phoenix
#

mute me if you want shivaco

ionic dawn
#

"The block master"

jolly wave
#

Nice now the channel is empty

lusty quest
#

ban shiv rn

earnest phoenix
#

K time to block you too
@jolly wave SHIVACO FUCKING MUTE THIS PIECE OF SHIT PLEASE PLEASE PLEASE

slender thistle
#

let's just do this

earnest phoenix
#

You're telling us to stop and not muting him

ripe wasp
#

bro whats happening

#

why is everyone fighting

lusty quest
#

they got muted

slender thistle
#

leave it

ripe wasp
#

isnt this supposed to be developing

slender thistle
#

yes

lusty quest
#

there are always jerks who start to argue about everything. But this is just childish.

#

back to get into writing npm packages. i might edit d.js-light to have a redis integration

ripe wasp
#

hey guys

#

hes asking to unmute him

misty sigil
#

in dms?

slender thistle
#

@ripe wasp keep that stuff in my DMs

#

let's keep this channel on topic, thanks

ripe wasp
#

he didnt ask

#

its just that i want him unmuted

slender thistle
#

They can appeal their mute in my DMs on their own behalf. Last chance, please keep this channel on topic.

ripe wasp
#

ok sorry

lusty quest
#

nvm forget what i said. my js skills wont cover it

#

@earnest phoenix what is your issue?

misty sigil
#

that code seems like it'd work

ripe wasp
#

i wish i wasnt so fucking stupid when it comes to discord bots

#

i cant even read the documentation without getting confused

restive furnace
#

then learn the language first.

lusty quest
#

if you are getting overwhelmed take a break. hammering your Brain with stuff wont cut it

ripe wasp
#

i did lol

#

i already know python

#

wdym

finite nimbus
#
      Installing node modules
       npm ERR! cipm can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
       npm ERR! 
       npm ERR! 
       npm ERR! Missing: quick.db@latest
       npm ERR! 
```Help
lusty quest
#

install quickdb

ripe wasp
#

i just dont use discord import

finite nimbus
#

I installed

lusty quest
#

run npm install again

#

like the error suggests

finite nimbus
#

okey

lucid plinth
#

how do i remove the thing where sending a link counts as a message edit? (discord.py)

restive furnace
#

wdym

#

code

placid iron
#

yeah i kinda dont understand whhat you are asking @lucid plinth

slender thistle
#

on_message_edit is triggered when an embed is generated

placid iron
#

i didnt even know that existed ๐Ÿ‘€

slender thistle
#

if you want to track message content changes, compare message content of previous and new messages

earnest phoenix
#

just check if the embed count increased between the old and the new message

slender thistle
#

or that

lucid plinth
#

ahh thanks!

earnest phoenix
#

wassup

#

__

#

huh

lucid plinth
#
    @commands.Cog.listener()
    async def on_message_edit(self,bmsg,amsg):

                
        if amsg.content == bmsg.content:
            return

so just this would work??

slender thistle
#

yeah

#

I usually name them before and after respectively though to prevent any confusion

earnest phoenix
#

is that PY ?

restive furnace
#

yes

lucid plinth
#

yeah ill prob change it

earnest phoenix
#

:0

lucid plinth
#

ion know how i didnt think of this shit lmao thanks again @slender thistle

delicate shore
#

yo

strange trout
#

hi

ripe wasp
#

im still so frustrated

lusty quest
#

wellcome to be a Developer

delicate shore
#

wellcome to be a Developer
@lusty quest yes

lusty quest
#

i would take it. if he pays 50% upfront

slender thistle
#

off-topic

delicate shore
#

ok

#

sorry

harsh moon
#

How do I check if my bot has admin in discord.js?

lusty quest
#

guild.me iirc returns the Member object of the bot

#

then just check permission.has("ADMINISTRATOR")

delicate shore
#

op

harsh moon
#

my current method which has failed for some reason is "msg.guild.me.hasPermission("ADMINISTRATOR")"

lusty quest
#

did you get an error?

harsh moon
#

yeah

#

cannot read property of me

delicate shore
#

uhh

lusty quest
#

and why is your check a string?

delicate shore
#

^^

harsh moon
#

?

delicate shore
#

it should be

#
if(msg.guild.me.hasPermission(""))```
harsh moon
#

Yes I have it like that

delicate shore
#

u have ur code in " " above

harsh moon
#

because I was quoting my code

delicate shore
#

just do like this

lusty quest
#
msg.guild.me.permissions.has("ADMINISTRATOR")``` try this
harsh moon
#

k

lusty quest
#

add 3x ` before and after your code

harsh moon
#

??

#

you mean to make code text like this?

lusty quest
#

you make a codeblock if you add 3x `

digital ibex
#

```language
code
```

harsh moon
#

I already knew that lol

lusty quest
#

why did you then didnt use it?

#

makes it easyer to read sometimes

harsh moon
#

because im lazy and its 4 extra characters

lusty quest
#

make a makro like every sane person

#

so you get 6` in 1 second and then just go to the middle and enter your code

harsh moon
#

well what good macro thats free do you know that can be used by mac

digital ibex
#

you dont put in effort and expect to get help which requires more effort ๐Ÿ˜ฉ

lusty quest
#

ew mac

harsh moon
#

yeah go try to find one for maac

lusty quest
#

write one yourself

harsh moon
#

mac is not supported as much as windows

lusty quest
#

i know some c# and could compile a macro program for mac

harsh moon
#

ok

lusty quest
#

but the issue is writing the macro program

harsh moon
#

lol

digital ibex
#

you can still use backticks on mac tho

harsh moon
#

?

#

oh

#

Yeah but you should read the context

#

oh

#

im dumb lol

lusty quest
#

@earnest phoenix is your guild defined?

#

wait nvm

#

yea just noticed

#

but its more or less a reflex

#

i think this channel here is bad for me to lurk in all day

harsh moon
#

how do I check if it is a dm?

#

??

#

im a new dev to bot coding lol

digital ibex
#

:fp:

harsh moon
strange trout
#

You'd want to check the channel type

#

Not the message type

#

Another way to do it would be to check if the guild object is present

slender thistle
#
io.on('connection', function(socket){
  socket.on('chat message', function(msg){
    io.emit('chat message', msg);
  });
});

how does this make sense

strange trout
#

If it's not then it's in a DM

if(!message.guild) {
  // Logic here
}
harsh moon
#

so like if (msg.guild.type == dm) {}

digital ibex
#

what part?

earnest phoenix
#
        if (message.channel.type === "dm") return;
harsh moon
#

but where do I get the channel?

#

oh

earnest phoenix
#

if u want to ignore the dm

harsh moon
#

so im correct?

earnest phoenix
#

yes

harsh moon
#

because guild is the channel

earnest phoenix
#

no

#

wut

harsh moon
#

for my code it is

earnest phoenix
#

what is ur code ?

harsh moon
#

discord.js

earnest phoenix
#

ur code

#

not lib

#

Someone can add my bot to your server

misty sigil
#

no

#

@slender thistle

slender thistle
#

?????????????

earnest phoenix
#

@earnest phoenix no self ads

slender thistle
#

@earnest phoenix Did you see my message

placid iron
earnest phoenix
#

pls

harsh moon
#

I think msg.guild is inherited from discord.js

slender thistle
#

What did I say

digital ibex
#
io.on('connection', function(socket){ // connecting to socket.io
  socket.on('chat message', function(msg){ // listening to "chat message" which you've emitted
    io.emit('chat message', msg); // emitting a listener with one parameter, msg
  });
});
``` they're different things, so u can do that *if that makes sense*
earnest phoenix
#

@harsh moon Show me YOUR CODE

harsh moon
#

what part?

earnest phoenix
#

the guild.type()

#

or maybe channel.type()

strange trout
#

If you want to ignore DM messages just

if(!msg.guild) return;
digital ibex
#

type isnt a function

harsh moon
#

... I have not added that yet

earnest phoenix
#

@digital ibex ok waht ever

#

idc

#

ik it is not a fucntion

slender thistle
#

@digital ibex I think I wasn't exactly clear in my message
It was more of a one-time rant because I'm mostly used to doing something like

smth.on("qwe", e => // ee
)``` without nested events
strange trout
#

Don't give false information then LUL

digital ibex
#

oh

slender thistle
#

so, yeah, more of a rhetorical question tbh

digital ibex
#

you're not nesting events, afaik thats not what its called, but in the event, you should be emitting that to the frontend (which im assuming you're doing) when a message gets sent (im assuming you're checking that in the backed) you're emitting the event to handle it client side

#

wait uh, im confused

slender thistle
#

that's a backend example for socket.io actually

#

but yeah, I got it

digital ibex
#

oh

ripe wasp
#

yk what

#

fuck bots ig

#

ima do what i do best

#

make random fucking projects

strange trout
#

Ok

#

It's not for everyone

ripe wasp
#

discord bots?

strange trout
#

Yes

ripe wasp
#

i cant seem to understand it

#

i need someone to talk and show it to me

#

otherwise i cant learn

#

sorry

#

i sound so fucking stupid rn

strange trout
#

There's tons of opensource bots online

summer acorn
#

would allowing a moderator to change the roles of every member in a server be api abuse

knotty steeple
#

so im using canvas to make a banner image for my bot

#

or is there a better/easier way

lusty quest
#

i hate canvas. tryed to make a graph with chart.js but for some reason i cant send the chart while editing a embed. but i can send it in a new message

ripe wasp
#

turtle art lol

knotty steeple
#

i think that was a u problem

placid iron
#

imagining not using python imaging libary

lusty quest
#

imagine not using javascript

placid iron
#

im imagining and its glorious

knotty steeple
#

please i last used canvas in 2018

strange trout
#

It's a lot easier

knotty steeple
#

extra dependencies

pale vessel
#

why

#

just use original canvas

strange trout
#

Way better

knotty steeple
#

@pale vessel anyway i know u use canvas can u help

pale vessel
#

no if it's something hard

knotty steeple
#

i just want to round someone's pfp

pale vessel
#

oh like border-radius in css?

knotty steeple
#

yes

pale vessel
#

can't you use a mask OR arcTo()?

#

i never rounded any images, just a circle

knotty steeple
#

so uh

#

make a circle

#

mask

pale vessel
#

you want rounded edges or a circle waitWhatSpin

knotty steeple
#

draw image

#

a circle has 1 round edge

summer acorn
pale vessel
#

it's not even async

#

smh

knotty steeple
#

basically i want a circle yes

pale vessel
#

a circle is simple

summer acorn
#

everyone shouts at me whenever I change something

pale vessel
#

you need to use save(), restore(), and clip()

#

and arc

knotty steeple
sudden geyser
#

maybe try handling the error instead of ignoring it

knotty steeple
#

so i replace the roundedImage with a circle

#

simple enough

ripe wasp
#

yk that was a joke right]

#

when i said turtle graphics

pale vessel
#

wait

#

a circle on a rounded image?

strange trout
pale vessel
#

isn't that redundant?

ripe wasp
#

yes, if it's redundant, it gives the shape of a circle, does it not?

#

bc it'll loop around and around

#

or am i tripping

earnest phoenix
#

How i can change String

from: [AFK]NguyenXD
to: NguyenXD
#

edit

#

string

ripe wasp
#

is it in python?

earnest phoenix
#

nope JS

pale vessel
#

i don't even know who i'm supposed to talk to

ripe wasp
#

me

lusty quest
earnest phoenix
#

huh ?

ripe wasp
#

talk to me

#

pls

#

im bored

earnest phoenix
#

No

lusty quest
#

then use replace for replacing afk in the name

ripe wasp
#

;(((

earnest phoenix
#

i jsut want to remove the [AFK] with JS

digital ibex
#

split it then

earnest phoenix
#
let name = message.member.displayName;
                    name.replace("[AFK]", "");
                    message.member.setNickname(name);
#

not working

stray portal
#

i have bot

ripe wasp
#

bc you have to replace it from the start

#

var

digital ibex
#

you're not doing anything with that

stray portal
#

i created my bot

ripe wasp
#

the variable name from the start

amber fractal
#

replace doesnt mutate the variable

ripe wasp
#

exactly

amber fractal
#

it returns the new string

digital ibex
#

you've changed it, but you're not doing anything with it

earnest phoenix
#

:0

ripe wasp
#

you have to return it

#

well thats what you do in python at least

#

this article i found says

#

return [[expression]];

#

to omit the value

digital ibex
#

helloooooo

ripe wasp
#

hello

digital ibex
#

im having a smol issue

ripe wasp
#

w what

digital ibex
#

im just using html for dis btw

ripe wasp
#

oh im kinda rusty

digital ibex
#

its in the form tag, but idk how to send it

ripe wasp
#

but ill try

strange trout
#
// 1
const [, name] = '[AFK]NguyenXD'.split('[AFK]');
// 2
'[AFK]NguyenXD'.replace('[AFK]', '');
// 3
'[AFK]NguyenXD'.slice(5)
ripe wasp
#

these people are on a different level than me

#

they're so fucking smart

#

i can only program dumb ass projects

digital ibex
#

who?

ripe wasp
#

idk alexis and the other people

#

i wish i could do shit like that

digital ibex
#

i think most of my projects are stupid

ripe wasp
#

my projects are all useless

#

like a fucking ip grabber

#

what is that needed for

digital ibex
#

but then peolpe say similar things about theirs, so maybe its just meh

trail finch
#

hello I was having some trouble installing quick.db

ripe wasp
#

python?

#

or

trail finch
#

js

ripe wasp
#

oops

#

sorry

#

cant help

trail finch
#

k...

strange trout
#

Any errors?

trail finch
#

yea

#

shall I paste them?

dusky lagoon
#

Ok so im trying to make embed pages only it tells me this as a error
TypeError: Cannot read property 'send' of undefined
can someone take a look at this code https://hasteb.in/upovezac.js please

trail finch
#

its over 2000 characters tho

strange trout
#

Use haste bin

trail finch
#

k

restive furnace
#

Ok so im trying to make embed pages only it tells me this as a error
TypeError: Cannot read property 'send' of undefined
can someone take a look at this code https://hasteb.in/upovezac.js please
even without looking into your code, i can say the variable is undefined aka null. so basically you are calling like this (but just with undefined variable) undefined#send().

#

Use haste bin
they can use what ever they like

strange trout
#

Huh

karmic compass
#

@dusky lagoon itโ€™s message.channel.send({embed:embed})

dusky lagoon
#

let me check

restive furnace
#

could you show your command handler code? @dusky lagoon

#

and that {embed:embed} just makes it a slightly faster.

#

nothing else

lusty quest
#

@trail finch did you got Windows Build Tools installed if you use windows? and python?

karmic compass
#

and that {embed:embed} just makes it a slightly faster.
@restive furnace mine doesnโ€™t work without doing that

dusky lagoon
#

@restive furnace why do you want me to send my command handler that has nothing to do does it

restive furnace
#

well if message is undefined, then it is your command handler's fault.

knotty steeple
strange trout
#

Nice

ripe wasp
#

do you guys have degrees?

dusky lagoon
#

its send that is undifined

digital ibex
#

how are u importing the command?

restive furnace
#

try log message and message#channel.

knotty steeple
#

so i probably just need a bigger image

ripe wasp
#

wait

#

in js

#

cant you alter the ratio

#

from the pic to another object

dusky lagoon
#

how do i log message

ripe wasp
#

like 4:3 etc

digital ibex
#

....

dusky lagoon
knotty steeple
#

what

strange trout
#

Log it to your console

restive furnace
#

^

trail finch
#

@trail finch did you got Windows Build Tools installed if you use windows? and python?
@lusty quest I have installed python but I dont use py i use js but still as it is showing no python installation found I stalles it but how to install windows build tools?

restive furnace
#

npm i -g windows-build-tools

lusty quest
#

npm install -g windows-build-tools

dusky lagoon
#

sorry but i dont know what that mean

trail finch
#

kk lemme install

lusty quest
#

python is needed for compiling some stuff

strange trout
#

You can log things to your console with

console.log();
restive furnace
#

๐Ÿฅ„

lusty quest
#

@ripe wasp i could go for a engineering Degree

trail finch
#

oh hell my pc so slow

ripe wasp
#

oh cool

lusty quest
#

but its boring AF and like 80% of the class fails

ripe wasp
#

im too young but ig ill go to college

dusky lagoon
#

ohw ok and how do i log the message

digital ibex
#

(message)

strange trout
#

It's basic JavaScript

restive furnace
#

^^^

ripe wasp
#

i want to be successful and ik it sounds generic and corny but thats rlly what i feel like doing

lusty quest
#

imagine not knowing how to use console.log how tf did you debug your code then?

restive furnace
#

if he didnt

ripe wasp
#

prolly beginner

placid iron
#

why wouldnt you want to be successful

digital ibex
#

consol- oh

ripe wasp
#

i mean like

#

not making my dumb fucking projects

placid iron
#

XD

digital ibex
#

im sure everyone wants to be successful

ripe wasp
#

i literally made an EMP

trail finch
#

i want to be successful and ik it sounds generic and corny but thats rlly what i feel like doing
@ripe wasp same bro I want to be successful to but never was even today ๐Ÿ˜ข

placid iron
#

and there is me with my bot that only has a ping command

ripe wasp
#

for no fucking reason

lusty quest
#

get a idea and try to work on it until it works. this is how ive got a bot with 230 Guilds

digital ibex
#

and if u dont, u prob got a good reason why u dont want to be

lusty quest
#

even with some mediocre code

ripe wasp
#

bro i rlly want to just show the world that im capable

#

but these people are way higher than my lvl

placid iron
#

@lusty quest are we the same person?

dusky lagoon
#

Sorry that i forget shit but im not a beginner -_-

digital ibex
#

they're just experienced

placid iron
#

^

trail finch
#

I am just a beginner I coded for like 3 months max

ripe wasp
#

ive been programming for 4 years

#

python

#

but still

placid iron
#

you learn it over time. you cant be expected to know things you havent even learned

trail finch
#

Omg

ripe wasp
#

these people

#

are crazy smart

strange trout
#

Dunno man you don't just forget how to debug

lusty quest
#

write a bot in py. i also have some ideas for ML stuff if you want to know them

placid iron
#

@ripe wasp you just havent worked with this package long enough to know what to do

trail finch
#

coding is not even taught in my school xD

lusty quest
#

me neither

ripe wasp
#

man thats actually relieving

#

same

#

i self taught

#

read myself

digital ibex
#

projects which have, i think, taught me a lot about js, is making my website

lusty quest
#

but i learned it myself

ripe wasp
#

pushed myself

digital ibex
#

do the same but for python 4 u

trail finch
#

database is also not taught in my school but I started it self-teaching is AWESOME

dusky lagoon
lusty quest
#

reading Github repos of bots until i knew how they work

placid iron
#

@lusty quest i want to make a bot that listens to the messages that are sent and trains how to reply from them and then you can do a command and it sends what it thinks it should reply

ripe wasp
#

talk bot?

placid iron
#

that is my next project once i have finished this

trail finch
#

wowow

strange trout
#

I don't take any development classes

placid iron
#

pretty much

ripe wasp
#

you can do that

digital ibex
#

i took one

ripe wasp
#

i was making one

digital ibex
#

for like a week

ripe wasp
#

it kinda worked

#

but i lost my files bc it went corrupt

digital ibex
#

but left cuz it was for people making btos

placid iron
#

F

ripe wasp
#

so what you do

lusty quest
#

@placid iron skynet. like litterally a Bot that automaticly Monitors chats and decided if a user is writing bad stuff

ripe wasp
#

is give synonym package

lusty quest
#

if they do the bot takes action

placid iron
#

@lusty quest that is just MEE6 XD

trail finch
#

someone buy me 8 gb Ram

#

pc*

ripe wasp
#

it pretty much dumbs down the sentence and what people are saying

digital ibex
#

no

trail finch
#

Lol

ripe wasp
#

and then you can import webbrowser

#

to search up how to respon

#

respond*

#

it's kinda like a neural network

placid iron
#

anyway i have to go get dinner now

dusky lagoon
#

nvrmind already found the log

ripe wasp
#

ok go ahead

strange trout
#

16gb is the sweet spot

digital ibex
#

buy it yourself or if you dont have money get a job or go to work and buy it

placid iron
#

cya

trail finch
#

ye

#

have a nice meal

placid iron
#

thank you

ripe wasp
#

developing is cool

trail finch
#

np

ripe wasp
#

but i only freelance

dusky lagoon
#

@strange trout i already did it

trail finch
#

I like coding a lot but failure is my weakness

#

๐Ÿ˜ญ

earnest phoenix
#

tfw you have a 16gig ram vps dedicated to hosting an smp on minecraft

strange trout
#

Nice what did it log

lusty quest
#

@ripe wasp if you need an Idea. Write a App (web or Phone) that uses ML to recocnize text on pictures. but the text are Fantasy languages like Klingon.

ripe wasp
#

hm

lusty quest
#

and then translates it

ripe wasp
#

deep learning?

#

ok ill try

#

is python compatible with ios

#

?

lusty quest
#

ยฏ_(ใƒ„)_/ยฏ

digital ibex
#

dont think so

earnest phoenix
#

no

digital ibex
#

you're looking for swift

ripe wasp
#

whats swift

#

srry never heard of it

digital ibex
#

language for making ios apps

trail finch
#

wait is js easier than py?

earnest phoenix
#

python has to be installed on the machine you want to run it on, that's the disadvantage of it and why so many lowlevel devs dislike python

ripe wasp
#

eh

#

depends

#

on the person

#

and preference

trail finch
#

wait guys i was making a video game

ripe wasp
#

i personally think its harder

digital ibex
#

i think python is easier

ripe wasp
#

python is harder

#

i mean

trail finch
#

Owo

ripe wasp
#

i think

#

but js

#

like

strange trout
#

Python has really easy syntax

trail finch
#

py is harder same thinking to me too xD

lusty quest
#

both have theyre up and downs

digital ibex
#

thats why they teach it in schools when ur like 13 and stuff ๐Ÿคท

ripe wasp
#

i just dont feel like learning it but i do at the same time

earnest phoenix
#

python is more complex, easier with syntax
js is retarded in all ways possible

lusty quest
#

but they are not far of each other

trail finch
#

owo

ripe wasp
#

i just like python

#

bc i work with it all the time

#

so

#

im just comfortable w it

digital ibex
#

why do people not like js? ๐Ÿค”

trail finch
#

idk

earnest phoenix
#

singlethreaded, not typed

ripe wasp
#

isnt js more popular

lusty quest
#

bcs its sometimes retarded

strange trout
#

Use TS then

trail finch
#

even js does not likes my brain

earnest phoenix
#

ts doesn't fix the issue of singlethreading

sudden geyser
#

popular is not always better

ripe wasp
#

yes ik

#

just saying

#

yk

trail finch
#

Owo

digital ibex
#

wdym by singlethreading?

lusty quest
#

like i was unable to remove a key from a object with the normal methods. the only way to do it is settings the keys as undefined

ripe wasp
#

ima work on the deep learning project later

#

i feel kinda sluggish rn

sudden geyser
#

you can do delete obj[key]

#

I think

trail finch
#

what is the hardest bot category?

lusty quest
#

javascript runs only on one thread. other languages can run multi threaded

digital ibex
#

just set it to null ๐Ÿ˜ฉ

trail finch
#

like role play or leveling or music like ths?

misty sigil
#

music

earnest phoenix
#

there is no "hardest" category

lusty quest
#

@sudden geyser i know but for some reason this wont work

digital ibex
#

what is a "thread" ?

misty sigil
#

once it gets big its an arse

trail finch
#

Owo

#

music is ez

misty sigil
#

but theres no true hardest

ripe wasp
#

music?

#

wdym

#

like

trail finch
#

I made it for my frnd

ripe wasp
#

making music

earnest phoenix
trail finch
#

no4

digital ibex
#

ook

trail finch
#

making discord bot

lusty quest
#

Brainfuck, COW i guess these are some "harder" languages

trail finch
#

music category

#

Lol

sudden geyser
#

the "hardest category" depends on what you're really doing. stuff like rank cards may be harder than music for others

earnest phoenix
#

brainfuck and cow are joke languages

#

just there to meme

digital ibex
#

๐Ÿ—ฟ

trail finch
#

xD

lusty quest
#

someone actually wrote a bot with brainfuck

ripe wasp
#

those are languages

#

what

#

wow

sudden geyser
#

there's also esketit

trail finch
#

Lol

#

WHAAT

strange trout
#

Pretty much every bot feature is easy to replicate

trail finch
#

how the hell is it possible?

digital ibex
#

someone made a language just for a meme ๐Ÿ—ฟ๐Ÿ—ฟ๐Ÿ—ฟ๐Ÿ—ฟ

#

moyaimoyai

lusty quest
#

emojiscript

trail finch
#

Lol

#

for emojis?

earnest phoenix
#

emojilang

#

exists

digital ibex
#

i've heard of that one yeah

#

but cow and brain fuck ๐Ÿ—ฟ

trail finch
#

what dosnt exists then?

quartz kindle
#

@sinful belfry alright its fully working for me now with 400k members (and much faster than djs), check the latest commit

ripe wasp
#

/tp

trail finch
#

Owo

ripe wasp
#

im programming les go

lusty quest
#

when you are bored enought to define a new programing language you probably have no life or just want the balling rights

trail finch
#

k

ripe wasp
#

/summon goat

trail finch
#

lol

digital ibex
#

i tried to make a language once

trail finch
#

A wild goat appeared

sudden geyser
#

or you want to be able to confidently say, "I've written a programming language before"

ripe wasp
#

oh

fair mountain
#

hi

trail finch
#

๐Ÿ‘€

ripe wasp
#

isnt it like

trail finch
#

hey

ripe wasp
#

technically

trail finch
#

idk

ripe wasp
#

putting var for a certain programming language

#

for example

earnest phoenix
#

when you are bored enought to define a new programing language you probably have no life or just want the balling rights
@lusty quest saw php? mmLol

digital ibex
#

theres guides on it and shit

ripe wasp
#

type = print

digital ibex
#

its quite interesting

trail finch
#

i will play some games

earnest phoenix
trail finch
#

so cya guys gn in advance

ripe wasp
#

is that how you write a programming language?

digital ibex
#

lmfaooo

knotty steeple
ripe wasp
#

isnt that the same

#

thing

#

...

earnest phoenix
#

writing a programming language can mean two things, writing an interpreter for it or making an actual language that's compiled down to assembly

lusty quest
#

the corners