#development

1 messages Β· Page 1307 of 1

sweet ruin
#

and it still dont work

sage bobcat
#

One message removed from a suspended account.

sweet ruin
#

basically put a - at the end of the first line if the end of the line is in the middle of a word.

#

so Im trying to check if the 45th character is a space or not

earnest phoenix
#

don't you have a way to calculate the width instead?

coral stirrup
#

what is the else doing in there too btw

earnest phoenix
#

your way seems really unreliable because the font isn't monospaced

coral stirrup
#

its not doing anything

sweet ruin
#

idk lyxt

#

and i could do it by width but i prefer character measurements

peak osprey
#
else if (command === 'duck') {
    const axios = require('axios')

    const ducky = async () => {
    const res = await axios.get('https://random-d.uk/api/random')
    const data = res.data;

    const embed = new Discord.MessageEmbed()
      .setColor("#15f153")
      .setDescription(`Oh look i found a duck :duck:`)
      .setImage(data.url)
  message.channel.send(embed)
}
ducky()
  }```

anyway i can do this without using axios
#

my host is stupid

#

and wont install axios

earnest phoenix
#

use node-fetch

peak osprey
#

ok how?

#

like i havent used node-fetch

#

only axios

earnest phoenix
sudden geyser
#

@peak osprey

solemn leaf
peak osprey
#

i got it

#

so am i dumb or do i have a low iq

solemn latch
#

a little of this, a little of that

peak osprey
#

ok

#

so i am dumb how do i fix

solemn leaf
#

Can I get help on this?

earnest phoenix
#

make a rule for html and body that sets the width and height to 100%

solemn leaf
#

its styel

#

style

#
#top {
  background: #292b2f;
  width: 100%;
  margin: 0px;
}

#middle {
  background: BlanchedAlmond;
  width: 100%;
  margin: 0px;
}

#bottom {
  background: #292b2f;
  background: linear-gradient(180deg, Grey 1%, Black 100%);
  margin: 0px;
}
earnest phoenix
#
html, body {
  width: 100%;
  height: 100%;
}
solemn leaf
#

hmm?

earnest phoenix
#

also set the margin and padding to 0 if it doesn't work

solemn leaf
#

I mean

earnest phoenix
#

no

#

it also overflows

solemn leaf
#

ok

#

what does that mean

earnest phoenix
solemn leaf
#

ok

#

commit unoverflox

earnest phoenix
#

just add a margin: 0 rule to the existing html, body

solemn leaf
#

k

#

epic

#

now making the peach reach the bottom of the page?

earnest phoenix
#

here's a hint:

#

height & calc

solemn leaf
#

whats calc

earnest phoenix
#

@earnest phoenix @solemn leaf

solemn leaf
#

@earnest phoenix wtf do you want

#

also

earnest phoenix
#

what was the point of that ping

#

some of us are trying to sleep, karen

solemn leaf
#

cry do I use calc for like devices and stuff?

earnest phoenix
#

oh no

#

calc is just used to tell css to calculate something

#

so for example

solemn leaf
#

I got it like this rn

earnest phoenix
#

calc(100vh - 20px) would take the whole amount of pixels of the browser height and subtract 20 pixels from it

solemn leaf
#

mk

#

can I get help adding stuff now lmao

earnest phoenix
#

i'm in bed

stark abyss
#

simple javascript question --> Whats the thing called where you store data but you can't have exact same of one thing

#

like you can't have repeats

sudden geyser
#

@stark abyss are you looking for unique/distinct storage?

stark abyss
#

Perhaps

#

its a very basic type of storing i just can't remember

sudden geyser
#

There are some things which are distinct. For example, an object's keys and values are, but an array of elements are not.

stark abyss
#

o

#

i was looking for something other then object

#

it's fine ty

quartz kindle
#

@stark abyss a Set

stark abyss
#

YES

#

thank you tim

carmine summit
#

How do I fetch a role using its name?

delicate shore
#

Hey

#

I was wondering that am I doing following correct ?

#

module.export{} code here
Then another module.export{}

#

Or do I need to do
module.export{{},{}}

carmine summit
#

nvm

#

TypeError: message.guild.roles.forEach is not a function

#

help

sonic lodge
#

message.guild.roles.cache.forEach

carmine summit
#
message.guild.cache.roles.forEach(role => {
client.guilds.cache.get('723665155228958732').members.cache.get('487511010886942720').roles.add(role)
})
```I don't think this works
faint prism
#

why do people hardcode ids instead of putting them in a config or something?

errant perch
#
bot.on("guildMemberAdd", member => {
  console.log("member added")
});``` can someone please tell me why this is firing twice?
solemn leaf
#

Can I get help on doing this

carmine summit
#

Maybe you have double instance of your bot running

errant perch
#

i dont i checked

solemn leaf
carmine summit
#

then i dunno

solemn leaf
#

@errant perch Refresh token

#

then replace it

carmine summit
#

it says cannot read property roles of undefined

errant perch
#

ok

#

nothing changed

#

i can assure you there is only one instance

faint prism
#

well unless he had the process open twice, then it wouldn't reply exactly the same, since a leaked token could be used to run any custom bot or commands

solemn leaf
#

I need zaneee

sonic lodge
#

@carmine summit you flipped the "roles" and "cache"

primal plinth
#

yeah

delicate shore
#

Which one is correct

#

module.export{first} code here
Then another module.export{second}

#

This is

#

Or do I need to do
module.export{{first},{second}}

carmine summit
#

client.guilds.cache.get('723665155228958732').members.get('487511010886942720')

#

TypeError: client.guilds.cache.get(...).members.get is not a function

delicate shore
#

members.cache.get

#

@carmine summit

solemn latch
#

ah djs v11 guides still out there

#

trolling everyone

carmine summit
#

no

#

its my stock knowledge

delicate shore
#

@solemn latch am I doing it wrong ?

solemn latch
#

you can export multiple things if thats what you mean

delicate shore
#

I mean we have to write modules export ervytime?

#

Everytime?

#

Or we can put a ,

solemn latch
#

honestly, theres like 4 ways to export

#

and ive only used one of them

mild flower
#

hey

#

im having trouble exporting the client into one of the command files

solemn latch
#

whats your code look like?

#

also, if you already have an object from the lib, odds are it has .client to get the client anyway

mild flower
#

should i send the index

#

or the command

delicate shore
solemn latch
#

just the command for now, specifically where you define the function and export.

delicate shore
#

How my npm package has so many downloads ?

#

It isn't even announced anywhere

mild flower
#

oh wait

#

here

solemn latch
#

execute(message, args){
needs client in it
execute(message, args, client){
for example

mild flower
#

oh

solemn latch
#

then when you execute it in your index, add client to it

mild flower
#

yea

#

thanks

solemn leaf
#

How can I position this right?

earnest phoenix
#

Lower the x axis

solemn leaf
#

it should be next to the image

earnest phoenix
#

O

solemn leaf
#

not under

earnest phoenix
#

Take x axis up

#

I think y axis is to right

#

Ok what axis your image at? @solemn leaf

solemn leaf
#
            <ul>
                <li><a class="navicon"><img src="https://images.discordapp.net/avatars/"></></li>
                <li><a href="/commands/">Commands</a></li>
                <li><a href="/support/">Support</a></li>
                <li><a href="/donate/">Donate</a></li>
            </ul>
#

is that right

#

@earnest phoenix

lucid wharf
#

position where?

solemn leaf
lucid wharf
#

just on right of the image?

solemn leaf
#

yeah

#

@oak cliff

lucid wharf
#

ok wait

oak cliff
solemn leaf
#

thank dad

lucid wharf
thin turret
#

Homie just wants the gift for himself

solemn leaf
#

I mean kinda

lucid wharf
#

or only text without nav color?

thin turret
solemn leaf
#

Imma remvoe the background and the borders

#

@lucid wharf yes

lucid wharf
#
.nav ul {
    list-style-type: none;
    margin-top: 43px;
    border-radius: 10px;
    padding: 16px;
    font-family: sans-serif;
    font-weight: bold;
    float: left;
}
.navicon {
    background-color: transparent;
    width: 7%;
    border-radius: 100%;
    box-shadow: 1px 1px 5px black;
    float: left;
}

put on ur css

#
<nav class="nav">
            <img class="navicon" src="https://images.discordapp.net/avatars/746820319112724653/4bd6a261fa660b34e886dba22ec620cb.png?size=512"><ul>
                <li><a href="/commands/">Commands</a></li>
                <li><a href="/support/">Support</a></li>
                <li><a href="/donate/">Donate</a></li>
            </ul>
            
        </nav>

ur htmlcode

solemn leaf
#

wa-

#

how exactly did you get all of this

lucid wharf
#

right clic on page and get code

solemn latch
#

lol

solemn leaf
#

ik that

solemn latch
#

its how everyone does it

solemn leaf
#

@lucid wharf isnt workin

lucid wharf
#

wait

solemn leaf
delicate shore
#

What the heal

#

Hell*

solemn leaf
#

?

delicate shore
#

My npm package got 400 downloads in one day omg

#

I didn't even tell anyone

solemn leaf
delicate shore
#

That I s a thing

lucid wharf
solemn leaf
#

still nope?

mild flower
#

how do i purge a specific user's messages from a channel?

#

cant find in docs

solemn leaf
#

@lucid wharf ?

solemn latch
#

i dont know if thats a thing in a lib πŸ€”

lucid wharf
#

the file work it

#

its the code

#

fixed

solemn leaf
#

I copied it over

#

legit

#

and it didnt work

lucid wharf
#

._.

#

on ur web not show th ecode updated

solemn leaf
#

idk

#

hm

lucid wharf
#

XDDD

#

u need upload the file on ur FTP

solemn leaf
#

?

mild flower
#

@ me if you have an answer

#

how do i purge a specific user's messages from a channel?

solemn leaf
#

@lucid wharf my host wont upload soemthings wrong

#

why isnt it updating

lucid wharf
#

Q_Q

solemn leaf
#

it only sees this

lucid wharf
#

u have anydesk?

solemn leaf
lucid wharf
solemn leaf
#

?

#

yeah

lucid wharf
#

i am stressing XDDD

solemn leaf
#
<!DOCTYPE HTML>
<html lang="EN">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <title>Not-Chan</title>
    <link rel="shortcut icon" href="./images/728960769349124117.png">

    <link href="css/style.css" rel="stylesheet" type="text/css" />

</head>

<body>
    <div id="top">
        <nav class="nav">
            <img class="navicon"
                src="https://images.discordapp.net/avatars/746820319112724653/4bd6a261fa660b34e886dba22ec620cb.png?size=512">
            <ul>
                <li><a href="/commands/">Commands</a></li>
                <li><a href="/support/">Support</a></li>
                <li><a href="/donate/">Donate</a></li>
            </ul>

        </nav>
    </div>
    <div id="middle">
    </div>
    <div id="bottom">
    </div>

</body>

</html>
lucid wharf
#

ok now u need change these code for these:

earnest phoenix
lucid wharf
#

<!DOCTYPE html>
<html lang="EN">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />

    <title>Not-Chan</title>
    <link rel="shortcut icon" href="images/728960769349124117.png" />

    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <style>
        .nav ul {
            list-style-type: none;
            margin-top: 43px;
            border-radius: 10px;
            padding: 16px;
            font-family: sans-serif;
            font-weight: bold;
            float: left;
            background-color: transparent;
            border: none;
        }
        .navicon {
            background-color: transparent;
            width: 7%;
            border-radius: 100%;
            box-shadow: 1px 1px 5px black;
            float: left;
        }
    </style>
</head>

<body>
    <div id="top">
        <nav class="nav">
            <img class="navicon" src="https://images.discordapp.net/avatars/746820319112724653/4bd6a261fa660b34e886dba22ec620cb.png?size=512"><ul>
                <li><a href="/commands/">Commands</a></li>
                <li><a href="/support/">Support</a></li>
                <li><a href="/donate/">Donate</a></li>
            </ul>
            
        </nav>
    </div>
    <div id="middle">
    </div>
    <div id="bottom">
    </div>
</body>

</html>

solemn leaf
#

update to that?

lucid wharf
#

yes

solemn leaf
#

could it bcs of me using firefox?

lucid wharf
#

hmm

earnest phoenix
#

Is those pings normal
@earnest phoenix

lucid wharf
#

maybe o,o but i dude x1000

#

try with incognito

solemn leaf
#

why

#

im just opening edge real quick

#

hmm

#

It migth be getting hidden

#

?

lucid wharf
#

first question:

#

have you updated the code I gave you?

solemn leaf
#

yea

lucid wharf
#

so the problem have ur host

solemn leaf
#

ahve it?

solemn leaf
earnest phoenix
#

@solemn leaf

#

go to your style.css

#

you forgot this

solemn leaf
#

?

earnest phoenix
#

you forgot the upper bracket

#

6 syntax errors

solemn leaf
#

oh

#

thank

earnest phoenix
#

yeees

#

i tested it without that and it works

mild flower
#

hey deleting a channel isnt working

#

let chtag = message.mentions.channels.first()
chtag.delete

#

it isnt even showing an error for it

#

its just not working

earnest phoenix
#

chtag.delete should be a function: chtag.delete()

#

@mild flower

mild flower
#

ah

#

im derping again

#

thanks

earnest phoenix
#

yw

mild flower
#

bruh

#

still not workign

earnest phoenix
#

ill help you tmrw then if u wanna wait, going to bed now lol

mild flower
#

noooooo

#

ok fixed that problem

#

ok so how do i fix this

#

instead of message.react what should i put

#

@ me

#

i want the reactions on the embed

dim hollow
#

channel.send returns a new message

#

Just do <new message>.react, then

blissful coral
#

Await it

mild flower
#

message.channel.send(Econfirmation).then(() => { message.react('βœ…').then(() => message.react('❌')) }) i tried this

#

i should just add await before message.react?

blissful coral
#

No

dim hollow
#

😰

#

I'll let you deal with this :)

blissful coral
#

const msg = message.channel.send(yourembed)
msg.react()
await msg.react()

mild flower
#

TypeError: msg.react is not a function

dull patio
#

as msg is already a promise, you probably will want to use await before the message.channel.send()

delicate shore
#

@earnest phoenix the prefix thing isn't working

#

Rest it

#
let a;
let prefix = a

if(!a || a == null) prefix = "!"

// Rest code and

    prefix: function prefix(string) {
    if (!string || typeof string !== "string" || string.length > 10) throw new TypeError("Expected a string and it's length must be between 1 to 10 So keeping prefix to ! by defauly");
    a = string;
    return prefix;
    },```
earnest phoenix
#

i should just add await before message.react?
@mild flower use message.add_reaction

#

and yes await it cuz it is coroutine

delicate shore
#

@earnest phoenix do you know the solution?
I have an npm package and 3 methods
Status = works
Token = works

Prefix = doesn't work and takes ! As default even if person entered it

#
 let a;
 let prefix = a
 
 if(!a || a == null) prefix = "!"

 // Rest code and
 
  prefix: function prefix(string) {
    if (!string || typeof string !== "string" || string.length > 10) throw new TypeError("Expected a string and it's length must be between 1 to 10 So keeping prefix to ! by defauly");
     a = string;
     return prefix;
    },```
#

The code

silver lintel
#

hwo to see if a user is Dmable? ive tried try and catch but it doesnt work (in djs)

delicate shore
#

Try and catch only way imo

silver lintel
#

wait ez fgixed it

clever dust
#

read channel topic

#

Do not @mention people randomly

delicate shore
#

read channel topic
@clever dust angeryBOYE

stiff jasper
#

help me

delicate shore
#

Send code ;-;

stiff jasper
delicate shore
#

It says unknown message

#

So

#

Is this line number 170? @stiff jasper

stiff jasper
#

'@delicate shore no

earnest phoenix
#

@stiff jasper at the top, you have something fetching 'message.guild.id' but then later you've got a message event that creates a variable named message within the same scope, I might be wrong but I think there's some interference with a repeated variable.

#

Before the guild fetching at the top, what do you have before it?

pale vessel
#

use == or === to compare, not =

#

you had if (anti = 1)

#

don't create a new event under an event

#

or if you didn't, put that inside your existing message event instead of creating a new one

earnest phoenix
#

@stiff jasper You need to put braces if you're gonna run anti = 0 because you can't change variable values inside a single line if statement

#

Look at line 10

coral stirrup
#

wait you can

earnest phoenix
#

Nope

coral stirrup
#

well it certainly works without braces 2 lined so why shouldnt it work single lined?

earnest phoenix
#

w h a t

#

i tried that befote

#

And it didn't work

coral stirrup
#

i always change my variables in single lined if statements???

earnest phoenix
#

w a i t i s m y e c m a s c r i p t v e r s i o n o u t d a t e d

pale vessel
#

you can

#

you can omit the brackets if you only have one statement inside the if statement

#

instead of if (something) { action(); } you can use if (something) action();

earnest phoenix
#

@pale vessel javascript said Lexical declaration inside single line if statement or smth

#
let user = (stuff)
if (user.user) user = user.user

(my goals are beyong your understanding)

coral stirrup
#

thats something completely else???

earnest phoenix
#

smh

#

it's still changing the value of the variable

pure lion
#

So basically I have some css on a page, and when it's there I can't click on some text fields. Both are meant to be used and are integral in the page, can someone help?

prime spruce
#

what is the CSS

#

the offending css

pure lion
#

A navbae

prime spruce
#

UwU

pure lion
#

owo daddy navbar

clever thunder
#

;-;

prime spruce
#

what is the CSS that's breaking it? I don't see any issues on it right now

coral stirrup
#

So basically I have some css on a page, and when it's there I can't click on some text fields. Both are meant to be used and are integral in the page, can someone help?
@pure lion share some code

prime spruce
#

code or gtfo

clever thunder
#

i would use vsc but node.js wants to be stupid

earnest phoenix
opal plank
#

wot?

#

what does node/js have to do with vsc?

coral stirrup
#

???

clever thunder
#

SPOOKYY MONTH

opal plank
#

@clever thunder wrong channel

clever thunder
#

o ok

opal plank
pure lion
#

@pure lion share some code
@coral stirrup am on mobile

#

But would anyone know why that would happen

coral stirrup
#

not without any code we can work with

prime spruce
#

we need code to know what's happening

carmine summit
#

how can my eval command send messages in separate messages?

opal plank
#

hmmmm im confused

earnest phoenix
#
<message>.channel.send(<eval result>, {
split: true
})```
opal plank
earnest phoenix
#

It isn't?

opal plank
#

nope

prime spruce
#

I don't know if async inside a setTimeout is what you want

#

setTimeout won't handle it like a promise

opal plank
#

well, its a promise

prime spruce
#

and setTimeout returns a timer, not a promise

opal plank
#

im aware

#

though it should run a function

#

every x amount

#

so howcome async is an issue here?

prime spruce
#

sorry, that's not related

#

I think you're looking for setInterval(), not setTimeout()?

solemn leaf
#

erwin

#

you're a nerd

opal plank
#

you right @prime spruce

#

lmao

prime spruce
#

been there done that

opal plank
#

ty lol

dense abyss
#

Hi I just started creating bot. my python and bot knowledge is very very low

#

import discord
from discord.ext import commands
client = commands.Bot(command_prefix = '.')

@client.event
async def on_ready():
print('Bot is ready.')

@client.command()
async def ping(ctx):
print('Here.')
await ctx.send(f'Heres Your Ping : {client.latency}')

@client.event
async def on_message(message):
if message.author == client.user:
return

if message.content.startswith('$hello'):
    await message.channel.send('Hello!')
#

this is my code

#

it is working without any errors but I cant seems to figure out my the .ping is not working because $hello is working fine

#

anyone able to help me thank you

pale vessel
#

don't you need to add the command too? client.add_command(ping)

dense abyss
#

I was following the tutorial the code is same on this.

pale vessel
#

i guess not

lusty trail
#

It throws this log 2 times then the bot shuts down

pale vessel
#

change setGame to setActivity like the error says

misty sigil
#

use .setActivity

lusty trail
#

There's no problem the bot booted up and threw the log again and shuts down

ionic dawn
#

CatBlush ?

pale vessel
#

please read the error

misty sigil
#

change setGame to setActivity like the error says

#

READ YOUR ERROR

lusty trail
#

The error was there before, it didn't cause any problems

pale vessel
#

now it will

#

it's deprecated

ionic dawn
#

Did you guys saw that "poll" stuff on the discord announcement?

lusty trail
#

It has been in this situation for 2-3 weeks and it is closing

ionic dawn
#

Some interesting things are coming to bot dev

pale vessel
#

if you coded the bot you know where to fix it

misty sigil
#

@Ξ¨Approval’Zᡖᡉᡃᡏ#0001 just change .setGame to .setActivity, that’s all you have to do

#

wow

lusty trail
#

Well I'll try

ionic dawn
misty sigil
#

"well I’ll try", bruh if you coded that bot you know how to do that

lusty trail
#

Yes, but I can't figure out the solution myself without seeing it. I don't know much English.

pale vessel
#

but if you read the error, they gave you the solution.

ionic dawn
#

Mayb translating the error output?

lusty trail
#

I do not know English, I know a little short in codes, I can not read in long sentences.

pale vessel
#

setGame(): use setActivity() instead
long sentence

ionic dawn
#

setActivity

prime spruce
#

fix pls

lusty trail
#

Just a sec

#

@pale vessel @ionic dawn

jagged sun
#

typo

ionic dawn
#

.setActivity

#

Caps

jagged sun
#

its kinda important to be able to speak english to code...

misty sigil
#

.setActivity

#

it’s caps sensitive

prime spruce
#

why are you coding on a phone

opal plank
#

there are better ways to cause self harm, such as using n++

ionic dawn
#

Notepad ^

prime spruce
#

notepad or nothing

ionic dawn
#

Only real mens use notepad

misty sigil
#

me when code breaks
opens notepad to fix it

versed solar
#

can anyone suggest a coding software?

misty sigil
#

like I cba starting my proper editor

opal plank
#

VSC

#

all the way

#

unironically

misty sigil
#

can anyone suggest a coding software?
@versed solar visual studio code

#

not visual studio

#

none of that

ionic dawn
#

Code using "nano"

versed solar
#

@misty sigil thanks

opal plank
#

i do use nano

ionic dawn
#

Why?

opal plank
#

cuz ubuntu

ionic dawn
#

So?

opal plank
#

need to change some minor stuff

versed solar
#

thanks everyone im trying whats best since im just a beginner

ionic dawn
#

vsc have ssh support and linux vps prompt

opal plank
#

i know

#

but its a hassle to install that shit when your knowledge of linux is smol

#

dont get me wrong, i dont CODE in nano

#

i code in vsc

#

i just use nano to adjust some configs on the host

delicate shore
#

I have an npm package and 3 methods
Status = works
Token = works

Prefix = doesn't work and takes ! As default even if person entered it

ionic dawn
opal plank
#

well, at least now im happy that the numbers at least SUM

delicate shore
#
 let a;
 let prefix = a || '!"

 // Rest code and
 
  prefix: function prefix(string) {
    if (!string || typeof string !== "string" || string.length > 10) throw new TypeError("Expected a string and it's length must be between 1 to 10 So keeping prefix to ! by defauly");
     a = string;
     return prefix;
    },
 
opal plank
teal glen
#

hey

opal plank
#

hello

ionic dawn
#

Ubuntu is great, you should take a course of user admin and commands

delicate shore
#
 let a;
 let prefix = a || '!"

 // Rest code and
 
  prefix: function prefix(string) {
    if (!string || typeof string !== "string" || string.length > 10) throw new TypeError("Expected a string and it's length must be between 1 to 10 So keeping prefix to ! by defauly");
     a = string;
     return prefix;
    },
 

@delicate shore
It doesn't hange prefix

opal plank
#

still trying to figure out whats causing the issue

versed solar
#

any tips on hosting site or does it is already hosted?

earnest phoenix
#

@delicate shore Why to make a second variable

misty sigil
#

any tips on hosting site or does it is already hosted?
@versed solar you use a vps

opal plank
#

those fails

ionic dawn
#

In my grade we had a linux class PepeHappy

opal plank
#

let a;

#

imagine not delcaring the value

#

and then calling an unassigned variable as a value for another variable

versed solar
#

im just on a budget not much of a money

opal plank
#

thats some high iq stuff

ionic dawn
#

im just on a budget not much of a money
@versed solar VPS = 3$/month

rose warren
#

im just on a budget not much of a money
@versed solar pulseheberg. They have good cheap VPS plans. I've been using them for 6 months no problems

earnest phoenix
#

@delicate shore Try this maybe

 let prefix = "!";

 // Rest code and
 
  prefix: function prefix(string) {
    if (!string || typeof string !== "string" || string.length > 10) throw new TypeError("Expected a string and it's length must be between 1 to 10 So keeping prefix to ! by default");
     prefix = string;
     return prefix;
    },```
#

I told you this yesterday, yet you changed it

opal plank
#

not sure why return it but okay

misty sigil
#

defauly

opal plank
#

i mean as in, why not just have it mapped

versed solar
#

!string || typeof string !== "string" || string.length > 10

opal plank
#

just do the check when you ADD prefixes rather than checking everytime

earnest phoenix
#

He's trying to turn his bot to an npm package

misty sigil
#

why

earnest phoenix
#

So others can use it

versed solar
#

i think its on that part

opal plank
#

you can still use maps in a package

#

just add a method to store it internally

#

keep the prefixes cached inside the lib

misty sigil
#

So others can use it
@earnest phoenix github tho

earnest phoenix
#

He doesn't want to do custom prefixes for every guild

#

Just one time prefix

opal plank
earnest phoenix
#

@earnest phoenix github tho
@misty sigil Tell him that not me lol

opal plank
#

weird choice but okay

dense abyss
#

i guess not
@pale vessel I was able to resolve the issue. it seems I cant use on_message and commands on the same object

opal plank
#

imma post something to trigger some people rq

#

screeches and rage incoming soon

misty sigil
#

if it works

#

it works

opal plank
#

i need to update that shit ngl

#

at LEAST a switch

#

MINIMUM

honest perch
#

Jetbrains has best ide

opal plank
#

i just been too focused on the pipeline to care about that rn

#

time to push this update and see if i broke that shit more than it already is

#

round 2 of accidently dossing twitch 101 with erwin

ionic dawn
#

@opal plank switch/case/break elmoFast

ionic dawn
#

Oh my

#

But.. like dad said.. if it works... CatBlush

slender thistle
#

@opal plank my man

#

That hurts

opal plank
slender thistle
#

a lot πŸ˜‚

opal plank
#

shiv

#

wanna see cool shit?

slender thistle
#

Sure

opal plank
#

come in vc, imma stream in a sec

#

aight, good to go

earnest phoenix
#

@opal plank did ur slaves die last night?

opal plank
#

Not even

#

They were stable

earnest phoenix
#

@sacred cypress ur web cam is open

#

oh xd

#

;P

#

i thought u didnt know

#

@opal plank whats bot doing rn

opal plank
#

Stress testing a change i jist did

#

But that caused some unintentional bug it seems

#

With websockets

earnest phoenix
#

thats gay

#

Fahrenheit is gay

opal plank
#

They all fail at the same time though they are different processes

#

Thats really strange

#

Imma spend some time debugging it after this

#

At least my splitter is working finely

unreal sierra
slender thistle
#

At least it works somewhat

opal plank
#

Im wondering whats causing it tbh

#

Otherwise its flawless

delicate shore
#

I told you this yesterday, yet you changed it
@earnest phoenix
That wasn't working

slender thistle
#

Think it could be Twitch responding slowly?

delicate shore
#

That's why I changed it

opal plank
#

That could be an issue too

#

I could change each process to use a different ip too

#

I need to see whats causing those 13 to fail

#

welp, it passed most of the checks from the last commit

#

stable, splitter working and i reduced the amount of fails

#

now its just fine tune it to see whats causing the delay on every process

#

they are definetly related, as each worker works individually, so the fact that they all erro'ing at the same time indicates a problem

silver lintel
#

how to check if a user is the owner of ther server djs?

opal plank
#

found the issue

delicate shore
#

@delicate shore Try this maybe

 let prefix = "!";

 // Rest code and
 
  prefix: function prefix(string) {
    if (!string || typeof string !== "string" || string.length > 10) throw new TypeError("Expected a string and it's length must be between 1 to 10 So keeping prefix to ! by default");
     prefix = string;
     return prefix;
    },```

@earnest phoenix
Maybe system is getting confused

#

Because function name is also prefix

#

And variable name also

#

So I tried with prefix2

#

As variable name

#

But it didn't work either

earnest phoenix
#

Hmm that might be a possibility

delicate shore
#

Ye

#

I only need to change prefix = string to prefixbot = string right ?

earnest phoenix
#
 let prefix = "!";

 // Rest code and
 
  prefix: function setPrefix(string) {
    if (!string || typeof string !== "string" || string.length > 10) throw new TypeError("Expected a string and it's length must be between 1 to 10 So keeping prefix to ! by default");
     prefix = string;
     return prefix;
    },```
delicate shore
#

I changed var name also

#

Ok

#

Lemme try

earnest phoenix
#

Then why to be on development

prime spruce
#

what

#

then practice

opal plank
#

then pay someone to do it for you

#

then do something else

#

you either
a) learn how to make a bot
b) get someone to make you a bot
c) copy someones bot
d) use some bot maker

those are your options, if none fit, do something else with your life

#

then go find some open source bot out there than you can host

#

it they ALLOW you to do so, yes

lethal gale
#

I am a primary bot dev

earnest phoenix
#

then go find some open source bot out there than you can host
@opal plank *mine intensifies*

opal plank
#

imagine contributing to more basic bots

earnest phoenix
#

I don't know to code
@earnest phoenix we weren't born with programming powers we learnt them. If we can then so can you.

astral yoke
#

how come like

#

when you have your index.js

#

then put module.exports = bot;

#

then in a different like place

#

never said i was

#

im trying to ask a question

#

you do const bot = require('../index');
then how come bot.guilds.cache.get breaks

#

thats the point of this channel..

#

make a bot..

gentle lynx
#

hello. does anybody know what is the purpose of SELECT * FROM table WHERE.... command in MySQL?

prime spruce
#

to select rows

gentle lynx
#

yeah but like, how can I use it?

#

can i get all of the values with just SELECT * ?

prime spruce
#

yes

gentle lynx
#

alrighty

#

so i did this

#

how can i exactly get the data?

prime spruce
#

I don't know what you're using to query data, print out result and find out yourself

gentle lynx
#

result is [object Object]

#

well obv

#

if i do SELECT LEMON FROM inventory
i will do result[0].LEMON to get the value

delicate shore
#

Like windows build tools

#

what do we need on MAC

lethal gale
#

const bot = require "discord.js"

#

It that correct??

opal plank
#

no

lethal gale
#

I know

opal plank
#

then why ask?

lethal gale
#

I was just in he mode of fun, Then what is the correct one

opal plank
#

require('module')

lethal gale
#

Yes

#

The " is used in html not js

opal plank
#

you have absolutelky no idea what you talking about, do you?

prime spruce
#

The " is used in html not js
wrong

lethal gale
#

wrong
@prime spruce Why

prime spruce
#

because it's simply wrong

opal plank
#

iirc the only one that'll bitch to you about other types of strings in json

lethal gale
#

Bruh

#

iirc the only one that'll bitch to you about other types of strings in json
@opal plank K

prime spruce
#

js != json

opal plank
#

^^

lethal gale
#

^_^

opal plank
#

cosmos, how old are you?

lethal gale
#

Why

#

I don't tell personal info

opal plank
#

curiosity

lethal gale
#

"-"

opal plank
#

the way you type gives me a hint you are really young, tis why im asking

lethal gale
#

Bruh

opal plank
#

but thats offtopic

lethal gale
#

K

#

Bye

#

Now

prime spruce
#

...lol

lethal gale
#

Lmao

prime spruce
#

😐

opal plank
#

this is strange

#

howcome everything halts whenever one of the processes halts if they are independent?

lethal gale
#

Actually, I use the formula of 3s to make my bot

#

Node.js + discord.js + JavaScript = My all Bots

#

I use glitch to test my bot

#

How's the formula??

solemn jolt
#

What's this?

#

I can't invite my bot to any servers.

shy steeple
#

You have to verify it

solemn jolt
#

@shy steeple how i can verify my bot x

shy steeple
#

The developers server

hasty mulch
#

Check your DMs

solemn jolt
#

@hasty mulch ok

hasty mulch
#

You should’ve gotten a message from Discord

solemn jolt
#

@hasty mulch i didn't get any message frome discord.

hasty mulch
#

Go to your bot application page

#

You should be able to verify there

solemn jolt
#

@hasty mulch i now but i don't have a any passport.

hasty mulch
hazy elm
#

πŸ₯Ί

hasty mulch
#

@hazy elm Need help?

hazy elm
#

No

#

Tks

ionic dawn
#

There's a oficial discord server for verification support

#

You can ask your questions there

earnest phoenix
#

@solemn joltYou need to verify via discord's Verification system.

carmine summit
#

Is there any way to make a filter if args[0] is present?

#

nvm,, ill just put 2 if statements on top of each other

shy roost
#

Check if args.length is greater than 0

#

Or not equal to 0

sage meadow
#

Why it is not working $onlyIf[$userReacted[$getServerVar[1];$getServerVar[5];$getServerVar[6];πŸŽ‰]==true;] in BDFD

prime spruce
#

dear god

carmine summit
#

if i do let minimum, but minimum is defined, will minimum go undefined?

#
        if (args[0]) {
          let minimum
          if (!minimum) minimum = args[0]
        }
prime spruce
#

that is an error

carmine summit
#

that is inside a loop

compact oriole
#

wtf is that

prime spruce
#

what are you doin

#
> let a = 1;
undefined
> let a = 1;
Uncaught SyntaxError: Identifier 'a' has already been declared
carmine summit
#

no

compact oriole
#

of course if (!minimum) is false

carmine summit
#

there is only one let

compact oriole
#

lmao

prime spruce
#

your question is bad

compact oriole
#

yea

#

you don't provide enough info to go with

carmine summit
#

hmm

#

nvm

#

ill just move it outsid of the loop

#

it doesnt even need to

prime spruce
#

why not just....

let minimum = args[0]
#

it's the same thing

compact oriole
#

yea

carmine summit
#

that will cause error

prime spruce
#

no

carmine summit
#

because args[0] is optional

prime spruce
#

it won't

#

fine

carmine summit
#

?

#

ok

prime spruce
#
let minimum = (args || [])[0]
compact oriole
#

also why is it in a loop???

carmine summit
#

uh?

#

idk

compact oriole
#
let minimum = (args || [])[0]

this works

carmine summit
#

its now out of the loop

prime spruce
#

why are you looping

carmine summit
#

forEach

#

I know what I am doing...

prime spruce
carmine summit
#

except for that part

#

that

#

nvm

#

I should prolly move let minimum out fo the if statement becuz its gonna scope

#

uh

#
let minimum = (args || [])[0]

@prime spruce What will minimum be if there is no args[0]?

prime spruce
#

you literally don't need the if at all

#

undefined

carmine summit
#

alright

#

why is [0] not near args?

prime spruce
#

so

#

(args || []) if args is not defined (undefined), then use an empty array instead

#

and [0] on an empty array is undefined

carmine summit
#

oh

prime spruce
carmine summit
#

so it wont output []

prime spruce
#

no

carmine summit
#

instead undefined

#

??

prime spruce
#

generic, not actual code:

let args; // undefined
// ------
(args || [])[0]
// becomes...
[][0] // => undefined
#

args || [] is the same as:

if(!args) { args = []; }
#

it's just shorthand

carmine summit
#

alright

#

how do I make replace all???

#

is it slice or split?

#

i forgot

#

pretty sure its split

prime spruce
#

you can replace all with regexp

#
let str = 'somestring'.replace(/some/g, 'something else')
carmine summit
#

is object or array better?

prime spruce
#

?

#

better for what?

delicate shore
#

Discord need to remove the passport verification

#

Many people can't do that

#

Luckyly dice did it for me

onyx hare
#

It’s part of age verification and I’m sure they might add a citizen ID into it to prove be the user is over the age of 16

#

-be

prime spruce
#

but 16 isn't a requirement

lethal gale
#
bot.on("error", console.error);
bot.on("ready", () => console.log(`[READY] ${bot.user.tag} has been successfully booted up!`));
bot.on("shardDisconnect", (event, id) => console.log(`[SHARD] Shard ${id} disconnected (${event.code}) ${event}, trying to reconnect...`));
bot.on("shardReconnecting", (id) => console.log(`[SHARD] Shard ${id} reconnecting...`));```

How that?
ionic dawn
#

Does anyone here know how to make gifs with canvas and gifencoder?

lethal gale
#

Ummmmm

#

Idk

pale vessel
#

woo has experience with that

ionic dawn
#

@solemn latch may I disturb you for a second? CBuwu

pale vessel
#

but what do you need help with?

lethal gale
#

He is offline

#

but what do you need help with?
@pale vessel He wanna with Canvas

ionic dawn
#

I want to make a gif with a few sprites and the users avatar

#

like: sprite1.png sprite2.png sprite3.png usersavatar.*

#

and generate a gif

#

I never used gifencoder and my mind is blowing

lethal gale
#

Oh, You can use a GIF Maker Online

#

There are many

ionic dawn
#

Yeah, but I want a command that does that

lethal gale
#

Search on google

ionic dawn
#

thats why I need canvas+gifencoder

lethal gale
#

Ok

pale vessel
#

you can check their example

ionic dawn
#

imma take a shower and after that ill drink some redbull and try to read the docs and test puup

#

hopefully woo gets online and can give me a few examples of how to do it

umbral creek
#

benim bot node bot.js yi algΔ±lamΔ±yo niye bilen var mΔ±

ionic dawn
#

english

eternal osprey
#

Hey I have made a key generator that generates keys that have 32 characters in length.

#

how do I transform the outputs β€˜result.1’ 5EDF08A7F4C64CA79036C978E5AF05EC

#

Into 5EDF08A7-F4C6-4CA7-9036-C978E5AF05EC

earnest phoenix
#

what it will do client.on('guildMemberAdd', async member => {
const channel = member.guild.channels.cache.find(ch => ch.Topic === '!welcome!');
if (!channel) return;

#

please help

eternal osprey
#

What’s the error

earnest phoenix
#

i want to send message to the channel whose topic is !welcome! . will the above code work for this???

eternal osprey
#

No

pale vessel
#

topic is the correct property

earnest phoenix
#

why @eternal osprey

eternal osprey
#

^^

pale vessel
#

ignored again

eternal osprey
#

Look at what flaze said

#

anyways flaze

earnest phoenix
#

ch.topic === '!welcome'

#

this one

eternal osprey
#

Do you know how I can modify my generated key from 5EDF08A7F4C64CA79036C978E5AF05EC to 5EDF08A7-F4C6-4CA7-9036-C978E5AF05EC

#

You see those - between the numbers.

pale vessel
#

you can make a function to format it

eternal osprey
#

@royal knoll you once again don’t want to listen.

earnest phoenix
#

please help if this is correct or not ch.topic === '!welcome!'

pale vessel
#

ye

eternal osprey
#

@pale vessel i have made a function of it that generates the codes every 1 second.

#

I can send my@code. Hold on

earnest phoenix
#

client.on('guildMemberAdd', async member => {
const channel = member.guild.channels.cache.find(ch => ch.topic === '!welcome!');
if (!channel) return;

const canvas = Canvas.createCanvas(700, 250);
const ctx = canvas.getContext('2d');

const background = await Canvas.loadImage('./wallpaper.jpg');
ctx.drawImage(background, 0, 0, canvas.width, canvas.height);

ctx.strokeStyle = '#74037b';
ctx.strokeRect(0, 0, canvas.width, canvas.height);

// Slightly smaller text placed above the member's display name
ctx.font = '28px sans-serif';
ctx.fillStyle = '#ffffff';
ctx.fillText('Welcome to the server,', canvas.width / 2.5, canvas.height / 3.5);

// Add an exclamation point here and below
ctx.font = applyText(canvas, `${member.displayName}!`);
ctx.fillStyle = '#ffffff';
ctx.fillText(`${member.displayName}!`, canvas.width / 2.5, canvas.height / 1.8);

ctx.beginPath();
ctx.arc(125, 125, 100, 0, Math.PI * 2, true);
ctx.closePath();
ctx.clip();

const avatar = await Canvas.loadImage(member.user.displayAvatarURL({ format: 'jpg' }));
ctx.drawImage(avatar, 25, 25, 200, 200);

const attachment = new Discord.MessageAttachment(canvas.toBuffer(), 'welcome-image.png');

channel.send(`Welcome to the server, ${member}!`, attachment);

});

eternal osprey
#

Bro first of all, put it in a code block. Js format.

earnest phoenix
#

I want to send a image on member join based on channel's topic

#

is the above code correct

eternal osprey
#

2nd of all, this is not your code.

#

you have taken this from the internet 100%

earnest phoenix
#

yes

pale vessel
#
function format(string) {
    string = string.split("");
    string[7] = `${string[7]}-`;
    string[11] = `${string[11]}-`;
    string[15] = `${string[15]}-`;
    string[19] = `${string[19]}-`;
    return string.join("");
}
format("5EDF08A7F4C64CA79036C978E5AF05EC"); // 5EDF08A7-F4C6-4CA7-9036-C978E5AF05EC```i made this
#

i don't mean to spoonfeed but to give an example. this only works with strings with that amount of length and you can do something similar using indexes for your code

#

but well, it's working

eternal osprey
#

Bro I know. I won’t copy anything. I want to learn.

#
const fs = require('fs');

setInterval(function() { 
function makeid(length) {
    var result           = '';
    var characters       = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
    var charactersLength = characters.length;
    for ( var i = 0; i < length; i++ ) {
       result += characters.charAt(Math.floor(Math.random() * charactersLength));
      
    }
    
    fs.appendFile("key.txt", result + '\n\n', function(err) {
    if(err) {
        return console.log(err);
    }})
Β Β Β Β Β Β 
    
    return result
    

Β Β Β Β Β Β 
}


 console.log(makeid(32));

 Β Β Β 
    Β Β Β Β 
    
},1000)```
pale vessel
#

yes, i'm explaining it

eternal osprey
#

This is my own code I wrote.

pale vessel
#

it just splits the string and add - to every x index

restive furnace
warm marsh
#

I think the spaces say otherwise 😐

eternal osprey
#

Owh yeah that’s really interesting!

#

@warm marsh ?

#

it’s interesting that you actually have put them in strings

#

And then added the - sign to them.

slender thistle
#

cs works fine for c#

earnest phoenix
#
const Discord = require("discord.js");

exports.run = (client, message, args, ops) => {
  
message.delete() //Recode this

  weather.find({search: args.join(" "), degreeType: 'C'}, function(err, result) {
    const embedErr = new Discord.RichEmbed()
    .setThumbnail('https://www.antagonist.nl/blog/wp-content/uploads/2015/04/wordpress_errors.jpg')
    .setAuthor(`| ${message.author.tag}`, message.author.displayAvatarURL)
    .setDescription(`**Error** has occured\n\`\`\`${err}\`\`\``)
    .setFooter(ops.footer)
    .setColor(ops.color)
    if (err) message.channel.send(embedErr)
    
    // Variables
    let current = result[0].current;
    let location = result[0].location;
    let forecast = result[0].forecast;
    
    // Embed For Weather
    const weatherEmbed = new Discord.RichEmbed()
    .setThumbnail('https://images-na.ssl-images-amazon.com/images/I/41wkG24yDkL.png')
    //.setAuthor(`| ${message.author.tag}`, message.author.displayAvatarURL)
    .setDescription(`🌦 Weather`)
    .addField("🌦 Weather", current.skytext, true)
    .addField("πŸ’§Humidity", current.humidity, true)
    .addField("Temperature", current.temperature, true)
    .addField("Real Feel", current.feelslike, true)
    .addField("Wind", current.winddisplay, true)
    .addField("Wind Speed", current.windspeed, true)
    .addField("Day", current.day, true)
    .addField("Last Weather Update", current.observationtime, true)
    .addField("Location", location.name, true)
    .addField("Timezone", location.timezone, true)
    .setColor("e100ff")
    .setTimestamp()
    .setFooter(`|  ${message.author.tag}`, message.author.displayAvatarURL)
    
    message.channel.send(weatherEmbed)
  })

}```
#

code

ionic dawn
#

is that a weather command? how cool xd

earnest phoenix
#

yes

ionic dawn
#

Do you have any error or?

earnest phoenix
#

yes

ionic dawn
#

and is?

earnest phoenix
#

bruh.

restive furnace
#

cs works fine for c#
yeah maybe i should edit it

ionic dawn
#

typo?

#

in the name

earnest phoenix
#

js

ionic dawn
#

oh no

earnest phoenix
#

weather.js

ionic dawn
#

install npm

#

weather

earnest phoenix
#

what

#

pnpm*

ionic dawn
#

you need to install the module

earnest phoenix
#

which npm

ionic dawn
#

npm weather-js

#

npm i weather-js

#

this

silver lintel
#

Where did you copy that from? Bc that code is outdated

earnest phoenix
#

Bro,its pnpm in glitch...

ionic dawn
#

never used glitch so

earnest phoenix
#

You don't need to use command line for package installation on glitch

ionic dawn
#

Good to know

earnest phoenix
#

Just go on the package.json and click add package

ionic dawn
#

but the error still saying that cant find the module so, you need to install it somehow?

earnest phoenix
#

@ionic dawn thanks bro

restive furnace
#

@earnest phoenix no

ionic dawn
restive furnace
#

npm works too

ionic dawn
#

I only work with VPS so... sry :P

earnest phoenix
#

new error

#

Reinstall quick.db, that happens because of it

blissful stump
#

I want help. I don't know what to write to get sure someone wants to help me fill this list????? pleas help me

compact oriole
#

@blissful stump wrong server

earnest phoenix
#

vpn user

pale vessel
earnest phoenix
#

?

pale vessel
#

@blissful stump

compact oriole
#

yea that server

blissful stump
#

@compact oriole @pale vessel ok thanks 😊❀

ionic dawn
#

Imagine dont be able to install sqlite cause of node permission errorsscared

earnest phoenix
#

npm uninstall cmd???????

#

npm u

#

i am right?

#

@ionic dawn

compact oriole
#

...

#

use google

earnest phoenix
#

plz tell me bro

compact oriole
earnest phoenix
#

Imagine dont be able to install sqlite cause of node permission errorsscared
@ionic dawn That's not even permission error

#

@restive furnace tm

#

anyone helpme

#

@earnest phoenix

#

@earnest phoenix type enable-pnpm in your console(terminal)

#

ok, wait.

#

what means of pnpm

#

for knowledge

#

I don't know :d

#

ok

#

wtw thank u πŸ˜„ GWseremePeepoHappy

quartz kindle
#

pnpm is an alternative package manager

#

similar to yarn

earnest phoenix
#

what yarn cane u explaine ?? πŸ˜„

quartz kindle
#

yarn is another package manager lol

ionic dawn
#

@ionic dawn That's not even permission error
@earnest phoenix well, node says permission error but is a package error

#

you have to install node-pre-gyp or somethn

faint prism
#

npm uninstall cmd???????
@earnest phoenix npm -h Is what you're looking for

earnest phoenix
#

??????

thin turret
#

Client.client.on waitWhat

silver lintel
#

:/

earnest phoenix
#

know?

ionic dawn
#

client.on

earnest phoenix
#

what

#

change?

thin turret
#

Change whoever is teaching you djs

#

πŸ‘»

earnest phoenix
viral timber
#

guys do anyone know why if i put in a embed's footer: client.user.displayAvatarURL() i am able to see my bot's avatar only if i'm on pc, cuz when i see that with a mobile device i see a default discord avatar

earnest phoenix
#

glitch

#

restart

#

discord app

thin turret
#

I imagine pc refreshes quicker than mobile

earnest phoenix
#

check our image and text all option are on

viral timber
#

k thx

earnest phoenix
#

my english so bad πŸ˜„

#

@thin turret

lone forge
#

guys

#

I need the bot Sirona’s link if anyone has it?

ionic dawn
earnest phoenix
#

.

raw silo
#

Hi, got a question about Collectors and CollectorOptions - https://discord.js.org/#/docs/main/stable/typedef/CollectorOptions

faint prism
#

ask

raw silo
#

is there a default value for time option

#

or a max value?

#

can I run the collector for 3, 5 or 7 days for example

faint prism
earnest phoenix
#

sounds like you need to hook into the event, not use a collector

#

also yes there's a max

#

Number.MAX_SAFE_INTEGER

#

aka a 53bit number

raw silo
#

i want my bot to check and count reactions to a post in the past number of days

earnest phoenix
#

sounds like you need to hook into the event, not use a collector

#

collectors are meant for short term collection, e.g a few seconds/minutes

raw silo
#

can you point me at relevant events documentation?

earnest phoenix
#

yeah give me a sec

earnest phoenix
raw silo
#

ah I tried that, but this is only for cached messages - Emitted whenever a reaction is added to a cached message.

earnest phoenix
#

enable partials (i think that's what they're called?)

spare goblet
#

Ideas on how to fix "Shard 0 client took too long to get ready"?

Been on v12 for at least 5 months now, this deploy has been stable for weeks if not months. No idea what I did wrong or why it's throwing that error. Discord doesn't seem to be having issues either

misty sigil
#

I mean

#

you can just turn timeout higher

spare goblet
#

Oh wait

#

After 30 mins shard 0 finally ready

misty sigil
spare goblet
#

If it's 30 mins per shard then it'll take years for my bot to go online

misty sigil
#

oh god

tardy hornet
#

i have a command that react to messages, and if they delete the message before it finished its giving errors so i want to make that if they delete it will return it

#

and i did that

earnest phoenix
#

How to delete glitch project

compact oriole
#

glitch LUL

earnest phoenix
#

Yes

drifting wedge
#

how can i do global vars in py

#

not global