#development

1 messages · Page 719 of 1

earnest phoenix
#

lol

oblique gulch
#

portuguese, sorry

#
Unable to connect. Trying again (3/3) ...
The VM serial console output can provide details to assist with troubleshooting connection issues. See our help document for other possible causes of this issue.
You can greatly improve key transfer times by migrating to your OS login.```
quartz kindle
#

have you tried resetting the vm?

lofty hamlet
#

I have JSON for database since one year and my database for my players is this because i can't change this now and today my players have problem with my bot, the .Points of each players change wtf ... It's due by the size of my file ? My .json file size is 13MB

cunning goblet
#

@lofty hamlet

#

JSON ISNT A DATABASE

lofty hamlet
#

?

#

Yeah i know

cunning goblet
#

also

#

once you've reached the limit on your hosting provider or whatever

#

you cant write data to it

#

@lofty hamlet what hosting provider your using

lofty hamlet
#

Last year I had less skill in js etc and I started my bot with a .json database but I can not change it I have 6000 players. Or I would have to transpose to sql

#

@cunning goblet i have dedicatate server

#

64GB ram

cunning goblet
#

also

#

if your json file

#

doesnt work anymore

#

it probably finally stopped working

#

due to space

modest maple
#

you might have to transfer everything over sql as it will save alot of headache later on

cunning goblet
#

or it got corrupted

#

@modest maple you can convert json to sql

modest maple
#

oh shoot you can?

lofty hamlet
#

@cunning goblet oh ok

#

How i can transform all of my json file

modest maple
#

well first check if its currupted or not

lofty hamlet
#

Mmmh

cunning goblet
#

i tried a convertor and it worked ok

CREATE TABLE IF NOT EXISTS data (
hello VARCHAR(5) NULL,
test_hello VARCHAR(5) NULL
);

INSERT INTO data VALUES
("world","world");
lofty hamlet
#

My database have this structure

#

{"349667929559662595":{"NomDresseur":"enzo69007#4575","Points":0,"Grade":"Dresseur Débutant (0 - 350)","GradeG":"Joueur","BDDTitre":["Joueur"],"Team":"Aucune","Magma":false,"Rocket":false,"Aqua":false,"MachineF":false,"MégaCAP":false,"ActiveTeam":false,"Start":false,"Premium":false,"Cânne_A_Pêche":false,"NumDresseur":39,"Pokedollars":0,"Sac":["Marisson (Starter)"],"SSac":[],"LSSac":[],"LSac":[],"GSac":[],"LGSac":[],"NbPokemons":1,"Pokedex":[0],"TempsVote":0,"TempsBcrate":0,"Potion":0,"Famillier":"","XP":0,"Appât":0,"HawlloweenItem":1572275616978,"TempsCatch":0,"Niveau":0,"NiveauP":0,"TempsDailyPoke":0,"TempsInvest":0,"TempsHr":0,"TempsDy":0,"TempsPeche":0,"Quete1":1572275616978,"Quete2":0,"Quete3":0,"Quete4":false,"Quete5":false,"Quete6":false,"SoonC1":[],"SoonC2":[],"SoonN1":0,"SoonN2":0,"SoonN3":0,"SoonNA1":"","SoonNA2":"","SoonO":[0],"SoonFT1":false,"SoonFT2":false,"SoonFT3":true,"SoonFT4":true},"495855787374280734":{"NomDresseur":"Lucas.prcl#4963","Points":12,"Grade":"Dresseur Débutant (0 - 350)","GradeG":"Joueur","BDDTitre":["Joueur"],"Team":"Aucune","Magma":false,"Rocket":false,"Aqua":false,"MachineF":false,"MégaCAP":false,"ActiveTeam":false,"Start":false,"Premium":false,"Cânne_A_Pêche":false,"NumDresseur":6,"Pokedollars":0,"Sac":["Moustillon (Starter)","Héliatronc (Normal)"],"SSac":[],"LSSac":[],"LSac":[],"GSac":[],"LGSac":[],"NbPokemons":2,"Pokedex":[0],"TempsVote":0,"TempsBcrate":0,"Potion":0,"Famillier":"","XP":0,"Appât":0,"HawlloweenItem":1572279792314,"TempsCatch":1572279814403,"Niveau":0,"NiveauP":0,"TempsDailyPoke":0,"TempsInvest":0,"TempsHr":0,"TempsDy":0,"TempsPeche":0,"Quete1":1572279792314,"Quete2":0,"Quete3":0,"Quete4":false,"Quete5":false,"Quete6":false,"SoonC1":[],"SoonC2":[],"SoonN1":0,"SoonN2":0,"SoonN3":0,"SoonNA1":"","SoonNA2":"","SoonO":[0],"SoonFT1":false,"SoonFT2":false,"SoonFT3":true,"SoonFT4":true}}

#

And i have 6.000 players

#

6.000 x this

#

But the array for players advanced is very long

cunning goblet
#

the result for that without the schema looks good

lofty hamlet
#

?

cunning goblet
#

i tested the json on the convertor

#

you sent

lofty hamlet
#

You can help another day ?

#

I do disconnected 😉

cunning goblet
#

yea

lofty hamlet
#

And if you patch my problem i cna pay you it's not a problem

#

Because this bug is very big

cunning goblet
#

i dont need money

#

¯_(ツ)_/¯

quartz kindle
#

good luck neko (you have no idea what you're getting into)

fickle anvil
#
                const file = await fetch('https://api.poe.watch/leagues').then(response => response.json());
                var LigaListe;
                var LeagueName;
                var x = 0;
                while (x <= file.length)
                {
                    //LeagueName = file[x].name;
                    LigaListe += x +": "+ file[x].name +"\ ";
                    x++;
                }
                message.channel.send("Sorry, the league " + args[0] + " does not exist.\nCurrent Leagues are: \n" + LigaListe);```

Can anyone help me put this string together? It keeps telling me it would not be able to read the property 'name' of undefined but if I put it into console.log it spits the text out perfectly
sudden geyser
#

Use < instead of <=

#

Your problem is due to it trying to index 4 from the array, even though only 4 results are returned (0-index).

astral meteor
#

My bot currently manages 73k users, and I'm about to start the rewrite. How do I send a message to all guild owners using the bot or let them know in any way that the bot will be offline?

sudden geyser
#

don't do that

astral meteor
#

It's 6 guilds though.

#

So it's not API abuse.

sudden geyser
#

Kinda still is, even for the small number. You could set a temporary status saying it'll be offline

warm marsh
#

Nor is it nice. Who actually likes receiving DMS from bots?

astral meteor
#

Oh yes.

#

I'll change the status for 10-15 mins before doing the rewrite ig.

#

Cheers

fickle anvil
#

nice that helps @sudden geyser but now I always have "undefined" as first entry in my LigaListe think

sudden geyser
#

when you don't assign it on initialization, it's set as undefined. So, init it as a string

fickle anvil
#

don't hurt me... how?

sudden geyser
#

variable = ""

fickle anvil
#

hmm I did that

#

lemme retry

#

works now

#

thanks !

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

hoary bramble
#
def test():
    print('hello')
#

Anyone knows why this error is occurring?

#

python btw ^

thin quartz
#

I'm going to sound like a noob and avg Joe so please dont judge. I made a bot on DBM and would like to offer it to other people to use but dont have the first clue how to or next step

earnest phoenix
#

@thin quartz I made a bot with DBM too. There is a video on how to export it. You do need it to be running so you can't user your normal pc. I use my server pc though you could use something like a Raspberry Pi

night imp
#

@hoary bramble check the documentation. send_mesages is not defined in Permissions

hoary bramble
night imp
#

discordpy?

thin quartz
#

@earnest phoenix I watched that video! He talks fast but all the videos are really great. I am looking into sending my bot I made on DBM to Vultr which is a VPS but I'm not sure if it will work and/or how to update the bot as I add more commands for resources

#

@earnest phoenix thank you the assist! Ita comforting knowing another made a bot using DBM

earnest phoenix
#

Np

#

So

night imp
#

@hoary bramble that's not how that works

#

init takes in a permission int

#

function notation of the int returns if it is allowed via lookup

#

(ie 0b00110011111101111111110001010001)

earnest phoenix
#

For updating is SUPER easy, all you have to do is go into the folder Data on the server then delete commands.json and events.json then add the updated updated bot's commands.json and events.json folder to the server.

#

It's easier then it seams

night imp
#

What you want is discord.Permissions().update(send_messages=False)

#

@hoary bramble

hoary bramble
#

Oh, let me try that

night imp
#

(I think anyways, going off the source code lol)

hoary bramble
#

yep, worked, tysm 🙂

night imp
#

Np blob_smile

hoary bramble
#

By the way, do you know how I could edit a channel's permissions? @night imp

night imp
#

Sorry, I don't use discordpy often

hoary bramble
#

np

earnest phoenix
#

Hello

west raptor
#

@hoary bramble it's probably somewhere in the docs

#

you using latest or async?

west spoke
#

It's most likely latest

earnest phoenix
#

this is automatically changed after savings
Im always savings

target="_self"

And its automatically changed to

target="_blank"

After saving
And in preview mode its note changeing

I want those link open in same window it should be scroll down to class without any process or new tab

quiet bobcat
#

Hey, I'm trying to make a help command and I'm trying to get the command names from the commands folder. It doesn't return a value though, it just says undefined. I'm just calling it inside a string like this `${names()}` The code I'm using is this ```js
function names() {

    fs.readdir("./commands", (err, files) => {
        if(err) {
            message.channel.send("An error occured while looking for command names. Please try again.")
        }

        files = files.map(file => `\`${file.slice(0, -3)}\``);
        return files.toString();
    })
}``` Any help would be appreciated.
quartz kindle
#

Because it is undefined

#

An i/o operation is not synchronous, your function returns before the readdir finishes

quiet bobcat
#

Ah

#

Ok

#

Thanks

split hazel
#

Anyone know how to ssh tunnel a connection so I can connect to the --inspect debugger and connect to it with chrome debugger?

quartz kindle
#
How-To Geek

An SSH client connects to a Secure Shell server, which allows you to run terminal commands as if you were sitting in front of another computer. But an SSH client also allows you to “tunnel” a port between your local system and a remote SSH server.

#

includes examples for command line and putty

#

depending on what you use for ssh, could be different to set up (i did it in mobaxterm)

warm marsh
#

Is OVH a good provider?

steel heath
#

yeah if you have 💵 💵 💵

warm marsh
#

It's only £2.99 / month.

twilit rapids
#

For cheap hosting I would recommend Contabo

warm marsh
#

With them are you stuck into a 12 month pay period?

late hill
#

No

warm marsh
#

I can cancel anytime?

fallow spire
#

Dumb Question, can i just use the <style></style> tag

late hill
#

You can pay monthly

fallow spire
#

in my long desc

late hill
#

Which is probably the smallest

mossy vine
#

@fallow spire of course

late hill
#

You'll pay up front for the entire month

fallow spire
#

Ok

late hill
#

So if you cancel, you still paid for the entire month basically

warm marsh
#

Yeah I don't always have funding so I just don't want to be stuck into a 12 month thing and then get charged when I can't pay for it.

fallow spire
#

How would i make my Whole Bot Page in Grey or Something @mossy vine

warm marsh
#

CSS

mossy vine
#

find out what classes you need to change with inspect element, and write css rules to color them

fallow spire
#

Hm ok

earnest phoenix
#

How do I leave my bot activity blank in JavaScript

mossy vine
#

dont set an activity

earnest phoenix
#

I tried to do it but it gives ready.js error when it does

#

What do you think I should do? @mossy vine

mossy vine
#

just.. dont use setActivity

quartz kindle
#

^ cant you just remove your activity code?

earnest phoenix
#

I tried, but it doesn't work.
@quartz kindle

quartz kindle
#

show your code

earnest phoenix
#
const moment = require('moment');
const Discord = require('discord.js');
const ayarlar = require('../ayarlar.json');

var prefix = ayarlar.prefix;


module.exports = client => {
  console.log(`${client.user.username} ismi ile giriş yapıldı!`);
  client.user.setStatus("idle");
  //idle = boşta
  //dnd = rahatsız etmeyin
  //online = çevrimiçi
  console.log(`                                                                                                                                                                     `)
  client.user.setActivity(`${prefix}yardım | ${client.guilds.size} sunucu | ${client.guilds.reduce((a, b) => a + b.memberCount, 0).toLocaleString()} Kullanıcıyı`, { type: "LISTENING"});
  //LISTENING = DİNLİYOR
  //WATCHING = İZLİYOR
  //PLAYING = OYNUYOR 
  console.log(`${client.user.username}: Şu an ` + client.channels.size + ` adet kanala, ` + client.guilds.size + ` adet sunucuya ve ` + client.guilds.reduce((a, b) => a + b.memberCount, 0).toLocaleString() + ` kullanıcıya hizmet veriliyor!`);
};
#

@quartz kindle

blissful scaffold
#

Don't use user.setstatus

#

And you also do setactivity

quartz kindle
#

as we told you lol, just remove those

warm marsh
#

How long does contabo usually take to process an order?

earnest phoenix
#

So basically an LFG command for my bot, where whenever someone posts an LFG request, this request will go a specified channel that is subscribed to, for example, using lfg subscribe channelname. Then everytime a user posts an LFG request, that request is sent to all servers that have a subscription channel setup, basically sending a message to tons of servers at once. Would this be considered API abuse?

atomic canyon
#

:arnusfelenemlopottlikeolosemoji:

#

:arnusfelenemlopottlikeolosemoji:

#

:arnusfelenemlopottlikeolosemoji:

modest maple
#

@earnest phoenix sorta

late hill
#

It took nearly 30 mins for mine @warm marsh

warm marsh
#

Alright, Do they email or something?

late hill
#

Yeh

#

You should have gotten an email requesting the payment at first

warm marsh
#

Idk, I got a redirect to paypal and then got an email about my receipt and/or orderid.

late hill
#

ah

warm marsh
#

I'll check.

#

Yeah and it has a link about order status on it.

late hill
#

Just wait for them then

#

You should get an email with your login data next

#

Shouldn't take long as you can see from the timestamps

warm marsh
#

Alright, I'll keep an eye out for emails. Thank you.

earnest phoenix
#

@modest maple Ah, thanks for the answer

earnest phoenix
#

So doing what I said above leads to the conclusion that it would be considered API abuse most likely, but is there any proof to back this up, I'm currently looking for some sort of documentation that mentions something about sending the same message to all servers the bot has, although it is an opt-in feature

valid frigate
#

I mean what do you really need it for

late hill
#

There's a global ratelimit on sending messages

valid frigate
#

iirc it's about 6 messages every 5 seconds

late hill
#

Pretty sure the global one would be higher than that 👀

earnest phoenix
#

@valid frigate It's an LFG thing where when a user posts an LFG request, it sends it to all subscribed channels, in all servers that actually have a subscribed channel

valid frigate
#

oh I just read it above my baf

#

bad

#

but yeah there is a global rate limit

late hill
#

It's 50/10 if it hasn't been changed

valid frigate
#

depending on how your bot scales it will be constantly hitting that limit

#

actually

#

if say 50 ish guilds were actively using a subscription channel that could cause problems

late hill
#

What's LFG

valid frigate
#

looking for game

earnest phoenix
#

^

late hill
#

ah

valid frigate
#

though

late hill
#

Should search for a different approach

fallow spire
#

How can i check if the RichEmbed field value has more than 1024 Chartackers?

earnest phoenix
#

if you are using a string for something, you can just do a check if string is greater than 1024

#

Maybe not the ideal solution but It would work

sudden geyser
#

What would be ideal then?

earnest phoenix
#

I don't know thats why I said my solution might not be the ideal solution

sudden geyser
#

It seems like the easiest and best way to do it Shrug

glad leaf
#

Anyone got a bot that automatically changes nicknames based on roles?

#

Lets say when someone receives the Level 5 role the bot adds "[LEVEL 5]" infront of their name

earnest phoenix
#

I mean you could always make your own if you can't find one, or pay someone too :^)

glad leaf
#

im garbage

#

and broke

#

👍

restive furnace
#

make smh on event if role added

tacit stag
#

anyone good with node and cheerio? I'm tryna work on a bot with them, and don't have much experience. I'm trying to do some simple webscraping, but cant get it formatted right.

idle basalt
#

ask your question

grizzled jackal
#

gonna need a whole backstory arc first

tidal atlas
#

hi, someone alive?

#

i need help .-.

rigid kiln
#

Yes ?

tidal atlas
#

i not speak english very well

rigid kiln
#

Don't worry
Me too

tidal atlas
#

I created a discord bot but I can't put it online

mossy vine
tidal atlas
#

'-'

#

thanks

#

I already did the bot, I did everything right, but for him to be online n just run n? .-.

rigid kiln
#

Which libabry do you use ?

tidal atlas
#

kotlin, i programin in kotlin

#

I used the same bookstore as loritta

#

I saw the video tutorials teaching, but he puts online when he runs, my log in discord and everything, appears there in the log, but does not show online

rigid kiln
#

If you send a command, does he responds ?

tidal atlas
#

it does not appear online in the group members list in his video as soon as he starts online, and when I am going to use .buildBlocking, it does not work, from the line error, only get .build from JDABuiler (AccontType .BOT) .setToken (**). BuildBlocking, just .build

valid frigate
#

that should work, but to begin you should just use .build() instead of buildBlocking

#

also can you provide a stack trace

tidal atlas
rigid kiln
#

It's not an error

valid frigate
#

lol it's not an error

misty schooner
#

is anyone able to help me

valid frigate
#

you need to implement logback into your depenency manager

misty schooner
#

@valid frigate

#

can you help me?

valid frigate
#

bruh

#

with what

misty schooner
valid frigate
#

oh

#

well to do that

#

[text](link)

#

reminder that this only works in embeds

misty schooner
#

okay

tidal atlas
#

How do you implement this business?

misty schooner
#

so is it like this

valid frigate
#

i use gradle so cant help you much

misty schooner
#

.addfield("Add me to your server") invitelinkhere

valid frigate
#

???

misty schooner
#

discord.js

valid frigate
#

bruh

misty schooner
#

node.js

#

bruh

#

i code itt

valid frigate
#

lmao what

misty schooner
#

you dont know what that is?

#

bruhhhhhhhh

valid frigate
#

i do know

tidal atlas
#

thanks

valid frigate
#

yw

ocean rampart
#

He uses JavaScript I think

misty schooner
#

oof

#

Yes

valid frigate
#

yeah im aware

misty schooner
#

.js

valid frigate
#

just

#

dude

tidal atlas
#

@ocean rampart yes

valid frigate
#

.addfield isn't correct either

tidal atlas
#

no no

valid frigate
#

js naming conventions would make it look like .addField

tidal atlas
#

i used kotlin

misty schooner
#
            let Sembed = new Discord.RichEmbed()
            .setColor(colours.gold)
            .setAuthor(`Combot Help`, message.guild.iconURL)
            .setThumbnail(bot.user.displayAvatarURL)
            .setTimestamp()
            .setDescription(`These are the avaliable commands for Combot!\nThe bot prefix is: ${prefix}`)
            .addField(`Commands:`, "``help`` ``serverinfo`` ``shutdown`` ``userinfo``")
            .setFooter("Combot | Footer", bot.user.displayAvatarURL)
            message.channel.send(embed).then(m => m.delete(10000));
            message.author.send(Sembed)
        }```
#

thats part of my help command

ocean rampart
#

I wouldn’t copy paste it

valid frigate
#

also

ocean rampart
#

Use hastebin

valid frigate
#

variables typically dont start with a capital

misty schooner
#

well you know what i mean

#

i forgot the capital F

valid frigate
#

also

#

yes

#

why are you sending the embed to the author and the channel

misty schooner
#

okay

#

it doesnt

valid frigate
#

pick one

misty schooner
#

it sends this

#

.setAuthor(`Help Command!`, message.guild.iconURL) .setColor(colours.redlight) .setDescription(`${message.author.username} check your dms!`)

ocean rampart
misty schooner
#

i will on the next one

#

then

valid frigate
#

do you have like

#

a basic understanding of js

misty schooner
#

sorta

#

not been doing it for long tho

valid frigate
#

ah

#

judging by how you capitalize things

misty schooner
#

most of my commands are from tutorials either from [MenuDocs] or TheSourceCode

valid frigate
#

i think you should learn a bit more about javascript itself tbh

misty schooner
#

everyone says that

valid frigate
#

youll see what you're doing wrong but

ocean rampart
#

Use SoloLearn :pp

misty schooner
#

but all i would like is to hyperlink something

valid frigate
#

yes i told you

quartz kindle
#

he literally told you what to do lmao

valid frigate
#

the way you name variables/capitalize methods shows that you need to study js a little bit

quartz kindle
#

i mean, js doesnt really care about those

earnest phoenix
#

I care

#

<3

misty schooner
#

well i dont

#

and its not me

valid frigate
#

yeah i know but a lot of solid code follows the whole lowercase variable naming convention etc

misty schooner
#

its the tutorials i watched to get the basics

valid frigate
#

well

quartz kindle
#

anyways, what part didnt you understand? he literally told you the answer

#

[click me](http://google.com)

young forge
#

Can anyone make a Discord bot for me?

quartz kindle
#

if you pay, sure

young forge
#

How much?

blissful scaffold
#

depends on what the bot needs to do

quartz kindle
#

30 bucks /hour

ocean rampart
#

Expensive

misty schooner
#

ikr

hoary helm
#

ill do it for $29.99 bucks / hour

earnest phoenix
#

I'll do it for $3,000 / hour

young forge
#

Naw. I know people that host for free.

blissful scaffold
#

But we won't host it, we will make the bot

earnest phoenix
#

lmao

young forge
#

Who?

#

You?

earnest phoenix
blissful scaffold
#

yeah, for $29.98/hour

young forge
#

I'm confused.

#

Why does it cost per hour?

earnest phoenix
#

lol

#

good question

#

You asked how much does it cost for someone to make a Discord bot for you

#

we answered with not-so-serious answers :p

young forge
#

Oh

#

lmao

blissful scaffold
#

creating a bot takes time, you need to pay your employee that makes the bot for you

earnest phoenix
#

what type of bot are you looking for btw

#

A good one

#

define good

blissful scaffold
earnest phoenix
#

ads

blissful scaffold
#

#ad

#

😛

earnest phoenix
#

ok sorry.

#

i wanted it to be a little humorous

#

guess it wasn't

blissful scaffold
#

nah, everyone knows my bot is the best

#

-bots

gilded plankBOT
earnest phoenix
#

#ads!!!

blissful scaffold
#

now it's not an ad 😄

earnest phoenix
#

Yeah mine pertains to everyone too

#

omg aD?

#

its not like its for a specific game

earnest phoenix
#

-bots

gilded plankBOT
#

tickNo This user has no bots

tacit stag
#

sorry something came up, gonna paste my broad question again so someone can see it:

anyone good with node and cheerio? I'm tryna work on a bot with them, and don't have much experience. I'm trying to do some simple webscraping, but cant get it formatted right.

quartz kindle
#

people dont like broad questions here

#

please be more specific, ie: what have you tried, show your code, etc...

tacit stag
#

More specifically, I am developing a bot for a hobby that pulls data from a few different websites. The example I am using is: https://www.mtggoldfish.com/deck/2383407#paper

I want to basically output the table data on the page within an embed.
Here is my code so far, that at least pulls the data from the page. I haven't integrated it into an embed yet because I am not sure exactly how to :

var request = require('request');
var cheerio = require('cheerio');
//The page I am pulling from
let string = ""
var url = 'https://www.mtggoldfish.com/deck/2383407#paper';
request(url, (function(){ return function(err, resp, body) {
  //Outputs the url to console
  console.log(url);
  $ = cheerio.load(body);
  //Specific place I am trying to pull data from
  //$('#tab-paper').each(function() {
  $('#tab-paper .deck-view-deck-table tr').each(function(header) {
    //For each specific element in the table
    $(this).find('td').each(function() {
      /*Log the data (NOTE: the output is not desirable, as this was used
      * in an example I read. I want the data outputted in a usable format)
      *
      * It would be even better if i could push this to an object like:
      * var object = {
      *   Commander: [
      *     {
      *       name: "Freyalise, Llanowar's Fury",
      *       quantity: 1,
      *       price: 9.95
      *     }
      *   ]
      * }
      *
      */
     
      console.log($(this).text().trim().replace(/\s+/g, '_').split('_'));
    });
  });

  
}})());
#

Apologies for the long post, just wanted to give specific info

#

Let me know if you want the current console output.

quartz kindle
#

Yes, post the output

tacit stag
#

it is very long so ill post the first few lines

https://www.mtggoldfish.com/deck/2383407#paper
[ 'Commander' ]
[ '1' ]
[ 'Freyalise,', 'Llanowar\'s', 'Fury' ]
[ '' ]
[ '9.95' ]
[ 'Creatures', '(30)' ]
[ '1' ]
[ 'Arbor', 'Elf' ]
[ '' ]
[ '0.35' ]
[ '1' ]
[ 'Elvish', 'Mystic' ]
[ '' ]
[ '0.24' ]
[ '1' ]
[ 'Hungering', 'Hydra' ]
[ '' ]
[ '1.00' ]
[ '1' ]
[ 'Llanowar', 'Elves' ]
[ '' ]
[ '0.00' ]
[ '1' ]
[ 'Mistcutter', 'Hydra' ]
[ '' ]
[ '1.37' ]
[ '1' ]
[ 'Druid', 'of', 'the', 'Cowl' ]
[ '' ]
[ '0.16' ]
[ '1' ]
[ 'Elvish', 'Visionary' ]
[ '' ]
[ '0.18' ]
[ '1' ]
[ 'Gyre', 'Sage' ]
[ '' ]
[ '1.75' ]
[ '1' ]
[ 'Leafkin', 'Druid' ]
[ '' ]
[ '0.18' ]
[ '1' ]
[ 'Paradise', 'Druid' ]
[ '' ]
[ '0.49' ]
[ '1' ]
[ 'Priest', 'of', 'Titania' ]
[ '' ]
[ '4.04' ]
[ '1' ]
[ 'Elvish', 'Archdruid' ]
[ '' ]
[ '2.05' ]
[ '1' ]
[ 'Evolution', 'Sage' ]
[ '' ]
[ '0.81' ]
[ '1' ]
[ 'Marwyn,', 'the', 'Nurturer' ]
[ '' ]
[ '0.55' ]
[ '1' ]
[ 'Nissa,', 'Vastwood', 'Seer' ]
[ '' ]
[ '10.33' ]
[ '1' ]
[ 'Omnath,', 'Locus', 'of', 'Mana' ]
[ '' ]
[ '20.95' ]
[ '1' ]
  • many more lines of data
#

(of the same format
[<quantity>]
[<name>]
['']
[<price>]

quartz kindle
#

Well, it looks simple enough

#

What eactly are you havibg trouble with?

tacit stag
#

I guess getting this data in a reasonable/useable format. I tried to push the data to an array but it is in a forEach, meaning my array has many repeats. I havent worked too much with node, but it would be optimal to push it to an array or create an object (like shown in comments in my code above). That way I can use it in discord.

quartz kindle
#

You have two loops, one over rows and another over cells

#

You can initialize an empty object before those

#

Then at the start of the first loop you add a key to rhe object

#

With some information from that row

#

Then at the second loop, you populate that key with the respective fields

tacit stag
#

lemme see what i can do, if not ill let you know

#

thanks 🙂

quartz kindle
#

See if those cells contain any classes or attributes you can use to identify which cell represents what value

#

If not, see if cheerio has a loop which provides an index

#

Otherwise you can set a variable to use as a counter

#

To help you keep track of what is what

tacit stag
#

Having an index would be useful, but the data I am pulling can vary in length, so will have to find a way around that.

quartz kindle
#

Which length is variable? The amount of cells per row?

tacit stag
#

In the table, there will be a varying amount of elements (each element has a number, name and price). for this site, it can vary as low as 60 to 100 elements.

quartz kindle
#

The index im refering would be to help identify the cell, for example ```js
if(index === 0) { object.name = this.text() }
else if (index === 1 ) { object.price = this.text() }
// etc

#

(Pseudo code)

tacit stag
#

lemme try that

quartz kindle
#

And the index should reset every time you move to the next row

#

But if you have classes or attributes in those cells that can identify them , you wont need an index

#

Anyhow, its just a matter of how to organize your data, it should be hard, experiment a bit and see

#

Im off to bed, see ya

gilded plankBOT
tacit stag
#

okay. your information was very useful. there isn't a specific index, but the table does include seperate classes for the prices and quantity which can be useful. thanks again and good night 🙂

tacit stag
#

making good headway. Thanks tim 🙂

hoary bramble
#

help

#

dont know why this is happening

#

tried doing everything

#

including pip3 install --user aiohttp

slender thistle
#

Are you sure you are running your bot under the same env var as the one you install aiohttp on

fiery stream
#

ayy

#

can anyone tell me whats causing this

fallow spire
#

So, im trying to make a custom logchannel system, rn i only know how to make it with the channel name. But how can i do it that it also work when the Channel gets Mentioned?

fallow spire
#

im using discord.js

earnest phoenix
#

how to use animated emojis with a bot?

fallow spire
#

:-:emojiyname:

#

:-smirk

#

remove the :- and your good

#

@earnest phoenix

earnest phoenix
#

?

#

just do :emojiname: ?

#

@fallow spire

#

But how to find emoji id

#

@fallow spire

late hill
#

<a:name:id>

#

You can send the emoji somewhere and add an escape character in front \ to get them easily

#

But I don't think you can do that on animated emojis if you're not nitro and not able to use them

earnest phoenix
#

I don't have nitro

#

:

#

(

late hill
#

uhh

#

You can probably get a bot to list all emojis with their names/ids

#

idk what else you could rly do 🤷

earnest phoenix
#

ok

#

@fading dagger can u do ":-:rollonthefloor:" plz

late hill
earnest phoenix
#

thx u

ocean rampart
#

What does UnhandledPromise RejectionWarning mean?

mossy vine
#

a promise rejected and you didnt handle it properly. its just a warning, but the promise rejected regardless, so it might be worth reading the full output to find the actual cause of the rejection

earnest phoenix
#

I want to do a emoji command : "bk_emoji :emoji:" --> [the emoji]. How can I make it?

fallow spire
#

@earnest phoenix i just told you

earnest phoenix
#

I need a different command : "bk_react :emoji:" --> react with the emoji

#

but I need emoji Id

#

other request : how to make a "wait" function on javascript?

sudden geyser
#

use setTimeout (and maybe a promise or callback)

earnest phoenix
late hill
#

You delete the message

#

And after that attempt to react to it

earnest phoenix
#

how to react to the last message sent ih the channel?

amber fractal
#

Look at the docs

sage bobcat
#

One message removed from a suspended account.

mossy vine
#

you arent passing your client to your eval command

sage bobcat
#

One message removed from a suspended account.

mossy vine
#

client = no

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

User is not defined

mossy vine
#

okay you are doing it completely wrong

sage bobcat
#

One message removed from a suspended account.

mossy vine
#

dont create a new client

#

pass your current client to your eval command

sage bobcat
#

One message removed from a suspended account.

mossy vine
#

your bot is open source right? i can show you how to do it

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

mossy vine
#

link pls

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

sudden geyser
#

DVSAEZI either you're not passing your client correctly or you don't pass it at all

sage bobcat
#

One message removed from a suspended account.

mossy vine
#

where is the eval command?

#

the repo seems to be outdated

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

sudden geyser
#

you assign client as a local variable, where this.c was never assigned it seems

sage bobcat
#

One message removed from a suspended account.

mossy vine
#

ah im blind

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

mossy vine
#

i said im blind 😩

sage bobcat
#

One message removed from a suspended account.

fallow spire
#

Guys, i tryna setting up my cluster on mongoDB, when i put my Application Acces stuff in my Database it gives me that Error:
(node:12007) UnhandledPromiseRejectionWarning: MongoNetworkError: failed to connect to server [cluster0-shard-00-00-kmwto.mongodb.net:27017] on first connect [MongoNetworkError: write EPIPE]

restive furnace
#

It says clearly it, it cant connect to the db.

fallow spire
#

But why

restive furnace
#

maybe wrong port or pass

mossy vine
#

@sage bobcat yeah, you are changing client to this.c which is undefined

sage bobcat
#

One message removed from a suspended account.

restive furnace
#

just remove it

mossy vine
#

remove that line

fallow spire
#

@restive furnace well pass is right, also anyone can acces it

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

restive furnace
#

maybe then port or address is wrong then.

mossy vine
#

anyone can access it
zoomeyes

fallow spire
#

hmm

#

@mossy vine well, get that pass and your in

earnest phoenix
#

Is it possible for bots to use custom emotes from a server A, on another server B? Im wondering how the bot "free smiley dealer" does it https://top.gg/bot/475418097990500362

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

yes

#

if the bot is in the server, yes

#

oh wow, had no idea

fallow spire
#

Huh i use now my Old Database and everything works

earnest phoenix
#

that's pretty cool

mossy vine
#

@sage bobcat git fetch or git pull i never know which

earnest phoenix
#

so all discord bots basically have nitro ?

#

no

#

nitro for bots doesn't exist

mossy vine
#

they just have access to global emojis

earnest phoenix
#

they can use gif emotes too, right ?

sudden geyser
#

bots hoarding all the nitro

earnest phoenix
#

animated emojis, yes

mossy vine
#

yes

earnest phoenix
#

isn't that basically what nitro is? global emotes and gif emojis

#

no

#

was

#

2 years ago

restive furnace
#

Whats best db: sqlite / mongo / mysql

earnest phoenix
#

sqlite for small scale
postgresql for big scale

mossy vine
#

@restive furnace depends on your experience and use case

restive furnace
#

okay, thx for info

mossy vine
#

isnt mongo pretty good at scaling too?

earnest phoenix
#

mongo is glorified json

#

^

mossy vine
#

fax

sudden geyser
#

this tbh

mossy vine
#

but that makes it really easy to use

restive furnace
#

Wait, what means like big scale, so big scale = over 2,500 guilds and small scale = less than 2,500 guilds

earnest phoenix
#

anything that constantly needs to read and write to a database

#

you can have 2.5k guilds but if you have low activity you can run off of sqlite

restive furnace
#

k

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

mossy vine
#

@sage bobcat show code

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

amber fractal
#

client has to be in the scope of your eval function.

mossy vine
#

it is

amber fractal
#

Clearly...

mossy vine
#

look at the code above lol

#

it was reassigned to undefined

amber fractal
#

where did dv send code MegaThonk

mossy vine
#

git rep

#

o

sudden geyser
#

problem is they set the local var as undefined

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

amber fractal
#

It looks kinda like my eval command, but yours is much cleaner, mine is 11 month old code that I never improved on

gilded plankBOT
#

tickNo This user has no bots

grim aspen
lunar crystal
#

How do I invite my bot here Thonk

amber fractal
lunar crystal
#

Sorry

#

Thx /)

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

amber fractal
#

Wait what's it saying?

#

I have like 0 experience with git

#

Other than --force mmulu

sage bobcat
#

One message removed from a suspended account.

weak parrot
#

So I currently have a website that I need to make for a school assignment I have a method which has a grid. That grid has 3 main content areas and 2 filler ones. Now this works fine. But when I need to add another grid below it that hides/unhides divs on click it will work fine if I go from left to rigth however the placement is all over the place when going right to left.

Is there anyway to make it so that they just open up below the box they're supposed to?

#indexHiddenTabsContainer {
    width: 95%;
    margin: 5% auto 0 auto;
    display: grid;
    grid-template-columns: 30% 5% 30% 5% 30%;
    grid-template-areas: "indexHiddenTabOne" "indexEmptyThree"
    "indexHiddenTabTwo" "indexEmptyFour" "indexHiddenTabThree";
}
        <!-- Verborgen informatie tabs -->
        <div id="indexHiddenTabsContainer">
            <div class="indexHiddenTabs" id="indexHiddenTabOne">
            </div>
            <div id="indexEmptyThree"></div>
            <div class="indexHiddenTabs" id="indexHiddenTabTwo">
            </div>
            <div id="indexEmptyFour"></div>
            <div class="indexHiddenTabs" id="indexHiddenTabThree">
            </div>
        </div>

When selecting left to right
https://cdn.discordapp.com/attachments/540817942577676301/639115639939792896/unknown.png

#

(Just use a button with an onclick event to unhide them)

fallow spire
#

@weak parrot Nani German Word in 2nd HTML Code?!

weak parrot
#

No that's Dutch lmao

fallow spire
#

German aswell

blissful scaffold
#

You are only allowed to be a Timo if you are Dutch

fallow spire
#

Ahw shit

blissful scaffold
#

I didn't notice the dutch in the HTML, but I saw the dutch words in the screenshots

fallow spire
#

How can i detect if an Message Got Edited? What is the Event Called?

blissful scaffold
#

In Discord4J it is a MessageUpdateEvent

#

I guess it's something similar for other libraries and languages

fallow spire
#

for the guildBanAdd Event, How can i read the Reason?

late hill
#

You're using discord.js?

earnest phoenix
#

you have to fetch audit logs

#

reason's not provided in the event

late hill
#

There's also fetch ban

#

Don't know if it would be more efficient in any way

#

But that'll give you just the user & reason

#

While the audit log will also contain the user that banned them

blissful scaffold
#

To fetch a ban you need the BAN_MEMBERS permission

#

to get the audit logs you need the VIEW_AUDIT_LOG permission

west spoke
#

you need to download it

fallow spire
#

How would i put my token in .env?
token=mytoken?

lunar crystal
#

GUILD mean that u are the creator ?

fallow spire
#

Wym

tacit stag
#

@quartz kindle I was able to get the code working! Thanks for your help last night 🙂

blissful scaffold
#

@lunar crystal what do you mean?
A guild is a discord server

lunar crystal
#

I mean the permission

#

@blissful scaffold

blissful scaffold
#

There is no permission with the name GUILD

lunar crystal
#

Oki 🙂

#

So what is the name for the creator of the guild ?

dusky marsh
#

guild.owner is the owner object I'm pretty sure in d.js

modest maple
#

@weak parrot if you still need help with that project ask Mo2 cuz he does alot of HTML and JS webpage deving

glad leaf
#

how do i make my bot tag a channel when i do a command

#

like

earnest phoenix
#

<#id>

brazen quiver
#

guys how can the bot not allow the user to use the commands if he didn't voted to the bot on top.gg website ?

earnest phoenix
#

call the api

#

dbots' docs suck a lot

glad leaf
#

how do I open this in visual studio code? saw it from a video but didnt understand the keys he pressed

west spoke
#

the terminal tab

mossy vine
#

@glad leaf drag upwards from the bottom of the code screen

glad leaf
#

thanks

#

im so retarded holy

glacial mango
#

Is it possible to create a new command with a command?

earnest phoenix
#

depends on how you handle commands

glacial mango
#

What do you mean?

earnest phoenix
#

is it hardcoded if else command handling? no, you can't
are you using files? yes, you can
are you using a module system (seen in discord.net, qmmands etc.)? yes

glacial mango
#

I'm Using files

#

But how do I do it?

glad leaf
#

how can i make my bot only usable by me

#

by owners

#

do i need to make every single command check for role

sterile minnow
#

@glad leaf wait i will send it you via pm

blissful scaffold
#

As soon as a message is received check if the author is the bot owner, do it at the same location where you check if the author is a bot

sterile minnow
#

@glad leaf

glad leaf
#

do i just put this in the index

sterile minnow
#

Are u useing files?

glad leaf
#

wdym

#

i just started doing these things today

#

sorry if i seem stupid

sterile minnow
#

Do u using this?

#

wait

glad leaf
#

no

#

i have the commands in my index

#

._.

sterile minnow
#

Okay then

#


if(command === "NAME_HERE"){

if (message.author.id === "YOUR ID") { 
//command

}
}
#

@glad leaf

glad leaf
#

can I make it so its based with a role other than the author?

sterile minnow
#

Wait

#


if(command === "NAME_HERE"){
if(!message.member.permissions.has("PERMS_HERE")) return message.reply("MESSAGE_HERE")
//command


}
slender thistle
sterile minnow
#

hm?

glad leaf
#

where do i put that exacly tayron

slender thistle
#

Spoonfeed

glad leaf
#

do i have to put that to all commands?

#

@sterile minnow

sterile minnow
#

yes

blissful scaffold
#

if you want it for ALL the commands then im sure you can find a way to do it better ^^

glad leaf
#

does anyone know why my bot replies twice when i do a command

#

fixed it

#

nvm didnt fix it

#

NVM

#

GOT IT

leaden void
#

I'm using JDA

wooden prawn
#

Sweet, gimme a sec

leaden void
#

i think i can't get the user by it's id because he's not in the server

wooden prawn
#

Ye, that's fine, I wouldn't get the user

#

lemme check the docs

leaden void
#

yup, i thinks it's impossible

wooden prawn
#

DELETE/guilds/{guild.id}/bans/{user.id}

leaden void
#

oh yeah i can retrieve the ban

#

thanks

wooden prawn
#

Just let the mod pass in the user ID and pass it straight to that as it takes the ID

#

Don't bother fetching the user

#

Cos you can't, as you've seen

#

Otherwise devs would find a way to game the system and randomly message generated IDs

leaden void
#

k thanks !

wooden prawn
#

NP, good luck!

leaden void
#

;)

snow urchin
earnest phoenix
#

you have a syntax error earlier in the code

#

also, users don't have permissions. you want message.member

snow urchin
glad leaf
earnest phoenix
#

sure, if you're willing to pay

#

@snow urchin not getting any syntax errors on my end from that

#

would make sure that code is what's currently running

snow urchin
#

it is what is currently running

#

this is really confusing me

earnest phoenix
#

only thing popping out to me is you reassigning a constant

sick cloud
#

@glad leaf pollbot is open source

#

it was a decent bot

glad leaf
#

bruh

#

thats literally the bot i was using

sick cloud
#

and it got killed i know?

#

you can host your own copy

modest maple
#

^^^^^^^

glad leaf
#

i just grabbed the poll command file and put it in my commands folder

#

is that what i have to do or do i have to host a brand new bot with everything poll bot has?

earnest phoenix
#

or you can just code it yourself

west raptor
#

@glad leaf literally all you have to do is git clone https://gitlab.com/sdfsdfsdf1234/PollBot then edit the config files to your needs

lunar crystal
#

Do u know how to make an embed in server greeting msg ?

earnest phoenix
#

yes

frozen cedar
#

Rate my bot's new avatar.

modern elm
#

on a scale of pass to smash, its a smash

sudden geyser
#

Bot avatar 100

frozen cedar
#

I made it in paint.

valid frigate
#

if this is intentionally bad then it needs more effort

high anchor
#

Is it possible to upload images to Discord with just the image URI data?

#

I’m not quite satisfied with having to download any external image I want to upload as a file

loud salmon
#

I dont believe so

high anchor
#

ok, thanks

manic basalt
#

how come when Im listening for the event on_member_update, the nickname is returning None sometimes on member.nick of the after member object

blissful scaffold
#

You can link to an external image in an embed and it will look like an uploaded image @high anchor

slender thistle
#

@manic basalt nickname reset

#

Condition after.name == after.display_name would also apply

manic basalt
#

oh ok

#

thank u

empty owl
#

Hey

#

If I have a website, and I want to communicate to it through the bot, how would I do that

grim aspen
#

api

empty owl
#

wat

undone rose
#

theres a few ways to do it

#

depends on your setup

#

for example, my website is built directly into the bot

#

But before i've also had an api that I used for communication between the website server and the bot

#

what do you use for your bot? @empty owl

#

as-in: language

balmy lantern
#

Ok

#

how come when i am in the preview of editing the text is the size i want it, but when i summit it it changes?

undone rose
#

Can we not put emojis inside inline embed fields anymore?

blissful scaffold
#

that is the URL to an emoji, it's not the emoji itself

undone rose
#

wdym its the same string for both of these screenshots

#

Used to work 🤔

blissful scaffold
#

Shouldn't an emoji look like <:name:id> ?

undone rose
#

They are like tht

blissful scaffold
#

maybe you can only use the unicode emojis because i see that one of the offline people has an emoji in the name

undone rose
#

wdym

#

I don't see how that would affect it

blissful scaffold
#

unicode emojis and custom emojis are handles differently

#

it is also possible to have unicode emojis in channel names, while you cant have custom emojis in channel names

undone rose
#

Yes, I jus dont know how to make emojis appear in field values

#

Apparently its different now

#

They appear in field names but not values

blissful scaffold
#

I read a few days ago in the Discord4J or official discord api that there are some restrictions to what you can use in the different sections of embeded messages

#

But Im kinda drunk right now, so i dont feel like looking for it

undone rose
#

That's stupid

#

Old way was better idk why they changed that

blissful scaffold
#

I think it wasn't about emojis, but about links that looks like [text](url)
But if those things are limited then emojis might also be limited

undone rose
#

hmmmmm

#

I wonder why they would disallow it in field values but not in field names

#

Either way its a pain in the butt

#

Nevermind, they do allow it

#

I just dont know why my string specifically isn't working

#

perhaps it gets disabled with markdown

#

ok so its just that one of the emojis was spelled wrong

#

nice

#

fricked all of them up in the process

late hill
#

There are indeed restrictions on what works and what doesn't in embeds

#

Important to notice is that it's also dependant on your system

#

And probably also the version of your discord

#

For example: my old android phone with an outdated discord won't display any markdown anywhere but in field values/descriptions

valid frigate
#

embed emojis do not work if every emote doesnt resolve correctl

#

y

late hill
#

It would probably be best for you to try and avoid using special markdown/emotes in those places

valid frigate
#

pulled off a bruh moment when i figured that out lmao

late hill
#

So that even outdated systems can still see things the way they should

#

And yes, if a message contains just 1 invalid emote, it won't show any of them

#

Not just embeds have that

valid frigate
#

lol markdown is the essence of embed formatting, older versions support it

#

discord is built on electron so backwards compatibility is a thing

late hill
#

I'd love to believe you but as long as my mobile device is showing all emotes in there as name:id I'm gonna have to say you're wrong

#

On top of that

#

"discord is built on electron so backwards compatibility is a thing"

#

I literally can't view the news channels on my mobile

#

They don't exist

#

so backwards compatibility seems to be a big joke there

winged ledge
#

I think this is a dumb question but is it allowed to create a trade vote bot, for exemple if mr A vote for the bot, the owner of the bot vote for mr A bot ?

quartz kindle
#

Idk if there is a rule about that, but voting cannot be automated, you both would have to manually vote for each others bots

winged ledge
#

Yeas 😁

earnest phoenix
#

henlo
I have a problem
my ${client.guilds.size} outputs 9 (normal) in the bot statuts, but on other command the output is 0. Why?

quartz kindle
#

Another command in the same bot? Is the bot sharded?

earnest phoenix
#

it's not

quartz kindle
#

Are you caching it somewhere?

earnest phoenix
#

I think this is the problem
const Client = require("../client/Client"); const client = new Client();

quartz kindle
#

Yes lol

#

Youre creating a new empty client

earnest phoenix
#

I start a new client each time I want to know something about client

#

but how tu re-use an non-empty client?

quartz kindle
#

Is the command in an exported file?

earnest phoenix
#

``client.on("ready", () => {
console.log(Logged in as ${client.user.tag}!);

client.user.setActivity(beta v0.4 :) | bk_help | ${client.guilds.size} servers);

});``
this works fine in index.js

#

yes

#

eval.js is not index.js

quartz kindle
#

Then pass the client to the file as an argument

earnest phoenix
#

wat do u mean?

quartz kindle
#

How do you run the file?

earnest phoenix
#

wich file

quartz kindle
#

The eval file

earnest phoenix
#

oh

quartz kindle
#

See

earnest phoenix
#

client.on("message", async message => { const args = message.content.slice(3).split(" ") const commandName = args.shift().toLowerCase() const command = client.commands.get(commandName) if (message.author.bot) return; if (!message.content.startsWith(prefix)) return; try { command.execute(message); } catch (error) { console.error(error); } });

#

like this

quartz kindle
#

command.execute(message)

#

you can do command.execute(client,message)

earnest phoenix
#

hm

quartz kindle
#

That will send the client as an argument

#

To the eval file

#

Another way, since youre alredy sendibg the message, is ti get the client from the message

#

In your eval file let client = message.client

earnest phoenix
quartz kindle
#

All messages contain the original client reference

#

You have to change the argumets

earnest phoenix
#

it works

quartz kindle
#

If you change it to client,message on one side, you have to change it to client,message on the other side too

earnest phoenix
#

thx

#

so I have to change it on ALL my files :/

quartz kindle
#

If you do ut that way, yes

earnest phoenix
#

How to get nitro emojis ID without Discord nitro?

#

ask someone wit nitro @earnest phoenix

hoary elm
#

@earnest phoenix one way that I know of doing it is by going on the browser version of discord and inspecting the page that has the emoji you want the ID for you can usually find the ID in there

earnest phoenix
#

@hoary elm its there a way for Android Mobile?

#

Because im not on PC now

hoary elm
#

Yeah same process go to the browser (google chrome) version on your android make sure you have it set to view as desktop and then add view-source: to the begging of the link to bring up the page inspect on Android

sudden geyser
#

or you could use an eval command and list all the ids

#

which is like 30x less painful

hoary elm
#

That works to 😁

sudden geyser
#

or someone with nitro could help you as well

hoary elm
#

I just like out sourcing my options

cunning goblet
#

i just made my own script that downloads all nitro-only emotes

#

for a friend

late hill
#

@earnest phoenix maybe too late but you could have also used message, client instead

#

That way you'd only have to change it in the ones where you actually want to use client

#

Passing extra arguments in javascript doesn't throw any errors so it would still work for your other commands

#

The order is what matters basically

earnest phoenix
#

client,message works too

fallow spire
#
const db = require ('quick.db')

module.exports = {
  config: {
    name: "deposit",
    aliases: ["dep"]
  },
  run: async (bot, message, args) => {
    
    let toDeposit = args[0];
    
if(isNaN(toDeposit)) {

return message.channel.send("That's not a Number")
}
    
    let embed = new RichEmbed()
    .setDescription(`You deposited ${toDeposit} Coins to your Bank.`)
    message.channel.send(embed)
    
    db.add(`bank_${message.author.id}`, args[0])
    db.subtract(`money_${message.author.id}`, toDeposit)
    
  }
}```

Error: Error: .add() data is not a number
#

help ne

#

me

west spoke
#

I mean

#

You didnt check if it was a number

#

if(!NaN()) I believe

fallow spire
#

oooppsss

#

i forgot !

west spoke
hushed dirge
#

How many letters are there in a nitro gift

earnest phoenix
#

More than 1

hushed dirge
#

I know that

grim aspen
fallow spire
#

Still gives the that Error @west spoke

#

Tho i checked if is a number

earnest phoenix
#

I want to add Bot I am getting Error?

wispy hinge
#

What error?

west spoke
#

It's about dbl

#

Ignore his message, it was answered in #general

grizzled raven
#

@fallow spire Number(args[0])

fallow spire
#

db.add(bank_${message.author.id}, Number(args[0]))
?

#

@grizzled raven

grizzled raven
#

yes

fallow spire
#

Why Number?

mossy vine
#

to convert it to a number

fallow spire
#

Okay... But at my Normal Coin System i only have

db.add(money_${message.author.id}, args[0]

mossy vine
#

if its working then use that

fallow spire
#

But i dont work at my Bank System

#

Just That Error

grizzled raven
fallow spire
#

okkkkk

mossy vine
#

@grizzled raven i hate how that applies to so many questions in this channel

grizzled raven
#

just save the image and spawn it every hour as a reminder

amber fractal
#

I swear people use this channel as a google search bar

fallow spire
#

Lmao

mossy vine
#

@amber fractal javascript setInterval

amber fractal
#

Give me a moment

earnest phoenix
#

it's because google search allows up to 120* chars for a query, copypasting your erros here without reading them is more effective :wesmart:

mossy vine
#

wait errors are supposed to be read?

#

(maybe we should stop shitposting in development lmao)

earnest phoenix
#

no, yes

fallow spire
#

@grizzled raven ty

loud salmon
fallow spire
#

Lmao

grizzled raven
#

@loud salmon i was looking for the full video lol

#

i will be using that

#

swipe

#

although, the image gets right to the point

#

xd

mossy vine
#

so does the vid thumbnail

fallow spire
#

Do Canvas work on glitch?

vague chasm
#

Yes

hushed dirge
vague chasm
#

Html (js and css too, if you want it better)

hushed dirge
#

i am beginer for these languages

#

even my friend help me to make bo

#

t

earnest phoenix
#

Same

vague chasm
#

where do you host the bot? @hushed dirge

hushed dirge
#

glitch

earnest phoenix
#

Heroku

mossy vine
#

thats the long description

hushed dirge
#

i know

mossy vine
#

you cant use js in there (unless you are a certified dev)

vague chasm
#

^

mossy vine
#

your hosting provider is completely irrelevant to this question

hushed dirge
#

so i cant add custom bg ?

mossy vine
#

you can

#

with css

vague chasm
#

no i asked because i need a new hosting provider xd

#

(not free)

mossy vine
#

figure out class names with inspect element and write css in your long description between <style> tags

hushed dirge
vague chasm
#

widget

hushed dirge
#

how to add it ?

vague chasm
#

add it where

hushed dirge
#

to long description

mossy vine
#

a widget.. it literally gives you code to copy

vague chasm
#

copy the html code

hushed dirge
#

ok

vague chasm
#

and paste in l0ng description

hushed dirge
#

top ?

vague chasm
#

wdym

hushed dirge
#

i like spoopy memer description how to make like it

mossy vine
fallow spire
#

whats the class of the menu page? in the html code?

hushed dirge
#

see this near devloper

mossy vine
#

does it not render if you save it either?

hushed dirge
#

what is the hex of dark yellow

fallow spire
#

google @hushed dirge

hushed dirge
#

ok

#

anyone know ?

#

help

loud salmon
#

saying stuff like "helpppppppp" just mskes people not want to help you

#

you do that stuff with css google it to learn more

hushed dirge
#

not working

loud salmon
#

you need to use the elements that the page uses in the css

#

thats not how to do it

hushed dirge
#

bro i dont know anything about css

loud salmon
#

idk much about css

hushed dirge
#

-bots 102845358677176320

gilded plankBOT
#
Bots <:dblMod:483995659054088193> <:dblCertified:392249976639455232>

@median gustdblCertified

hushed dirge
#

@loud salmon your bot name ?

loud salmon
hushed dirge
#

your bot name

loud salmon
#

you will find it

#

on that page

#

just use my user id

#

instead of

#

UserIdHere

#

@vernal willow no

#

bad

#

he needs to learn

vernal willow
#

oh sorry

loud salmon
#

😤

hushed dirge
#

your bot's description is simple

loud salmon
#

yes

#

as it should be

hushed dirge
#

have you seen spoopy memer's description

loud salmon
#

uh yea, why?

leaden void
#

Do someone know how to create an exp system ?

#

i tried and it worked but when i restarted the bot, all the exp points were gone

#

FOREVER

earnest phoenix
#

because you need a database

#

you can't store data into variables (in memory) and expect them to be saved

hushed dirge
#

its realistic @loud salmon

loud salmon
#

uh

#

ok

earnest phoenix
#

Is there a max messages cleared for a clear command? I don't want to be breaking Discords API

loud salmon
earnest phoenix
#

Thanks

frozen cedar
#

How can I eat pizza with a discord bot

#

like use a command to send an API post to my raspberry pi which executes code to activate a survo

#

and feed me pizza

#

so I don't need to use my hand

grim aspen
#

i don't think you can eat a pizza with a discord b-

#

that isn't related to a discord bot

frozen cedar
#

I just gotta know how to setup the post endpoint on my pi, I got the survo stuff done

#

yeah it is, because the !feedme command is through discord

grim aspen
#

have it connect through a webserver with an api and have the bot listen with that api for the command and do the action and have the bot send the command through the api to the webserver, then have the webserver transfer the data to your raspberry pi

earnest phoenix
#

in userinfo command, how can I show when the user joined Discord / the server?

#

bot in js

wheat jolt
#

Member.joinedAt

smoky spire
#

joinedAt is already a date

wheat jolt
#

Ah yes,

earnest phoenix
#

thx

#

but no :/

#

joined at outputs undefinied

late hill
#

show code

#

You most likely aren't using it on a member or made a typo

earnest phoenix
#

patched, sry

grizzled raven
#

what

earnest phoenix
#

how is it possible for a few guilds to be unresponsive even though the shard is online?

smoky spire
#

discord outages cause guilds to be unavailable

earnest phoenix
#

but i restarted all shards and the offline guilds became responsive again

distant plank
#

Hi, I have a "magik" command that I copied from the open source of the esmBot bot, but I need to know how to do it faster, since it takes a long time and, from what I see, it gives the same result as vexera, but vexera takes nothing of time.
this is my code

#

this is my code

 else if(command == "magiktest"){
        let miembro = message.mentions.users.first();
        const image = miembro.avatarURL;

  if (image !== undefined) {
    gm(request(image)).resize(800, 800)
    .out("-liquid-rescale", "400x400")
    .out("-liquid-rescale", "1200x1200").stream((error, stdout) => {
      if (error) throw new Error(error);
      message.channel.send({
        files: [{
          attachment: stdout,
          name: "magik.png"
        }]
      });
       
     
  });
}  
      }