#development

1 messages ยท Page 1574 of 1

glossy spoke
#

Google is being attacked 24/7

tulip wave
#

A lot of isps are yet to adopt ipv6

#

Everyone is being attacked 24/7

lyric mountain
tulip wave
#

I setup a fail 2 ban server on my vps and in 4 hours it blocked 500 SSH attacks and banned 100 ips

glossy spoke
#

Lmao

lyric mountain
#

And I'm not joking

tulip wave
lyric mountain
#

Like that dude who found how to hack into windows by using notepad

tulip wave
#

Kekw

lyric mountain
#

That broker game?

tulip wave
#

Anyway imma head off to bed

glossy spoke
#

I know some people that thinks they are hackers using a web to get info from a IP taken whit grabfiy lol

lyric mountain
#

Lul

glossy spoke
#

Also, i'm Barnie, idk if someone here remember me

#

My previous account has been banned

lyric mountain
#

Sanders?

glossy spoke
#

Sanders?

#

What the hell is that?

lyric mountain
#

Barnie sanders

glossy spoke
#

no

mellow kelp
#

kekw

lyric mountain
glossy spoke
#

@mellow kelp knows me

quartz kindle
#

banned from top.gg or from discord?

glossy spoke
#

Discord

#

i meant my account was disabled

quartz kindle
#

lel

agile lance
#
if(sorted.length > 10) sorted.length = 10
let sorted2 = Object.entries(db.all().find(dta2 => dta2.ID == "level").data).sort((a, b) => b[1] - a[1])
if(sorted2.length > 10) sorted2.length = 10
if(!sorted.length && !sorted2.length) return message.reply("Wait a minute.. No data found. Sad.")
let field = " ";
let field2 = " ";
for(let user of sorted) {
 field2 += `User: ${user[0]} - Balance: ${user[1]}`
}
for(let user2 of sorted2) {
field2 += `User: ${user2[0]} - Level: ${user2[1]}\n`
}
message.channel.send(new discord.MessageEmbed()
.setTitle("**Global Leaderboard**")
.setColor("BLUE")
.addField("**Balance Leaderboard**", field)
.addField("**XP Leaderboard**", field2)
).catch(() => null);```

Issue: just doesnt respond. No errors either
solemn leaf
#

I wonder why

#

You arent like just

#

Cancelling the catch

lyric mountain
#

Lul

#

Silencing the errors

solemn leaf
#

We all do it lmfao

#

But thats when the code works

mellow kelp
#

i mean there are some cases where you might want to do that

lyric mountain
#

Issue: just doesn't respond. No errors either
Please remove that silencer so we can see the errors

solemn leaf
#

Null

#

Instead of saying no just say null

lyric mountain
#

Say that while tposing

#

To assert dominance

solemn leaf
#

Also stand on your head

#

While tposing on the toilet

mellow kelp
#

what

lyric mountain
#

And spinning slowly

solemn leaf
#

Null

#

I need help thinking

#

@agile lance replace your catch with an actual catch

quartz kindle
#

field is empty

#

but that should just fallback to undefined

agile lance
#

oh i found my issue

#

field wasnt defined

#

i messed up when changing stuff and made only field2 was defined

#

field was left = " " making the embed field empty ;/

jolly mortar
#

how can i make a neat discord embed like this the one i have rn takes up alot of space

lyric mountain
#

Fields

earnest phoenix
#

Go use Google

quartz kindle
#

show the one you have rn

lyric mountain
#

And high dpi actually

agile lance
#

also another issue

#

it shows cant show tag of undefined when doing client.users.cache.get(user[0])

#

even though

#

im cached

#

unless user[0] returns a number not a string

quartz kindle
#

when you update your code and restart your bot

#

you are not cached anymore

quartz kindle
#

unless you use another command before you use that one

agile lance
#

ive tried that way

lyric mountain
#

And make fields inline

agile lance
#

i wonder if it returns a number not a string

#

i can try it

quartz kindle
jolly mortar
#

people get annoyed by it cuz its "too big"

lyric mountain
#

That's big? Lul

jolly mortar
#

i need to use inlines

quartz kindle
jolly mortar
#

but dont know how to use them correctly

agile lance
#

this hurts my headdd

lyric mountain
#

Btw, you have some typos in the last field

#

Concers and "about the bot MH10"

jolly mortar
#

yea

#

grammar 100

agile lance
#

Ok so basically i cant make a leaderboard show tags

#

what a pointless leaderboard then lol

quartz kindle
lyric mountain
#

No, I mean, the bot's called Groton right?

agile lance
#

client.users.fetch returns the same error

lyric mountain
#

"about the bot Groton"

quartz kindle
#

then you used it wrong

#

fetch requires awaiting

agile lance
#

client.users.fetch(-

#

Oh

quartz kindle
#

its a Promise

jolly mortar
agile lance
#

Iโ€™ll try it real quick

jolly mortar
#

nvm i figured out how to use inlines pog

lyric mountain
#

But anyway, try to shorten titles, that way it looks cleaner

#

And use inlines

agile lance
#
  let userIndex = await client.users.fetch(user[0])
 field += `User: ${userIndex} - Balance: ${user[1]}\n`
}```
#

that should work ?

quartz kindle
#

yes

agile lance
#

it works

#

pog

#

but issue

#

it @โ€˜s the user

#

itll show unknown user if they dont share a guild

quartz kindle
#

.tag

agile lance
#

will .tag work?

#

oh ok

#

user undefined

quartz kindle
#

on userIndex

#

not on fetch

agile lance
#

yeah it shows

#

User: undefined

#

on the lb

quartz kindle
#

userIndex.tag

#

not .fetch().tag

agile lance
#

Oh

quartz kindle
#

the await keyword awaits the final result of the chain, so it needs isolation

agile lance
#

Yay it worked

quartz kindle
#

if you want to use .tag in the same line, you can do (await ....).tag

agile lance
#

*another full day wasted on a single command *

lyric mountain
#

Stuck in my head again

#

Another day's been laid to waste

#

To my disgrace

#

Can't forget that linkin song

jolly mortar
blissful coral
#

Welcome to embeds

#

lul

mellow kelp
#

Embedsโ„ข๏ธ

solemn leaf
#

nah you can make embeds look nice

#

you just need ideas and 2 braincells

#

honestly that isnt bad

#

I would set the first one to not be inline

#

I can help you make ti look like this if you want

pale vessel
#

looks ugly on mobile though

earnest phoenix
#

reject embeds, return to plain texts

opal plank
#

this somehow seems really wrong

#

or am i overlooking something?

#

both setInterval and setTimeout are part of node.Timeouts ?

quartz kindle
#

yes

blissful coral
#

Yep

jolly mortar
opal plank
solemn leaf
#

@jolly mortar

#

okay

#

well

#

show code first

jolly mortar
#

it got auto deleted

solemn leaf
#

what

jolly mortar
#

when i send it

#

it gets deleted

unkempt ocean
#

remove the invite links

solemn leaf
#

oh you eval it

#

well then

jolly mortar
#
  let embed = new Discord.MessageEmbed()
   .setTitle("List Of Active Commands \n")
  .addFields({name: '``My prefix is  .``', value: 'Used Infront Of Each Command', inline: true}, {name: '``.help fun``', value: 'List Of Fun commands', inline: true}, {name: '``.help utility``', value: 'List Of  Useful uitility commands', inline: true},
             {name: '``.help moderation``', value: 'list Of Moderation commands', inline: true}, {name: '``.status``', value: 'Info Commands About Groton', inline: true})
      .setThumbnail("https://cdn.discordapp.com/avatars/805877479331594261/2cd355be9d37b3a6ea42343aba42e5aa.webp")
  .addField(
        `Having Problems ${message.author.username}?`,
        `[Join The Support Server](discord link pog)`
      )
      .setFooter(`Requested By ${message.author.username}`)
      .setTimestamp();
   message.channel.send(embed);
  }```
solemn leaf
#

thats messy

#

also

#

why not just do

#

message.channel.send({embeds:{}})

#

it saves like 3 ms

jolly mortar
#

i shouldve done that

solemn leaf
#

well what you want the color to be

jolly mortar
#

i already got the color ready

solemn leaf
#

not this is raw embed

#

not constructor

jolly mortar
#

oh

#

still messy though

solemn leaf
#

No

#

I liked the older one

jolly mortar
#

oh

solemn leaf
#

give me a min

jolly mortar
jolly mortar
#

i can add the image on the bottom

#

i just need to change the size of it

solemn leaf
#

what is the color you want?

jolly mortar
#

its random

#

i just forgot the put in .setColor("RANDOM")

unkempt ocean
#

@jolly mortar have you tried to shorten the status and moderation descriptions

#

or add a line break

#

it might help to get them in order actually

jolly mortar
#

how do i add line breaks

unkempt ocean
#

\n

jolly mortar
#

lemmi see

solemn leaf
#
    message.channel.send({
        embed: {
            color: "RANDOM",
            title: "List of Active Commands ",
            fields: [
                { name: "``Prefix .``", value: "Used infront of each command.", inline: true },
                { name: '\u200B', value: '\u200B', inline: true },
                { name: '\u200B', value: '\u200B', inline: true },
                { name: '``.help fun``', value: 'List of fun commands', inline: true },
                { name: '``.help utility``', value: 'List Of  Useful uitility commands', inline: true },
                { name: '\u200B', value: '\u200B', inline: true },
                { name: '``.help moderation``', value: 'List of moderation commands', inline: true },
                { name: '``.status``', value: 'Info commands about groton', inline: true },
                { name: '\u200B', value: '\u200B', inline: true },
                { name: `Having Problems ${message.author.username}?`, value: `[Join The Support Server](discord link pog)` }
            ],
            timestamp: new Date(),
            footer: {
                text: `Requested By ${message.author.username}`
            }
        }
#

can you send me the image?

glacial pagoda
#

const helpembed = new Discord.MessageEmbed()
            .setColor('#FFB20B')
            .setTitle('__**Dogey Bot Commands**__')
            .setURL('https://bit.ly/38TxZ8g')
            .setDescription('`We Have Some REAL ๐Ÿ‘ŒWacky๐Ÿคช Commands!`')
            .addFields(
                {name: '`๐Ÿ˜`**Fun**', value: '-help fun', inline: true},
                {name: '`๐Ÿ“ท`**Image And Gifs**', value: '-help image', inline: true},
                {name: '`โœจ`**Unique**', value: '-help unique', inline: true},
                {name: `\`${animeemoji}\`**Anime**`, value: '-anime'},
                {name: '`๐Ÿค`**Dogeys Partner Servers!**', value: '-partner'},
                {name: '`๐Ÿ˜ค`**Dogey Devs Socials**', value: '-socials'},
                {name: '`๐Ÿ˜Ž`**Moderation (Only For Administrator Perm Users)**', value: '-help moderation'},
                {name: '`๐Ÿ“Š`**Command Roles (Only For Main Server, -discord)**', value: '-help roles'}
                )
            .setFooter('P.S Dont Click On "Dogey Bot Commands"');
        
            message.channel.send(helpembed);```
#

How Do I Make The Animeemoji Defined

solemn leaf
#

you do

glacial pagoda
#

I Want It To Send The Custom Emoji

solemn leaf
#

oh god

odd stratus
#

Why don't you just paste the raw version by putting a \ before?

solemn leaf
#

capitalized every word

odd stratus
#

That's how custom emoji formats are

solemn leaf
odd stratus
#

You put that in your code

glacial pagoda
#

I tried That In {name: \${animeemoji}`Anime`, value: '-anime'},

odd stratus
#

As long as the bot is in that server the custom emoji is in, it'll work

unkempt ocean
#

you sure your bot has the access the emoji?

unkempt ocean
#

cause it should work with this way too

glacial pagoda
#

Yeah It Has All Perms

odd stratus
#

Why would it be undefined though

#

Or is it not an emoji ID

glacial pagoda
#

It Is

#

{name: `/`![ytho](https://cdn.discordapp.com/emojis/588492551577796615.webp?size=128 "ytho")/`**Anime**`, value: '-anime'},?

unkempt ocean
#

your bot is in the server that has the emoji right?

glacial pagoda
#

Wdym By That

#

I Gave The Bot All Perms

unkempt ocean
#

typo :/

glacial pagoda
#

Huh

solemn leaf
#

Your bot doesnt have the emoji in its cache

odd stratus
solemn leaf
#

that is what we are saying

glacial pagoda
solemn leaf
#

I swear

glacial pagoda
#

const animeemoji = client.emojis.cache.get('808231038601003008')

#

This?

solemn leaf
#

How DO I Put

#

H D I P

#

what

#

How do I put in it's cache

#

try it

glacial pagoda
#

Wat

#

Try What

unkempt ocean
#

your bot has to be in the server that has this emoji

glacial pagoda
#

It is

solemn leaf
#

this^^

glacial pagoda
#

Whats "this^^"

unkempt ocean
#

do you use shards?

glacial pagoda
#

Idk

buoyant sinew
#

bruh

unkempt ocean
#

do you know the server count of your bot?

glacial pagoda
#

Yes

buoyant sinew
#

how much

unkempt ocean
#

how much?

glacial pagoda
#

18

unkempt ocean
#

then probably you're not using shards

glacial pagoda
#

I Dont Know Wats A Shard

#

Can You Explain

agile lance
#

shard is where you have multiple servers on a bunch of different instances basically

#

say 1k servers per shard if your bot id in 50 servers; 50 shards

glacial pagoda
#

oh

#

so i have 18 shards basically

unkempt ocean
#

no not like that actually but it's no big deal right now

pearl trail
#

u need more code to use sharding method,

glacial pagoda
#

oh

agile lance
#

sharding requires codinf

unkempt ocean
#

which version of discord.js you're using

agile lance
#

dont use sharding until you have alot of servers

glacial pagoda
#

12

pearl trail
#

ah yes, i mean more file, like shard.js

agile lance
#

i have 5 files lol

glacial pagoda
#

12.4.1

#

To be exact

agile lance
#

index.js, functions.js, events.js, config.json, assets.json

blissful coral
#

Time to start KEKW

glacial pagoda
#

0-0

#

How Would You Guys Put A Custom Emoji In A Embed?

#

If You Had To Do It

solemn leaf
#

OMG GRAMMAR PLS

glacial pagoda
#

What

pearl trail
#
const { ShardingManager } = require('discord.js');
const config = require('./config.json');

const manager = new ShardingManager('./your/path/to/main/file', {
    token: config.TOKEN,
    totalShards: 'auto', // you can manually configure how many shard you want to spawn
});

manager.on('shardCreate', shard => {
console.log(`${shard.id} spawned`)
}
manager.spawn();

short code to sharding

blissful coral
#

Oh god

#

Please Don't Type Like This

#

It's so weird

#

Capping every word PES_Cry

agile lance
#

@pearl trail question

pearl trail
#

yes?

agile lance
#

for token will

#

client.config.tokens[0] work?

#

because my config has a array for tokens to hold api keys and stuff

pearl trail
#

yes, it depends how you add tokens in your config. i see yours is tokens so it should in array

#

ah yes, yep

blissful coral
pearl trail
agile lance
#

Content is

"tokens": ["BOT TOKEN", "API KEY 1"]
}```
blissful coral
#
"tokens" : {
"bot":"",
"api":"",
"otherapi":""
}```
glacial pagoda
blissful coral
#

Because it is in ``

pearl trail
#

do not use \`\`

solemn leaf
#

custom emojis dont work in ``

glacial pagoda
#

Oh

pearl trail
#

yeah

glacial pagoda
#

Ok

#

Thanks Guys!

solemn leaf
#

No thank you for leaving

glacial pagoda
#

Ill Figure Somthing out

#

Oh cryIgnore

solemn leaf
#

Holy you capitalized every word

agile lance
glacial pagoda
#

Yes I Do

#

Its a Habit

agile lance
agile lance
solemn leaf
#

It's the habit that's gonna get you fired on your first job

agile lance
#

ima shard on 4 servers ๐Ÿ˜‚

#

shards

solemn leaf
#

you;re gross

blissful coral
#

Why so toxic sad

solemn leaf
#

Extreme

#

listen

opal plank
blissful coral
#

"kekw

#

Sounded fun to do

opal plank
#

oh god

#

its worse above

blissful coral
#

LMAO

solemn leaf
blissful coral
#

lyl

#

lul

solemn leaf
#

why not

#

just do

#

client.token

#

client.apitoken

#

ez pz

opal plank
#

imagine attaching everything to client

solemn leaf
#

imagine using client

opal plank
#

imagine NOT using client

pearl trail
#
const client = require('discord.js')
const Discord = new client()

Imagine using client

opal plank
#

the heck do you call your client object? ```ts
const MitocondriaIsThePowerHouseOfTheCell = new Client(token);
MitocondriaIsThePowerHouseOfTheCell.on('ready', () => console.log('ready'));

sacred trout
#

can anyone help me with a little bit of css

#

?

#
.navbar__container{
  display: flex;
  justify-content: space-between;
  height: 80px;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 50px;

}```the navbar doesn't go up
opal plank
#

would help if i knew, but im a backend cave dwelling goblin

solemn leaf
#

ok

#

erwin

opal plank
#

aw, tim is offline to laugh at my biology joke

opal plank
crimson vapor
#

hi Erwin

opal plank
#

hello

crimson vapor
#

how many brain cells have you lost today?

solemn leaf
#

enough

opal plank
#

all the ones i knew i had and a couple more extra

sacred trout
solemn leaf
#

?

earnest phoenix
sacred trout
#

better then ss

crimson vapor
sacred trout
opal plank
crimson vapor
#

is making fun of my code worth it?

earnest phoenix
crimson vapor
#

idk

#

backend > frontend

earnest phoenix
#

if he same you put on css

sacred trout
#
   <nav class="navbar"></nav>
    <div class="navbar__container"></div>
      <a href="/" id="navbar__logo">MEXT</a>
      <div class="navbar__toggle" id="mobile-menu">
      <span class="bar"></span>
      <span class="bar"></span>
      <span class="bar"></span>```
opal plank
crimson vapor
#

ah poggers I didn't fuck up the spelling

opal plank
#

WHAT

#

THE

#

FUCK

#

who commits todo files!?

crimson vapor
#

well

#

umm

solemn leaf
#

people who have ahhd

crimson vapor
#

git add .

#

git commit -m "initial commit"

#

if you know what i mean ๐Ÿ˜‰

solemn leaf
#

I dont

opal plank
#

amazing path

crimson vapor
#

shh

#

bro it works on my machine

opal plank
#

going outside of what you commited

crimson vapor
#

ok but actually

opal plank
crimson vapor
#

dw about that

opal plank
#

๐Ÿง 

crimson vapor
#

like actually

#

I will fix that when berry finally releases it

solemn leaf
#

How should I make a help command that auto fills in th subfolders and commands

crimson vapor
#

honestly

#

these are minor fuck-ups

opal plank
#

commiting comments too

solemn leaf
#

what

opal plank
#

unCaughtException

crimson vapor
#

good point

opal plank
crimson vapor
#

testing erwin reading your code

#

amirite

solemn leaf
#

How should I make a help command that auto fills in the subfolders and commands

crimson vapor
#

at least I didn't commit dist/ or config.json

dusky sundial
#

What would be a good way to have my website tell whether my bot is online or not? Like, checking for a process running with php?

crimson vapor
#

hmm

opal plank
#

so

#

whats the point of having a colors.ts

#

if you gonna do this?

dusky sundial
#

colorful_sparks colors colorful_sparks

solemn leaf
#

@opal plank WHy not

opal plank
#

fucking amazing

#

library written in ts

#

and it only acceepts js

solemn leaf
#

lmfao

dusky sundial
#

5Head big brain

blissful coral
#

LMAI

#

MLAO

solemn leaf
#

extreme

#

changed pfp

blissful coral
#

LMAO*

solemn leaf
#

cringe

crimson vapor
#

bro

#

idk anymore

earnest phoenix
#

Hello

buoyant sinew
#

hello

blissful coral
#

boo

opal plank
#

BRUH

#

I CANT

dusky sundial
#

Anyone with an anime pfp shouldn't be trusted

crimson vapor
#

LOL

opal plank
#

I SIMPLY CANT

crimson vapor
#

don't then

earnest phoenix
crimson vapor
#

../../../../../

#

kekw

buoyant sinew
opal plank
#

HE DID IT TWICE

#

OF COURSE

crimson vapor
#

yes

opal plank
crimson vapor
#

in both files right

opal plank
#

embed builder

#

-100 points from me

crimson vapor
#

erwin

#

@ berry

opal plank
#

maximum is a score of 10 btw

crimson vapor
#

im at what? -169?

earnest phoenix
#

How can i use the dsl bot

crimson vapor
#

there are 2 different embed builders

#

btw

#

because berry's code is stinky

opal plank
#

3 embed builders

#

fucking amazing

earnest phoenix
#

And is there a website other than disboard that i can use to bump my server

opal plank
#

okay bro

#

wtf

#

is this shit

crimson vapor
#

my shit

opal plank
#

DRY ur code for the love of god

crimson vapor
#

DRY?

dusky sundial
#

The opposite of moist

opal plank
#

more shit outside of the scope of your repo

crimson vapor
#

umm

opal plank
#

DRY

crimson vapor
#

ah

#

wait thats in my scope no?

#

yeah it is

opal plank
crimson vapor
#

commands/x/../../structures

opal plank
#

my bad, it is

crimson vapor
#

have you seen Worker.ts?

opal plank
#

OMG

#

WHY

crimson vapor
#

im learning DRY

#

soonโ„ข๏ธ

opal plank
crimson vapor
#

I see that its bad to do this shit, how would you suggest I fix this?

#

bro have you seen the ping command?

opal plank
#

using a function or something

crimson vapor
#

ok

opal plank
#

and passing whats changing

crimson vapor
#

alr smart

#

ill just attach it to CommandContext

#

I think I can do that

#

you ok erwin?

opal plank
#

no, i lost more braincells than i had to spare

crimson vapor
#

I feel it

opal plank
#

:had to get some booze

crimson vapor
#

did you read lib/Worker.ts?

opal plank
#

i did look at everything

crimson vapor
#

ah

#

must have caused a loss of too many braincells

opal plank
#

apart from the forEach() i didnt spot anything screaming

#

and the resolving path

#

and the .js files

crimson vapor
#

what should I do to dynamically import files?

#

if it transpiles to .js there are no issues

opal plank
#

why would you not dynamic import files

#

and why do you need them to be in js?

crimson vapor
#

to not import a .d.ts file or something

opal plank
#

huh?

crimson vapor
#

doesn't it create .d.ts?

opal plank
#

why would you declare a command on a type file?

#

no?

crimson vapor
#

o

opal plank
#

depends on ur configs

#

i much rather not compile anything and keep everything in ts

#

and just ts-node it whenever i wanna run it

crimson vapor
#

ah

glad charm
crimson vapor
opal plank
crimson vapor
opal plank
#

scroll up, it gets worse Dylan

crimson vapor
#

way worse

#

there are very small inconsistencies in some code

glad charm
#

homie

crimson vapor
#

like new lines at the ends of some files

glad charm
#

are you okay

#

did you get dropped

crimson vapor
#

no clue

glad charm
#

๐Ÿ˜”

opal plank
crimson vapor
#

it works tho

glad charm
#

How old is this code

#

explain yourself

crimson vapor
#

a few days

glad charm
#

Man

opal plank
glad charm
#

that hurts ngl

opal plank
#

"few days"

#

valid my ass

crimson vapor
#

I couldn't test on a lib that wasn't published

opal plank
#

do a git clone on that shit see if it works u dork

crimson vapor
#

anyway

#

time to fix that

opal plank
#

you're requiring stuff that you didnt bundle in the repo

#

it'll fail

glad charm
#

okay

#

now that i made fun

#

i can try to be helpful

mystic plume
#

:๐Ÿค”:

crimson vapor
#

yeah I know

glad charm
#

Most embed stuff you have here can be set once since none of them change. So before those if statements set to footer, title, color, etc.

opal plank
crimson vapor
#

I forgot about that before I pushed

glad charm
#

Oh Xd

opal plank
crimson vapor
#

but worth it?

opal plank
#

not at all

#

made me waste 1 booze

#

to recover my hp

crimson vapor
#

yikes

opal plank
#

i need to code to

#

got all these to port

#
  • a bunch of handlers
glad charm
#

to be fair

#

I write shit code too

#

lmao

opal plank
#

we all do

cinder patio
#

What's up with all those t's

opal plank
#

its just a matter of how much of it we do

#

t = test

crimson vapor
#

bro berry's code stink

#

can't import everything from index

#

discord-rose/dist/folder/anotherfolder/file

opal plank
#

@glad charm u have a readme at least mmulu

glad charm
#

:^)

#

Outdated readme

#

haha

crimson vapor
#

bruh

opal plank
#

i got some decent ish code

crimson vapor
#

hmmm

opal plank
#

let me get one of my libs rq

glad charm
#

god why does the picture have to be so large

crimson vapor
#

idk man comments kinda strange

opal plank
#

i agree on that, though at the same time, everything is already properly documented with the docs

#

though i should add more intellisense for ts users

glad charm
#

yes

daring prawn
glad charm
#

Oh you made an api wrapper for genshin? Why? Xd

opal plank
#

hough i do already have a bunch

glad charm
#

V good

#

ty

opal plank
#

a bunch are cloning directly from my github for the dev updates

#

if you wanna check it out @glad charm

#

yoroshi is the author

#

the wrapper i made is for that

#

cache, ratelimiting, queue, basically everything ready to deploy

#

just like d.js

#

put ur token in it, and watch it fly

glad charm
#

It handles the rate limits for us?

#

tyty

opal plank
#

indeed

#

you planning on doing something genshin related too?

glad charm
#

I don't have a plan but a lot of my friends play it. Maybe I can ask them if they want something specific but I can't imagine I can do anything that isn't already done.

opal plank
#

ngl, chances are: if i didnt do it, nobody else did

#

most of the genshin bots are just the usual trash discord bot, but themed around a character

#

levels, rpg, economy, shit like that

#

afaik mine and 2 others, one the wiki and another is paimon or katheryn, dont recall the name, are the only ones that actually do stuff related to the game

glad charm
#

Like what? Player stats?

opal plank
#

already working on that with yoroshi

glad charm
#

Wonder if I can find a way to verify you're the player with a certain UID

#

Hmmm

#

damn

opal plank
#

check that

glad charm
#

time to sign up i guess

opal plank
#

i plan on using it along with my bot once its ready

#

since my bot already tracks some stats from users

#

i got some metrics i plan on feeding to his API possibly once users link their accounts

#

genshin doesnt provide a how many hours of playtime you have

glad charm
#

Wait can you legit get all of these stats from their API?

#

Wtf?

opal plank
#

Genshin does NOT have an open api

#

even though we use it, partially

#

i use it for some stuff too, its undocumented and uncharred territory

glad charm
#

Did you wireshark genshin to find apis or something

opal plank
#

its encrypted, connection based

glad charm
#

damn

opal plank
#

you wont sniff it with wireshark

glad charm
#

based

#

also it hards my discord pfp

#

It's not a gif but it sure thinks so

#

Need a webdev? Xd

opal plank
#

its mihoyo we talking about, they take privacy seriously

#

i need some booze if you got some

#

i need to port a SHIT ton of stuff

glad charm
#

I got heineken

opal plank
#

d.js failed me hard

#

i'll take it

glad charm
#

How so?

opal plank
#

heineken and becks are some of my fevorite cheap beers

#

how so?

#

welll

#

lets get onto it

#

current production bot

glad charm
#

I knew it

#

lmao

#

my role bot is like

#

almost always 1GB ram

opal plank
glad charm
#

gg

opal plank
#

1.8gb difference

#

d.js can go suck one

glad charm
#

Is that Eris or custom lib?

opal plank
#

detritus

glad charm
opal plank
#

pure ts lib

#

you gotta download the app

#

top right

glad charm
#

Oh

opal plank
#

big button

glad charm
#

klmfao

#

ty ty

opal plank
#

no problemo

#

read the instructions, but it should be easy

glad charm
#

Does it hook into Genshin when you login then to verify?

opal plank
#

install, run, open, go into genshin, click scan, click on history, gg ez

glad charm
opal plank
#

we all know what windows explorer is capable of

#

just run it

opal plank
glad charm
#

ty ty

opal plank
glad charm
opal plank
#

there you have it

glad charm
#

What are the pity boxes for?

opal plank
#

so see your current pity, you know how pity works ingame?

#

every banner has different pity

glad charm
#

right

opal plank
#

every 10, you are GUARANTEED 4*

glad charm
#

oh

opal plank
#

every 90(80 for weapons banner) you guaranteed 5*

#

of course you can get lucky and get it before

glad charm
#

Ohhhhhhhh

opal plank
#

but if you hit pity, you are guaranteed to get it

glad charm
#

Right right

opal plank
#

my bot does that, but manually

#

but i'll be adding support for that

glad charm
#

Oh I would assume your bot hooks into the site for that.

#

Pretty neat thing you got going

opal plank
#

that should be the utmost one can do for a genshin user tbh

#

currently im reworking the reminders cuz i feel like they are iffy at best rn

#

but apart from that, everything is dynamic

#

no restarts required nor maintenence

#

everything updates by iteself

glad charm
#

Theres literally no way around the history sync is there

opal plank
#

currently its still working fine, but there might be one way

#

though we dm'd the dev team of mihoyo, still waiting for an answer on that

#

they have something "open"

#

though not quite "open"

glad charm
#

Joy

opal plank
#

we'd need to create either:
a token gen
a captcha bypass
a permanent token

#

to be able to pull it off

#

so we decided to ask first

#

400k users aint something you can simply ignore a request on

glad charm
#

Lmao right

#

So how did you figure out to hook into the history if its encrypted

opal plank
#

yoroshi did that bit

#

not sure if he'll tell anyone though

glad charm
#

Ah

opal plank
#

genshin deals with encryption

#

wouldnt be too wise to let people know how to decrypt game data

#

but thats on him

#

i havent messed with that so i've got no clue

glad charm
agile lance
#

how do you push things a array

#

to a*

glad charm
#

In what language?

agile lance
#

js ^

glad charm
#

Did you google it?

agile lance
#

nope

glad charm
#

Damn

#

Can you guess how?

agile lance
#

i tried .push and .append lol

#

nope

glad charm
#

Are you sure you tried push?

#
const names = [ "Dylan" ];

names.push("Bob");```
agile lance
#

i tried that yes

glad charm
#

That's how it works.

agile lance
#

"arr.push(...) is not a function"

#

ill try again

glad charm
#

Then your variable isn't an array.

agile lance
#

let arr = ["..."];

client.guilds.cache.forEach(g => {
g.users.cache.forEach(u => {
arr.push(u.id)
})
})

#

This just over complicates things Lol

solemn latch
#

could just map each cached user by id

agile lance
#

well

#

i over complicate things

glad charm
#

Ah.

solemn latch
#

plus the way you are doing it some people will be duplicated

glad charm
#

^

agile lance
#

dang

#

can i use a for loop to map the ids?

solemn latch
#

nah
just
client.users.cache.map(u => u.id)

agile lance
#

o

#

thats easie

#

easier

tribal siren
#

you can also join them however you want

#

for example

#

client.users.cache.map(u => u.id).join("\n")

#

@agile lance

opal plank
#

actually, dynlan

#

click on first button of my status

#

its better if you talk to them directly rather than me being the middleman

#

currently coding lol

glad charm
#

Okay lol

tribal siren
#

oof

earnest phoenix
#

does the autoposter api error if your bot isn't verified

left pawn
#

hey guys

#

need help with something

pale vessel
#

i see why now

#

yeah, it should error

#

since only luca/reviewers can access your bot page until it's approved

left pawn
#

I work for a small game dev company and we are trying to conduct an alpha test for our game. We would like to distribute the individual keys right on discord somehow, but cant seem to find any cool bot that would help out with this

#

any ideas?

#

I did find keybot, but that requires some form of server verfication etc, which is a bit tough for a small group like us

dusky sundial
#

Well, you could make your own bot. Or have someone make it for you. But that means the bot also has to grow for you to be able to distribute the keys.

#

Also, I don't think this is the right chat if you're just looking for bots

earnest phoenix
left pawn
earnest phoenix
#

Hello, I am getting such an error. Can anyone help?

dusky sundial
earnest phoenix
#

Why would developers be in general?

dusky sundial
dusky sundial
earnest phoenix
#

yeah but to create bots you have to develop

dusky sundial
#

Yeah, he doesn't want to create one. He's just looking for one that already exists

earnest phoenix
#

are you

#

unsmart

dusky sundial
#

??

earnest phoenix
#

This <@ + member.id +> Joined our server!
can you fix it please

#

@dusky sundial

opal plank
#

but cant seem to find any cool bot that would help out with this
@earnest phoenix
He is looking for a bot that exists, as the channel name suggests, this channel is for

dusky sundial
#

You literally just need to add a ' and a ) at the end

#

The error tells you exactly what you're missing

earnest phoenix
#

if I get banned from the discord will my bot not be verified

#

I am Turkish, I am talking to you in translation and I do not understand. Can you support me? I have a lot of need.

opal plank
dusky sundial
#

I'm not gonna be able to help you if you don't understand the language. I'm sorry

earnest phoenix
#

damn

#

I understand but if I send the code to you, can you fix it?

opal plank
#

spoonfeeding at its finest

dusky sundial
#

No, I'm not gonna fix the code for you. You're just missing a quotation mark and an end parentheses

earnest phoenix
#

hi

dusky sundial
earnest phoenix
#

I'm getting an error here but no one is helping, I guess it's easy but I couldn't help.

dusky sundial
#

No one is helping you?

opal plank
#

literally above what you sent is the answer

earnest phoenix
ripe prairie
#

@earnest phoenix

earnest phoenix
#

?

ripe prairie
#

the answer was provided to you

dusky sundial
#

I'm gonna need a glass of water

earnest phoenix
ripe prairie
#

you're missing a bracket

earnest phoenix
#

Where should I put that parenthesis?

dusky sundial
#

At the end of the line I showed you in my screenshot

ripe prairie
#

after the !

earnest phoenix
#

kฤฑzma ya

shy crest
#

Hu

dusky sundial
#

Am I having a stroke?

shy crest
#

Hi*

ripe prairie
#

hi?

shy crest
#

๐Ÿ˜ถ

earnest phoenix
#

mmm

dusky sundial
shy crest
#

Ehm

left pawn
rocky pulsar
#

yo

#

can someone help meh

#

with unban command

#

;-;

#

it doesnt worj

#

*work

#

ban works

pale vessel
#

don't ask to ask

rocky pulsar
#

unban doesnt

rocky pulsar
dusky sundial
#

Provide some code and explain the error please

rocky pulsar
#

okay

dusky sundial
#

No need to ask if someone can help you

rocky pulsar
#

@client.command()
@commands.has_permissions(administrator = True)
async def unban(ctx, *, member):
banned_users = await ctx.guild.bans()
member_name, member_discriminator = member.split("#")

for ban_entry in banned_users:
    user = ban_entry.user
#

thats the code

#

for the unban

dusky sundial
#

Why the * in parameters?

#

You also need to actually unban the user with await ctx.guild.unban(user)

rocky pulsar
#

okay thanks i figured it out

#

it works now

rocky pulsar
#

actually it doesnt

dusky sundial
#

So what is it that isn't working? Does it give you any error messages?

rocky pulsar
#

nope

#

the code works

#

but

#

when i type

#

$unban and the user

#

it doesnt unban

#

and i have to unban manually

dusky sundial
#

Have you checked if banned_users actually contains anything?

rocky pulsar
#

it does

#

i got a person

#

to test

#

and then banned

#

but it doesnt unban

#

also kick works

dusky sundial
#

So print(str(user)) gives you something if you put it in the loop?

rocky pulsar
#

@client.command()
async def unban(ctx, *, member):
banned_users = await ctx.guild.bans()
member_name, member_discriminator = member.split('#')

for ban_entry in banned_users:
user = ban_entry.user

if (user.name, user.discriminator) == (member_name, member_discriminator):
await ctx.guild.unban(user)
await ctx.send(f"{user} has been unbanned from $KM Gaming")
return

#

i changed the code a bit

#

this is the final code

#

for the unban

dusky sundial
#

So the for loop at the start is just going to set user to whatever value is the last of banned_users since you don't have anything to make the loop exit when it finds the user you're looking for

rocky pulsar
#

okay

dusky sundial
#

So I would start by breaking the loop whenever the loop finds the user you want to unban

rocky pulsar
#

uh huh

#

so

#

um

#

i should put that before the return right ?

dusky sundial
#

Or you could just move the if statement inside of the loop

earnest phoenix
#

^ Yeah it should be inside the loop. Right now you're just checking the last ban entry. Also if there's no banned users, the user will not be defined and cause issues.

rocky pulsar
#

It WOrkedd

#

thankssss

#

@dusky sundial thank you so much D:

#

@earnest phoenix u too ๐Ÿ˜„

weak rapids
#

Want to develop my bot please ๐Ÿ˜ญ

solemn latch
#

this isnt a channel for finding developers for your bot.

earnest phoenix
solemn latch
earnest phoenix
#

the sad thing is by this point im a fullstack senior dev but i can't get employed anywhere with this profession because i haven't finished high school yet

marble juniper
#

sounds sad

tired panther
mild flower
#

im trying to overwrite channel permissions for every channel in a guild but i can't seem to get it work.
Would there be any way to do that?

tribal siren
mild flower
#

hooge brain

#

๐Ÿง 

earnest phoenix
#

can anyone teach me coding C#

#

Thanks

#

dotnet : The term 'dotnet' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the sp
elling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • dotnet help
  •   + CategoryInfo          : ObjectNotFound: (dotnet:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
#

what is the problem here

#

download .net

pale vessel
#

would be cool if they bought the download.net domain

earnest phoenix
#

this reminds me of like cca 2010 where people would buy purposefully misspelled domains and redirect them to porn/scam websites

summer torrent
earnest phoenix
pale vessel
#

yeah

#

redirects to https://dotnet.microsoft.com/

summer torrent
pale vessel
#

dot dot net MegaThonk

earnest phoenix
#

yeah i code in node.netpy

#

made by oracle obviously

#

Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.11\System.Collections.Specialized.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.11\System.Runtime.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.11\System.Threading.Tasks.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. where can u change the name

edgy tapir
#

How to get a random string from an array in c++ ?

ornate otter
#

My reaction collector is collecting all butt ONE reaction @quartz kindle

#

The code used to work, and then i didnt change it

#

and then it just didnt#

earnest phoenix
edgy tapir
#

i tried but i get so many errors, and when i manage it to work it only gives me the same result

earnest phoenix
#

use the current time as your seed

#

random isn't actually truly random, it's just calculations based on a seef

#

seed

#

a

ornate otter
#

can anyone help with the fact the reactionCollector is collecting all but one reaction

quartz kindle
#

show code

earnest phoenix
#

You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
------------------------------------------------------------------- what is the problem here?

summer torrent
#

??

zealous sable
earnest phoenix
modest maple
#

C# is one of the few things where Visual Studio is actually a good IDE mmLol

tired panther
pure lion
#

ads

fair axle
#

Is there a way to check if member is nitro subscriber (not in guild)

#

as user

earnest phoenix
#

iirc not without using oauth2

summer torrent
#

nope

summer acorn
#

my bot's shards keeps crashing, I don't know why, sentry isn't giving me any stack traces on it, other than discord.js' code where it throws the error. It runs for like 14 hours then it just crashes

summer torrent
#

Got this error: Error [SHARDING_READY_TIMEOUT]: Shard 0's Client took too long to become ready.?
The spawnTimeout can be set to -1 or Infinity to prevent future errors:
https://discord.js.org/#/docs/main/stable/class/ShardingManager?scrollTo=spawn. This can also happen if you call ShardingManager#spawn before attaching a listener to the shardCreate event which could create a race condition possibly preventing the shard 0 to perform a successful launch.

from discord.js server ^

summer acorn
#

I see, thank you

solemn leaf
#

Anyone know any api or npms that can retrive random images or gifs from query

urban cape
#

Anyone knows why this isnt working in js. This isnt a bot development just simple javascript
document.write("<img src="OIP.jpg" alt="Italian Trulli">")

rustic nova
#

image doesn't exist maybe?

#

what does it do?

urban cape
#

It gives error

rustic nova
#

what error

urban cape
#

im searching that

#

document.write("<h1><img src="OIP.jpg" alt="Italian Trulli"> </h1>")
Uncaught SyntaxError: missing ) after argument list โ†‘

solemn leaf
#

Then it isnt there

#

Your missing a )

rustic nova
#

replace the first and last " with '

earnest phoenix
#

Python: when my bot is given no permissions and i try use the help command nothing happens

#

anyone know why?

solemn leaf
#

Or cancel the others out with a slash

urban cape
solemn leaf
#

Hitman fr saying it doesnt work wont fix anything

urban cape
#

That was the problem. The ""

earnest phoenix
#

i mean i do ?help

#

and no message comes

#

buy