#development

1 messages · Page 1736 of 1

lyric mountain
#

run reduce after the function

cinder patio
#

ok

#

btw does it matter if I have two suites running in the same process

lyric mountain
#

maybe

cinder patio
lyric mountain
#

hm, so there's no bias being added by internal optimizations

#

seems like what tim said

#

nothing can win against raw loops

cinder patio
#

reduce can in the first benchmark

umbral zealot
#

nice

lyric mountain
#

oh, that's ops/sec

#

though it was millis per ops

quartz kindle
#

whats the current code?

#

the compiled ones

#

and the reduce

lyric mountain
#

guess it's being biased by previous calls

cinder patio
#
const Iterator = new FIter<number>().filter(num => num % 2 === 0).map(num => num * 2).join("\\n").compile();

const suite = new Benchmark.Suite();
 
suite.add('FIters#filter#map#join', () => {
   Iterator(data);
});

suite.add('Array#filter#map#join', () => {
  data.filter(num => num % 2 === 0).map(num => num * 2).join("\n");
})

suite.add('for loop', () => {
  let res = "";
  const len = data.length;
  for (let i=0; i < len; i++) {
      const item = data[i];
      if (!(item % 2 === 0)) continue;
      res += item + (i === len - 1 ? '':`\n`);
  }
})

suite.add("only reduce", () => {
  const len = data.length;
  data.reduce((acc, item, i) => {
    if (item % 2 === 0) {
      acc.concat(item + (i === len - 1 ? '' : '\n'));
    }
    return acc;
  }, '');
})
lyric mountain
#

(which is why you never benchmark something sequentially)

umbral zealot
#

best way to know is to just flip 'em

#

¯_(ツ)_/¯

cinder patio
#

The compiled code:
const l=arr.length;let ce0='';for(let i=0;i<l;i++){let _=arr[i];if(!(_%2===0))continue;ce0+=(_=_*2)+(i===l-1?'':'\n')};return ce0;

umbral zealot
#

I have a feeling reduce really is the clear winner here though

lyric mountain
#

he did it, and it biased toward the latter execution

umbral zealot
#

though perhaps concat helps

#

just... btw

#

I'm not 100% sure. but maybe string.concat is faster than string += more string

quartz kindle
#

reduce cant possibly be the winner here, something is wrong

#

array.concat is very slow

umbral zealot
#

no no

quartz kindle
#

oh wait thats string.concat?

#

is that even a thing?

umbral zealot
#

yeah it is 😄

lyric mountain
#

string.concat is probably the same as java's stringbuilder

quartz kindle
lyric mountain
#

faster inside loops but slower in single uses

cinder patio
#

I'll switch the order

umbral zealot
#

Also go back to += since clearly it can be faster

cinder patio
#

ok

#

😳

quartz kindle
#

huh interesting

umbral zealot
#

Straaaange.

cinder patio
#

weird

#

let me use concat for everything else too

#

so it seems like it's cause of reduce

quartz kindle
#

im guessing its some v8 shenanigan again

lyric mountain
#

it's execution biasing

umbral zealot
#

and probably depends on the specific node version too

lyric mountain
#

it optimizes stuff on the run

umbral zealot
#

¯_(ツ)_/¯

cinder patio
#

Okay, new suite, on a different process, filter#reduce vs the compiled function. How can reduce be so slow here

lyric mountain
#

bias bias bias

umbral zealot
#

But this is, indeed, a problem with testing performance with benchmarks.

  • They're not consistent between testing methods
  • They're not consistent between versions and environment
  • They're not consistent depending on the data they're processing
  • They're not consistent sometimes randomly just to fuck with you
#

You're trying to optimise a language that's optimised by the V8 engine.

#

your optimisation can literally be counter-productive

quartz kindle
#
// let a = 'x'; return a += 'z';
   26 S> 0000009DFD26E51E @    0 : 12 00             LdaConstant [0]
         0000009DFD26E520 @    2 : c6                Star0
   31 S> 0000009DFD26E521 @    3 : 12 01             LdaConstant [1]
         0000009DFD26E523 @    5 : 35 fa 00          Add r0, [0]
         0000009DFD26E526 @    8 : 27 fa f9          Mov r0, r1
         0000009DFD26E529 @   11 : c6                Star0
   46 S> 0000009DFD26E52A @   12 : ab                Return

// let a = 'x'; return a.concat('z');
   26 S> 000002D4EC86E526 @    0 : 12 00             LdaConstant [0]
         000002D4EC86E528 @    2 : c6                Star0
   40 S> 000002D4EC86E529 @    3 : 28 fa 01 00       LdaNamedProperty r0, [1], [0]
         000002D4EC86E52D @    7 : c5                Star1
         000002D4EC86E52E @    8 : 12 02             LdaConstant [2]
         000002D4EC86E530 @   10 : c3                Star3
   40 E> 000002D4EC86E531 @   11 : 5a f9 fa f7 02    CallProperty1 r1, r0, r3, [2]
   51 S> 000002D4EC86E536 @   16 : ab                Return
``` thats the bytecode for each variant
opal plank
#

size : memory pointer?

#

its this assembly?

cinder patio
#

v8 bytecode

opal plank
#

oh, also

#

has someone used workers in a good fashion?

#

need some really optimal code for this one mmulu

#

and im afraid of retrying the thing i did for the twitch bot

#

cuz erwinCode™️

lyric mountain
#

let's make a new sorting algorithm, erwinsort

opal plank
#

jsut write the shittiest thing you can, that'd be it

quartz kindle
#

@cinder patio @umbral zealot found the issue

umbral zealot
#

I edited after that so it returned, lol

#

error in initial code

cinder patio
#

crap

#

wait

#

yeah now the for loop is the fastest

umbral zealot
#

performance testing is not unit testing kekface

quartz kindle
#

exdee

earnest phoenix
#

But instead of sorting, it bites you

opal plank
#

atMods talking about lolis in chat

earnest phoenix
cinder patio
#

okay but like...this is slower

data.reduce((acc, num) => {
      if (num % 2 !== 0) acc += num;
      return acc;
  }, 0)

Than the compiled function AND the for loop in the filter reduce benchmark...
compiled: const l=arr.length;let wp2=0;for(let i=0;i<l;i++){let _=arr[i];if(!(_%2!==0))continue;wp2=wp2+_};return wp2;
The compiled is the fastest here

#

the difference is so big that it just can't be the benchmarks screwing with us

umbral zealot
#

now just for the fuck of it do it in inverse order: for loop first, then filter/reduce, then reduce only

median moss
#

I made this code for redeeming codes, and the person must be in Support Server to redeem a code. When I try using the command no message is sent, no data is updated, and no errors shows up in my console

const Discord = require(`discord.js`)
const db = require(`../database.js`)

module.exports.run = async (bot, message, args) => {

let user = message.author;

let server = bot.guilds.cache.get("774041271655333928").members.fetch(`${user.id}`)
{
  let Embed = new Discord.MessageEmbed()
  .setColor(`#1eb346`)
  .setDescription(`You must be in [Support Server](https://discord.gg/hHwXDmQabp) to redeem a code.`)
  .setFooter(`pb!help for support`)
if (server === undefined) return message.channel.send(Embed)

} if (server === true) {
  if(args[0] === `DF4SABS`) {

   db.fetch(`money-${user.id}`)
   db.add(`money-${user.id}`, 10000)
   db.set(`DF4SABS-${user.id}`, true)
   await message.channel.send(`Succefully redeemed this code. 10.000 BulbaCoins were added to your bank.`)

  } else {
    message.channel.send(`Incorrect code.`)
  }

   
 }

}```
cinder patio
umbral zealot
#

alright well clearly still the same difference

#

looks like I was wrong

#

I mean, I didn't say it was faster, I asked if you'd tried it.

#

¯_(ツ)_/¯

cinder patio
#

reduce is weird

lyric mountain
#

before it was fiters#filter#reduce

cinder patio
#

those two are almost the same anyways, ones compiled other is manually written

lyric mountain
#

ah

cinder patio
#

but the compiled is so slow in the first one tho tf😭

lyric mountain
median moss
opal plank
#

dont cut the diss in half

earnest phoenix
lyric mountain
earnest phoenix
#

Resolve the promise and remember to handle the error since <Guild>.members.fetch() will throw an error if the member isn't in that guild, you can handle it with <Promise>.catch()

median moss
#

ok

#

thanks

sterile lantern
#
node:1338) UnhandledPromiseRejectionWarning: TypeError: (intermediate value)(intermediate value)(intermediate value) is not a function```
#
let commandString = category.map(c => `\`${c.config.disabled ? ':x:' : ''}``${client.config.prefix}${c.name}${c.config.usage ? ` ${c.config.usage}` : ''}\` - ${c.config.description} - ${c.config.disabled ? ':x:' : ''}`).join('\n');
            embed.addField(`${categoryName}`, `${commandString}`);```
#

im trying to make it so it prints a ❌ next to a command if its disabled

#

it worksat the end

#

but not the beginning

#

i assume its formatting issues but idk how to fix it

#

i just needed a + nvm

#

wellnvm that messed up my formatting

#

ugh

#

ok i used\`\which fixed it

compact leaf
#

Does anyone know what code to write to post photos (jpg) from replit to discord?

lyric mountain
#

ah nvm, js doesn't have a string.format

sterile lantern
#

or use imgur actually

#

then setImage(file.link)

compact leaf
#

I want to use it as a command

lyric mountain
#

send the file and use attachments://name.ext

snow urchin
lyric mountain
#

use a div as a mouseover listener

#

instead of the button

dusty axle
#

Quick question just wanted to clear the air, once my bot is verified will Luca DM me or @ me in this server?

snow urchin
#

both

dusty axle
lyric mountain
#

technically not luca

#

but watcher

dusty axle
#

Oh? Site said Luca but if it's watcher that works too

dusty onyx
#

hai, can you fetch all column values in asyncpg?

#

i have a column ive queried but idk how to fetch it

sudden geyser
errant perch
#

This helped me so much lol

#

I would’ve probably gave up if u hadn’t helped me

#

Now my bot is in over 4.6k servers

#

Thank you so much lol

quartz kindle
#

👍

brisk frost
#

Can someone teach me how to use databases in py?

grizzled raven
#

oh hey i was there

#

let's go

#

that means i can take partial credit

errant perch
polar gust
#

f

crimson vapor
#

what language

silent whale
#

Ahhh

#

How to make a code that is modified when clicking on a reaction (discord.js)

silent whale
lament rock
#

what is it that you want to do once a reaction is clicked?

silent whale
#

Like this

lyric mountain
#

@silent whale aka reaction buttons

#

What language?

#

Don't say english

silent whale
#

discord.js

lyric mountain
#

(or discord js)

silent whale
#

ㅇㅅㅇ

lyric mountain
#

What you want are reaction collectors

#

Search about them

silent whale
#

Ok

ancient gulch
#
const user = await client.users.fetch(newState.id).catch(() => {})

setInterval(async () => {
                if(newState.channelID === undefined) clearInterval(0)
                var memberUser = await client.getUser(user)
                let xpNeeded;
                xpNeeded = await client.getNeededXP(memberUser.levelVoice)
                let xpAmount = Math.floor(Math.random() * (25 - 10) + 10);
                console.log(`${xpAmount} ajoutée à ${user.username}`)
                client.updateUser(user, {
                    xpVoice: memberUser.xpVoice + xpAmount,
                    currentXPVoice: memberUser.currentXPVoice + xpAmount
                })
            }, 5000)

I want to add xp to user every 5s but that way still adding xp when i leave the channel, and i define the interval then clear it when someone leave, it would clear the interval for everyone so idk how i can do that

earnest phoenix
#

What does: (node:8130) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body limit: int value should be greater than or equal to 1.

Mean?

Code:


  message.delete();

  if (!message.member.hasPermission("MANAGE_MESSAGES"))
    return message.reply("You don't have premssions to do that!");
   let reason = args.join(" ").slice(1);
  if (!reason) return message.channel.send("`Enter a valid amount.`")
    
    
    message.channel.bulkDelete(reason, true).then(() => {
    message.channel.send(`**Cleared \`${reason}/${reason}\` Messages!**`).then(msg => msg.delete(reason));
  });
}}```
#

I feel stupid when I ask my questions lol, there usually such simple things, but my brain today lol.

solemn leaf
#

Int value should be anything from 1-1000000000

#

No decimals as its an int not double

earnest phoenix
#

hm......

solemn leaf
#

What

earnest phoenix
#

Wait, so what would I fix/change?

solemn leaf
#

message.content.slice(1) idk

boreal iron
#

...
That’s obviously an API error as the error says, meaning something you send is wrongly formatted

#

And that’s bulkDelete()

#

Take a look into the docs which arguments it needs

#

@earnest phoenix

boreal iron
earnest phoenix
#

I figured it out, thanks tho.

solemn leaf
#

O i didnt see bulk delete in the re

#

Mb

lyric mountain
#

It's 2.7 billion something

solemn leaf
#

Bruh

#

Holy fuck

#

You care?

#

It was an example

#

Anyone would be able to tell that

boreal iron
#

Ha got you! Shame on you KEKW

lyric mountain
#

Per definition int is int long is long

boreal iron
#

God damn which fucking language calls a big int long

lyric mountain
#

Java and c# are the only two I can mention

boreal iron
#

notlikenoot time to sleep

lyric mountain
#

Warning: sleep on main thread might cause deadlock issues

brisk frost
#

Oof

silent whale
#

ㅇㅅㅇ

#

How to make embed pages using discord.js

solemn latch
#

oh you mean pageated?

earnest phoenix
silent whale
#

thx

shadow frost
#

Can we add aubscription to our discord bot?

sudden geyser
#

Yes.

#

Though it depends how you implement it.

lament rock
#

I feel like Discord.js' ReactionCollectors and MessageCollectors are jank and can throw an EventEmitter possible memory leak detected error because they impose a separate listener on relevant client events instead of routing through already existing handlers for processing Gateway events

shadow frost
#

:/ i think i have to create database and then website with payment api and interact it to database with discord bot interact to database that automatically add user to database but how i disallow usage of premium commands that dont have premium means i know how to add database but i dont know how to reject user to use some commands without adding that user in database , again i means if user for ex. I am not in that database i can use all premium commands can i disallow user that not in database from using specific commands

sudden knoll
#

does anyone use galaxygate for hosting? if so, how is it?

shadow frost
#

I Need to interact database with my bot can i use google sheets insteed of mysql?

sudden knoll
shadow frost
vivid fulcrum
#

also has horrible security

old cliff
#

imagine using google sheets as db

#

use something such as mongodb

modest crane
worn sonnet
#

Use .gitignore file as db

#

So Ur data is secured

umbral zealot
#

uhhhhhhh..... are you... sure about that... ?

sudden knoll
umbral zealot
#

But you said you can which is very easily interpreted as you saying you should

sudden knoll
#

ig that's true

umbral zealot
#

Next time to avoid , add the precision "You really shouldn't do that"

#

otherwise we have idiots that keep using JSON because
"You can use JSON as a database but it's slow"

sudden knoll
#

lmao

earnest phoenix
#

why replit api log do problea,

#

in run

sudden knoll
#

Tim, are you there

opal plank
#

ah, i see you went for the passive route and choose not to anger him by pinging @quartz kindle without an actual valid reason, which might put him into a bad mood mmulu

sudden knoll
#

I don't like pinging ppl

clear marlin
#

I like pinging people.

opal plank
sudden knoll
#

lmao

sacred juniper
#

My bot has the link block feature and when I open it, it throws a special tick emoji, but that emoji only appears on the server where the emoji is located. Also my bot has all the necessary permissions

clear marlin
#

So, its a custom emoji?

small tangle
clear marlin
#

What you can do is use, <:emoji_name:emoji_id> . Mind the emoji must be in the server where the bot is. And this allows the bot to use the emoji everywhere

delicate shore
#

I want to detect language

#

of a string

#

any idea how

sacred juniper
sacred juniper
clear marlin
#

I mean it should work

#

there's a problem with the emoji_id

old cliff
#

no problem :-:

sacred juniper
#

But i am sure about id

#

I will check it again

clear marlin
#

Yeah.

sacred juniper
#

Not working @clear marlin

lavish bramble
#

I have a question can we set Interval in timeout?

clear marlin
#
setTimeout(()=>{

}, 1000) // interval in milliseconds
lavish bramble
#

😁

clear marlin
sacred juniper
sudden knoll
#

Rn I'm making a SQL db to store info on servers and users of my bot where the user info is specific to servers. The organization of the code is somewhat like this:

class server:
  class user:
    def __init__(self, id):
      self.id = id
      self.serverSpecificStuff0 = 0
      self.serverSpecificStuff1 = 1

  def __init__(self, id):
    self.id = id
    self.users = {}

I assume you get the gist, how should I store this stuff in a SQL table? SQL tables don't really like nested stuff after all

sacred juniper
#

@clear marlin should i open any intent?

clear marlin
sudden knoll
#

it's the invite link that matters

earnest phoenix
#

How u got bot developer

opal plank
earnest phoenix
#

ow hi

opal plank
sudden knoll
#

thanks

opal plank
#

though you could also use schemas technically, but relations will be better

sudden knoll
#

ok, thank you for your help

oak nymph
#

Hey guys, So I recently made a lyrics command, it works but it returns this error when I type gibberish although I've already made an error handler for it, The error :
An error occurred: Command raised an exception: KeyError: 'lyrics'
Code :

@commands.command()
    async def lyrics(self, ctx,*, title):
     url = f"https://some-random-api.ml/lyrics?title={title}"
     response = requests.get(url)
     json_data = json.loads(response.content)
     lyrics = json_data['lyrics']
     if len(lyrics) > 2048:
       em = discord.Embed(title=title,description = f"I wasn't able to send the lyrics for that song since it exceeds 2000 characters. However, here's the file for the lyrics!",color=0xa3a3ff)
       await ctx.send(embed=em)
       file = open("lyrics.txt", "w")
       file.write(lyrics)
       file.close() 
       return await ctx.send(file=discord.File("lyrics.txt"))
     try:
       em = discord.Embed(title=title,description=lyrics,color=0xa3a3ff)
       await ctx.send(embed=em)
     except KeyError:
       em = discord.Embed(title="Aw Snap!",description="I wasn't able to find the lyrics of that song.",color = 0xa3a3ff)
       em.set_thumbnail(url='https://cdn.discordapp.com/attachments/830818408550629407/839555682436251698/aw_snap_large.png')
       await ctx.send(embed=em)```
quartz kindle
#

@opal plank @_@

earnest phoenix
oak nymph
earnest phoenix
#

how i say

rose warren
#

Technically speaking, I could take the result from a canvas function and store that in a database for use later on right? Just hesitating if I should do that or make an API.

#

Just the API would involve storing images

opal plank
quartz kindle
#

only do that if the full image is doing to be reused multiple times

rose warren
#

Yeah that's right

opal plank
#

gotta love message spikes absolutely wrecking it

rose warren
#

It's for images that are supposed to be reused for 12h. I thought it would be simpler to just store the base64 result in the db and call that instead. Currently my bot attaches the image to the message and then fetches the discord cdn url which is not ideal. On very rare occasions it can't read the message.

quartz kindle
#

is it too big to be kept in memory?

quartz kindle
opal plank
rose warren
# quartz kindle is it too big to be kept in memory?

Well it generates multiple different images for each user and gets thousands of calls a day so that's probably not a great solution in this case. That would mean storing thousands of these images in memory.

#

They're not big files or anything but I just didn't want to be storing the image files.

quartz kindle
#

are the images completely different from each other?

#

or do they share some parts like background

rose warren
#

It's for a ship command so it's basically 2 pfp and the ship result in the middle so they're all different

narrow fractal
#

Image manipulation?

rose warren
#

Right now I'm just storing the Discord CDN urls in the database with the timestamp and ids. It works fine but there's this super rare glitch that happens maybe once or twice a month where the bot can't read the embed from the message it just sent.

#

I mean, it's a really minor problem but still 😂

quartz kindle
#

well you could always upload them to an external cdn

#

and if it cant read the embed just dont store it in the db and it should force it to regenerate in the next command

rose warren
#

Yeah I thought about that but I also thought just storing the base64 in the db since I'm already making a db request is more efficient?

quartz kindle
#

not exactly

#

you still have the cost of data transfer to and from the db, the cost of the query and the cost of copying the pixels into a canvas object

#

or a format discord can receive

#

and you're still uploading it to discord again which costs bandwidth

rose warren
#

But using an external CDN will require also making another request to that too right?

quartz kindle
#

yes, but it would replace sending the attachment to discord

rose warren
#

Hmm true

quartz kindle
#

i think what you're doing is already the most efficient you can get

#

your issue shouldnt be an issue at all

#

like, if it fails to read, just dont save anything, and it should cause the next command to act like it was the first run

rose warren
#

It's not really an issue. It throws an error like 0.001% of the time

#

I'm just being picky 😂

quartz kindle
#

it shouldnt be causing an error tho

rose warren
#

I get a Discord error saying it can't read the embeds object of the message it just sent

#

It's weird

#

Not a perms problem because it checks for correct perms in the channel before doing anything

quartz kindle
#

show code

rose warren
#

I'm not at home right now so I can't unfortunately

#

But since it's super rare it sounds almost like the results message is getting deleted before it can read it

quartz kindle
#

are you fetching the message after sending it?

rose warren
#

It does something like

message.channel.send(embed).then("reads response here")
#

Can't remember exactly tbh

#

That's probably wrong

quartz kindle
#

the response to sending is basically a discord api response wrapped as an api event by the library

#

if for some reason the api response doesnt include it in neither embed nor attachment fields, you can try to refetch it

#

and if that also fails, then dont save to db

#

so its just a matter of error handling i guess

rose warren
#

Yeah it honestly sounds like a problem with the API since it barely ever happens

delicate shore
#

Guys, how can I add api_key based rate limit on my ip?

eternal osprey
#

hey tim! Do you know why my code is still showing 50k users only?

#

the bot presence*

#

let z = client.guilds.cache.reduce((a, g) => a + g.memberCount, 0) client.user.setActivity(`!help || Serving on ${client.guilds.cache.size} servers, for a total of ${z} users`); this is what i have

umbral zealot
#

"only"? How many do you think it's supposed to show?

eternal osprey
knotty obsidian
#

I'm tryna make a swear filter, does anyone have a list of words I should add to it?

#

If you do send me them through dms xd

knotty obsidian
#

oh

pale vessel
#

it's not that simple btw

tired panther
#

Is there on mongoose a property/option or function, which will ignore choosen field on .save() , something like read-only

eternal osprey
#

this is the one i used

#

call this, and assign it to a variable. It would return an array with bad words. googleProfanityWords.list();

pale vessel
tired panther
pale vessel
#

Ah

#

this one, yes

tired panther
#

good, It saved a lot of work lol

eternal osprey
#
 ${info.type1}\nType 2: ${info.type2}\nQuick Moves: ${info.moves.quick[0]}```i have all these arrays here
#

how do i check efficiently if one of those returns null?

stable eagle
#

Is there another way to find channels by name instead of client.channels.cache.find?

pale vessel
#

No

stable eagle
#

Ok

pale vessel
#

you need to access the cache

#

you can use [...collection.values()].find() though

#

but it's not any different

exotic wind
#

@exotic wind

pale vessel
#

@exotic wind

knotty obsidian
#

how do i see what guild an invite someone sent leads to (java)

pale vessel
#

make a request to https://discord.com/api/invites/<code/vanity>

knotty obsidian
#

k

sharp ledge
#

btw after i got this verification process, my bot cannot login discord

is this normal?

eternal osprey
sharp ledge
eternal osprey
sharp ledge
#

anyone experience with bot whitelisting?

eternal osprey
#

i am having problems with this trivia npm package

#

so in the runkit, it logs all the questions, but in vsc it shows: results 0

#

eventhough i do exactly what i did in the runkit

sharp ledge
earnest phoenix
#

Can I give rpc code in repl/glitch?

sharp ledge
opal plank
earnest phoenix
#

But my friend have

opal plank
#

but its deprecated

earnest phoenix
#

So how to use sdk now

opal plank
earnest phoenix
#

ok

#

Oh I see

livid spoke
#

How do I make it so that voting for the guild gives you rewards?

eternal osprey
#

hey! js .addField(`Choices: \n**A: ${easy.results[0].incorrect_answers[0]}\nB: ${easy.results[0].incorrect_answers[2]}\nC: ${easy.results[0].incorrect_answers[1]}\nD: ${easy.results[0].correct_answer}**`, "Type ``!answer (your answer) to answer this trivia!``")how can i for example bind the Letters to the answers?

#

So if i type !answe C, it would say that it is wrong

#

because right now i have an array.sort function that randomizes the places of the answers.

dense flame
#

use if else?

lyric mountain
#

for discord it takes around 1 month

#

and how can't your bot login?

#

what error are you getting?

eternal osprey
lyric mountain
#

for discord verification?

eternal osprey
#

yup

#

🇨 i am trying to get this into

#

\

#

but it is returning me a plain c

#

\🇨

opaque seal
#

it's not a plain c

#

It's the unicode char

eternal osprey
#

damn it looks strange

lyric mountain
earnest phoenix
lyric mountain
#

geez

stable eagle
#

ww3 noises

eternal osprey
#

It took me 2 weeks to get bot verified + intents that were automatically approved alongside my bot.

lyric mountain
#

it's slower if you request them separately

earnest phoenix
#

Hi

eternal osprey
#

aha got m

sharp ledge
rigid raven
green kestrel
stiff lynx
lyric mountain
#

must be some code error

#

or cloudflare ratelimit

sharp ledge
#

it worked using other bot token

lyric mountain
boreal iron
sharp ledge
#

my bot get rate limit ban maybe??

lyric mountain
#

did you restart your bot too many times?

lyric mountain
boreal iron
#

I refuse to!

lyric mountain
#

then shush

sharp ledge
#

its mean 24h ban right?

lyric mountain
#

you turned off the intent at the site?

sharp ledge
#

yes, because its annoying to answer verify

lyric mountain
#

did u also turn it off on the code?

sharp ledge
lyric mountain
#

then you ARE getting an error in the console

sharp ledge
#

since pm2 is auto restart, the bot must be login too many times when error

lyric mountain
#

if you disable intents on the dashboard you MUST also disable on the code

sharp ledge
lyric mountain
#

else it'll not login

#

can you let me finish my sentences?

quartz kindle
#

no :^)

lyric mountain
#

tl;dr: if you disable intents on the site you need to disable on the code, else it'll not login

sharp ledge
lyric mountain
#

other bot token works because you didn't disable the intent

quartz kindle
#

djs stable is still on api v7, so intents are not mandatory

#

so he probably doesnt even set intents in the code

sharp ledge
#

its too late

sharp ledge
#

when code gone wrong, then i just realized intent are not enabled

oak nymph
sharp ledge
#

just realized i can do this

const myIntents = new Intents();
myIntents.add('GUILD_PRESENCES', 'GUILD_MEMBERS');

const client = new Client({ ws: { intents: myIntents } });

but i didnt use the code lol

#

mine are just like

const client = new Discord.Client();
await client.login(token);
lyric mountain
#

not without them enabled on the site

clear marlin
#

who doth ping me 3 times here mmulu

sharp ledge
eternal osprey
#

hey what are the utf8 characters of 🅰️,🅱️?

#

like how do i find them

eternal osprey
#

uhu but i tried this: \u1F170

#

but it logs as a strange character

#

not as this emoji

sharp ledge
#

visit the emoji url, then use copy button emoji, then paste your text

sharp ledge
lyric mountain
#

you can

#

but those characters have surrogate pairs

#

note that the unicode contains 5 digits not 4

#

to grab the unicode (not utf8) of them use 🅰️

#

\emoji

#

copy that character and paste on the code

#

you'll get something like \u1234\u5678

livid spoke
lyric mountain
livid spoke
eternal osprey
#

\🅰️

#

what

#

where do i paste it

lyric mountain
#

read the last 4 words

eternal osprey
slate finch
#

Jalpha™ is going to bring down all moderation bots😎

#

No premium

#

For anything

lyric mountain
#

cool now move along

eternal osprey
slate finch
#

Lol

slate finch
eternal osprey
#

\🅰️

slate finch
#

Umm

eternal osprey
#

okay so now i have the unicode

lyric mountain
#

"i've" was technically right

slate finch
#

Yea

rigid raven
eternal osprey
#

tho, i still don't understand what you just told me

lyric mountain
#

how didn't u understand?

eternal osprey
lyric mountain
#

do what?

slate finch
#

What

lyric mountain
#

you asked for the emoji's unicode

eternal osprey
#

yeah

lyric mountain
#

now you have it

eternal osprey
#

no the uft8 code

lyric mountain
#

there's no utf8 code

eternal osprey
#

the \25sfsg

lyric mountain
#

\🅰️

#

this is the unicode

eternal osprey
#

yeah but i want the

#

\

#

code.

lyric mountain
#

it doesn't have to be in \u1234 notation

eternal osprey
#

yeah but i do want it in that type of notation

#

as this is what my console says

#

Unhandled Rejection:
DiscordAPIError: Unknown Emoji

lyric mountain
#

show code

eternal osprey
#
const reactionEmoji1 = "\u0041";
    await s.react(reactionEmoji1) // this is where it called the error
;```
lyric mountain
#

that's not what I told u to copy

oak nymph
eternal osprey
#

no but this is what i had done before you told me to do

eternal osprey
lyric mountain
#

\u0041 is not an emoji

eternal osprey
#

happened to me like 3x

oak nymph
lyric mountain
rigid raven
#

haha thanks sage

eternal osprey
lyric mountain
#

if I ask you, what Pi represents?

eternal osprey
#

3.21

lyric mountain
#

that's wrong af but anyway

eternal osprey
#

wahahhaha

lyric mountain
#

no, pi represents pi

#

both π and 3.14... are right

#

same for emojis

eternal osprey
#

yeah but my vps strangely doesn't support it

lyric mountain
#

🅰️ is the same as \uD83C\uDD70

eternal osprey
#

it gives me the same unknown emoji error till i give it \ codes

lyric mountain
#

no

eternal osprey
#

i know

lyric mountain
#

I doubt it is giving an error

eternal osprey
#

holy shit i am going to give you an example right now okay

lyric mountain
#

sure

eternal osprey
#

i will reset my code and run the error

lyric mountain
#

paste 🅰️

eternal osprey
#

yeah

#

const reactionEmoji4 = "??";

#

this is what it returns me after a winscp restart

lyric mountain
#

sure

#

continue

eternal osprey
#

alrght one sec

#

| Unhandled Rejection: 3|index | DiscordAPIError: Unknown Emoji 3|index | at RequestHandler.execute (/root/AwsomeModeration/node_modules/discord.js/src/rest/RequestHandler.js:154:13) 3|index | at runMicrotasks (<anonymous>) 3|index | at processTicksAndRejections (internal/process/task_queues.js:97:5) 3|index | at async RequestHandler.push (/root/AwsomeModeration/node_modules/discord.js/src/rest/RequestHandler.js:39:14) 3|index | at async Object.exports.run (/root/AwsomeModeration/commands/trivia.js:63:5)

lyric mountain
#

your winscp is corrupting the emoji

eternal osprey
#
const reactionEmoji1 = "???";
    const reactionEmoji2 = "???";
    const reactionEmoji3 = "??";
    const reactionEmoji4 = "??";
    await s.react(reactionEmoji1);  // this is where it errors
    await s.react(reactionEmoji2);
    await s.react(reactionEmoji3);
    await s.react(reactionEmoji4);
#

yeah i know it is

#

that is why i want to use \ codes

lyric mountain
#

then the error isn't in the code

eternal osprey
#

no it isn't

#

but i am not asking for code help but for help on how to get the

lyric mountain
#

fix winscp then

eternal osprey
#

\ codes of an emoji

lyric mountain
#

you cant

#

because the \ of 🅰️ is 🅰️

eternal osprey
eternal osprey
lyric mountain
#

if you fix winscp it'll not try to encode what it shouldn't

eternal osprey
#

it doesn't corrupt it in \ form

lyric mountain
#

it does

#

? means winscp tried to encode the \ character

eternal osprey
#

no it doesn't this happened to me 3 times and i fixed it by \

lyric mountain
#

bruh

eternal osprey
#

is cry here

crimson vapor
#

use git not winscp

eternal osprey
#

do you know how to get those?

lyric mountain
#

"but now" that's where your issue is

crimson vapor
#

\🅰️

lyric mountain
#

you want a quick fix

#

not a long-term solution

crimson vapor
#

its literally \🅰️

lyric mountain
#

you'll never be able to work with surrogate pairs if you don't fix that

eternal osprey
lyric mountain
eternal osprey
#

this for example

lyric mountain
#

read that link I sent

#

that one is for info regarding winscp issues with utf-16 chars

#

which surrogate pairs are

#

unless you specifically need to use winscp, consider using filezilla or git

#

preferrably git

eternal osprey
#

yeah i have been using winscp my whole life

#

idk how to use git in any way

crimson vapor
#

git add .

#

git commit -m "commit"

#

git push origin master

#

ON VPS

#

git pull

lyric mountain
#

without git, if something ever happens with your code there's no going back

#

also git doesn't touch in your code like ftp does

#

you send abc you get abc

#

with ftp you send abc you get 123

eager scarab
#

i got this error when i try to execute npm init

#

i already re-installed nodejs, i open cmd as admin and i get the same error

lyric mountain
#

you're running npm init in the wrong place

eager scarab
#

where i can run it?

clear marlin
#

ENOENT means npm can't find a file or a directory

mental raven
#

Are there any free easy to learn databases to use with discord.py?

lyric mountain
#

can't get more free than using google

mental raven
#

atleast free

clear marlin
eager scarab
clear marlin
#

welp, does it have a package.json?

eager scarab
#

no

#

also it happends when i try to execute mkdir

clear marlin
#

is it your root directory where your executing the command?

eager scarab
#

no

#

Documents/

clear marlin
#

Create a new folder in documents

eager scarab
#

i already did it

clear marlin
#

cd to that folder

#

like cd myFolder

#

and then execute npm init again

eager scarab
#

i get the same error

clear marlin
#

npm -v?

eager scarab
#

7.11.2

clear marlin
#

well

boreal iron
clear marlin
#

kinda confusing why its not working

boreal iron
#

Get a server and install and manage your own database.

eager scarab
clear marlin
#

do you have yarn?

mental raven
#

I don't have any idea what you are talking about so i am just gonna store everything in a .txt file

eager scarab
#

i already restarted my pc

eager scarab
clear marlin
broken matrix
#

how would i make a command that anyone can run that would kick one certain user(js)

clear marlin
#

but take a try

eager scarab
#

link?

deep mantle
boreal iron
clear marlin
eager scarab
#

yarn

clear marlin
#

its a npm package

#

npm i -g yarn

#

if you do download it

eager scarab
#

oooh

clear marlin
#

do yarn init

#

and this should work

eager scarab
#
error Could not write file "C:\\Users\\rzsty\\Documents\\FD\\project\\yarn-error.log": "ENOENT: no such file or directory, open 'C:\\Users\\rzsty\\Documents\\FD\\project\\yarn-error.log'"
error An unexpected error occurred: "ENOENT: no such file or directory, open 'C:\\Users\\rzsty\\Documents\\FD\\project\\package.json'".
info Visit https://yarnpkg.com/en/docs/cli/init for documentation about this command.
trail finch
eager scarab
#

yea

trail finch
#

then

eager scarab
#

but i am using cmd

clear marlin
#

It really looks as if your working with npm on a root

trail finch
#

oh

eager scarab
#

not terminal of vsc

trail finch
broken matrix
#

Can i make a button on a website that kicks a specific user

lyric mountain
eager scarab
#

its powershell

clear marlin
lyric mountain
#

you CAN change to powershell

trail finch
clear marlin
#

whatever you use it does the came thing

lyric mountain
#

but vanilla is cmd

boreal iron
eager scarab
clear marlin
#

yeah that's what I'm telling you

trail finch
#

in cmd sometimes that cd <folder > one doesnt works

#

thats why I asked him to use vsc terminal xd nvm

broken matrix
clear marlin
#

is your current directory a folder or a root?

trail finch
#

ummm idk if I said that correctly rip

lyric mountain
#

probably not lul

eager scarab
#

i will try in

broken matrix
#

is there a site that helps with that

eager scarab
#

C:\Users\my user\testFolder

clear marlin
#

yeah

#

so npm init now

trail finch
#

hope it works

eager scarab
#

tf

#

it works

trail finch
#

maybe it works

#

YEAH GUESSED SO

clear marlin
#

tf it will work

#

lmfao

trail finch
#

nvm

boreal iron
clear marlin
#

ggs

eager scarab
#

but why it dosent work on Documents/Desktop?

lyric mountain
#

documents/desktop is not even a thing

eager scarab
#

i mean

#

Documents or Desktop

clear marlin
#

npm doesnt work in roots

rigid raven
# oak nymph lol

BTW Wasn't code related, I was just trying to invoke the command with something like "!serve help" (with the space) 🤦‍♀️ 🤦‍♀️ 🤦‍♀️ Thanks a lot for your time, dude

clear marlin
#

it works in a current working directory

eager scarab
#

ohh sure sure

#

thanks

clear marlin
#

np

trail finch
#

Is it possible to use collector message inside collector message? nvm if it is like weird

eager scarab
#

I already have 1 day trying to solve this problem

trail finch
clear marlin
#

What do you mean by collector message

#

?

lyric mountain
#

message collectors

#

and no, don't use one inside another

clear marlin
#

ah

trail finch
#

oh u got that

clear marlin
#

store them in a variable

trail finch
#

like?

#

I am kinda beginner with message collector (its like I dont understand it correctly)

clear marlin
#

discord.js does have a message collector function if I'm right?

lyric mountain
#

if you feel like you need to use one inside another you should consider reviewing your code's logic

trail finch
#

yesh

clear marlin
#

so basically you collect the first message

eager scarab
# trail finch 😂 why not aksed sooner then?

First I looked for it by google I thought it was any common error, and then I tried to solve it in a thousand ways and it did not work, then I went to a community where previously they had already helped me with other things, sadly nobody helped me then I decided to leave the project there and put myself to do other things, then today I realized this server, I joined this server about 10 minutes ago

trail finch
#

yea

clear marlin
#

and then store it in a variable

#

collect another message

#

and then store it in a variable and do whatever you feel right

trail finch
#

but I want it to continue till one of the player's hp gets 0 or smth like this...

oak nymph
#

its so ez to get premium bots for free, ruining the concept of "premium"

#

discord needs to do smthg abt this

lyric mountain
#

they shouldn't

oak nymph
#

why?

trail finch
inner anvil
#

Hm

lyric mountain
#

because there're literally 0 solutions for that problem

oak nymph
#

go to any premium bot

#

support

#

server

#

ping the premium version

#

copy the client id

trail finch
#

oh ic

lyric mountain
#

that's the dev's fault, not discord's

oak nymph
#

and in this link after it says client_id= till &permissions paste the client id

trail finch
#

@oak nymph #bigbrain

lyric mountain
#

for example, I'll send my premium bot's ID to you in pv, try to add it in your server

oak nymph
#

I can think of a way

#

there's an api

lyric mountain
#

sure, feel free to try any way you want

oak nymph
#

that generates random tokens for discord bots

clear marlin
trail finch
#

whaat

clear marlin
#

just for message collecting

sterile lantern
#

how do i get the user's avatar from a slash command

pale vessel
#

You need to fetch the user using the bot via ID

#

They might have changed it, I dunno

#

Barely used slash commands

earnest phoenix
#

Anyone anime lover

pale vessel
sterile lantern
#
 const embed = new Discord.MessageEmbed()
            embed.setTitle('Error')
            embed.setDescription('You must be verified to use this command!');          embed.setColor(client.config.colors.error);
            embed.setAuthor(interaction.member.user.username)```
#
if(linkedUser) {
              client.api.interactions(interaction.id, interaction.token).callback.post({
                data: {
                    type: 4,
                    data: {
                        content: await createAPIMessage(interaction, embed)
                    }
                }
            });
          } else {
            client.api.interactions(interaction.id, interaction.token).callback.post({
                data: {
                    type: 4,
                    data: {
                        content: "Hello World!"
                    }
                }
            });
        }```
#

how come this doesnt work

#

apiMessage:

async function createAPIMessage(interaction, content) {
    const apiMessage = await Discord.APIMessage.create(client.channels.resolve(interaction.channel_id), content)
        .resolveData()
        .resolveFiles();
    
    return { ...apiMessage.data, files: apiMessage.files };
  }```
#

the error returns 'Invalid form body'

#

idk y

#
node:774) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
data.content: Could not interpret "{'tts': False, 'embed': ...... as string```
#

the ..... is just the embed printing

pale vessel
#

Content is supposed to be a string, not an object/class

#

Read the error

sterile lantern
#

oh

#

its data not content

#

oop

#

how do i get

#

the user's avatar URL

#

and set it as the thumbnail ?

#

i fetched the ID

#

hmm

#

wait lemme test smth

pale vessel
#

You can use the fetched user's avatar hash

sterile lantern
#

how do i get the user's discriminator

#

i ran console.log(interaction.member)

#

its labelled as discriminator

#

i tried interaction.member.discriminator

#

doesn't work for some reason

pale vessel
#

member.user.discriminator

sterile lantern
#

oh

#

alr

pale vessel
#

Unless that's a raw member object from the API

wooden shoal
#

.setThumbnail(<User>.displayAvatarURL({options}))

pale vessel
#

Then you need to fetch it as user first

#

Unless (again) the raw object also provides the user object

lament rock
#

Context: I'm making my own lib and trying to be as memory efficient as possible.

Do you guys think it would be more efficient to have a fast temporary cache where resources are stored with a small expire time and said cache is swept in short intervals so that I can reference back to that cache to avoid constructing new instances of the same resource as often as possible or should I continue to just have no caching

solemn latch
#

if your only goal is memory efficiency, no cache at all.

sterile lantern
#
 [ { value: 'hi', type: 3, name: 'text' } ]```
earnest phoenix
sterile lantern
#

this is what prints when i console.log interaction.data.options

#

how would i only get the value of it

#

assuming <>.data.value?

solemn latch
#

well, get the first thing in the array first

#

[] means its in an array, with only one thing in it, { value: 'hi', type: 3, name: 'text' }
so just the first thing, then .value

sterile lantern
#
        const args = interaction.data.options;

args.value doesn't work

pale vessel
#

Specify the index

#

It's inside an array and there could be multiple options

lament rock
sterile lantern
#

ah

#
args.find(arg => arg.name.toLowerCase() == "text").value```
solemn latch
sterile lantern
#

o

#

well this works

sharp ledge
sterile lantern
#

whats the ? for

lament rock
#

optional chaining

#

if the property doesn't exist, then the value of the property only returns undefined instead of throwing a cannot read property of undefined error

earnest phoenix
# lament rock not making requests. The general idea it to make the data very partial like how ...

Well yea, however; the duplicated partial payloads should not be that big of a problem since some data revolving around this has the same issue even if they're not partial, it shouldn't be much of a threat to memory and mallocs and similar stuff, in the case of different instances replicating the same interface and properties as you mentioned at the end, that might be a little bit of a problem towards memory but it should be fine since you're just making them partial

lament rock
#

Alright. That was the main concern. If you believe the impact is negligible, then perhaps I shouldn't have to worry

sterile lantern
#
let lembed = new Discord.MessageEmbed()
    lembed.setTitle('![loading](https://cdn.discordapp.com/emojis/839220362188292108.webp?size=128 "loading") Sending suggestion..')
    lembed.setDescription("Please wait while I send your suggestion.")
    lembed.setFooter('Suggestions')
    lembed.setColor(client.config.colors.info)
  message.channel.send(lembed).then(async msg =>{```

i want to do this but in a slash command form
lament rock
#

please send help. I've been at this for 3 days

sterile lantern
#

so essentially, send a msg, and once its done posting to trello, edit the msg

earnest phoenix
lament rock
#

Thamk

earnest phoenix
#

pepehmmNoBG Best of luck

crimson vapor
lament rock
#

Spoiler alert

#

it's not

earnest phoenix
#

yes, "pain" is fun

#

weirdEye actually no

sterile lantern
#

is it possible to edit a msg after its posted in a slash cmd

earnest phoenix
#

yes, you can edit interaction responses

sterile lantern
#

any docs for it ?

earnest phoenix
#

Literally the Discord API documentation

sterile lantern
#

i forgot how to do this, how do you fetch the all the current slash commands +id w/ discord.js

#
console.log(client.api.applications(client.user.id).guilds('guildid').commands.get())```
#

doesnt work

#

also tried
client.api.applications(client.user.id).commands.get()

#

doesnt work

#

😔

#

NVM got it :D

lavish bramble
#

How can I write msg in box in canvas ?

lyric mountain
#

message in box?

lavish bramble
#

Whenever the msg was long then it sends it in next line

lyric mountain
#

manually calculate string width

lavish bramble
#

In canvas?

lyric mountain
#

yes

lavish bramble
#

How?

lyric mountain
#

there's no text-wrap for such stuff

#

you need to split the text into words, then write it while it's smaller than the max width

sterile lantern
#
await client.api.applications(client.user.id).guilds('485652668371566603').commands('839876045959331901').delete()```

UnhandledPromiseRejectionWarning: DiscordAPIError: Unknown application command
    at RequestHandler.execute (/home/runner/HanaleiNew-Final-1/node_modules/discord.js/src/rest/RequestHandler.js:154:13)
lyric mountain
#

when it surpasses the max, move down in the Y axis and repeat

sterile lantern
#

^^

earnest phoenix
#

Of if you didn't forget any digits of the ID

sterile lantern
#
 id: '839895817929097227',
    application_id: '760967685776343050',
    name: 'suggest',
    description: 'Suggest something for Hanalei!',
    version: '839895817929097228',
    default_permission: true,
    guild_id: '485652668371566603',
    options: [ [Object] ]```
#

i supply the id right

#

i supplied id

#

didnt work

cinder patio
sterile lantern
#

still doesnt work

#

tried both ids, app id and regular id

lavish bramble
#

I want like this

earnest phoenix
#

gandhi ji

sterile lantern
#

ah wait

#

nevermind

#

it worked after i ran it 3 times

earnest phoenix
#

¯\_(ツ)_/¯

sterile lantern
#

yeah i entered both

#

id worked

#

it just needed to be ran two times for some reason

earnest phoenix
#

i want to add like this how can i add at top.gg

cinder patio
#

That's an iframe

earnest phoenix
#

how can i add it but

cinder patio
earnest phoenix
#

where is not erwin

quartz kindle
#

not here

earnest phoenix
#

really left?

umbral zealot
#

no just not currently here

earnest phoenix
#

ah okay bc i need help with custom caching on detritus

earnest phoenix
quartz kindle
#

@opal plank not rake not needs not help not with not custom not caching not on detritus

#

also, i did not ping you

umbral zealot
#

Not Tim pinging Not Erwin for help on Not Detritus

quartz kindle
#

not exactly

lavish bramble
earnest phoenix
#

Remove px

tardy hornet
#

in quick.db, i use db.add to add items to user's inventories, how can i make that they could get more than one of the item's and that in the inventory it wont just be true or false, but the number of items

cinder patio
#

also the expression will always be true, the right number is also in pixels

umbral zealot
#

no idea what you're asking tbh

#

then again quick.db just stores what you tell it, so... change the data you're storing I guess?

earnest phoenix
#

@cinder patio thx spicydog

#

Hello there,
I cannot save my webhook information.

dusky garden
#

so im currently trying to make like a voice chatbot for discord, and in order for speech recognition to work, i need to write raw PCM data to a exsisting WAV file in order for the speech recognition to understand it as the speech recognition is real time, and I dont know how to do that, is that even possible? If so, how?

opal plank
#

@earnest phoenix what custom caching?

earnest phoenix
opal plank
#

oh THAT sort of custom caching, i dont know if you can do that tbh

#

better ask in their server since idk, but i really doubt you can customize it like that

#

you can customise WHAT it caches, i dont think you can customise the SHAPE of the objects

earnest phoenix
opal plank
#

then whats the issue?

#

just request them via a small API or something

earnest phoenix
opal plank
#

oterhwise you cannot get roles

#

you can get guilds via oauth

earnest phoenix
opal plank
#

but im not sure about channels nor roles

#

so make a basic api inside your bot

#

whenever you use it, it returns the stuff you want

earnest phoenix
#

yea i will do it since it will sink the ram usage for dash

opal plank
#

express would do the trick

#

express.on('/getUser', (res, req) => {
res({guild: client.guilds.get('id'), channel: client.channels.get('id'), role: client.guilds.get('id').roles.get('id')})
})

#

thats all you need

#

something like that

#

just makle the commandClient available

#

or your clusterClient/ShardClient

#

depending if you sharding or not

earnest phoenix
zenith terrace
earnest phoenix
earnest phoenix
opal plank
dusty axle
#

so on the top.gg site I saw I can use css on my bot description how do I go about adding my css? do i just throw it in there? in the description box
like here is my custom css

.btn {
  position: relative;
  text-align: center;
  cursor: pointer;
  span {
    position: relative;
    display: inline-block;
    color: #fff;
    font-size: 1.2em;
    font-weight: 500;
    text-decoration: none;
    width: 240px;
    padding: 18px 0;
    margin: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(1, 1, 1, 0.55%);
    transition: transform 0.15s linear;
  }
.color-01 span {
  background: linear-gradient(0deg, #ec5c1a, #f6ce61);
}

.color-02 span {
  background: linear-gradient(0deg, #0165cd, #55e6fb);
}

or does it mean I have to use a basic css scheme?

vivid fulcrum
#

just throw it in a <style> tag

#

in your desc

old cliff
#

What was the css to add animation?

dusty axle
old cliff
#

I was asking out of context

dusty axle
#

i used it on my website is it against server rules for me to post my code link to show you?

woeful pike
#

this css is not going to do anything to your bot page lol none of these are valid selectors

dusty axle
woeful pike
#

I see

#

also this is either scss or you're missing a closing bracket

dusty axle
#

i was just wondering how to get css to work since im used to web design and normally there is a folder named css xD

woeful pike
#

you can't use scss in top.gg since we don't compile your css files

dusty axle
#

ah dang

#

alrighty

woeful pike
#

although we might consider doing that in the future it's not super expensive to do so

#

depends on the demand, go make an issue for it if you want it

dusty axle
#

hey since your one of the team members question would you mind if I sent him the link to my codepen to Jaguar since he was wondering on the animation?

#

unsure if sending links to something kinda random was against this server's policy

woeful pike
#

why would sending a codepen link be against the rules

dusty axle
#

just wanted to make sure haha

woeful pike
#

yeah we remove <script> tags so that button hover thing won't work but everything else is fine

dusty axle
#

yeha i figured you'd probably remove that

#

so i was gonna rewrite without hover (which is fine) I built the hover just for my site side once I commit the huge update for my site eventually

#

just wanted to steal my button looks and paste them on the top.gg description haha

woeful pike
#

fyi if that background is from the artist I think it is, she doesn't want you using her work without permission

modest maple
dusty axle
boreal iron
#

Use the CSS hover

woeful pike
#

alright then

dusty axle
#

oh no

#

ik that person though great artwork

woeful pike
#

yeah I wish she replied to me on twitter lol

dusty axle
#

a way more refined pixel type

modest maple
#

oof

woeful pike
#

I wanted to use one of her gifs as the background on my portfolio

dusty axle
woeful pike
#

getting ghosted by girls as usual

dusty axle
#

xD shii I have a wife and still get ghosted lmao

woeful pike
#

sounds pog

modest maple
#

thats probably a mercy more than anything lol

dusty axle
#

lol

modest maple
#

Yay for double repeating runtimes sad

dusty axle
#

although I do need more pixel art gifs anyone know anywhere to find fair use ones?

earnest phoenix
modest maple
#

ikr

#

it took me

#

a while to get it

subtle river
#

I need some help, why isnt this working? (startevent is supposed to wait for 2 people to run &joinevent)

earnest phoenix
dusky sundial
dusty axle
modest maple
#

@earnest phoenix

lavish bramble