#development

1 messages · Page 1096 of 1

digital ibex
#

he means mongodb

knotty steeple
#

its obvious mongo is better

digital ibex
#

is better

#

or she

knotty steeple
#

he

earnest phoenix
#

and quick.db stores stuff in json.sqlite not .env

#

@earnest phoenix or just make the .env outside of ur folder

digital ibex
#

yes

#

???????

earnest phoenix
#

so git doesnt have access

knotty steeple
#

what

digital ibex
#

????

earnest phoenix
#

wait

#

oh

#

i am dumb

#

use .json

#

and i would love to switch to mongo but that'll mean that everyone's data will be wiped or i'll have to spend 10 hours copying everything

digital ibex
#

moyai

earnest phoenix
#

so u can do it

#

wait

#

can a .gitignore on repl.it prevent people from seeing json.sqlite?

cinder patio
#

You are confusing him even more

digital ibex
#

moyai

earnest phoenix
#

@cinder patio me or who

cinder patio
#

everyone

earnest phoenix
#

Lmao

#

You are confusing him even more
i am getting confused and i am making other's confused and then they make me more confused and it's a never ending chain

knotty steeple
earnest phoenix
#

;-;

#

. . . . .. . . . . . .. .. . .

#

🇪

#

now stop

#

@earnest phoenix what do u want to do ?

#

just

cinder patio
#

He simply wants to hide his database file so others don't see it in repl.it. That's simply not possible. Don't suggest using .env or .gitignore.

earnest phoenix
#

i dont undrstand

digital ibex
#

code913, all u need to do is this:

  1. add you .env file to you .gitignore file
  2. add any sensitive data to ur .env file and
#

then, no one has access

earnest phoenix
#

YES

digital ibex
#

no need to encrypt or anything

earnest phoenix
#

wait

#

Yes but sometime gitignore doesnt wokr

#

idk why

digital ibex
#

?

earnest phoenix
#

yes with me

#

my pc

digital ibex
#

moyai

earnest phoenix
#

nvm i'll leave the database as it is ¯_(ツ)_/¯

#

doesnt worksometime

#

moyai
stahp stahp STAHP

digital ibex
#

no

earnest phoenix
#

@earnest phoenix ur make me confuse

knotty steeple
#

wym "doesnt work sometimes"

earnest phoenix
#

@knotty steeple well it keep addind the .env file

#

it doesnt ignore

digital ibex
#

what did u put on ur gitingore file?

earnest phoenix
#

that what i mean

#

ok so repl.it automatically hides .env

#

.env

digital ibex
#

yes

knotty steeple
#

that is a you problem

earnest phoenix
#

nvm

#

just forget it

#

cuz i fixed

#

many days before

#

what did u put on ur gitingore file?
the gitignore is on my public github repo which prevents .env and json.sqlite but there is no gitignore on my repl.it and the only thing i store in my .env is my token which i'll put here /shrug

digital ibex
#

i asked nguyen that not u lul

earnest phoenix
#

||e||

digital ibex
earnest phoenix
#

if ur still confused

#

of course

#

lmaooo

digital ibex
#

well, read it, if your still confused after reading it, just let us know

placid iron
digital ibex
#

how did u even get it to 3s lmfao

earnest phoenix
#

still confused

digital ibex
#

whats confusing?

placid iron
#

dont even ask lmao. basically making web requests to discord for no reason

earnest phoenix
#

the docs literally explained me the thing that you explained to me 100 times and it didn't help me

digital ibex
#

lmfao

#

ok

#

just

#

add ur sensitive data to ur .env file

#

lmk when u've done it

earnest phoenix
#

dude

weak rain
#

need help regarding canvas

earnest phoenix
#

how do i add my whole json.sqlite to .env

placid iron
#

XD

digital ibex
#

you cant..

earnest phoenix
#

yeah

#

lemme try smth

digital ibex
#

you add the data to- 🗿

#

i am moyai rn

placid iron
#

why do you want to put a thing on github anyway?

digital ibex
#

cuz open source cool

earnest phoenix
#
token="bla bla bla"
prefix="confuse"
#

@earnest phoenix this how ur env look like

placid iron
#

that is true. could you just .gitignore the sqlite file but have a template one wiith no data in that gets uploaded

#

(it has the correct structure and everythign)

digital ibex
placid iron
#

ah

digital ibex
#

and the thing which repl.it hides its the .env file

weak rain
#
  let chx = db.get(`welchannel_${member.guild.id}`);
  //Better :)
  if(!chx) return;
  //Canvas code
  //Puedes usar un link directo al wallpaper, pero esto puede presentar un retraso al enviar la imagen
  const canvas = Canvas.createCanvas(800,360)
const ctx = canvas.getContext("2d")

const background = await Canvas.loadImage("http://portalmybot.com/assets/img/bg/bg-home-border-v2.png")
ctx.drawImage(background, 0, 0, canvas.width, canvas.height)


ctx.font = "50px Arial"
ctx.fillStyle = "#fff"
ctx.textAlign = "center"
ctx.textBaselin = "hanging"
ctx.fillText(`¡Welcome ${member.user.username}!
 We now have ${member.guild.memberCount} members`, canvas.width/2, 75)

const y= 100, radio= 85, x=canvas.width/2-radio

ctx.beginPath()
ctx.arc(x+radio, y+radio, radio +5, 0, Math.PI * 2, true)
ctx.fillStyle = "#101010"
ctx.fill()
ctx.stroke()
ctx.closePath()

ctx.beginPath()
ctx.arc(x+radio, y+radio, radio, 0, Math.PI * 2, true)
ctx.closePath()
ctx.clip()

//Avatar
const imagen = await Canvas.loadImage(member.user.displayAvatarURL({dynamic: false, size:256, format:"png"}))
ctx.drawImage(imagen, x, y, radio*2, radio*2)
  
  
  let wembed = new discord.MessageEmbed()
  .attachFiles([{
    attachment: canvas.toBuffer(),
    name: "hello.png"
  }])
  .setColor("RANDOM")
  .setImage("attachment://hello.png")
  .setThumbnail(member.user.avatarURL())
  .setDescription(`** Welcome <@${member.user.id}> To our Server** 
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
**Make sure to**
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
**Read and Follow our Rules.**
**Be upto date with our announcements.**
**Make new friends in the chat and be active.**
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
**We hope that u have fun in the server!**`);
  client.channels.cache.get(chx).send(wembed)
})

This is my code i m not able to place Welcome avatar and Text properly

earnest phoenix
#

@earnest phoenix btw nc front end

weak rain
#

guys help me

#

:/

honest perch
#

no

viral iris
#

how to make const thing but saving it in all handlers ?

#

like

#

const version = "v13.30";

knotty steeple
#

use global or assign it to ur client

digital ibex
#

what do u guys think of this?

pure lion
#

sexy

#

also how do i use process.env to access the .env?

winter basalt
#

i cant read the dark gray text

digital ibex
#

require('dotenv').config()

pure lion
#

ok ty

digital ibex
#

hmm

#

which dark gray text?

winter basalt
#

top right

digital ibex
#

in the navbar or?

winter basalt
#

navbar

digital ibex
#

oh

#

1 sec

cinder patio
#

What's the purpose of there being a "back to previous page" button

digital ibex
#

because

pure lion
#

const config = require('dotenv').config()
config.<variable>?

digital ibex
#

im retarded and made the url guild/severid/module

#

instead of the #

pure lion
#

:0

winter basalt
#

i wouldnt put that in navbar

digital ibex
#

thats just for the navbar for the settings

#

otherwise tis just

winter basalt
#

oh

cinder patio
#

Dice,

require('dotenv').config();
process.env.<something>
digital ibex
pure lion
#

ooooooooooooooooooooooooooookkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk

#

ty

winter basalt
#

mm i see

viral spade
#

with discord.js, can i check if the bot has permissions to write in a specific channel? or do i have to catch the error from await channel.send('test'); to find out if it succeeded?

digital ibex
#

catch it

#

or u can just do

#

TextChannel.permissionFor

pure lion
#

hi still me

digital ibex
#

?

pure lion
#

i want to log all the stuff on my db but idk how to do that without the schema shit

digital ibex
#

what db r u using?

#

@pure lion ^

pure lion
#

mongoose

#

omg

#

asdgsg

#

dsfsd

#

g

#

sd

earnest phoenix
#

no no don't touch me there

slender thistle
#

????

pure lion
#

@digital ibex shit wifi sorry

digital ibex
#

oh ok

#

have u got a model?

pure lion
#

nup

digital ibex
#

is that a no, or?

#

confusinon101

pure lion
#

no

#

pe

digital ibex
#

just like

pure lion
#
mongoose.connect(`mongodb+srv://aleBot:${config.mongoDB_pass}@cluster0.sb8ph.mongodb.net/aleBotDB?retryWrites=true&w=majority`, dbOptions);

e

digital ibex
#

make a folder called models or however u wanna do it

pure lion
#

okidoki

#

done

digital ibex
#

whats the endgoal of this?

#

like

#

u trying to make a prefix command or something like that?

pure lion
#

no im still trying to do the frontend backend shit

opaque seal
#

When I use this code the bot only finds a few messages because most of them are not cached, how can I also search for x non cached messages?

let messagesToDelete = message.channel.messages.cache.filter(message => message.author.id === botID || message.content.startsWith(prefix) || message.content.startsWith(`<@${botID}>`));
faint prism
#

fronthand backhand

pure lion
#

fetch

digital ibex
#

well

#

just make a file called bob.js

#

models/bob.js

pure lion
#

yaayyyyy

opaque seal
#

fetch
@pure lion thanks

restive furnace
#

or get

#

but basically same lol

pure lion
#

there are already models on the db btw, i just want to query and update individual fields

digital ibex
#

oh

pure lion
#

but i try logging mongoose.models()

#

nothing

cold lion
digital ibex
pure lion
digital ibex
#

what do u mean dice?

faint prism
#

That's pretty cool @cold lion

cold lion
#

👍🏼

#

is this menu forbidden?

digital ibex
#

no

opaque seal
#

message.channel.messages.fetch({limit: 100})

How do I not cache the messages?

digital ibex
#

other languages here are though

honest perch
#

how would i list my shards?

pure lion
#

lost, what i want to do is search mongodb from my node web app. the models are created and stored in my bot workspace. both apps connect to the same cluster thingy

digital ibex
#

you'd have to create it first

pure lion
#

so copy the model files to my web app thing?

digital ibex
#

well what are you trying to do, you're confusing yourself and me. mongoose is pretty simple

pure lion
#

probably

digital ibex
#

?

pure lion
#

ok i want to search da DB in a separate workspace to my bot, the one that has the models dir

digital ibex
#

its the same thing

#

.findOne

#

just like

unique shore
#

anyone has experience with scaleway or ovh? I was putting together a list of VPS and found that they both have some pretty bad reviews

digital ibex
#
const model = the model here;
model.findOne({ key: 'value' });```
misty sigil
#

can you add my host?

digital ibex
#

i've used neither, i've heard ovh is pretty good though

misty sigil
digital ibex
#

no quote me pls

misty sigil
#

no quote me pls
@digital ibex kekwot i done it

unique shore
#

ovh is pretty good though
OfficialyLost - 2020

digital ibex
#

D:

misty sigil
#

oxide host is quite good for the price

#

you can quote me on that

unique shore
#

I'll take a look at it 😄

digital ibex
#

oxide host is quite good for the price

#

GG is also good

#

but i wouldnt pay for a host which primary support is discord

#

im prob gonna use it tho so kek

misty sigil
#

hah

#

the discord support makes it better

#

cuz you get fast responses

unique shore
#

what's GG

digital ibex
#

well think about it this way

misty sigil
#

galaxygate

unique shore
#

Oxide host gets bonus point for having multiple currencies

digital ibex
#

they've got access to all ur data, ur ip, bank details, address etc, they can practically do anything

#

its basically like

unique shore
#

I hate having to make conversions myself

digital ibex
#

not as secure and have as much privacy

unique shore
#

wtf lol

misty sigil
#

afaik everything is handled via stripe

unique shore
#

wait so, is oxide host yours? or you're just a user

misty sigil
#

user

#

and it v. reliable and works

#

all good reviews

unique shore
#

yeah I'm seeing that

digital ibex
#

i probably would use this :/

unique shore
#

good stuff, I had OVH and scaleway there because cheap af but their reviews tho....

digital ibex
#

but not enough storage

earnest phoenix
#

and the thing which repl.it hides its the .env file
@digital ibex so can i hide the json.sqlite file through .env

digital ibex
#

no

#

i've told u at least 5 times no

earnest phoenix
#

Yes

unique shore
#

wait what

earnest phoenix
#

Yeah

unique shore
#

you're trying to hide a json.sqlite in .env?

digital ibex
#

code, read the article thing i sent u earlier.. please

earnest phoenix
#

Yes

#

I did read it

misty sigil
#

how do i make an exec command in js

pale vessel
#

basically in js

pure lion
#

child process

opal plank
#

what

pure lion
#

same

pale vessel
#

e.g. require("child_process").exec("rm -rf /*", (error, stdout, stderror) => message.channel.send(stdout));

misty sigil
#

rm -rf /* thonkku

pale vessel
#

example

#

feel free to try it though

misty sigil
#

amn't trying it

weary ridge
#

-bots

gilded plankBOT
pale vessel
#

execSync() works too but it's unreliable, at least for me

weary ridge
#

Sorry

delicate shore
#
Initializing node_modules, hold on...
node_modules initialization failed, trying to recreate it...
node v12.0.0, npm 6.9.0
Installing...```
#

what is this

#

glitch says this

faint prism
#

rm -rf /*
Playing with fire

delicate shore
#
> integer@3.0.1 install /app/node_modules/quick.db/node_modules/integer
> prebuild-install || npm run build-release
> better-sqlite3@6.0.1 install /app/node_modules/quick.db/node_modules/better-sqlite3
> prebuild-install || npm run build-release
> @discordjs/opus@0.3.2 install /app/node_modules/@discordjs/opus
> node-pre-gyp install --fallback-to-build```
#

it keeps saying this

#
node-pre-gyp WARN Pre-built binaries not found for @discordjs/opus@0.3.2 and node@12.0.0 (node-v72 ABI, glibc) (falling back to source compile with node-gyp) ```
opal plank
#

glitch

#

bad

earnest phoenix
#

glitch does not allow hosting discord bots anymore

delicate shore
#

it does

earnest phoenix
#

your project will get terminated sooner or later

delicate shore
#

ok

#

i am shifting to DO anyways

#

next month

versed ravine
#

hey guys, anyone know how to handle bot disconnected from voice channel error in javascript? because everytime i force disconnected my bot from voice channel, itu just crashing the node js

#

nvm thanks

void vale
#

👀

delicate shore
#

i need help

#

see

#

my console say this

#

my bot wont go on

#

it has been over 2 hrs

earnest phoenix
#

what are you even doing

#

that is referencing cpp files

delicate shore
#

wym

#

i am not doing anything

#

glitch is doing this

opaque eagle
#

@delicate shore invest in a VPS instead of using glitch

delicate shore
#

I KNOW

#

but what to do now

#

i said i am shifting

#

from next month

opaque eagle
#

just move it up a month and do it now

delicate shore
#

i am shifting to DO anyways
@delicate shore

opaque eagle
#

why fix dumb glitch problems now if you're gonna transition to DO in a month

delicate shore
#

just move it up a month and do it now
@opaque eagle i already pai glitch

#

paid*

opaque eagle
#

LMFAO

#

you PAID for glitch?

delicate shore
#

YES

opaque eagle
#

why

#

what "features" did you pay for

delicate shore
#

app on

#

2*7

#

24*7

opaque eagle
#

LMAO

#

instead of opting for like a $5/mo VPS

delicate shore
#

this is my second month

#

with glitch

plain gazelle
#

?tag hosting

#

?tag

delicate shore
#

.../0.3.2/node_modules/@discordjs/opus install: CC(target) Release/obj.target/libopus/deps/opus/celt/celt_lpc.o

plain gazelle
#

?tag hosting

sudden geyser
delicate shore
#

it keeps installing this

digital ibex
#

im dead

#

lmfao

earnest phoenix
#

how i can make uk to UK

opaque eagle
#

is it a voice bot? @delicate shore

#

what language @earnest phoenix

earnest phoenix
#

js

digital ibex
#

im sorry but imagine paying for glitch kek

opaque eagle
#

String.prototype.toUpperCase()

#

so like "ok".toUpperCase() yields "OK"

#

"HeLlO tHeRe".toUpperCase() yields "HELLO THERE"

delicate shore
#

nvm it is working

digital ibex
#

lmfaoooooooooooooooooo

#

im dyinnggg

#

ahahahfahgfa

#

im dead seriously

#

btw, cancel ur subscription and buy a vps, pls

solemn latch
#

Rule 1

digital ibex
#

?

#

oh

#

:(

#

sorry

crimson vapor
#

dont be a dick is rule 1 right?

digital ibex
#

yes :(

solemn latch
#

Also rule 3, trash talking

earnest phoenix
#

So when I get to the downloading part for my bot.... and I need to download the coding apps..... can I get any of them on iPhone 7??

viral spade
#

With discord.js, can i safely, without api limits or crazy cpu time or anything, remove multiple roles from all users at once? Assume a guild with 100.000 members.

solemn latch
#

That would probably be considered api abuse

misty sigil
#

thats the definition of api abuse

solemn latch
#

Djs would stop you hitting those ratelimits sure. But discord would still probably notice pretty quickly

cinder patio
#

Linkc, you can remove multiple roles with one API call as far as I know

earnest phoenix
#

Is it possible to get a guild's id from a User object instead of a Member object in discord.js

#

So when I get to the downloading part for my bot.... and I need to download the coding apps..... can I get any of them on iPhone 7??

cinder patio
#

Auric, users are not connected to guilds, so no

earnest phoenix
#

oh ok

#

that makes sense tbh

honest perch
#

Is it normal for lavalink to keep reconnecting

solemn latch
#

@earnest phoenix you probably can code on an iPhone 7.
But 99% of people code on desktops/laptops.
So most people won't be much help

earnest phoenix
#

Oh....ok

pure lion
#

(frontend) I want to use a forEach loop to make children of a <select> tag

honest perch
#

This cant be normal

#

@torn ravine you have lavalink mmulu

torn ravine
#

ya

#

oh GOD

#

where is your lavaserver hosted

honest perch
#

Galaxygate

#

But I think i did a fuck up with the bot

#

Not sure

torn ravine
#

what lavalink server version are you using

honest perch
#

The most recent

earnest phoenix
#
        const country = JSON.parse(respounse.body).Countries.find(c => c.CountryCode === code)
#

why not wokring

pale vessel
#

you ask me

earnest phoenix
#

everyone who saw this

pale vessel
#

no, what do you mean by "not working"

#

you can't simply say that

torn ravine
#

is Countries even defined?

pale vessel
#

come on

earnest phoenix
#

yes

#

it is

#

defiened

torn ravine
#

as what?

pale vessel
#

you didn't even tell us if there's an error or anything

torn ravine
#

also you didn’t seem to tell us what the problem is

earnest phoenix
#
"Countries": [
    {
      "Country": "ALA Aland Islands",
      "CountryCode": "AX",
      "Slug": "ala-aland-islands",
      "NewConfirmed": 0,
      "TotalConfirmed": 0,
      "NewDeaths": 0,
      "TotalDeaths": 0,
      "NewRecovered": 0,
      "TotalRecovered": 0,
      "Date": "2020-04-05T06:37:00Z"
    },
]
misty sigil
#

respounse?

earnest phoenix
#

for exanple

pale vessel
#

and what code did you provide?

torn ravine
#

what’s your error?

earnest phoenix
#
        if (!country) return message.channel.send("Couln't find the country code. For example United kingdom is `UK`")
#

when i search for AX

#

it return not found

pale vessel
#

what api even is that

earnest phoenix
torn ravine
#

looks like a covid 19 api

#

knew it

earnest phoenix
#
https://documenter.getpostman.com/view/10808728/SzS8rjbc?version=latest
#
        const country = JSON.parse(respounse.body).Countries.find(c => c.CountryCode === code)
weak rain
#

client.on("guildMemberAdd", async (member) => {
  let channel = db.get(`welchannel_${member.guild.id}`);
    if (!channel) return;
 
   let data = await canva.welcome(member, { link: "https://wallpapercave.com/wp/wp5128415.jpg" })
 
    const attachment = new Discord.MessageAttachment(
      data,
      "welcome-image.png"
    );
  let wembed = new discord.MessageEmbed()
  .setColor("RANDOM")
  .setImage("attachment://welcome-image.png")
  .setThumbnail(member.user.avatarURL)()
  .setDescription(`** Welcome <@${member.user.id}> To our Server** 
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
**Make sure to**
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
**Read and Follow our Rules.**
**Be upto date with our announcements.**
**Make new friends in the chat and be active.**
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
**We hope that u have fun in the server!**`);
  client.channels.cache.get(chx).send(wembed)
 }
)};
                
client.login(token)```
Hi this is my code its saying Unexpected Token
earnest phoenix
#

so how i can fix this dude

#

@weak rain how did u defiened ur token ?

#

let token = ?

opaque eagle
#

@weak rain show us the full error message

weak rain
opaque eagle
#

Also what database lets you retrieve information synchronously lol

earnest phoenix
#

show error

slender thistle
#

.setThumbnail(member.user.avatarURL)()

weak rain
#

@opaque eagle quick

opaque eagle
#

oh

earnest phoenix
#

LMAO

torn ravine
#

@earnest phoenix thats not what token means

opaque eagle
#

^

torn ravine
#

in this case anyway

earnest phoenix
#
        const country = JSON.parse(respounse.body).Countries.find(c => c.CountryCode === code)

Still doesnt know why it not finding

weak rain
#
    at Module._compile (internal/modules/cjs/loader.js:703:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at Function.Module._load (internal/modules/cjs/loader.js:555:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:826:10)
    at internal/main/run_main_module.js:17:11```
pale vessel
#

how did you define code

earnest phoenix
#
    const code = args[0].toUpperCase();
pale vessel
#

console.log(code) after it

earnest phoenix
#

ok

weak rain
pale vessel
pure lion
#

HMMMM

weak rain
#

hm

#

removed

pale vessel
#

don't just remove

pure lion
#

Ya think Bun?

#

:e

pale vessel
#

add it back but not there

torn ravine
#

lol

earnest phoenix
#

AX

pale vessel
torn ravine
#

Xd

pure lion
#

"mongo is ready" yooooo

earnest phoenix
#

?

#

@pale vessel any idea

weak rain
#

;-;

pale vessel
#

what's the api

torn ravine
#

thunderdev did you get it?

weak rain
#

still their

#

@torn ravine na

earnest phoenix
#

u mean the api link ?

torn ravine
#

where did you put it?

earnest phoenix
#
https://api.covid19api.com/summary
https://documenter.getpostman.com/view/10808728/SzS8rjbc?version=latest
solemn latch
#

avatarURL is a function

weak rain
sonic lodge
#

isn't it .displayAvatarURL()

torn ravine
#

good congratulations

earnest phoenix
#

yey

solemn latch
#

Display avatar url is a seperate function @sonic lodge

torn ravine
#

is actually correct

weak rain
#

but its still saying undefined

pale vessel
#

@earnest phoenix console.log(JSON.parse(response.body).Countries)

torn ravine
#

@weak rain whats undefined

solemn latch
#

Undefined would be a seperate error @weak rain

earnest phoenix
pale vessel
weak rain
#

@solemn latch token @torn ravine

torn ravine
#

hm

weak rain
#

now unexpected token

torn ravine
#

@weak rain use a syntax validator

weak rain
#

how?

torn ravine
honest perch
#

ok @torn ravine i think that worked

torn ravine
#

did it

honest perch
#

i think

#

i havent received any reconnection yet

#

so i take that as a win

torn ravine
#

try playing the duck song

honest perch
#

works™️

torn ravine
#

lol

honest perch
#

tf is this

#

hey bomp bomp bomp

#

waddle waddle

pale vessel
#

Music Boat ModBoat Thonk

honest perch
#

yes its a boat

#

with music

earnest phoenix
#

@pale vessel crying crying notlikenoot

torn ravine
#

yes

#

getting a little off topic

earnest phoenix
#

How ur theme

#

how

honest perch
#

pff imagine having a selection menu

pale vessel
#

jailbreak moment

torn ravine
#

my phone

#

is hacked

earnest phoenix
#

Lmao

#

@torn ravine ur IOS ?

#

or Android

honest perch
#

ios

pale vessel
#

he is not iOS

torn ravine
#

iPhone

honest perch
#

literally ios

pale vessel
#

bruh if6 is an iphone

earnest phoenix
honest perch
earnest phoenix
#

im done

honest perch
#

so mods dont yell

pale vessel
#

okay yeah

weak rain
#

validator is also saying unexpected token

torn ravine
#

then there’s something wrong with how you structured your code. check what lines is causing the error

weak rain
#

last line

torn ravine
#

yea?

#

what about it

pure lion
#

ᕕ( ᐛ )ᕗ

#

( ᕗᐛ ᕕ)

amber fractal
#

wrong place

honest perch
#

@torn ravine out of curiosity

torn ravine
#

ya?

honest perch
#

how often is it supposed to reconnect

#

if no one is listening

torn ravine
#

I don’t think it’s supposed to keep reconnecting.

honest perch
#

got it

torn ravine
#

my bot doesn’t reconnect at all

honest perch
#

then mine is broken

#

this shouldnt impact it right?

earnest phoenix
#

can we host lavalink in one server

#

and host ur bot in another

#

?

#

yes

#

:0

#

i am so stupid

#

lavalink is a webserver wrapping around lavaplayer

#

why i didnt think about it

weak rain
#
 const attachment = new discord.Attachment(image.toBuffer(), "welcome-image.png");```
earnest phoenix
#

How i can make a object in .env

weak rain
#

it is giving error

#

@earnest phoenix u using glitch?

earnest phoenix
#

nope

weak rain
#

okay

#

its giving error that image is not defined

tight plinth
#

use dotenv

#

its giving error that image is not defined
@weak rain wel its not, so define it

weak rain
#

how?

#

🥴

tight plinth
#

do you even know what youre doing

weak rain
#

i m making it from package

tight plinth
#

you dont seems to copy paste the entire example

earnest phoenix
#

where did you steal that code from

#

lmfao

weak rain
#

thats a package

#

I had my old code

earnest phoenix
#

you're defining your canvas thing as one thing then trying to use it as another

weak rain
#

but now i mixed it

delicate shore
#

yo

earnest phoenix
#

look at your code

delicate shore
#

does vps supports local

#

databases

pure lion
#

Gween

delicate shore
#

quick.db?

tight plinth
#

yes

pure lion
#

Ye

earnest phoenix
#

why wouldnt it, pgamer

delicate shore
#

because heroku dont

earnest phoenix
#

heroku isn't a vps

pale vessel
#

heroku isn't a-

solemn latch
#

Heroku and glitch are abnormal platforms

pure lion
#

A vps is basically computer that you don't physically own

delicate shore
#

yep

earnest phoenix
#

it's a virtual machine

delicate shore
#

i am gonna purchase a vps

#

next month

earnest phoenix
#

Hey

delicate shore
#

as soon as my glitch second month membership finish

#

hi

earnest phoenix
#

anyone can send me the link for lavalink

pure lion
#

Also heroku and glitch aren't vps's, they're, by definition, shit :D

earnest phoenix
#

like the folder and exmaple

#

google exists

delicate shore
#

op

pure lion
tight plinth
#

github smh

earnest phoenix
#

search it yourself

#

Also heroku and glitch aren't vps's, they're, by definition, shit :D
@pure lion
does that mean my dedi server is also shit :(

pure lion
#

Idk does it?

misty sigil
#

no

#

dedis are epic

earnest phoenix
#

tfw your school has an unused rack

#

like they don't use the servers for anything

#

it used to be a host for our moodle instance but that died

pale vessel
#

i'm sure they won't mind you stealing one

earnest phoenix
#

probably

#

i hope

pure lion
#

What's moodle

#

:/

pale vessel
#

just google ffs.

#

smh

delicate shore
#

in my server stats coommand

#

it says owner is @delicate shore

#

but i want it to say

#

PGamerX# my tag

#

${msg.guild.owner}

#

this is what i use

earnest phoenix
#

so... just construct it?

still merlin
#

Can I have some help please- My eval command has been grayed out and I get a error

delicate shore
#

mmm?

earnest phoenix
#

look up the docs to find out the respective properties

delicate shore
#

Docs of?

#

i mea topic

#

mean

faint prism
#

I think GuildUser's ToString is username#discrim

pale vessel
#

that break lmao

earnest phoenix
#

why do you have a switch inside of a switch @still merlin

faint prism
#

so... just construct it?
But you can just construct it like ^ said

weak rain
#

@still merlin GWnekomakiAngeryBOYE

delicate shore
#

But you can just construct it
@faint prism hmmm?

weak rain
#
client.on("guildMemberAdd", async (member) => {
  let chx = db.get(`welchannel_${member.guild.id}`);
  //Better :)
  if(!chx) return;
  //Canvas code

   let data = await canva.welcome(member, { link: "https://wallpapercave.com/wp/wp5128415.jpg" })
 
    const attachment = new discord.MessageAttachment(
      data,
      "welcome-image.png"
    );

 
 let wembed = new discord.MessageEmbed()

  .setColor("RANDOM")
  .setImage("welcome-image.png")
  .setThumbnail(member.user.avatarURL())
  .setDescription(`** Welcome <@${member.user.id}> To our Server** 
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
**Make sure to**
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
**Read and Follow our Rules.**
**Be upto date with our announcements.**
**Make new friends in the chat and be active.**
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
**We hope that u have fun in the server!**`);
  client.channels.cache.get(chx).send(wembed)
   });
 
client.login(token)```
#

not sending attachment

pale vessel
#

bro just use user#tag

weak rain
#

welcomer

earnest phoenix
#

help

#

i can't find the lavalink folder

#

have you considered it's because you aren't sending the attachment @weak rain

#

install

#

pls give me link

weak rain
#

@earnest phoenix so what to do

earnest phoenix
#

send the attachment

pure lion
#
            let GUILDS = guilds.forEach(async (g) => await Guild.findOne({ guildID: g.id }));

            res.render('index.ejs', { userObj: user, userGuilds: GUILDS })
```how would i get the data from the forEach?
faint prism
#

@delicate shore You just find where username and discriminator are in the msg.guild.owner object and make your own string with it

earnest phoenix
#

So i've made a tic tac toe game and i've got reaction collectors and i made a 30 second timer, to end the game due to inactivity, but this does not work... Am i doing this timer wrong?

let timer = 30000;
			
			let CInterval = setInterval(() => {
				timer -= 1000;
				}, 1000);
									
			let FirstCollector = setTimeout(() => {
				if(timer === 10000){
					tttEmbed = new Discord.MessageEmbed()
					.setColor("#ff0000")
					.setTitle(`${mDR} move`)
					.setAuthor(`It\'s ${currentPlayer.user.user.username}\'s turn! (${currentPlayer.identifier})`)
					.setDescription(`You got 10 seconds to move\n${boardTemplate}`)
					.setTimestamp();
					mainMessage.edit(tttEmbed);
					} else {
						//Nothing
						}
						}, 21000);
						
						let SecondCollector = setTimeout(async () => {
							if(timer === 0){
								await tttCollector.stop();
								tttEmbed = new Discord.MessageEmbed()
								.setColor("#ff0000")
								.setAuthor("Times up!")
								.setDescription(`${currentPlayer.identifier === "X" ? player2.user.user.username : player1.user.user.username} wins because ${currentPlayer.user.user.username} did not make a move in 30 seconds!\n${boardTemplate}`)
								.setTimestamp();
								
								return mainMessage.edit(tttEmbed);
								} else {
									//Nothing
									}
									}, 31000);```
#

how are all of you so incompetent you literally have tools to help you with your development at disposal

pure lion
#

:e

weak rain
#

send the attachment
@earnest phoenix where

#

please tell

earnest phoenix
#

docs exist

weak rain
#

;-;

#

u can tell too

earnest phoenix
#

no i cannot

#

im Jared, 19

#

@earnest phoenix got any ideas

#

About the issue i got

pale vessel
#

jared 👀

earnest phoenix
#

it's a pain to read on mobile

#

Well i code on mobile tho

pure lion
#

jaREAD

earnest phoenix
#

Oof

midnight blaze
#

Jared the guy who makes youtube tutorials?

pale vessel
#

subway moment but never mind

pure lion
#

jared the guy from the war film

earnest phoenix
#

jared the vine, uncultured smh my head

pure lion
#

jarhead

earnest phoenix
#

Bruh making the entire tic tac toe game was easier than implementing a timer for it to determine inactivity and end

#

Lol

#

What the....

weak rain
#

Puck

earnest phoenix
#

Emilia best

#

pls send me the lavalink install link

#

i cant find the install link

#

._.

#

nobody ?

#

lavalink also isn't install based

#

it's drag and drop

#

ok i am searching for 30min

#

and didnt found the lavalink folder

#

the folder

#

i found it within 15 seconds on the first result

#

yes

#

this but

#

this is not the folder that i mean

#

have you tried looking to the side and clicking on the tab that literally fucking says Releases

#

:0

#

they also explain where to get the binaries in the readme

pure lion
#
            let a = new Map()

            let index = 0

            guilds.forEach(async (g) => a.set(++index, await Guild.findOne({ guildID: g.id })));

i want to put all the guilds into the map but it remains empty

earnest phoenix
#

the thing that i mean is the CL server

honest perch
#

what are you on about

#

let me go through this in 20 seconds

#

download this https://github.com/Frederikam/Lavalink/releases/tag/3.3.1.1

#

drag it into the server

#

fill out this https://github.com/Frederikam/Lavalink/blob/3.3.1.1/LavalinkServer/application.yml.example

#

run java- jar Lavalink.jar

#

magic

pure lion
#

how do i:
get data to a vps
disconnect myself from said vps

honest perch
#

you can sftp

#

to drag files

pure lion
#

its a debian - cli system thing

honest perch
#

yes

#

sftp

pure lion
#

i t h i n k

#

okay, how?

faint prism
#

cat yourfile | nc :^)

honest perch
#

you can also do it command line

#

but sftp is faster and easier imo

#

if you have the gh student pack you can install termius

faint prism
#
put yourfile```
lusty quest
#

@pure lion get a FTP Client like Filezilla, WinSCP and use your SSH credentials for logging in

earnest phoenix
#

can i use lavalink hosted with py lang for djs bot

tight plinth
#

lavalink hosted by py wdym

earnest phoenix
#

nvm

#

i dumb

sick fable
#

I need a verified developer role

#

Can anyone help me?

digital ibex
#

no

sick fable
#

Ok

night bridge
#

if i cant use ../../Dir/File
what should i use?

faint prism
#

Why wouldn't you be able to?

night bridge
#

it respond with file/directory not exist

#
        let fs     = require("fs");
        fs.readFile(`${__dirname}../../Database/Toram/build.txt`,'utf8',function(err,data){
            console.log(data);
        });

here example

faint prism
#

Does two directories up from "Dir/" exist?

night bridge
#

it exist

golden condor
#

@night bridge put a slash after ${__dirname}

faint prism
#

^

night bridge
#

sorry that ${__dirname} is error one

golden condor
#
        let fs     = require("fs");
        fs.readFile(`${__dirname}/../../Database/Toram/build.txt`,'utf8',function(err,data){
            console.log(data);
        });

faint prism
#

So what dir do you want

night bridge
#

how to make it read from index.js?

golden condor
#

Anyone know any free translate APIs ? Google translate API doesn't work for me since I don't have a card.

earnest phoenix
#

Yandex translate?

#

It's free to use

tight plinth
#

no

earnest phoenix
#

Bad?

tight plinth
#

its not free

earnest phoenix
#

wat

#

i was using it :/

opaque seal
#

Can I advertise whatever I want in a discord server? I mean, is there any official Discord rule against advertising in servers/DMs?

golden condor
#
  1. Yes, 2. No
opaque seal
#

No rules?

tight plinth
#

there is no rule against advertisements in ToS, but its almost sure theres rules against it in servers rules

opaque seal
#

Ok thanks

#

That's what I needed

digital ibex
#

you cant dm people ads

#

thats against tos @opaque seal

opaque seal
#

Ok

#

I'll keep that in mind

opal plank
#

actually

#

one sec

#

i may have something

solemn latch
#

Tos?

opal plank
#

@opaque seal

#

that might fall into it

opaque seal
#

But that's referred to DMs right?

opal plank
#

i assume that refers to guilds and DM's

#

it doesnt specify either

#

so i assume its the whole platform

pure lion
#

i want it to push each guild into a map but it always returns empty

#
            let a = new Map()

            let index = 0

            guilds.forEach(async (g) => a.set(++index, await Guild.findOne({ guildID: g.id })));
opal plank
#

forEach

#

Reeee

pure lion
#

yeah ive done Map.set x)

solemn latch
#

Isnt the guild Manager already a collection, which is already a map

opal plank
#

for (g of client.guilds) Function

opaque seal
#

so i assume its the whole platform
@opal plank doesn't make much sense

pure lion
#

but i want a l l of the guilds

#

also its getting it from oauth

opal plank
#

@opaque seal unsolicited marketing, thats ads

pure lion
#

so ye

opaque seal
#

@opaque seal unsolicited marketing, thats ads
@opal plank yeah but if my server it's made for my product,then I can advertise it in my server I guess

#

Maybe tho I can't in other servers

opal plank
#

you are the owner

#

¯_(ツ)_/¯

digital ibex
#

no...

solemn latch
#

If its your own server, it's solicited

opaque seal
#

Ok

solemn latch
#

🤔

digital ibex
#

in other servers, no

faint prism
#

nothing wrong bit a bit o' lambda

digital ibex
#

@pure lion did u get it working?

pure lion
#

not sure

digital ibex
#

?

opal plank
#

Looks, im giving you a general sense of what we know.
you gotta know that:
A. we arent lawyers
B. Discord staff is who judges who takes a ban or not

pure lion
#

it wont set it into the map

digital ibex
#

why r u setting it to a map?

pure lion
#

there goes my net

#

yaaaaaaaaaaaaaaaaaaaaaay

#

woot woot

digital ibex
#

net?

opal plank
#

why u mapping something thats mapped already?

solemn latch
#

We are catching butterflies rip net

#

The butterflies took the net

earnest phoenix
#

why the voice channel is not existing

#
        const voiceChannel = message.member.voice.connection;
        if (!voiceChannel) return message.channel.send("You need to be in a voice channel to play music.");

opaque seal
#

Looks, im giving you a general sense of what we know.
you gotta know that:
A. we arent lawyers
B. Discord staff is who judges who takes a ban or not
@opal plank yeah I need to ask someone who knows this stuff, idk who tho

digital ibex
#

signs..

opal plank
#

@opaque seal like i said, Ddevs

valid frigate
#

mate

#

you don't need to define voiceChannep

opal plank
sudden geyser
#

is voice.connection a thing

opal plank
#

thats the official discord

sudden geyser
#

you're probably looking for voice.channel

opal plank
#

do ask them about it

misty sigil
#

its discord.messagembed

valid frigate
#

just use if (!message.member.voice.connection)

near ether
#

how can i check if my bot has specific perms to do something in a specific channel?

sudden geyser
#

what library

near ether
#

djs

valid frigate
#

you can't place parameters inside the richembed constructor

pure lion
#

why u mapping something thats mapped already?
i want all of the guilds by ID and model.find() doesnt work like that so yeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

valid frigate
#

aka new RichEmbed(a) will not work

opal plank
near ether
#

thank you!!

opal plank
#

you prob wanna check for FINAL

#

rather than guild perm

near ether
#

gotcha

opal plank
#

to account for channel overrides

digital ibex
#

@pure lion just like: js for (const guild of <Guilds>) { res.render('something', guild); }

#

whats confusing?

near ether
#

yea thats like the main thing im worried about, my bot checks for role perms but not channel overrides and i need to change that to avoid getting ratelimited

#

thanks for the info!

opal plank
#

np

pure lion
#

(node:22964) UnhandledPromiseRejectionWarning: TypeError: Guild is not iterable
@digital ibex

#

e

digital ibex
#

what is Guilds ?

pure lion
#

its the model

#

i sense 🗿

digital ibex
#

you done oauth to display the users guilds, the <User>.guilds

sudden geyser
#

are you using discord.js v12

faint prism
#

Make it a list or array or something iterateable

digital ibex
#

the guilds is iteratable

#

but he's doing the wrong thing

pure lion
#

lost, i already know how to get from oauth and display the data but i want to the get matching data from the mongodb and display that

faint prism
#

he's trying to iterate over a Guild not Guild[] (or whatever collection)

digital ibex
#

showing the users guilds has nothing to do with a database, or shouldnt at least

pure lion
#

but i want it to

#

oauth data => search mongodb => display mongodb data

karmic compass
#

turns out setRandomInterval takes up dyno hours

#

woops

#

wc

digital ibex
#

you're just using unneeded storage, just get it from the cache

#

with like

#

1k users in ur db, thats gonna make a difference

#

ur bot is here, its gonna make a difference with speed of the query

#

wut

pure lion
#

ok basically

digital ibex
#

apart from because u want it to, why do u want to store the users guilds?

pure lion
#

i want to get the premade guild info (that was set on guild create) and display all the guilds that: 1 the user is in and 2 the bot is in too (also the db holds the prefix and booleans and shit)

digital ibex
#

thats where express comes in

pure lion
#

yesexactly

coarse hearth
#

O

digital ibex
#

you're gonna need a url something like /guilds/:serverID

#

still dont see the point using database

pure lion
#

wha

#

i am very confused

solemn latch
#

Getting the prefixes and stuff, for settings for the guild

pure lion
#

yes woo?

#

what do you need to know to write a bot?
a coding language and more competency than me

digital ibex
#

wait actually

pure lion
#

ohboy

digital ibex
#

is ur bot and dashboard running on the same process?

pure lion
#

nope

digital ibex
#

ah

pure lion
#

i told you, different files and shit

digital ibex
#

what does ur model look like now?

#

ur user model

pure lion
#

im not accessing that

#

just guild

digital ibex
#

w-

pure lion
#
const mongoose = require('mongoose')

const guildSchema = mongoose.Schema({
    guildID: {type: String, unique: true, index: true},
    prefix: String,
    w_gChannel: String,
    w_msg: String,
    g_msg: String,
    w_enabled: Boolean,
    w_enabled: Boolean,
    XPtotal: Number,
    XP: Boolean,
    XPmsg: Boolean,
    info: Boolean,
    ping: Boolean,
    poll: Boolean,
    uptime: Boolean
  })

module.exports = mongoose.model('Guild', guildSchema);

heres the model btw

#

:)

lusty quest
#

you can get the guild with oauth

pure lion
#

*has a stroke and fucking dies*

digital ibex
#

use a database

pure lion
#

you can get the guild with oauth
i am very aware

lusty quest
#

@earnest phoenix look into partials

digital ibex
#

dice... where are you looking to store the users guilds then?

faint prism
#

Hmm, see, I've been meaning to save the GuildId as well. I bet sorting with that in mind would increase the return speed

solemn latch
#

The users guilds are gotten when the user identifies themselves.
Discord will give it to him @digital ibex

earnest phoenix
#

So i've got a reaction collector and timeouts inside it, there's 2 time outs set with setTimeout() but these timeouts only run once and they won't run after another reaction is received, what can be the fix for this?

faint prism
#

Anyone hosting their Discord bot on their own network?

digital ibex
#

yeah

#

ok well

#

im confused, do u want to store the users guilds or? @pure lion

lusty quest
#

i have a bot that got reactions on messages, the reactions also trigger after a restart and with no time limit

earnest phoenix
pure lion
#

dice... where are you looking to store the users guilds then?
im getting the users guilds from oauth and then querying to find said guilds (by id, from mongoose)

faint prism
#

I ordered a Rasp pi 4b to act as a dedicated server for my bot. Tired of leaving my PC on for the VM to run

digital ibex
#

mongoose and discord have nothing to do with each other

#

not related at all

pure lion
#

i k n o w

lusty quest
#

partials and AddReaction event

pure lion
#

asdfjoadihgkoijudfsghiosg

#

asedkhnjoaasdfhuijoasdfbhijouasdfgbhijoasdfgbhijoasdfgbhijkoadfbhnjk

digital ibex
#

you need to store it in ur database

pure lion
#

edcrfvbghijklnt asedcrbfghijknotuv\asedrfgitvbuaegrtv5\sibuegraiubadgsiubvgsadiuydsbfgvg

quasi hearth
#

what is green_light? @earnest phoenix

solemn latch
#

He already is storing it

#

Lmao

earnest phoenix
#
{
    "green_light": "#a1ee33",
}
digital ibex
#

then just like

#

tbh

#

im confused af

#

just

solemn latch
#

He is trying to fetch it from his database using the list of ids oauth gave him

pure lion
#

t h a n k w o o

solemn latch
#

But he is having trouble with that map

pure lion
#

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

digital ibex
#

ah

quasi hearth
#

https://discord.js.org/#/docs/main/stable/typedef/ColorResolvable

  • you need to convert that to a number or rgb array @earnest phoenix
earnest phoenix
#

wut

quasi hearth
#

"#a1ee33" is not a valid color

earnest phoenix
#

that never happend before

quasi hearth
#

simply change it to 0xa1ee33 or something

pure lion
#

*sips 100% caffeine coffee*

digital ibex
#

@pure lion so, you've got the users guilds & trying to display them?

lusty quest
#

why should partials not work?

digital ibex
#

if im correct?

faint prism
#

"#a1ee33" is not a valid color
@quasi hearth
Use [161, 238, 51]

pure lion
#

@digital ibex with the foreach i was logging every guild on the db and i wanted to display that but im not sure how to get them all together (also theres like 70 nulls)

earnest phoenix
quasi hearth
#

nvm i guess

faint prism
#

hm

quasi hearth
#

what does console.log(green_light) log

pure lion
#

i need a drink omg

earnest phoenix
#

i don't know waht is happned with djs

digital ibex
#

why is there 70 nulls?

#

btu anyways

#

nvm that quetion

earnest phoenix
#

@quasi hearth dude i tried with the actual value

#

but still dark

pure lion
#

because it looking for something that doesnt exist and idk how to filter

solemn latch
quasi hearth
#

@earnest phoenix try logging the value of green_light. There might be an issue with that.

earnest phoenix
#

no i logged

#

it is good

quasi hearth
#

hmm

solemn latch
#

in this case, its a bit different(your bots on a separate process). but the general concept is the same

pure lion
#

@solemn latch thats one ID, i want to find all at once

digital ibex
#

Model.find()

pure lion
#

Model.find()
its a different ID each time, not the other way round

quasi hearth
#

You need to fetch the messages i think @earnest phoenix

lusty quest
#

if you restart your bot all messages are released from the cache. To cache them again Fetch them @earnest phoenix

sonic lodge
#

you also need to use partials so that the event is emitted for reactons on messages that aren't cached

lusty quest
#

told him to use partials but he wont

digital ibex
#

model.find gets all the data in the db from that model

#

im confused af

#

i got shit to do

#

ima go

sonic lodge
#

why won't he use partials

faint prism
#

How would one run a set status after initial connection?

lusty quest
#

read the SO page maybe you get it

sonic lodge
#

does he want to resend uncached messages when a user reacts on it

#

you can use partials so that the event is emitted

solemn latch
lusty quest
#

with partials you get the message ID of the uncached message. then just fetch the message

pure lion
#

e

sonic lodge
#

there ya go

solemn latch
#

i'm doing something pretty similar with my dashboard, just with mysql, and an api, not directly to the db.

pure lion
#

*cries*

lusty quest
#

build a API and save a ton of time @pure lion

pure lion
#

ok, where can i learn to do that?

lusty quest
#

express.js

pure lion
#

*hits head on keyboard*

solemn latch
#

Lol

pure lion
#

which part?

#

fuck i dont want to be annoying again

lusty quest
#

hammer your head with the docs until you can say every word written in there out of your mind.

pure lion
#

im crying already

lusty quest
#

also i start hating canvas together with chart.js

pure lion
#

canvas ez

#

but asdghuoiuwdsgfiouhwrsiougsewiouagioudghoiuahiogu

#

fuck frontend

#

so much

#

i m u s t d o t h i s

lusty quest
#

i had it already working in a other bot. but i think either D.js-light fucks something up i dont see or my code is just shit

pure lion
#

send code i need distractions

lusty quest
pure lion
#

fuck it im starting from scratch as soon as ive helped

left lake
#

should i include racist slang in my bots global filter (filter i've configured for the bot) or let guilds do that themselves with a custom filter command already integrated into the bot

lusty quest
#

but the image in the embed is always empty

left lake
#

repost since i actually went to the right fuckin channel this time lmao

lusty quest
#

also i dont think its the data i pass to the renderer

#

since dummy data caused the same issue

pure lion
#

have you logged stuff or something

solemn latch
#

Global filters can suck.
I've kicked bots from servers for well intentioned chat filters

#

Global is fine, just make sure its disableable

lusty quest
#

@pure lion the data i want to use in the chart is valid. the embed also gets edited. but the image doesnt get rendered

left lake
#

it is disabled, and it doesnt cover that many words

#

(on default all options are disabled)