#development

1 messages ยท Page 721 of 1

quartz kindle
#

they are waiting for discord to fully release documentation on custom statuses

trail reef
#

ok

#

thanks for your time!

distant plank
#

@quartz kindle How can I load all the entries?, I have them saved like keyv.set ("messagelevel" + message.author.id, nlevel);

quartz kindle
#

Map supports .keys() .values() .entires() and .forEach()

#

from what i understood in their docs, keyv should support the same

modern elm
#

p!help

#

still muted

mossy vine
#

you cant use bots in this channel

slender thistle
modern elm
#

yeah you can

#

i didnt ralize

#

my b

distant plank
#

@quartz kindle I didn't know how to do it, I'm really very new

serene escarp
#

Hi I want to develop a bot for my discord

#

is there an easy how-to somewhere

slender thistle
#

Learn a programming language, get used to it, choose a Discord API wrapper for your language, use it

empty owl
#

dont do the wrapper before the lan

serene escarp
#

okay

fiery stream
#
    at Function.render (/Users/jazz/Projects/Insta-DP/node_modules/express/lib/application.js:580:17)
    at ServerResponse.render (/Users/jazz/Projects/Insta-DP/node_modules/express/lib/response.js:1012:7)
    at router.get (/Users/jazz/Projects/Insta-DP/routes/dp.js:19:7)
    at Layer.handle [as handle_request] (/Users/jazz/Projects/Insta-DP/node_modules/express/lib/router/layer.js:95:5)
    at next (/Users/jazz/Projects/Insta-DP/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/Users/jazz/Projects/Insta-DP/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/Users/jazz/Projects/Insta-DP/node_modules/express/lib/router/layer.js:95:5)
    at /Users/jazz/Projects/Insta-DP/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/Users/jazz/Projects/Insta-DP/node_modules/express/lib/router/index.js:335:12)
    at next (/Users/jazz/Projects/Insta-DP/nod``` wtf causes that
earnest phoenix
ember atlas
#

No, you need to ignore bots

#

What is your library and language?

earnest phoenix
#

.js

fiery stream
#

so when ever

ember atlas
#

Library?

fiery stream
#

other bot like msges A!say {yourprefux}

#

your bot responds to it

ember atlas
#

I have explained what happens

#

Theyre here to ignore bots which is what im going to help them with

fiery stream
#

i explained it in simple words

#

whatever boss can u help me

earnest phoenix
#

:/

ember atlas
#

Oh Idk about your issue jazz

#

I would say send the code and wait for someone who knows

fiery stream
#

Error: Failed to lookup view "/Dp" in views directory "./web" wtf ejs causes that

earnest phoenix
#

So I need to edit in my code

ember atlas
#

Yes, can you show me your message event?

fiery stream
#

you need if and else function

ember atlas
#

Yep

#

Was getting there, just asking to see their code.

fiery stream
#

if user = bot {
blah blah
} else if {
}

ember atlas
#

You dont need all that

fiery stream
#

ik u can do return to

ember atlas
#

Plus spoon feeding is not really fun

earnest phoenix
#

^

fiery stream
#

can u spooon feed me

earnest phoenix
#

just let people suffer until they figure I out

fiery stream
#

im going in depression cuz of this problem

ember atlas
#

@earnest phoenix Can you show me your index.js file?

fiery stream
#

pls hide your token

earnest phoenix
#

^

#

@ember atlas yaa sure

ember atlas
#

Yep do that

earnest phoenix
#

@ember atlas but my all command is in index.js only

#

Their is no command handler

ember atlas
#

I need your message event

fiery stream
#

you ill prob need hastebin

ember atlas
#

You should still have a message event

earnest phoenix
#

do you even know what your code is?

granite sequoia
#

if user = bot would not even work oliymexican

fiery stream
#

ik

#

i just gave him a example

granite sequoia
#

A wrong example?

ember atlas
#

Why did you spoon feed...

fiery stream
#

if(message.author.bot) return;***

earnest phoenix
#

I did it

#

smh

#

if they have all the code and there so close to it, not really spoon feeding

granite sequoia
#

๐Ÿฅ„ ๐Ÿ”

earnest phoenix
#

it's literally going into the d.js documentation

fiery stream
#

who eats hamburger with spoon

#

Logic ๐Ÿ’ฏ

granite sequoia
#

Spoonfeeding will help the user get their answer, sure - but when they need to find another answer on their own they wonโ€™t be able to.. giving a docs link or hinting is good enough imo

#

users have a bot property, which you can use in an if statement or boolean

fiery stream
#

whatever

#

can someone help me with my issue

granite sequoia
#

What is it

fiery stream
#
Error: Failed to lookup view "/Dp" in views directory "./web"```
#

ejs is being fairly lovely today

#

the file is there for sure

granite sequoia
#

You are searching for a directory that doesnโ€™t exist apparently.

fiery stream
#

well it does

#
app.set('view engine', 'ejs');
app.use(express.static('web'));```
granite sequoia
#

Iโ€™ve never seen that error before then, so not sure.

fiery stream
#

ahk :[

granite sequoia
#

Depending on file structure you may need to access it another way

fiery stream
#

it worked before since i have setup routers it stopped workin

hoary elm
#

@fiery stream have you tried referencing their gist page?

fiery stream
#

wdym

hoary elm
#

Well I googled your error

#

And this popped up

fiery stream
#
const axios = require('axios');
const logger = require('../lib/modules/logger');

const router = express.Router();

router.get('/Username', (req, res) => {
  const name = req.query.words;

  axios.get(`https://www.instagram.com/${name}/?__a=1`)
    .then((response) => {
      const data = response.data.graphql.user;
      logger.debug(data);
    })
    .catch((error) => {
      logger.debug(error);
    });

  res.render('/Dp');
});

module.exports = router;
``` tahts what i have for router
hoary elm
#

๐Ÿค”

fiery stream
#

what is that wrong?

hoary elm
#

No I just don't see anything that could be causing your error

#

Everything appears to be set properly

fiery stream
#

yea thats what i am wondering

#

cuz i dont think im a noob at this stuff

hoary elm
#

๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚ we all have our moments

fiery stream
#

nvm

#

i just had a bruh moment

hoary elm
#

Lol see told you

#

We all have our moments

#

๐Ÿ˜‚๐Ÿ˜‚

fiery stream
#

u know what the error was

#

i had res.render('/dp') was supposed to be res.render('dp')

hoary elm
#

Wow

#

I was actually just looking at that when you said you got it

fiery stream
#

oh lol

hoary elm
#

The / caught my eye but it didn't register as a issue lol

#

My brain was like nah that's fine

fiery stream
#

lol thats what i was thinking the whole time

hoary elm
#

LMFAO

#

You fixed it then

fiery stream
#

yee

fallow spire
spare goblet
#

@fallow spire you didnt specify the node version in package.json

fallow spire
#

how would i do that?

#

like what paremeter or howevery thats called

#

@spare goblet

earnest phoenix
#

@spare goblet hey I have some queries

hoary elm
quartz kindle
#

@fallow spire google "package.json engines"

spare goblet
#

@earnest phoenix what's up?

earnest phoenix
#

Admin permission is required for bot

#

How to make a link for going in specific class with scroll down.without any process or new tab

spare goblet
#

@earnest phoenix go to your bot page
click EDIT
and update the invite link to have permissions integer 8

quartz kindle
#

@earnest phoenix use an anchor link

earnest phoenix
#

Where I can't se that

#

@spare goblet and my bot is muted here

#

@quartz kindle what is it ?

fallow spire
#

@spare goblet How can i restart my Build?

earnest phoenix
#

I have fix the issue

#

Of my bot

quartz kindle
earnest phoenix
#

@fallow spire go in deploy section

#

Ohk got it thanks Tim

quartz kindle
#

scroll down to HTML Links - Create a Bookmark

earnest phoenix
#

Ok @quartz kindle ill try it
Thanks

#

@spare goblet the bot is fix can u unmute the bot

#

@quartz kindle can u tell me this

quartz kindle
#

to show your server you need to use the website api to send it

earnest phoenix
#

So I need to create a website

#

For my bot

quartz kindle
#

no

spare goblet
#

-servercount

gilded plankBOT
#

To have your bot's server count displayed on DBL, please read the documentation on server/shard posting. Click here to see the docs.. You may also find #312614469819826177 useful; however it is strongly discouraged as most of the examples are extremely outdated.

spare goblet
#

@earnest phoenix and can you send me the bot's client ID in my DMs please? Thanks

earnest phoenix
#

@spare goblet ohk

fallow spire
quartz kindle
#

what did you put there?

fallow spire
#

in package.json > engines?

quartz kindle
#

yes

split hazel
#

I am just curious if I'm going in the right direction/way in making a timed mute or something related to that

1 save the mute to a database including the date and length

2 have an interval that runs every 5 seconds or so that runs .all on the database and goes through the mutes

3 if the mute is supposed to end, remove it from db and remove the muted role

#

Pretty much i want the best way, if that isnt already

quartz kindle
#

not really the best way, but an okay way

spare goblet
#

that's not a good way to do it

#

That's a really large query which would use a lot of resources

fallow spire
#

@quartz kindle

quartz kindle
#

that means bigger or equal to node 10

#

meaning node 10, 11, 12, 13

fallow spire
#

so only 10 or what?

quartz kindle
#

which is not allowed because there are breaking changes between major versions

split hazel
#

Do you have any tips/overviews on a better way?

quartz kindle
#

you should do ^10.x.x

#

which means the most updated version of version 10, if im not wrong

#

@split hazel the best way would be to use timeouts

spare goblet
#

There's many ways

  1. cache it and set interval, so you're not calling db queries each time.
  2. schedule it to occur after a specific period of time, aka using setTimeout() or a schedule function
earnest phoenix
#

How can I add the upvotes count in my bot status

quartz kindle
#

use the api

late hill
#

would you set a timeout for each active mute?

split hazel
#

So something like restarting the timeouts after a bot restart or something like that

blissful scaffold
#

after restarting the bot load all mutes from the DB and create a timeout for each mute

split hazel
#

i like number 1, caching it didnt come into my mind

late hill
#

would setting a timeout for each scale well

spare goblet
#

No it wouldn't @late hill

late hill
spare goblet
#

Anything but grabbing your entire schema/table/db every five seconds lul

split hazel
#

so i should just save the .all in a variable or something and do it like that

#

basically caching

spare goblet
#

Yeah

blissful scaffold
#

if you got too many timeouts then you could run every hour and create timeouts for every mute that ends in the next hour

spare goblet
#

Remember to add it to the cache every new mute and remove from cache when unmuted

split hazel
#

yeah i'll probs make a class for that

blissful scaffold
#

if it's possible to change the mute duration then also remember to reset the timeout for that mute

warm marsh
#

Does anyone know a good non-hardware eating way to dynamically import files from a folder in ruby?

fallow spire
#

Yay i finaly host on heroku

earnest phoenix
#

But that is for limited time

fallow spire
#

Wym

#

@earnest phoenix

earnest phoenix
#

Yea you got months Hours for run

fallow spire
#

Wait how much?

earnest phoenix
#

Idk now

#

Ask google

valid frigate
#

get offa heroku and onto a vps

split hazel
#

tbh glitch is much better than heroku

valid frigate
#

neither are good

#

vps best

split hazel
#

yes a vps is best

earnest phoenix
#

@split hazel are you using glitch

split hazel
#

not specifically

valid frigate
#

please say sike

split hazel
#

i only use it for testing

fallow spire
#

@split hazel i go back to Glitch xd

warm marsh
#

Glitch is only partially good if you're using node.

split hazel
#

when i wanna put my stuff into production i put it onto my vps

warm marsh
#

But you should try fork out enough for a vps. They're so much better.

earnest phoenix
#

@split hazel you know how to save env there
because i tested a time and i not getting how to save env on glitch

split hazel
#

glitch auto saves as far as i know

earnest phoenix
#

Where we can add env on glitch

undone rose
#

Some of them are super cheap. https://qoilo.com/hosting $3 for a gig of ram and a cpu vcore should be enough for pretty much all new discord bots tbh

warm marsh
#

at the top, Add file ".env"

earnest phoenix
#

Okok

valid frigate
#

vultr/ovh/galaxygate/digitalocean are the big 4

#

also seem to be the most reliable

fallow spire
#

cloudflare

valid frigate
#

cloudflare workers :LUL:

undone rose
#

The one i linked is also super reliable

valid frigate
#

k

warm marsh
#

There is lots of reliable ones, Check pins for a list of them.

undone rose
#

Yeah. I used DO/Vultr before switching tbh

#

I liked Vultr the most and I still use them for some things im too lazy to setup myself

split hazel
#

try to avoid very cheap vps's though

undone rose
#

I never used galaxygate before tho bc i heard they fricked a lot of customers over

split hazel
#

most of them promise you good resourses but actually their crap

undone rose
#

cough VPSDime cough Scaleway

valid frigate
#

why does quolio redirect me to another website

#

rebranded?

undone rose
#

Qoilo is my site

#

Its a shortlink

#

But yeah vpsdime will reel you in with that and they are v reliable but their tos is shady at best

#

And Ive had bad reliability issues with OVH and Scaleway

#

So i cant rlly recommend them anymore. General rule is its usually always too good to be true lol. But thats only for most cases, there are some diamonds in the rough out there

fallow spire
#

How would i desing a Html Table Like the one dyon.gg

undone rose
#

Creating a style sheet

split hazel
#

i had many reliability issues with vpsdime

#

now we just use a dedicated server

undone rose
#

Same

#

Specs?

split hazel
#

i can dm you it

undone rose
#

O

#

Damn thats powerful

#

10 cores and 256GB of memory big oof

fiery stream
#

Wtf

#

Who has it

#

Rich guy

warm marsh
#

What else do you run on that dedicated server?

undone rose
#

$121 a month tho

#

Thats actually p good pricing

fiery stream
#

Thats still expensive

#

Who is the host

undone rose
#

Not for those specs imo

#

If you need that much ram

fiery stream
#

Who is the host

undone rose
fiery stream
#

Ahk

quartz kindle
#

im on galaxygate for about 6 months now, never had a problem

glacial mango
#

Could someone help me with sending a message to a channel when someone voted for My bot?

fallow spire
#

use the vote event and do Something like message.channel.send("New Vote")

#

Also there is Something called "Docs"

loud salmon
#

impressed, it took you 4 days to set up hosting on heroku dont go shaming people for not reading the docs mmLol

fiery stream
#

๐Ÿ˜‚

earnest phoenix
#

๐Ÿ˜ฌ

vernal willow
earnest phoenix
#

that's a L

dull ember
#

lmao

fiery stream
#

Same beef

undone rose
bitter sundial
#

sick burn

frozen cedar
#

This is probs like super dumb but like uh

#

cost vtoken = "RV_" + w1 + "_" + w2 + "_" + w3 + "_" + w4 + "_" + w5

#

why is that giving me an error?

#

the w things are all variables

#

wait

#

fuck

#

im so dumb

#

disregard

#

i cant read

glacial mango
#

Howdo I create a webhook for the vote update?

ruby talon
mossy vine
#

it means that it installed everything

#

you can ignore most of the warnings

#

having a package.json file is generally a good idea

#

C:\Users\kitty

supple harbor
#

Seems like it might be a fairly good idea to create a separate project folder and work inside of there, though.

mossy vine
#

wdym

supple harbor
#

The command prompt starts out at C:\Users\kitty which is your user folder. You can change folders in the command prompt using cd foldername

#

Node bases your entire project around the folder that it is contained within.

valid frigate
#

honestly if you're gonna move folders delete node_modules

#

it's not worth waiting to move like 30000 files

supple harbor
#

Do you already have a folder established for your bot?

#

In VS code, you'll go to File > Open Folder... and select your folder.

#

To work with that folder from the command prompt, after you open the command prompt, type cd C:\Users\kitty\yourfolder, changing the command as necessary.

#

You may also be able to use the command prompt inside of VS Code, which should put you directly into that folder as well.

#

If memory serves me correctly, there should be a "Terminal" menu up at the top. If so, you can select "New Terminal" from there, and you can use your npm commands inside of the pane that opens.

#

It should give you a prompt that has your folder name in it.

#

You can run npm install discord.js from there.

#

To my recollection, it should do it by default.

#

VS Code should attempt to save your session, including the open folder and any open files.

#

You can browse the files that are in the folder from the sidebar. Files open in tabs up at the top.

lunar crystal
#
  console.log('Stop mention :(');
});

client.on('message', message => {  
if (message.content === `${message.author.bot}`) {
message.reply('Mon prรฉfix est `!7`, pour voir la liste des commandes tapez la commande `!7Help`.  ')
}
});
#

Why When I @ my bot nothing is happening ?

earnest phoenix
#

please use proper code blocks

#

```js

earnest phoenix
#

@lunar crystal pretty weird but try this ```js
if(message.content === '<@botID>') {
// code
}

lunar crystal
#

You have to put .js at the end of the file

#

Oki thank u

earnest phoenix
#

uh

#

reset your token

#

@earnest phoenix

lunar crystal
#

like = Yourfile.js @earnest phoenix

#

Have u download npm i -- discord.js?

earnest phoenix
#

your file is a txt file

#

not a js file

quartz kindle
#

you didnt save the file lol

earnest phoenix
#

Codeblocks:
```js
const Discord = require("discord.js");
// further code
```
becomes

const Discord = require("discord.js"); 
// further code

Inline Codeblocks:
`console.log('inline!');` becomes console.log('inline!');

quartz kindle
#

where did you save it?

#

which folder

earnest phoenix
#

idk what your talking about by saying code blocks

quartz kindle
#

you installed discord.js in C:/Users/kitty

earnest phoenix
#

reset your token dude

#

wtf

#

oh ok

quartz kindle
#

your command line is in the wrong folder

#

you need to move it to the same folder as your file

#

you can use the command cd to move folders, for example cd documents

#

you need the three backticks on both sides of the code

#

beginning and end

#

```like this```

lunar crystal
#

Don't put ur token like that

#

everyone can change it

#

Ah ok p

#
  console.log('Stop mention ');
});

client.on('message', message => {  
if (message.content === '627224487913455635') {
message.reply('Mon prรฉfix est `!7`, pour voir la liste des commandes tapez la commande `!7Help`.  ')
}
});```
earnest phoenix
#

no

lunar crystal
#

I've tried everything but still the same ^^'

earnest phoenix
#

member mentions usually go like this <@ID>

#

so you surround the ID with <@>

quartz kindle
#

@earnest phoenix the problem is not your code, is your command line being in the wrong folder

lunar crystal
#

Ah ok like '<@Id>'

earnest phoenix
#

yeah

lunar crystal
#

yeah ๐Ÿ˜ฎ

quartz kindle
#

that will work if the user doesnt have a nickname

#

if they have a nickname, it will be <@!ID>

earnest phoenix
#

or you could check the message#mentions collection

#

like message.mentions.members.first() and check if that member ID is your Bot's ID

lunar crystal
#

oki thx ๐Ÿ˜„

mossy vine
#

can you run node -v real quick

quartz kindle
#

you need to restart your pc after installing node. also, during node installation make sure the "Add to PATH" option is enabled

mossy vine
#

^

lunar crystal
#

Ok it's working thx guys ๐Ÿ™‚

quartz kindle
#

it says right there

#

Error: Incorrect login details were provided.

#

where did you get the token from? which page

#

which page?

#

did you click the copy button in the token section?

#

is the public bot switched on?

#

well, try resetting the token and trying again

#

thats part of it, errors tell you how to make it work

blissful scaffold
#

I always start to worry when there are no errors

#

it means something has gone terribly wrong if there are not even errors shown

sudden geyser
#

Nightmare fuel for developers is starting your app, but it doesn't do anything.

blissful scaffold
#

You read the error message, you go to the line mentioned in the error and you try to figure out what went wrong

quartz kindle
#

if you're still getting invalid login, dm me your token and i'll test it for you

blissful scaffold
#

DO NOT post the token here in chat, only in dm IF you trust tim

#

you can always reset the token if it leaks, but people might have already abused it by then

quartz kindle
#

your token works

west raptor
#

can you send the code you are using to get/use the token?

#

ofc replace the token with whatever

maiden cape
#

how can i check all the servers my bot is in in node.js?

west raptor
#

Client#guilds

#

docs are here if you are using d.js https://discord.js.org/#/docs/main/stable/

quartz kindle
#

you're welcome

#

keep the program running

west raptor
#

Using your own computer for 24/7 uptime isn't always a good idea

#

There are hundreds of VPSes, some of the better ones are listed in pins

earnest phoenix
#

you can use my arms for 24/7 cuddle uptime

#

im a renown cuddle expert studying the field of qt

frozen cedar
#

 const fs = require('fs')
                                const editJsonFile = require("edit-json-file");

                                const path = `./users/${message.author.id}.json`

                                try {
                                  if (fs.existsSync(path)) {
                                    let file = editJsonFile(`./users/${message.author.id}.json`);

                                    file.set("discordid", message.author.id);
                                    file.set("robloxid", d.Id);
                                    file.save();
                                  } else {
                                    fs.createReadStream('./users/template.json').pipe(fs.createWriteStream(`./users/${message.author.id}.json`)).then (function(run) {
                                        let file = editJsonFile(`./users/${message.author.id}.json`);

                                        file.set("discordid", message.author.id);
                                        file.set("robloxid", d.Id);
                                        file.save();
                                    })
                                    
                                

                                  }
                                } catch(err) {
                                  console.error(err)
                                }```
west raptor
#

good lord that formatting

frozen cedar
#

Yeah, wait why didn't that copy formatting.

grim aspen
#

i never seen something indented that much

frozen cedar
#

tf

#

is w-

#

whatever

west raptor
#

hear lemme

#

just

#
const fs = require('fs')
const editJsonFile = require("edit-json-file");

const path = `./users/${message.author.id}.json`

try {
    if (fs.existsSync(path)) {
        let file = editJsonFile(`./users/${message.author.id}.json`);

        file.set("discordid", message.author.id);
        file.set("robloxid", d.Id);
        file.save();
    } else {
        fs.createReadStream('./users/template.json').pipe(fs.createWriteStream(`./users/${message.author.id}.json`)).then(function (run) {
            let file = editJsonFile(`./users/${message.author.id}.json`);

            file.set("discordid", message.author.id);
            file.set("robloxid", d.Id);
            file.save();
        })



    }
} catch (err) {
    console.error(err)
}```
frozen cedar
#

yeah, ok

#

well

#

uh

#

thanks

west raptor
#

np

#

alyways

frozen cedar
#

wait one sec, lemme try uno last thing

west raptor
#

alright so first of all

frozen cedar
#

Yeah, ok uh I removed the .then thing

west raptor
#

why the hell are you making a file for each user

frozen cedar
#

cuz its not needed

#

uhm, dont worry bout that part

#

databases are hard ok!

earnest phoenix
#

is that a JSON database

frozen cedar
#

no

#

its not

#

shh

#

ive been exposed

#

i gotta blast!

earnest phoenix
#

dude

frozen cedar
#

its not gonna be editted at all

west raptor
#

please just

#

just use

#

mongodb

frozen cedar
#

this is like legit the only time lmao

earnest phoenix
#

your creating so much unnecessary work

#

you can use a proper database like what Dream said

#

and many others

frozen cedar
#

SIGH

earnest phoenix
#

like sqlite

#

and MySQL

west raptor
#

rethinkdb

frozen cedar
#

eww

#

i hate databases

#

they are gae

earnest phoenix
#

i don't think you have the right to say "eww"

frozen cedar
#

i just store my users in plaintext

#

1

#

!

earnest phoenix
#

whatever floats your boat bud

west raptor
#

you are just making your life hard

#

but ok

earnest phoenix
#

lmao

frozen cedar
#

wait im signing up for mongodb

#

this might actually be better

west raptor
#

you dont need to?

frozen cedar
#

so i can make my api down the line easier

earnest phoenix
#

any proper database is better than JSON lmao

quartz kindle
#

lol good luck

frozen cedar
#

tim shush

#

u look like a potato

#

ok so uh

#

lemme thonk

#

which database is the easiest

#

to use

west raptor
#

none

earnest phoenix
#

sqlite is pretty easy

west raptor
#

it comes down to preference

frozen cedar
#

dream i tried no database

#

o

#

u meant

#

ok

earnest phoenix
#

dream i tried no database
what? lmao

quartz kindle
#

how about study a bit about databases, their types/styles/differences?

frozen cedar
#

@earnest phoenix

earnest phoenix
#

yeah i see that

frozen cedar
#

Alrighty boys, mongo it is

west raptor
#

ok cool we're getting somewhere

earnest phoenix
#

lmao

frozen cedar
west raptor
#

very mature

maiden cape
#

i did this
client.on('ready', () => { console.log(Logged in as ${client.user.tag}!); console.log(Client.guilds); process.setMaxListeners(0) client.user.setActivity('.help') });
to show me the servers my bot is in but it says this in the cmd. what did i do wrong?

west raptor
#
 client.on('ready', () => {
    console.log(Logged in as ${client.user.tag}!);
    console.log(Client.guilds);
    process.setMaxListeners(0)
    client.user.setActivity('.help')
}); ```
valid frigate
#

local databases are gay

frozen cedar
#

bRUH

#

define client

#

my dood

west raptor
#

you aren't importing Client

valid frigate
#

bold words for someone who thinks atlas is a good service

earnest phoenix
#

you just used a JSON database, why are you talking

frozen cedar
#

tf is atlas

#

lol

#

oh wait

#

im legit

#

ok

#

im dum

#

sh

valid frigate
#

k bro

#

you just posted cringe

frozen cedar
#

dude im high out of my fucking mind

#

and trying to learn this

#

lmfao

earnest phoenix
#

you don't have to flood the channel with multiple line breaks when you talk dude

west raptor
#

^

frozen cedar
#

sIGh

valid frigate
#

trying to learn aws?

frozen cedar
#

no

valid frigate
#

oh you want to pick a database

#

ok

frozen cedar
#

yes

valid frigate
#

well you should do some research based on a multitude of things

#

for example, java has basically a decade of support for sql databases while mongo works well with js

frozen cedar
#

ok mongo it is

valid frigate
#

honestly id go with mongo for js since of its query syntax

west raptor
#

alright we've already established this

quartz kindle
#

most databases work everywhere, as long as someone made a driver for it

copper cradle
#

Client is the constructor, you defined your instance as client, use client

frozen cedar
#

brUH

#

i gotta wait

west raptor
#

or just like

frozen cedar
#

alright lemme go watch some por-pokemon

west raptor
#

use mongo locally

frozen cedar
#

afk

earnest phoenix
#

i guess this channel is his blog

frozen cedar
#

aight back

#

no

#

spend the 4 dollars

#

my dude, its worthit

quartz kindle
#

glitch and heroku are free (and bad)

earnest phoenix
#

you should definitely buy a vps

west raptor
#

^^

quartz kindle
#

google and amazon are free for 12 months, but require a credit card to register

frozen cedar
#
const uri = "mongodb+srv://RoVolution:<password>@rovolution-vhhqz.mongodb.net/test?retryWrites=true&w=majority";
const client = new MongoClient(uri, { useNewUrlParser: true });
client.connect(err => {
  const collection = client.db("test").collection("devices");
  // perform actions on the collection object
  client.close();
});```
#

thats the connection code, lemme go find the docs lol

loud salmon
#

please calm down and easy on the caps

#

that doesn't mean you get to spam the chat

frozen cedar
#

code locally on your pc

#

cool

loud salmon
#

ok

frozen cedar
#

๐Ÿคฆ

#

how about you send the issue

#

and your code

#

and we can help you through it

#

sigh.

#

stop spamming the same thing, we cant help you with that.

loud salmon
#

please stop being so dramatic, its getting a tad excessive at this point

frozen cedar
#

lmfao spider

earnest phoenix
#

grey's anatomy screenwriters would've loved this

loud salmon
#

could not roll my eyes any farther with this man

frozen cedar
#

๐Ÿ˜Ž

earnest phoenix
#

Hey guys, so trying to make a music bot with lavalink, I have 0 errors, the bot joins the voice channel, but it doesn't actually play the song (even though it states what it is playing)
But I have no errors to show, so idk if anybody has any suggestions here

frozen cedar
#

Code?

earnest phoenix
frozen cedar
#

Sigh. As in the ```js
code

earnest phoenix
#
if (!message.member || !message.member.voice.channel) return message.util.reply("you must connect to a voice channel!");
const [song] = await resolveSong(this.client, `ytsearch:${track}`);

if (!song) return message.util.reply("this track wasn't found!");

const player = await this.client.manager.join({
    guild: message.guild.id,
    channel: message.member.voice.channel.id,
    host: this.client.manager.nodes.first().host
}, { selfdeaf: true });

if (!player) return message.util.reply("I could not join!");

this.client.logger.debug(song);

player.play(song.track);

player.once("error", error => this.client.logger.error(error));
player.once("end", async data => {
    message.channel.send("This song has now ended!");
    await this.client.manager.leave(message.guild.id);
});
return message.util.send(`Now playing: **${song.info.title}** by **${song.info.author}**!`);
lunar crystal
#
     console.log('Jibillah');
   });
   
   client.on('guildMemberAdd', member => {
     const channel = member.guild.channels.find(ch => ch.name === 'logs-vitas');
     if (!channel) return;
     let user = message.author
     const embed = new RichEmbed()
     .setTitle(`**Bienvenue sur le serveur ${member} :tada:** `)
     .setColor('#3e9e3b')
     .addBlankField()
     .addField(`${message.author.avatar}`)
   });```
stray wasp
#

wassup

lunar crystal
#

Message is not defined

#

What's wrong ?

stray wasp
#

cause message isn't defined.

#

where do you expect to get message?

#

let user = member.user.username

lunar crystal
#

in a log channel

stray wasp
#

you only have a member object

#

the guildMemberAdd event only provides you the member object

lunar crystal
#

oki

stray wasp
#

yicks one sec

#
   client.on('guildMemberAdd', member => {
     const channel = member.guild.channels.find(ch => ch.name === 'logs-vitas');
     if (!channel) return;
     const user = member.user
     const embed = new RichEmbed()
     .setTitle(`**Bienvenue sur le serveur ${user.username} :tada:** `)
     .setColor('#3e9e3b')
     .addBlankField()
     .addField(`${user.avatar}`)
   });
west raptor
#

to get the user object use Member#user

stray wasp
#

should work

lunar crystal
#

Ouh oki thank u very much ๐Ÿ˜„

stray wasp
#

here are all the events btw

#

which also shows which parameters they provide

#

and under the type you can click to see what methods or properties you can find under that param

lunar crystal
#

oki thx

stray wasp
#

did it work?

thin quartz
#

So I made a mental health resources bot that can pull information as well as crisis intervention sources and I'm trying to get it on top.gg to offer it to everyone to get mental health resources to everyone bc I feel its that important but I dont have the bot in any top.gg servers. Can anyone help me with this part?

humble pendant
#

hi

dull ember
#

hold on gonna answer this other guy

humble pendant
#

alright xD

dull ember
#

@thin quartz you dont need to have it in any top.gg servers

#

anyways

#

show me ur code

humble pendant
#
       let vEmbed = new Discord.RichEmbed()
        .setColor(colours.gold)
        .setAuthor("Vote for us!")
        .addField("You can click [here](https://top.gg/bot/629657379633365002/vote) to vote!", "Thanks for your support!")
        .setFooter(`y e s n o | Developed by yesno`, "https://images.discordapp.net/avatars/475607489107197952/33bf093103467309b40110cad555c496.png? 
        size=512");
        message.channel.send({embed: vEmbed});
dull ember
#

um

#

idk y u dont just do message.channel.send(embed)

#

but alright

#

um

humble pendant
#

um?

dull ember
#

nothing looks wrong

humble pendant
#

ik

#

but look

vernal willow
#

@humble pendant That's because it's the field title, it wouldn't embed the link.

dull ember
#

yeah

#

i just noticed

humble pendant
#

ahh

vernal willow
#

I suggest switching them around, so:

humble pendant
#

aye

#

alright

clever storm
#

For some reason i posted my stats once, and not it wont update again when i re-run my bot with the same code

spare goblet
#

@clever storm what's your code

clever storm
#
setInterval(() => {
      dbl.postStats(client.guilds.size, client.shards.Id, client.shards.total);
  }, 1800000);

dbl.on('posted', () => {
    console.log('Server count posted!');
  })
dbl.on('error', e => {
   console.log(`Oops! ${e}`);
  })```
spare goblet
#

you didn't put your token

#

dbl api token

#

oh wait nvm

#

im dumb

clever storm
#

lol

spare goblet
#

if you do something like this

const dbl = new DBL(dblapitoken, client)

it should automatically update

sage sandal
#

Is there a bot or a way to make a bot that gives a role to people who follow you on twitter or instagram. (not twitch)

hoary elm
#

Not 100% sure if this is dev related or not but in your package.json there is "main": "index.js" I am wanting to move my index out of the main directory into a sub folder would I do this by changing that line to "main": "./subFolder/index.js" or?

fallow spire
#

@loud salmon i mean, ITS COMPLICATED AF

#

How would i send a Message to the Person who invited my Bot?

hoary elm
#

๐Ÿค” invited it to their guild?

#

@fallow spire

#

I can guide you in the direction to sending a message to the guild owner when the bot joins but other then that ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

earnest phoenix
#

did i see a json file database

fallow spire
#

where @earnest phoenix

earnest phoenix
#

somewhere above

hoary elm
#

@earnest phoenix if you are referring to me it's not a JSON database it's just the package.json? And I use SQL for db related stuff

earnest phoenix
#

not you

hoary elm
#

Okay

earnest phoenix
#

also sql bad mongo good mmLol

hoary elm
#

Yeah I'm looking into switching actually

#

Everyone says mongo is better so ๐Ÿคท๐Ÿปโ€โ™‚๏ธ if you can't beat them you mine as well join them lol

earnest phoenix
#

its neat but its not like

#

life changing

#

if you deal with a lot of relational data

#

sql is your baby

hoary elm
#

Honestly I mainly use it for economy, level ect

#

Some per guild settings like bot name and pic but other then that

fallow spire
#

@earnest phoenix love u now

earnest phoenix
#

y

#

@spare goblet in console bot showing
Webhook running at http://0.0.0.0:5000/dblwebhook

#

@fallow spire why do you love me

royal herald
hoary elm
#

You are trying to get the length of something that doesn't exist @royal herald Example: prefix.length

earnest phoenix
#

@earnest phoenix use glitch ^^

#

No

#

Why

#

No im not using glitch

#

Or open the port 5000 in your box and put yourip:port

#

Yes i know

royal herald
#

@hoary elm how to fix this?

earnest phoenix
#

See my code upside

#

Webhook not responding when im testing

#

Yes

#

0.0.0.0 = local

#

Please open the port 5000

#

And put in your bot page: IP:PORT

#

Ip = your ip

#

So what should i use at 0.0.0.0

#

You can't use this

#

...

#

You can't use this x2

royal herald
#

'const Discord = require('discord.js');
const ayarlar = require('../ayarlar.json');

var prefix = ayarlar.prefix;

exports.run = (client, message, params) => {

if (!params[0]) {
const commandNames = Array.from(client.commands.keys());
const longest = commandNames.reduce((long, str) => Math.max(long, str.length), 0);
message.author.sendCode('asciidoc', = Komut Listesi =\n\n[Komut hakkฤฑnda bilgi iรงin ${ayarlar.prefix}yardฤฑm <komut adฤฑ>]\n\n${client.commands.map(c => ${ayarlar.prefix}${c.help.name}${' '.repeat(longest - c.help.name.length)} :: ${c.help.description}).join('\n')});
if (message.channel.type !== 'dm') {
const ozelmesajkontrol = new Discord.RichEmbed()
.setColor(0x00AE86)
.setTimestamp()
.setAuthor(message.author.username, message.author.avatarURL)
.setDescription('ร–zel mesajlarฤฑnฤฑ kontrol et. ๐Ÿ“ฎ');
message.channel.sendEmbed(ozelmesajkontrol) }
} else {
let command = params[0];
if (client.commands.has(command)) {
command = client.commands.get(command);
message.author.sendCode('asciidoc', = ${command.help.name} = \n${command.help.description}\nDoฤŸru kullanฤฑm: + prefix + ${command.help.usage});
}
}

};

exports.conf = {
enabled: true,
guildOnly: false,
aliases: ['h', 'halp', 'help', 'y'],
permLevel: 0
};

exports.help = {
name: 'yardฤฑm',
description: 'Tรผm komutlarฤฑ gรถsterir.',
usage: 'yardฤฑm [komut]'
};' Where is the error?

earnest phoenix
#

So what should i do

#

0.0.0.0 = 127.0.0.1 = localhost

#

Im using heroku

#

Use glitch OMG

#

I cant use glitch

#

You can...

#

And juste use the "make my projet private"

#

@earnest phoenix you say i should run my complete bot there or just webhook etc. ?

#

You can use glitch for thรฉ webhook

#

The *

#

Only webhook

#

Yes

#
const dbl = new DBL(process.env.dbl)
let votes

await dbl.getBot('398690824721924107').then(bot => { votes = bot.points }).catch(z=>{})
client.user.setActivity(votes)```
#

Does this is a code for upvote count in my bot status

#

.....

mossy vine
#

@earnest phoenix glitch is bad, and 0.0.0.0 is not localhost

earnest phoenix
#

@mossy vine wait

#

Idk im trying to do it from last 8-9 hours but nothing helped

#

When I used to use webhook locally he would tell me 0.0.0.0:3000 and I would do localhost:3000

#

0.0.0.0 is like localhost

#

@earnest phoenix wait

mossy vine
#

In the context of servers, 0.0.0.0 can mean "all IPv4 addresses on the local machine". If a host has two IP addresses, 192.168.1.1 and 10.1.2.1, and a server running on the host is configured to listen on 0.0.0.0, it will be reachable at both of those IP addresses.

#

also stop making it seem like that glitch is necessary for setting up a webhook

fallow spire
#

@earnest phoenix cuz u use mongo

earnest phoenix
#

yea mongo is op

#

Wait

#

Ok

#

uwu

#

Glitch is necessary if we don't want to open a port on our box @mossy vine

mossy vine
#

yes its pretty hot

#

@earnest phoenix opening a port isnt even that hard. on a vps you usually dont even have to do anything

earnest phoenix
#

I know

mossy vine
#

and its not necessary

#

there are so many other options

#

stop making it seem like its the only one

earnest phoenix
#

Like?

#

Im on glitch and still don't know how to create webhook can you guys give me some ref. or example.

mossy vine
#

the docs have examples

earnest phoenix
#

@earnest phoenix yes wait

#

Ok

#

Im waiting

mossy vine
earnest phoenix
mossy vine
#

oh yes just paste the example in the boilerplate glitch project

#

๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘

earnest phoenix
#

@earnest phoenix juste use the REMIX PROJECT button

#

ok i think its like frok

#

Yes

#

:)

#

And you can use the "Make this projet private"

#

You don't seem to be here to help the people. @mossy vine

#

So if you don't want to help, don't talk.

#

@earnest phoenix and need to login my d.bot there ?

#

No lol

#

Just config this in the config.json file

#

And

#

In your bot page

#

And the password is the same in config.json

#

So you have to choose a password

#

But in glitch the only usable port is 3000

#

im asking about it
const bot = new Discord.Client();

#

@earnest phoenix

#

Hmm

#

For find the bot channel yes

#

This bot should be longin ?

#

Hmm

#

And send message too

#

You can remix the project and config him

#

^^

#

Hmm and after this what should i put on dbl page url section

#

Wait

#

Hmmm...

#

Yes

#

If you need anything, my dm are open.

#

Bye

#

ok thank you so much bro

#

Np

sick cloud
#

other than clearing caches, are there any decent ways to reduce overall memory and cpu usage on discord.js master w/ internal sharding?

restive furnace
#

How i can get commands like on just the category i want commands.map(command => command.name+':'+command.category)

#

commands.some?

cerulean salmon
#

is it possible to get the message when someone response the bot's in DM ?

glacial mango
#

Could someone please help me with sending a message to a channel when someone voted on my bot?

shadow dust
#

@glacial mango you just need to have an http server running that will listen for the dapi webhook

#

You can configure where dapi will send the web hook from your bot page

glacial mango
#

How do make a http server

shadow dust
#

Well it depends on the language you're using

#

There are a number of ways to create an http server

glacial mango
#

I use Javascript

shadow dust
earnest phoenix
#

hey there, does anyone happen to know how to list guilds name on a shard bot? I'm using discord.js

shadow dust
#

You could use the broadcastAsync function I think thats how its called iirc

#

broadcastEval which is available from the Discord.Client shard property

glacial mango
#

@shadow dust Could you help me making a script to do it? I don't really understand how to do it

lunar crystal
earnest phoenix
#

@shadow dust thank you โ˜บ๏ธ

#

@lunar crystal You can't erase because this is an field

#

.addField("title", "description or some text")

lunar crystal
#

Hmmm... ok thx u ๐Ÿ˜„

late hill
#

You could use \u200B as description

#

which wouldn't show

#

That's probably what addBlankField() does

#

but then for both name and value

lunar crystal
#

oki thx

#

What is the name of the permission ban member ?

#

and kick member ?

#

Because BAN_MEMBER & KICK_MEMBER are not working

hoary elm
#

@lunar crystal lol BAN_MEMBERS.

lunar crystal
#

lol ^^

hoary elm
#

If that's not working then you got something wrong

#

The permissions are BAN_MEMBERS & KICK_MEMBERS

lunar crystal
#

Oki thx ๐Ÿ™‚

hoary elm
#

Np

lunar crystal
#

ok

carmine echo
#

Uh hi. I need a bit of help with oauth. I've heard that it's possible to redirect the user to a URL after they invite my bot, but my link is not working. What's wrong with it? https://discordapp.com/api/oauth2/authorize?client_id=495496088510529556&permissions=27654&redirect_uri=https%3A%2F%2Fantiowo.xyz&scope=bot

#

the bot gets invited just fine, but nothing happens after that

carmine echo
earnest phoenix
#

Are u set callback?

carmine echo
#

yes, that fixed the issue

earnest phoenix
#

I cant ::/

carmine echo
#

why?

earnest phoenix
#

I dont know

restive furnace
#

How i can do that if its false dont return anything, at right now it returns empty string```js
data.push(commands.map(command => {

            if (command.category === 'moderation') {
             //   finally command.name;
                return command.name;
                
            }
            else {
                
            }
        
            
        }))
sudden geyser
#

it's already doing that, but it'll return undefined instead.

surreal wagon
#

Can you help me to make eval command ?

sudden geyser
#

We aren't going to write code for you

surreal wagon
#

Okay

#
// ...
const agrs = ...

message.channel.send(args)

//...
#

This work ?

sudden geyser
#

try it out and see

heavy void
#

Eval command? With that code?

surreal wagon
#

Heu yes๐Ÿ˜…

heavy void
#

Whaa

surreal wagon
#

I dont think

#

๐Ÿ˜‚

wooden lance
#

um, there is a github resp that someone made for an eval command

#

what language?

heavy void
#

I think he's using js

surreal wagon
#

Yes nodrjw

#

Nodejs

#

I find how to maje

#

Make

#

Thanks

heavy void
#

If I could just send my home made code for my eval

wooden lance
#

oh okay

#

lol

surreal wagon
#

If you want

#

lol

wooden lance
#

@surreal wagon but be careful with the eval command. make sure it's locked to ONLY your user id. a lot can go wrong if you dont.

heavy void
#

Like getting your bot's token

#

Here is your id

#

640539885517668352

wooden lance
#

and doing rm -rf / --no-preserve-root, erasing your entire drive

#

...one good reason to use a vps

#

they also could technically download malware and run it

earnest phoenix
#

if(message.author.id !== 'your id') return;

wooden lance
#

^

heavy void
#

Better with return message.channel.send

#

But its optional

wooden lance
#

yeah, you can make it send an amazing annoying message!

earnest phoenix
#

If the bot is not sending message, it's more frustrating

sudden geyser
#

return message.channel.send("Go away.")

but all of this can be figured out in 3 seconds

surreal wagon
#

I know

earnest phoenix
#

Oof

surreal wagon
#

Lol

heavy void
#

Lol

wooden lance
#

ok then lel

earnest phoenix
#

okeh

heavy void
#

Im on mobile so y

earnest phoenix
#

O

#

Sry, have to go

#

See u later

heavy void
#

Ok

lofty hamlet
#

Hi, i have this array :

["Balbuto (Normal)","Blindรฉpique (Normal)","Migalos (Normal)","Prismillon Jungle (Normal)","Oniglali (Normal)","Kapoera (Normal)","Cadoizo (Normal)","Ecrapince (Normal)","Boost","Boost","Chenipan (Normal)","Migalos (Normal)","Givrali (Normal)","Migalos (Normal)","Minotaupe (Normal)"]

How i can know how much this array have Migalos ? Here output is : 3

sudden geyser
#

If you're asking how to count every entry of "Migalos", iterate through it with something like filter then count the length

lofty hamlet
#

Mmmh

earnest phoenix
#

@surreal wagon sorry if i'm late, but it didn't work because you made a typo in the first line

rugged kelp
#

Who can give me a code :

like

$gen number

and the bot generate random number from notepad

slender thistle
#

Spoonfeed is not allowed in this server

#

You are expected to be willing to learn without getting shoved anything into your hands

mossy vine
#

random number from notepad waitWhat

rugged kelp
#

yes

mossy vine
#

look up how to generate random numbers in the programming language you are using

rugged kelp
#

or account like

$gen spotify

and the bot generate random spotify account from notepad

mossy vine
#

you.. want to generate accounts? thats not allowed at all

rugged kelp
#

I know ๐Ÿคฆ it's example

mossy vine
#

also have fun getting that to work with random numbers

rugged kelp
#

Can u help me pls ?

slender thistle
#

How do you expect a program to get a random number from notepad

grizzled jackal
#

I suppose if you have random numbers stored in that notepad you could let it read the file, split the numbers into an array and just randomly grab an index number to get the number

earnest phoenix
#

that's a bit overengineered for random nums innit

rugged kelp
#

With discord bot maker

loud salmon
#

that is illegal @rugged kelp

#

dont do it

#

it will get you banned from this server

rugged kelp
#

oK

earnest phoenix
#

@loud salmon Discord Bot maker is illegal?

mossy vine
#

no

#

account generation is illegal

earnest phoenix
#

ok

rugged kelp
#

It's not my bot

earnest phoenix
#

Has anybody worked with PostgreSQL / TypeORM before? If so, do you know how to work with the type "bigint" because it returns as a string and I want it as an integer since I am comparing a timestamp.

mossy vine
#

cant you just convert it to an integer once you got the data?

earnest phoenix
#

no, cause apparently "bigint" is higher than the maximum size number in JavaScript

mossy vine
#

wait you want to store timestamps?

earnest phoenix
#

and the other types are too small for Date.now()

loud salmon
#

@rugged kelp yes i know, dont post images of that here

earnest phoenix
#

someone has experience or know how to get async code to work in repl it, or know another online ide, that supports async functions ?

mossy vine
#

what language

#

@earnest phoenix

earnest phoenix
#

jsยจ

mossy vine
#

use IIFEs

#

(async () => { /* some code here */})()

#

alternatively just write an async function and call it

earnest phoenix
#

how do i catch errors

mossy vine
#

as you would regardless

earnest phoenix
#

oh okay i already just wrote a standard async function

#

but from what i read online repl it doesn't support async code, normally

#

at least the code i give it (which code in vs code or what not) just returns (promise <pending>) in repl it

mossy vine
#

yeah, you dont await the promise

earnest phoenix
#

oh, right that's the exact thing i do

mossy vine
#

i assume thats inside of an async function?

earnest phoenix
#

yes ofc

#

c:

mossy vine
#

can you show the full code

earnest phoenix
#

eh let me make it a bit more readable

#

gimme asec

#

console.log(error)

#

:200iq:

#

why log errors when you can just ignore them weSmart

quartz kindle
#

then you come here asking why your code doesnt work

earnest phoenix
#

if it makes you feel better, i do have console.log(error) just felt like writing // oof in the mwe

#

but is there a way to work around await, if it's not supported?

#

maybe just hardcode a timeout and hope you get response ?

quartz kindle
#

no

#

if the library gives you a promise, you can only get the result by using await or .then()

#

you would have to use callbacks instead of promises

#

like the native http module

earnest phoenix
#

How can i disable ping to everyone?

#

in my bot

slender thistle
quartz kindle
#

which lib?

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

Js

sage bobcat
#

One message removed from a suspended account.

slender thistle
#

in d.js there'd be an arg disableEveryone for Client iirc, wouldn't there

quartz kindle
#

^

sage bobcat
#

One message removed from a suspended account.

west spoke
#

@sage bobcat embed=embed1?

sage bobcat
#

One message removed from a suspended account.

west spoke
#

the question

#

it happens for me sometimes

sage bobcat
#

One message removed from a suspended account.

west spoke
#

wew

#

I just use embed

quartz kindle
#

what do you mean "blank embed"

west spoke
#

because I only ever use 1 embed/command

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

west spoke
#

oh

earnest phoenix
#

Are u typing description?

west spoke
#

Perhaps the args was ""

quartz kindle
#

so basically the description is missing. check your args

sage bobcat
#

One message removed from a suspended account.

quartz kindle
#

they are empty

scenic kelp
#

console.log your args

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

scenic kelp
#

because you're slicing from 1

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

scenic kelp
#

just .slice()

quartz kindle
#

just dont slice lol

#

why are you going to slice nothing?

scenic kelp
#

or that yeah

#

if you're just gonna join them don't slice them

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

quartz kindle
#

just dont put the id in the description?

west spoke
#

replace the id with โ€"

quartz kindle
#

why is the id even there in the first place?

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

west spoke
#

No ide

#

idea

sage bobcat
#

One message removed from a suspended account.

cedar brook
#

.

west spoke
#

I know js enough to know that shouldn't be happening

#

dotpost

sage bobcat
#

One message removed from a suspended account.

cedar brook
#

sorry

#

how many time, discord needs to review bot?

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

cedar brook
#

Oh.

loud salmon
#

-checkmybot @cedar brook

gilded plankBOT
#

@cedar brook

Bots added to the site are ordered by a queue based on the time they submitted their bot. Website Moderators check bots according to the queue and cannot check your bot just because you requested it. In addition, queue length is confidential and we cannot tell you your position in queue, either.

As the FAQ: How long is Approval? states, your bot may take up to a week or more until it is checked. There is no set time how long bot approval will take; there is a queue and you're not the first nor are you the last.

Please be patient.

cedar brook
#

Oh, thank you. I am new in the discord bots family.

west spoke
#

"family"

cedar brook
#

Yes.

quartz kindle
#

@sage bobcat your description is args so that means the ID is also coming from args

sage bobcat
#

One message removed from a suspended account.

quartz kindle
#

how are you defining args? does the command you're using require you to type someone's id?

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

lavish shuttle
#

@cedar brook Trust me, discord bots are not family. Most people do this for competition and buisiness

cedar brook
#

;-;

sudden geyser
#

or just for fun

cedar brook
#

I am making for fun

warm marsh
#

If else or a bunch of if statements?

slender thistle
#

What's the context to that question

warm marsh
#

I am using ruby and as of right now haven't found a good way for dynamically loading commands so until then I am just gonna use a statement base command loader.

ruby talon
surreal sage
#

Anyone got like script to store stuff in database?

#

Or can anyone help me with it? discord.js

warm marsh
#

MYSQL?

surreal sage
#

that then

warm marsh
cedar brook
#

What program I can use to code bot?

earnest phoenix
#

any text editor, really

cedar brook
#

really lol?

#

even notepad?

earnest phoenix
#

yes

cedar brook
#

ty

#

you are using what?

earnest phoenix
#

visual studio

cedar brook
#

woah same

#

i am downloading it now

earnest phoenix
#

however, if you're talking about running and compiling the bot, you will need a runtime for the language you're working with

cedar brook
#

;-;