#development

1 messages · Page 1105 of 1

opal plank
#

bot CAN stream, its undocumented though

solemn latch
#

then it would be against tos then?

opal plank
#

likelyhood of you doing it? pretty slim

tranquil patrol
#

googled this code

faint prism
tranquil patrol
#
await discord.SetGameAsync("Overwatch", "https://twitch.tv/yourstreamhere", 
  StreamType.Twitch);
opal plank
#

nono

#

streaming type no

faint prism
#

that's just setting the status

opal plank
#

ACTUALLY streaming

faint prism
#

I want content streaming

opal plank
#

sending video

tranquil patrol
#

ah

#

gt it

opal plank
#

its possible, though undocumented

faint prism
#

I want to send it a byte stream

#

ugh

opal plank
#

bad idea

#

ToS

solemn latch
#

^

tranquil patrol
#

yes

opal plank
#

||if you do it, at least dont tell us bonkcat ||

#

i dont endorse it, though its a fun project(if you only plan on doing it for research, and not anything with purpose)

#

if you make a public bot to do it, im pretty sure they'll take it down without batting an eye

faint prism
#

hm

pure lion
#

Wait is there a way to stream video from a bot because I'd very much like to do that

opal plank
#

though i did see 2 or 3 people do it on Dapi

#

¯_(ツ)_/¯

#

no

#

for the sake of argument, there isnt

#

its undocumented and you should use it

faint prism
#

It's in private beta, not available publicly

opal plank
#

the name is 'undocumented'

#

not private beta

#

those endpoits are avaiable to be used

solemn latch
#

it may not ever be available for bots

opal plank
#

but they arent meant to be

solemn latch
#

or intended to be used by bots

pure lion
#

It's like an uninhabited island, it's there but nobody knows how to use it as an island

opal plank
#

there are

#

ive seen 3 people do it already

#

i wouldnt endorse doing it though

solemn latch
#

nice name

earnest phoenix
#

does anyone know how to make a folder in another folder on glitch?

pure lion
#

Yes

#

Do windows key + r

#

Run shutdown -i

slender thistle
#

Be helpful

pure lion
#

Because glitch is shit

#

Ok sorry

earnest phoenix
#

;o

pure lion
#

If you wanna make a new file on glitch you click the add file button

summer torrent
#

does anyone know how to make a folder in another folder on glitch?
@earnest phoenix click "New File"

pure lion
#

But please move to a vps asap because glitch bad

tranquil patrol
#

make the folder named /<parent>/folder

summer torrent
#

then folder/folder

earnest phoenix
#

ty

sudden geyser
#

that username...

summer torrent
#

also pls change your username

earnest phoenix
#

oh right oops

odd radish
#

how can i get veirfied on dbl

halcyon crow
#

@dusty isle 2795

dusty isle
#

Nice

dusty onyx
#

im tryin to make some code thats essentially for frames in gif1, where gif1 is a gif thats already saved to my computer and is constant, frames in frame list ive created where im creating a new frame list each time the command is run, are pasted in order onto gif1's frames, but i really dont know how to do the bit inside the or statement haha

opal plank
solemn latch
#

maybe he means the verified role

#

like the one tim has

opal plank
#

thats certification though

earnest phoenix
#

How can I let a button keep the same size even though im shrinking the browser?

#

@earnest phoenix

solemn latch
#

youd have to fix that buttons size to something static

#

a certain number of pixels

hardy steeple
#

im making an advanced command handler

#

f(command === 'help'){
Client.commands.get('ping').execute(message, args);
}

#

i have a file with the info for that command

#

but it says Cannot read property execute of undefined

#

i watched a vid and read the docs but cant fix it

#

anyone?

sudden geyser
#

it means .get(...) returned undefined, which means whatever you supplied could not be found in the collection

hardy steeple
#

wait

#

one sec, lemme try something

sudden geyser
#

You don't even need the if (command === "something") { client.commands.get("something").execute(...) } part. You can just supply the name of whatever the user entered and see if it exists.

opal plank
#

or be me

#
try {
client.commands.get(command).execute(message)
} catch {}
#

and just void the errors

earnest phoenix
#

delimit your lines with ;

#

the interpreter might be getting confused

sudden geyser
#

that looks quite spammy

rancid sand
#

what does the difference between .setStatus and .setPresence

pale vessel
#

you can only set the bot's status using setStatus e.g. online, dnd but you can set everything at once using setPresence e.g. activity and status

hardy steeple
#

im making a dice command that rolls a dice with the number of sides that you specify in the first argument

#

but, the argument isnt being recognized as the second part in the message

#

var number = Math.floor(Math.random() * args[1]) + 1
message.channel.send('You rolled a ' + number + '!')

#

is there a reason?

opal plank
#

erm

#

what is ur ags 0?

#

cuz, y'know, arrays start at 0

#

spit at Lua

hardy steeple
#

i know im asking it for the first argument

#

so for example

opal plank
#

then its not args[1]

hardy steeple
#

?

opal plank
#

arrays start at 0

hardy steeple
#

=roll 2

#

args 1 would be 2

#

or 0

opal plank
hardy steeple
#

im sorry im stupid dont mind me

opal plank
#

read what i said

#

very carefully

hardy steeple
#

args 0

opal plank
#

args is an array

hardy steeple
#

yeah

#

ok

opal plank
#

so

#

access the first thing in it

hardy steeple
#

args[0]

opal plank
#

there ya go

#

wasnt that hard, was it?

hardy steeple
#

im stupid okay you forgot to prepare for the fact that im dumb

opal plank
#

also check if its a number or not

#

otherwise that'll error

#

=roll NotANumber

#

ez log spam

hardy steeple
#

yeah i know

#

You rolled a NaN!

#

lol

solemn latch
slender thistle
solemn latch
#

He rolled a nan

honest plover
#

Hello im looking for a good eval command my current one is kinda bad. Thank you LeiHeartyLove

slender thistle
#

Well we won't really give you a ready code

sudden geyser
#

have you tried improving it, and/or looking for inspiration from others' functionality

honest plover
#

Yes

bright dove
#

ok I'm gonna start rewriting my help command from scratch, so if you see me attacking this channel don't worry 😅

#

see you soon

opal plank
#

define attacking

#

attacking as in:
i know js but i got stuck, i did my research for 30 minutes, didnt find anything and then came here as a last resort
or
im too lazy to try myself and everytime i get stuck i'll just ask you guys to fix it for me
?

slender thistle
#

Restort

bright dove
#

restort

#

lol

#

but last resort

#

gonna do my best to figure it out myself

opal plank
#

we dont mind helping as long as you try it at least

#

yikes

#

@slender thistle want some memes?

slender thistle
opal plank
#

dm's, trust me

slender thistle
#

Sure

earnest phoenix
#

Not erwin please check dms

#

@opal plank u there

opal plank
earnest phoenix
#

Answer dms pls

#

im desparate

opal plank
#

No one is going to work for free my man, if you decide to start developing your own bot we are happy to help here in #development

ember lodge
slender thistle
#

Is that in your index.ejs file

ember lodge
#

yes

#

index.ejs is the web's html

slender thistle
#

Remove the ./ part in the beginning

ember lodge
#

still nothing

delicate zephyr
#

check dev console

#

(F12)

#

and show us the server code

#

so that we know how your web service is running

ember lodge
#

that's the code, i use express mostroshrug

delicate zephyr
#

i know

#

hmmm

earnest phoenix
ember lodge
#

So...? Confused

delicate zephyr
#

Whats the folder structure you have currently

ember lodge
#

Well

#

All the website is located at /views

#

views/index.ejs
views/css/plugins
views/js

delicate zephyr
#

This is how I would do it

- /
  - views/
    - public/
      - css/
      - js/
    - index.ejs
#

and then you do

ember lodge
#

hmm ok

delicate zephyr
#
express.use(express.static(`${process.cwd()}/views/public`))
#

and then it should be available at

#

https://example.com/public/css/style.css

bright dove
#

I did a buncha code and thought it would work and I tested it and it did nothing, so I went to check the console and there's no error 🤔

#

well now there is

#

(node:7836) Warning: Accessing non-existent property 'category' of module exports inside circular dependency

#

I don't know why it'd say that though

#

category ain't a non-existent property

opal plank
#

prob you trying to access 'category' but it doesnt exist on one of your modules

#

name,
cooldown,
description,

#

that sort of stuff

bright dove
#

it's in all of them

opal plank
#

cant you trace it?

#

i forgot the trace command for node startup

#

one sec

#

--trace-warnings

bright dove
#

node --trace-warnings

opal plank
#

yeah, that

bright dove
#

but it just tells me that that doesn't exist

#

lol

opal plank
#

what is your whole argument line?

earnest phoenix
#

erwin he said to ask you cause u know more then him

bright dove
#

look thanks for the help but I probably need to stop... I started learning javascript less than a week ago and am trying things I have no idea how to do. I need to start from the beginning and actually learn

#

so uh

opal plank
#

w3school

#

start from the first page and skim thru them

#

after that its just experience

#

i started by trying a new thing using what i just learned

#

it did end up with 50 shitty poorly written scripts/commands but it was a good practice to fixate the new knowledge @bright dove

bright dove
#

knownledge KEKW

opal plank
#

giving advice and the cuck points out my grammar

bright dove
#

bruh

#

I had to

#

sorry 😹

opal plank
#

funfact, english isnt my first language

#

¯_(ツ)_/¯

bright dove
#

oop

earnest phoenix
#

Fun Fact*

opal plank
#

anyway

earnest phoenix
#

Oops Sorry Fun Fact:

#

anyways*

opal plank
#

do try w3Schools @bright dove

bright dove
#

yeeyee

earnest phoenix
#

Try w35schools @bright dove .

#

I'm gonna correct everything you say @opal plank .

opal plank
#

and im going to report you to the mods for being out of topic and annoying

earnest phoenix
#

I'm foinf to report you to the mods for being out of topic,annoying.

#

I am the grammar police fools.

fierce vector
#

Hey

#

So I have this

#
dbl.webhook.on('vote', vote => {
  console.log(`User with ID ${vote.user} just voted!`);
  bot.channels.cache.get("738863158994927637").send(`User with ID ${vote.user} just voted!`);
});
#

Before you say learn basic js

opal plank
#

go on

fierce vector
#

It's not logging anything in the console either

#

So I don't believe it's an issue with the bot.channels thing

opal plank
#

is your webserver/webhook running?

fierce vector
#

Yes

opal plank
#

on what?

fierce vector
#
dbl.webhook.on('ready', hook => {
  console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);
});

#

It logs fine

opal plank
#

did you link the webhook url in the top.gg website?

fierce vector
#

Oh

#

How would I do that?

#

I think I did, let me double check

opal plank
#

go to your bot page, edit, and look at webhook

fierce vector
#

Hm

#

I must have put the wrong IP maybe, idk

#

Do I put my Ipv4 address or?

opal plank
#

where are you hosting it?

fierce vector
#

Locally for now

opal plank
#

then it should be your ip

#

make sure port is fowarded and listening

fierce vector
opal plank
#

anything that has your ipv4

fierce vector
#

So it is my ipv4

opal plank
#

yes

#

since you using api, i think you should foward those questions to #topgg-api btw

#

they will know more than i do

fierce vector
#

Ok so I am using ipconfig in cmd

#

Thanks for your help btw

opal plank
#

no problemo

fierce vector
#

I'm on a wired connection

#

So do I go under ethernet>

opal plank
#

you should prob use that website up there

fierce vector
#

It can't detect my ipv4 address

opal plank
#

then use another website

#

or check our router page

#

usually routers have your ipv4 in display

fierce vector
#

Is it TCP?

#

Or UDP?

#

Or both?

#

I have it on TCP, is that maybe why??

#

@opal plank

opal plank
#

what

fierce vector
#

My port forwarding is on TCP

#

Do I have to put in on TCP/UDP

#

That's how it is for Minecraft

#

I'm just gonna try it

#

Now I just need someone to vote it to test

solemn latch
#

Theres a test button on your bots edit page

fierce vector
#

Still nope :/

#

What does the test button do

#

@solemn latch

solemn latch
#

Sends a webhook event

#

Same as any other

fierce vector
#

To my console?

#

I have no idea what I've done wrong

#

I port forwarded

#

Added the code

#

Added it to my bot's settings

solemn latch
#

Didn't you say it worked earlier?

fierce vector
#

Nope

#

It like logged that it was ready

#

And posted the stats

#

But the vote event doesn't work

karmic compass
#

if i have a message.mentions.users.first() and i want to check if it is a bot, how do i do so?

sudden geyser
#

The User class has a property called .bot to see if the user is a bot or not.

#

so just message.mentions.users.first().bot

karmic compass
#

would the variable + .bot work as well?

sudden geyser
#

yes, like if you saved it to a variable then did myVariable.bot

karmic compass
#

alright

#

does if(message.author.bot) return; work?

weak rain
#

Is their any good vps below 3$

sudden geyser
#

.author is an optional User instance, so yes.

karmic compass
#

alr

sudden geyser
#

optional as in it could or could not be undefined/null

karmic compass
#

i was more talking about the return part

sudden geyser
#

then yes

karmic compass
#

no {}'s are fine for that

#

alr

#

does the no bracket return always work?

weak rain
#

Anyone?

karmic compass
#

i dont got one sorry

#

for context would if(message.content.startsWith('something')) return; work or do i have to put in all of the other things?

bright dove
#

what are "the other things"

karmic compass
#

uh

#

if(message.contentjsdlfjskldfjs) {
return
} else {
other code
}

bright dove
#

o

#

if(message.content.startsWith('thingbob')) return; is fine

karmic compass
#

kk

#

because i have a logging system but i exclude a few things so cleaning it up like that would be nice

bright dove
#

although I'm pretty sure 'thingbob' is where you'd put your prefix, and in that case you'd want if(!message.content.startsWith('prefix')) return;

#

because the "!" means "doesn't" basically

#

so if message content doesn't start with the prefix, do nothing

karmic compass
#

i have a delete logging system so if the message starts with something i dont like to have in there, then don't put it in there

bright dove
#

ah

#

alright

karmic compass
#

if(message.content.startsWith('!deletethismessage')) return;

#

yeah

novel fable
#

Does anyone know what's going on?

Oops! Error: Client network socket disconnected before secure TLS connection was established

weak rain
#

Do disk storage matters?

faint prism
#

Are you going to be using a lot of storage?

#

And what type of data is being stored? @weak rain

delicate shore
#

People are removing my boy :(

#

Any way how to stop them ?

amber fractal
#

You cant just stop someone from removing it. You need to provide quality if you want them to keep it

delicate shore
#

Yes

#

I wanna ask what commands people like most

#

I added image manipulation

#

Economy

#

And much more

weak rain
#

And what type of data is being stored? @weak rain
@faint prism i want for bots

faint prism
#

Like the project itself?

weak rain
#

hm i just want to host bots

#

nothing else

#

nd 1 website i guess

faint prism
#

It really depends on what you include in your project. Usually small projects are really light-weight in filesize

weak rain
#

hm

faint prism
#

If you're taking about hosting your bot, that is another matter

weak rain
#

yes i m doing that

faint prism
#

So you're looking for something that will run your bot, but not from your computer? ie: a vps

weak rain
#

yes

#

vps

faint prism
#

Virtual private Server

weak rain
#

will skysilk work?

#

Virtual private Server
@faint prism jm

#

will this plan work

faint prism
#

Yeah, that looks pretty cheap!

#

The average is $5-15/month

weak rain
#

oh lol

faint prism
#

And the specs look fine

weak rain
#

shivaco uses this too so i think it will be good

#

as he is mod here and he is experienced

faint prism
#

Hopefully

weak rain
#

can i host multiple bots on this plan?

earnest phoenix
faint prism
#

If that isn't against the TOS

#

Then yeah

weak rain
#

@faint prism why would it be against?

faint prism
#

Idk

weak rain
#

kk

faint prism
#

It might not be

weak rain
#

hm

faint prism
#

🤷‍♂️

#

If you haven't copied files between two computers before, I recommend learning how to use a couple tools (maybe from a YouTube video): SSH (putty) and SFTP (filezilla)

weak rain
#

wdym

faint prism
#

Or use github if you know SCM with git

#

To get the project on the VPS

weak rain
#

i used glitch before

#

will have to import it right?

#

to GitHub

faint prism
#

If you want a SCM, then that's a good idea

weak rain
#

scm ?

faint prism
#

And Source Control Management is usually a good idea

weak rain
#

oh

#

:)

🙂

harsh moon
faint prism
#

It's like taking a snapshot (commit) for your code, so when you change it poorly, you can always go back and undo

slender hinge
#

no .catch?

faint prism
#

Your async thread thew an exception

harsh moon
#

I mean the error

faint prism
#

There is a deeper issue here

harsh moon
#

what line

slender hinge
#

68

harsh moon
#

I dont have an async

slender hinge
#

in 7 spaces

#

hm

#

uhh

#

post the entire error to a hosting site

harsh moon
#

msg.channel.send("you need to mention Name,Email,Hobby,Age, and Pet");

slender hinge
#

or something

faint prism
harsh moon
#

thats also a dissabled command?

earnest phoenix
#

No perms to talk

harsh moon
#

I have a perm checker

lusty quest
#

did you store the name and email? if yes make sure to encrypt the data

harsh moon
#

its an dissabled command and why encrypt?

lusty quest
#

bcs you store private informations?

harsh moon
#

it warns you that if you input the data your at fault for any leaks of info

lusty quest
#

this is not how it works

harsh moon
#

I have a disclaimer

lusty quest
#

yea but you store the data not the user

slender hinge
#

while havong a disclaimer is okay, you should still look into encrypting it since its sensitive data

harsh moon
#

I store the data and the user

slender hinge
#

although

#

if they use it its at their own risk

harsh moon
#

and my bot is ment to share the data you put in lol

lusty quest
#

ohh boy hope you dont get Verified for this bot.

#

if you get then a Databreach you probably get into some legal trouble

harsh moon
#

well im pending

#

Ic ant

#

canrt

#

cant

lusty quest
#

you can

harsh moon
#

I have a disclaimer

#

regarding legal issues

lusty quest
#

yea but a disclamer is no Free from Jail card if you have a databreach

harsh moon
#

the only legal issues are if the data got shared without the disclaimer

lusty quest
#

did you use a database for storing the informations?

harsh moon
#

its local

#

its not very secure

lusty quest
#

someone can still hack into your machine and grab the plaintext data

harsh moon
#

its not encoded or anything

earnest phoenix
#

REEEEEEEEEEEEEEEEE

lusty quest
#

and for verifying you are forced to have a secure storage

earnest phoenix
#

Eeeeeeeeeeeee

harsh moon
#

well how do I encode it?

lusty quest
#

how did you store it? if you say Json db GN

harsh moon
#

json

indigo oriole
#

almost 4

summer torrent
#

no

#

spoonfeeding is not allowed

harsh moon
#

so how do I encode the text?

lusty quest
#

@indigo oriole Rule 7A exist

indigo oriole
#

fine

#

then can someone help me

slender hinge
#

try looking up a tutorial on youtube

indigo oriole
#

i did

summer torrent
#

did you read my message

indigo oriole
#

all are out dated

lusty quest
#

lol the discord guide is pretty recent

slender hinge
#

try reading the docs also, they are updated ;)

summer torrent
harsh moon
#

found out how

lusty quest
indigo oriole
#

@summer torrent thanks

#

im restarting my bot to test it

weak rain
#

module.exports = {
  config: {
    name: "createrole",
    category: "info",
    description: "Creates roles",
    usage: "createrole <rolename>",
    accessableby: "everyone"
  },
  run: async (bot, message, args) => { 
  if (!message.member.hasPermission("MANAGE_ROLES"))
    return message.reply("I m sorry but You need Manage Roles permission to do that!");
  
let text = args.slice(1).join(" ");
  if (!args[1]) return message.reply("Please add the name of the role");
    const role = message.guild.createRole({
            name: text,
            color: "RANDOM",
            permissions:[]
          })
    let serverembed = new Discord.MessageEmbed()
    .setColor("RANDOM")
    .setThumbnail()
    .setAuthor(message.guild.name)
    .addField("Name", message.guild.name)
    .addField("ID", message.guild.id)
message.channel.send(serverembed);
message.channel.send('ok')
} 

}```
#

Why isnt this working

lusty quest
#

did you get an Error

earnest phoenix
#

What can be the reason for double response

lusty quest
#

2 active seasons

#

or nested events

earnest phoenix
#

Nah

#

I mean

#

There's nothing like that

lusty quest
#

?

indigo oriole
#

do const Discord = require('discord.js');

earnest phoenix
#

No nested things nor 2 active seasons

lusty quest
#

where did you host your bot?

indigo oriole
#

try my idea

lusty quest
#

what should it do @indigo oriole

earnest phoenix
#

I am just testing it in my pc

indigo oriole
#

he did "discord.js" he should do 'discord.js'

lusty quest
#

doesnt matter

#

is the same

indigo oriole
#

rly

lusty quest
#

yes

indigo oriole
#

o

earnest phoenix
#

smfh

pure lion
#

In jssj there are 3 ways to make a strig
``
''
""

earnest phoenix
#

welll

#

yes

blazing ravine
#

hi i need help if some1 can help me :?

summer torrent
#

show your code

blazing ravine
earnest phoenix
#

show the bot.login part

blazing ravine
#

let score = lifetime[6]['Score']

summer torrent
#

lifetime is undefined

blazing ravine
#

;/

#

in other bots working

#

without problem

summer torrent
#

console.log(stats)

blazing ravine
#

ok 1m

summer torrent
#

codes are not same smh

#

first one is stats.lifetime

blazing ravine
#

yes but 1min isend u full code that all work

summer torrent
#

but this is stats.solo

blazing ravine
#

check dm

mild flower
#

if (!Number.isInteger(clearnum)) return message.reply('Please specify a number')

#

how do i make it detect if arg[1] is a number or not

#

@ me

blazing ravine
#
          return msg.channel.send(
            "❌**Please enter a number of messages to clear! [Usage: f!clear <amount>]**"
          );
        msg.channel.bulkDelete(args[1]).then(() => {
          msg.channel.send(`**__Cleared ${args[1]} messages.__**`);
        });
#
      .toLocaleLowerCase()
      .substring(PREFIX.length)
      .split(" ");```
earnest phoenix
#

@mild flower use a module call is-number

#

@blazing ravine dont spoonfeed code

#

;)

blazing ravine
#

oh ok

mild flower
#

k

solid falcon
#

Hello, can someone create a code for me? Create progress bar download that can use in edit message

#

Using python

mild flower
#

...

#

thanks .isNaN() worked perfectly

restive pebble
#

@mild flower!isNaN(number)

mild flower
#

yes ik

summer torrent
#

@earnest phoenix do you really need that package for just this

#

isNaN() is enough

restive furnace
#

^

pale vessel
#

@mild flower use a module call is-number
@earnest phoenix KEKW

feral aspen
#

Hello Guys

#

I have a questions! 😐

#
const botconfig = require("../botconfig.json")
const colors = require("../colors.json");
const { promptMessage } = require("../functions.js")

const array = ["🙂", "😉", "😝"]

module.exports.run = async (bot, message, args) => {
        
    const helpEmbed = new Discord.MessageEmbed()
    .setTitle("Help Center")
    .setDescription('Add a reaction to one of these emojis to reach the help you are looking for!')
    .setColor("0x00FFFF")
    .setFooter(`Created by HamoodiHajjiri#3886!`, bot.user.displayAvatarURL())
    .setTimestamp();

    const m = await message.channel.send(helpEmbed)
    const reaction = await promptMessage(m, message.author, 60, array);

    const result = await getResult(reaction)
    await m.delete(helpEmbed)

}``` I have been creating a help command and people have to react to an emoji in order to get a specific help.
#

How should I do it where if they react with the first emoji, it will delete the help embed and send a new embed?

#

should I do a function? or

#

??

summer torrent
#

just edit it

feral aspen
#

but how to make the if thing

#

the if(reaction or something

#

if someone knows how to do the if statement, kindly ping me.. Ill be waiting

cinder patio
#

That's too advanced for most of us... no but seriously if you don't know how to write if statements then you should learn the basics of javascript first before making a bot

mild flower
#

@mild flower use a module call is-number

#

yea i was wondering about that

earnest phoenix
#

@summer torrent heuheuhueh

feral aspen
#

That's too advanced for most of us... no but seriously if you don't know how to write if statements then you should learn the basics of javascript first before making a bot
@cinder patio I know how man.

#

But I need help with it

#

How is it..

#

if() what. Please tell me how it's supposed to be inside.

#

And its not spoon feeding. Dont understand wrong

slender hinge
#

the layout is like

#

if(check something){
do stuff
}

#

so follow that

feral aspen
#

Ok.

weak rain
#

``` const warnlog = message.guild.channels.find(name, "logs");
if (!warnlog) return message.channel.send("Couldn't find logs channel.");

warnlog.send(dmsEmbed);```Not working :/

summer torrent
#

Elaborate

pale vessel
#

upgrade library

weak rain
#

hm this was my old code

#

now my lib is upgraded to v12

#

but i was wondering that will this work

#

but it isnt

#

@pale vessel can u help me what to do?

earnest phoenix
#

isnt it .chache.channels?

weak rain
#

its a old code @earnest phoenix

summer torrent
#

Any errors

feral aspen
#

when I make a function, it says await is only valid in async function

#

should I do async function(){}

summer torrent
#

Yes

feral aspen
#

Ok Thanks! 🙂

earnest phoenix
#

Ok

#

I got the answer

#

channels.cachd

#

cache

#

They have cganged

feral aspen
#

Yes @earnest phoenix if you are using v12, use .cache.find

earnest phoenix
#

I user v12

#

13

feral aspen
#

??????

weak rain
#

const warnlog = message.guild.cache.find(`name`, "logs"); if (!warnlog) return message.channel.send("Couldn't find `logs` channel.");

feral aspen
#

v13?

weak rain
#

now will this work

earnest phoenix
#

.channels.cache

weak rain
#

v13?
@feral aspen he is from space

feral aspen
#

AHHHH

earnest phoenix
#

@feral aspen in v13

feral aspen
#

when i ask something

earnest phoenix
#

We use guild.cache.fetch().channels.cache.fetch()

feral aspen
#

all go silent

surreal sage
#
__proto__: Promise
[[PromiseStatus]]: "fulfilled"
[[PromiseValue]]: "aaa"``` yeah what is the property for the PromiseValue lol
summer torrent
#

did you resolved that Thonk

surreal sage
#

what

#

@summer torrent

golden condor
#

Did you resolve the promise

low trout
#
    if(message.author.hasPermissions(manage_messages))
    if(!message.author.hasPermissions(manage_messages))
    message.channel.send("You do not have permission to run this command!")
    message.channel.delete();```
Will the two "if" statements make it so if they have the permission they can run the command, if not, it will send the message.channel.send("You do not have permission to run this command!")
surreal sage
#

no?

#

if i Promise.resolve(the thing of the promise)

#

then it returns

golden condor
#

Then that's your problem.

surreal sage
#

the promise

golden condor
#

You do it in the promise

surreal sage
#

what

#

Promise.resolve(min.default.get('token'))

#

this returns the promise

golden condor
#

@low trout remove the first if statement and use return on the second one

surreal sage
#

even with min.default.get('token')

low trout
#

Thanks @golden condor

golden condor
#

Do return message.channel.send("message here")

#

On the if statement that is left

surreal sage
#

return min.default.get('token')
VM1808:1 Uncaught SyntaxError: Illegal return statement

golden condor
#

return means that the command will not run and it finishes there

#

I'm talking to Ian456ss

surreal sage
#

oh

low trout
#
    return (!message.author.hasPermissions(manage_messages))
    message.channel.send("You do not have permission to run this command!")
    message.channel.delete();``` Like this? @golden condor
blazing ravine
#

can some1 help me with args

golden condor
#

Yes

#

Oh wait no

#
module.exports.run = async (client, message, args) => {
    if(!message.author.hasPermission("MANAGE_MESSAGES")) return message.channel.send("You do not have permission to run this command!")
    message.channel.delete();
low trout
#

@golden condor I only want it to delete the channel if they have the permission "manage_messages"

blazing ravine
golden condor
#

@low trout look at what I did

low trout
#

Paste that?

golden condor
#

Use that yes

#

That will work

pale vessel
#

hasPermission()

golden condor
#

Oh yeah

low trout
#

Okay. Thank you, @golden condor!

golden condor
#

Np

surreal sage
#

Callum?

#

You do it in the promise
@golden condor how

blazing ravine
#

some1 help me pls

low trout
#

@golden condor You mind if I invite you to my testing discord to see if the command works?

golden condor
#

new Promise((resolve) => {
resolve(promise)
})

#

@low trout send me a link in dms I'll be happy to help

surreal sage
#
new Promise((resolve) => {
resolve(min.default.get('token'))
})```
#

like that?

golden condor
#

That should work

surreal sage
#

lemme see

pale vessel
#

why not just await it directly

surreal sage
#

it's still a promise

golden condor
#

why not just await it directly
^^

surreal sage
#

?

#

oh

#

well

golden condor
#

Wrong one

surreal sage
#

because it isnt in a async

blazing ravine
golden condor
#

You need to await it as a promise needs to be awaited

blazing ravine
#

nickname with space not work why

surreal sage
#

yeah ok await

low trout
#

Can someone help me? I created a support ticket bot, but when people type the command to create a new ticket, it will run it multiple times, and create multiple channels. Here is the code:

blazing ravine
#

@low trout

low trout
#

Yessir

blazing ravine
#

can u help me with args

low trout
#

Once I have gotten assistance for my bot. I need to get this figured out. Sorry.

blazing ravine
#

;/

#

this is my problem space in nick not work idk

#

im trying to fix

surreal sage
#

@golden condor async function get(key) { return await min.default.get(key) } this return's the promise

golden condor
#

Then await the function

surreal sage
#

but the function is not in a async

#

its not in a event or so

#
var config = {
    "token": get('token'),
    "prefix": get('prefix')
}
//
const guilds = document.getElementById("bot-guilds")
const users = document.getElementById("bot-users")
const prefix = document.getElementById("bot-prefix")
const prefixtext = document.getElementById("prefix-text")
const prefixbtn = document.getElementById("prefix-submit")
const tokentext = document.getElementById("token-text")
const tokenbtn = document.getElementById("token-submit")
const client = new Discord.Client()
//
function updateStats() {
    guilds.innerHTML = client.guilds.size;
    users.innerHTML = client.users.size;
    prefix.innerHTML = config.prefix;
}
function updateToken(content) {
    min.default.set('token', content)
    alert("Token has been updated.\n\nRestart the bot to confirm the changes.")
}
function updatePrefix(content) {
    min.default.set('prefix', content)
    alert("Prefix has been updated.\n\nRestart the bot to confirm the changes.")
}
async function get(key) {
    return await min.default.get(key)
}
//
client.on("ready", () => {
    updateStats()
})
//
client.login(config.token)
//
//
//
//
//
//

})```
silver dust
low trout
blazing ravine
#

who cna help me

surreal sage
#
var config = {
    "token": get('token'),
    "prefix": get('prefix')
}
//
const guilds = document.getElementById("bot-guilds")
const users = document.getElementById("bot-users")
const prefix = document.getElementById("bot-prefix")
const prefixtext = document.getElementById("prefix-text")
const prefixbtn = document.getElementById("prefix-submit")
const tokentext = document.getElementById("token-text")
const tokenbtn = document.getElementById("token-submit")
const client = new Discord.Client()
//
function updateStats() {
    guilds.innerHTML = client.guilds.size;
    users.innerHTML = client.users.size;
    prefix.innerHTML = config.prefix;
}
function updateToken(content) {
    min.default.set('token', content)
    alert("Token has been updated.\n\nRestart the bot to confirm the changes.")
}
function updatePrefix(content) {
    min.default.set('prefix', content)
    alert("Prefix has been updated.\n\nRestart the bot to confirm the changes.")
}
async function get(key) {
    return await min.default.get(key)
}
//
client.on("ready", () => {
    updateStats()
})
//
client.login(config.token)
//
//
//
//
//
//

})```

@surreal sage @golden condor not possible because there is no event or so...

golden condor
#

Why did you ping me

surreal sage
#

bc u didnt respond

#

i need help ok

lusty quest
#

what exactly doesnt work?

surreal sage
#
async function get(key) {
    return await min.default.get(key)
}```
#

i have this function

#

it is supposed to return a string from the min.default y know

#

but it returns the promise

#

so without the async and await it still sends the promise

#

and with async and await it sends the promise

#

and if i go to my browser in the console and do the command there

#

it returns the string

lusty quest
#

what is min.default?

surreal sage
#

mindb

#

default is needed for the main functions

lusty quest
#

does mindb work async?

surreal sage
#

ye

lusty quest
#

did you await the function?

surreal sage
#

wdym await the function

weak rain
#

What is sharding

lusty quest
#

where did you call the function?

surreal sage
#

@weak rain multiple instances of a bot

#

more ram usage tho

#

where did you call the function?
@lusty quest wdym call

lusty quest
#

you have to call the function somewhere

surreal sage
#
var config = {
    "token": get('token'),
    "prefix": get('prefix')
}
//
const guilds = document.getElementById("bot-guilds")
const users = document.getElementById("bot-users")
const prefix = document.getElementById("bot-prefix")
const prefixtext = document.getElementById("prefix-text")
const prefixbtn = document.getElementById("prefix-submit")
const tokentext = document.getElementById("token-text")
const tokenbtn = document.getElementById("token-submit")
const client = new Discord.Client()
//
function updateStats() {
    guilds.innerHTML = client.guilds.size;
    users.innerHTML = client.users.size;
    prefix.innerHTML = config.prefix;
}
function updateToken(content) {
    min.default.set('token', content)
    alert("Token has been updated.\n\nRestart the bot to confirm the changes.")
}
function updatePrefix(content) {
    min.default.set('prefix', content)
    alert("Prefix has been updated.\n\nRestart the bot to confirm the changes.")
}
async function get(key) {
    return await min.default.get(key)
}
//
client.on("ready", () => {
    updateStats()
})
//
client.login(config.token)
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
document.getElementById("bot-token").addEventListener('click', () => {
    document.getElementById("bot-token").innerHTML = config.token
    document.getElementById("bot-token").classList.remove("click-reveal")
    document.getElementById("bot-token").classList.remove("noselect")
    setTimeout(() => {
        document.getElementById("bot-token").classList.add("noselect")
        document.getElementById("bot-token").classList.add("click-reveal")
        document.getElementById("bot-token").innerHTML = 'Reveal'
    }, 10000)
})
tokenbtn.addEventListener("click", () => {
    updateToken(tokentext.value)
})
prefixbtn.addEventListener("click", () => {
    updatePrefix(prefixtext.value)
})``` my index.js
weak rain
#

how to do thsat?

surreal sage
#

(not a node app)

#

how to do thsat?
@weak rain i recommend using it when your bot is in 100 servers +

weak rain
#

@weak rain i recommend using it when your bot is in 100 servers +
@surreal sage hm i will

lusty quest
#

lol

weak rain
#

but how to use that

lusty quest
#

start with it when you reach 1800 Guilds

surreal sage
#

idk

#

¯_(ツ)_/¯

#

lol

lusty quest
#

the discord.js guide can help you

weak rain
#

KK

lusty quest
#

but by default D.js V12 has a Internal sharding manager that does it automatic

#

@surreal sage i dont see where you call the get function

#

usually you should do something like await get(key)

surreal sage
#

lemme see

#

works

#

hmm

lusty quest
#

if you define the Function async you need to await the promise

surreal sage
#

no doesnt work

lusty quest
#

im not sure if your confg syntax is correct

#

if you do console.log(get(key)) what happens?

#

(comment out the error first)

surreal sage
#

now there is a prob with the async funciton

lusty quest
#

did you call it before you define the function?

surreal sage
#
var config = {
    "token": await get('token'),
    "prefix": await get('prefix')
}
//
const guilds = document.getElementById("bot-guilds")
const users = document.getElementById("bot-users")
const prefix = document.getElementById("bot-prefix")
const prefixtext = document.getElementById("prefix-text")
const prefixbtn = document.getElementById("prefix-submit")
const tokentext = document.getElementById("token-text")
const tokenbtn = document.getElementById("token-submit")
const client = new Discord.Client()
//
function updateStats() {
    guilds.innerHTML = client.guilds.size;
    users.innerHTML = client.users.size;
    prefix.innerHTML = config.prefix;
}
function updateToken(content) {
    min.default.set('token', content)
    alert("Token has been updated.\n\nRestart the bot to confirm the changes.")
}
function updatePrefix(content) {
    min.default.set('prefix', content)
    alert("Prefix has been updated.\n\nRestart the bot to confirm the changes.")
}
async function get(key) {
    return await min.default.get(key)
}
//
client.on("ready", () => {
    updateStats()
})
//
client.login(config.token)
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
document.getElementById("bot-token").addEventListener('click', () => {
    document.getElementById("bot-token").innerHTML = config.token
    document.getElementById("bot-token").classList.remove("click-reveal")
    document.getElementById("bot-token").classList.remove("noselect")
    setTimeout(() => {
        document.getElementById("bot-token").classList.add("noselect")
        document.getElementById("bot-token").classList.add("click-reveal")
        document.getElementById("bot-token").innerHTML = 'Reveal'
    }, 10000)
})
tokenbtn.addEventListener("click", () => {
    updateToken(tokentext.value)
})
prefixbtn.addEventListener("click", () => {
    updatePrefix(prefixtext.value)
})``` my index.js
#

not a node app

lusty quest
#

run the console.log() below your function and try it again

surreal sage
#

wdym below

#

to test?

#

see any errors?

lusty quest
#

yes

surreal sage
#

k

#

Unexpected token 'get'

#

at line 2

lusty quest
#

how tf can it be in line 2? when your function is way below?

#

did you forget to comment out the line that throws the error?

surreal sage
#

functions can be used at any line

lusty quest
#

i guess the issue is how you call the function

surreal sage
#

ok come in a call so it becomes ez

#

oki?

blazing ravine
#

@lusty quest can u help me with args

lusty quest
#
let config = {
"token": `${await get(\`token`}`,
"prefix": `${await get(\`prefix`}`
}```
#

try this @surreal sage

blazing ravine
#

pls ?

lusty quest
#

what is your issue @blazing ravine

blazing ravine
#

when use space in nick not work

lusty quest
#

nick?

blazing ravine
#

i try const args1 = msg.content.split(" ");
args.slice(1).join(" ") but not work too the space with words not stopping

#

nickname*

#

this is a fortntie tracker

surreal sage
#

Uncaught SyntaxError: Missing } in template expression

#

"token": ${await get('token')},
"prefix": ${await get('prefix')}

lusty quest
#

add the missing }

surreal sage
#

i already did

lusty quest
#

@blazing ravine i dont get where you want to add the nickname

blazing ravine
#

the commands is fstats gokselw solo pc

#

but when the player name is goks el

#

[with space in cneter]

#

or other

#

not work

#

when use space in args 1

#

he using it in args 2

lusty quest
#

ohh now i get it. yea this is not so easy since your command handler splits every space into a new key in the args array

blazing ravine
#

yes

#

oh my english is bad

#

sory d

#
      .toLocaleLowerCase()
      .substring(PREFIX.length)
      .split(" ");``` }}}} ```            let username = args[1];
    let gamemode = args[2] || 'lifetime';
    let platform = args[3] || 'pc';
lusty quest
#

this will not work with spaces

blazing ravine
#

;/

#

its possible to fix ?

lusty quest
#

with some workarounds maybe

surreal sage
#

add the missing }
@lusty quest i already did

lusty quest
#

does it work?

surreal sage
#

no

lusty quest
#

the error?

blazing ravine
#

superbrain can u help me pls ? i tryed 3 hours ;/ not work

surreal sage
#

Uncaught SyntaxError: Missing } in template expression

lusty quest
#

add the missing }

#
"token": `${await get(\`token`)}`,
"prefix": `${await get(\`prefix`)}`
}
#

try this

blazing ravine
#

@lusty quest look

surreal sage
#

same error

blazing ravine
lusty quest
#

@blazing ravine i cant babysit you throu it. i would have to think of a way to fix it myself too. there are so many possible ways to do it

blazing ravine
#

idk how 😦

lusty quest
#

@surreal sage does your IDE say where the } is expected?

#

or show the code of your config

surreal sage
#

ye

#
var config = {
    "token": `${await get('token')}`,
    "prefix": `${await get('prefix')}`
}```
spare robin
#

I not understand what I hve have to do

lusty quest
#

wait why does it not escape the input as a string? @surreal sage

#

@spare robin your detailed Description is to short and your brief description is to long. also the featured servers is formated wrong

surreal sage
#

?

spare robin
#

Ok

honest perch
#

Just stay there

lusty quest
#

@surreal sage got a other idea

surreal sage
#

tell me

lusty quest
#
const token= await get("token")
const prefix= await get("prefix")

const config = {
"token": token
"prefix": prefix
}
surreal sage
#

hmm

lusty quest
#

its possible that the object dont like that a function is called inside

delicate shore
#

oh shhot

#

shoot

surreal sage
#

await is only valid in async function

delicate shore
#

will this work

#

to make command work

lusty quest
#

wrap it into a async function

delicate shore
#

only in my server

surreal sage
#

how lol

lusty quest
#

what node Version did you use? with node 14 it should work this way

delicate shore
surreal sage
#

what node Version did you use? with node 14 it should work this way
@lusty quest this aint node

lusty quest
#

¯_(ツ)_/¯

delicate shore
#

¯_(ツ)_/¯

surreal sage
#

what

#

ok i dont understand

lusty quest
#

you could call your DB inside of a Promise this could maybe help

surreal sage
#

what are you talking abt

thorny moth
#

How to fix Error: Cannot find module './ffmpeg/Ffmpeg' problem

earnest phoenix
#

Install ffmpeg binaries

lusty quest
surreal sage
#

it doesnt help

signal niche
#

The "Servers this bot is in" section is formatted incorrectly.??????
help

blazing ravine
#

s

#

misly help pls ?

surreal sage
#

@lusty quest

#
async function get(key) {
    await min.default.get(key).then(value => {
        return value
    })
}```
#

if i console.log(value) it returns the right thing

thorny moth
surreal sage
#

but with the return it returns the promise

lusty quest
#

this is bcs of the scope

#

the function awaits the data inside of it but not outside of it

surreal sage
#

?!

#

tell it to me like im a a idiot

thorny moth
#
throw err;
Error: Cannot find module './ffmpeg/Ffmpeg'
Require stack:
- /home/container/node_modules/prism-media/src/transcoders/MediaTranscoder.js
- /home/container/node_modules/prism-media/src/Prism.js
- /home/container/node_modules/prism-media/src/index.js
- /home/container/node_modules/discord.js/src/client/voice/player/AudioPlayer.js
- /home/container/node_modules/discord.js/src/client/voice/VoiceConnection.js
- /home/container/node_modules/discord.js/src/client/voice/ClientVoiceManager.js
- /home/container/node_modules/discord.js/src/client/Client.js
- /home/container/node_modules/discord.js/src/index.js
- /home/container/discord-bot.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1065:15)
at Function.Module._load (internal/modules/cjs/loader.js:911:27)
at Module.require (internal/modules/cjs/loader.js:1125:19)
at require (internal/modules/cjs/helpers.js:75:18)
at Object.<anonymous> (/home/container/node_modules/prism-media/src/transcoders/MediaTranscoder.js:1:16)
at Module._compile (internal/modules/cjs/loader.js:1236:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1257:10)
at Module.load (internal/modules/cjs/loader.js:1085:32)
at Function.Module._load (internal/modules/cjs/loader.js:950:14)
at Module.require (internal/modules/cjs/loader.js:1125:19)```
#

how to solve it

surreal sage
#

dbc?

#

nvm

thorny moth
#

?

sullen harness
#

Read that.

surreal sage
#

tell it to me like im a a idiot
@lusty quest

lusty quest
#

did you know about scopes?

surreal sage
#

no i dont

lusty quest
#

ok

#

if you make a const value outside of a function the value is global for the entire file. if you make a const value inside of a function its only valid inside of the function

thorny moth
#

my bot doesnt need ffmpeg, why need install it?

lusty quest
#

you request it somewhere

surreal sage
#

uhh

#

i know

#

and i didnt do that in here

sullen harness
#

You clearly requested/need FFMPEG somewhere, else you wouldn't get the error to begin with.

#

But I assume you're making a music bot/module. In that case you need FFMPEG.

lusty quest
#

async is also somewhat different. if you await it the data is valid (your function is async and awaits the data inside of it) you log the value inside the Scope of the Function) but if you dont call the function async it will not wait for the data from the function to get resolved -> pending promise

surreal sage
#

so?

plain helm
#

do you guys also have the problem that your bot does not send newly programmed commands? if so please help me how to fix it

weak rain
#

Can we host bots on glitch on VPS

sullen harness
#

If they worked on glitch, they work on a VPS.

plain helm
#

so .. do you have the same problem?

weak rain
#

If they worked on glitch, they work on a VPS.
@sullen harness but how should i host them on VPS

#

livecode?

sullen harness
#

do you guys also have the problem that your bot does not send newly programmed commands? if so please help me how to fix it
@plain helm you just gave the most vague description of a problem.

plain helm
#

and what is the problem then

tight plinth
#

@plain helm show your command handler

#

we cant help you without code

weak rain
#

if i import my project on git hub from glitch will it work?

sullen harness
#

@sullen harness but how should i host them on VPS
@weak rain

  1. You create your bot (preferably on your system with VSC, Sublime etc)
  2. You make sure it all works fine.
  3. You get a VPS and configure it
  4. Upload files to said VPS
  5. Install packages
  6. Launch bot
plain helm
#

@plain helm show your command handler
@tight plinth but there is no problem with coding. My bot was working yesterday. Also I'm not only one to whom it does not work

tight plinth
#

its a problem with your code

#

and wdym by "Also I'm not only one to whom it does not work"

plain helm
#

but it worked yesterday and I didn't change anything

weak rain
#

my bot is hosted on glitch now i m trying to do it on vps

plain helm
#

and wdym by "Also I'm not only one to whom it does not work"
@tight plinth that I'm not the only one to whom the new commands don't work to send

tight plinth
#

what do you use to make your bot

plain helm
#

also the old commando works for me only those new from yesterday no longer

#

what do you use to make your bot
@tight plinth javascript /visual studio/

tight plinth
#

what do you use to make your bot

sullen harness
#

my bot is hosted on glitch now i m trying to do it on vps
@weak rain Just copy the code or upload it to Github if you haven't already.

tight plinth
#

in this case

#

do you javascript in general

plain helm
#

wdym

weak rain
#

@weak rain Just copy the code or upload it to Github if you haven't already.
@sullen harness ok

#

will it work fine?

tight plinth
#

do you know javascript @plain helm

plain helm
#

I'm learning

tight plinth
#

thats why

sullen harness
#

If you follow the steps and the bot works locally, it should work fine on a VPS.

tight plinth
#

first you learn the language
second you do some apps
and third youcan do a discord bot

plain helm
#

well, but what I have so far I have well because I've already done it

#

I have a bot

#

unu

sullen harness
#

@plain helm what errors are your console spitting out?

tight plinth
#

learn javascript, then try to look at your code to see if there is errors

#

there is a reason if they dont work

#

its your code for sure

plain helm
#

@plain helm what errors are you console spitting out?
@sullen harness I have no problems, it just can't be sent

sullen harness
#

Then there must be an error somewhere.

golden condor
#

Hi, I am using lavalink and I keep getting 429s. Is this permanent or can it be fixed or will it time out

sullen harness
#

Go check the console.

#

With this kind of information we can't really help.

tulip wave
#

@golden condor you should ask in the jda discord

tight plinth
#

@golden condor 429 - too much requests

golden condor
#

Yeah ik

tight plinth
#

and yeah go ask in the jda discord

golden condor
#

can I have a link?

plain helm
#

With this kind of information we can't really help.
@sullen harness I just wanted to know if you had the same problem

tulip wave
#

Sure

golden condor
#

ty

small prairie
#

Message ratelimits(creation/editing) is 5/5 right?

#

per channel

#

Global being 50/10 and DM 5/5

tulip wave
small prairie
#

are these correct :/

sullen harness
#

@sullen harness I just wanted to know if you had the same problem
@plain helm There is no "same problem" everyone's problem can be caused by countless of different things.

winter basalt
#

jad

small prairie
#

lol

plain helm
#

@plain helm There is no "same problem" everyone's problem can be caused by countless of different things.
@sullen harness but I know that it is not globally because I am not able to send to my friend's new commands ... and I also have no problem with bot. There is another problem

sullen harness
#

Then again, check your error it might be something with your userID function or if you have some special role etc etc. There could be many reasons why it doesn't work for you.

plain helm
#

sorry for my english

#

Then again, check your error it might be something with your userID function or if you have some special role etc etc.
@sullen harness ok I will check this

#

Guys, I already know where the problem was. My command started with a capital letter ... and it didn't work. When I put the little letter, it's working

tight plinth
#

bruh

pure lion
#

Anyone know of a really in depth nodeJS tutorial? I want to know everything

#

Like everything

#

Please gimme I don't wanna have to learn py

#

Idc how long the tutorial is it could be 24 hours just send it my way

obtuse jolt
#

code academy maybe?

earnest phoenix
#

look into professional courses

short siren
#

w3schools is kinda cool some of the tutorials are a little outdated tho it goes into details on each aspect tho

earnest phoenix
#

@pure lion

opaque seal
#

How can I put a background image for my bot on its top.gg page?

still merlin
#

Css

opaque seal
#

I couldn't find out how to use a link in css for the background

still merlin
broken crow
#

Lmao

still merlin
#

?

opaque seal
#

/images/examples/bglinks/pencil_icon.gif

#

He uses a file link not a web link

broken crow
#

Lol

still merlin
#
#example-link a { 
  padding-left: 15px; 
  background: url(/images/examples/bglinks/pencil_icon.gif) 3px 1px no-repeat; 
} ```
earnest phoenix
#

rEeEeE

opaque seal
#

wait that works?

#

I tried it but...

#

I'll try again

earnest phoenix
#

Idk why but dark mode fuck it up

opaque seal
#

Might need to disable a setting for that

#

Thank you @earnest phoenix

#

Worked

pure lion
#

@earnest phoenix

#

Ha

#

Ha

#

Ha

tight plinth
#

@earnest phoenix !important

earnest phoenix
#

'-'

tight plinth
#

you have to put !important after url(...)

pure lion
#

*print 1 to 10*
I learnt py :D

earnest phoenix
#

Wdym

midnight blaze
#

sry, can I like push information into an array into an other javascript file?

opaque seal
#

you have to put !important after url(...)
@tight plinth oh k

tight plinth
#

@midnight blaze wdym

midnight blaze
#

like connecting two javascript files

#

one has an array

tight plinth
#

with require?

midnight blaze
#

and I want to push from one into an other

delicate shore
#

Hey

finite nimbus
#
const DBL = require("dblapi.js");
const dbl = new DBL('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjcyODkxNjk0Njg0MTc2Mzg2MSIsImJvdCI6dHJ1ZSwiaWF0IjoxNTk2Mjc4NTQwfQ.hfH-s19OF83BNX0PPqd6dRmlzQehZafyE6_QDo3TFyc', { webhookPort: 5000, webhookAuth: 'passwd' });
```0 Output, hosting on github
delicate shore
#

Omg

midnight blaze
#

@finite nimbus GO in API

tight plinth
#

@finite nimbus delete that

delicate shore
#

You leaked

tight plinth
#

NOW