#development

1 messages ยท Page 1007 of 1

lofty lagoon
#

oh

restive pebble
#

taggeduser.tag

#

and remove @

finite bough
#

either do taggedUser.tag === tag without the @

#

or compare id

opal plank
#

prob a much smarter choice to use ID's btw

restive pebble
#

yes

finite bough
#

u are comparing a whole 50 line collection with 1 word

lofty lagoon
#

const taggedUser = message.mentions.users.first();

#

this is taggedUser

finite bough
#

yes

opal plank
#

we know

finite bough
#

it will be like

opal plank
#

lemme double check something

finite bough
#

taggedUser.tag === ""๐“”๐“ป๐“ป๐“ธ๐“ป ๐“ธ๐“ท ๐“ญ๐“ฒ๐“ผ๐“ฌ๐“ธ๐“ป๐“ญ "#2048"

restive pebble
earnest phoenix
#

lol

opal plank
#

n.eval console.log(message.mentions.users.first()) // @restive pebble

lofty lagoon
#

still say the same think

restive pebble
#

ok

lofty lagoon
#

wait

opal plank
#

username should return just fine

restive pebble
#

can bots read channel

#

but not send

opal plank
#

indeed

restive pebble
#

:O

finite bough
#

@placid cobalt sir what are u trying to do..

opal plank
#

makes my life easier to show stuff like this instead of going to testing

restive pebble
#

fb.eval this.guild.owner

#

ok

opal plank
#

it wont output genius

restive pebble
#

yes

opal plank
#

log it

restive pebble
#

ik

lofty lagoon
#

@finite bough thx now it's work

restive pebble
#

fb.eval this.client.logger(this.client,"hi")

finite bough
#

np

restive pebble
#

owo works

finite bough
#

uwu

earnest phoenix
#

So, i have a webhook running in my vps, in /webhook endpoint i done nothing but using dblpy i can do right? or in /webhook endpoint i need to do some?

finite bough
slender thistle
#

what

restive pebble
#

me here to help

pure lion
#

me here to help too

opal plank
#

think i might try making a library

placid cobalt
#

@placid cobalt sir what are u trying to do..
@finite bough i want to create a category and then make a channel then move the channel into the category

restive pebble
#

uh

#

like a ticket

finite bough
#

why not make a channel inside a category?

restive pebble
#

system

placid cobalt
#

how do you do that? i didnt know you could

restive pebble
#

u making a ticket sytem

#

probably

pure lion
#

g

placid cobalt
#

whats the benifits of making a ticket system?

restive pebble
#

nothing

opal plank
#

you make what you need tbh

placid cobalt
#

ih

#

*oh

opal plank
#

if you dont see a point doing it, dont

restive pebble
#

go to dhs

#

djs

#

official

placid cobalt
#

?

#

i find the documentation useless

restive pebble
#

djs official server will help u

#

faster

placid cobalt
#

oh im not on it

opal plank
#

documentation on what?

placid cobalt
#

@opal plank nvm

finite bough
#

cant u push a channel inside a category using <channel>.setParent()?

opal plank
#

docs will teach you the basics and how the library works, it wont tell you how to make something like a ticket system

#

ยฏ_(ใƒ„)_/ยฏ

placid cobalt
#

that isnt what i wanted tho

opal plank
#

what is that you want then?

placid cobalt
#

i find the documentation useless because it doesnt show you practically how you do the things it shows

#

does anyone have the link for the djs server?

opal plank
#

it has snippets on mostly everything

pure lion
#

but its usually enough

#

does anyone have the link for the djs server?
read the do-

earnest phoenix
#

plz help

pure lion
#

ratelimit{?}

earnest phoenix
#

hmm

#

Is there a way to find the closest match of a string? Like "helo" will return "hello", I am using JavaScript.

opal plank
#

wdym closest?

#

if you mean first, you can use regex without g, g is global and without it it'll return the first match it finds

#

if you mean closest as fuzzy, use a library for fuzzy search

#

@earnest phoenix

restive pebble
#

node package manager

opal plank
#

i use fuse for fuzzy search

restive pebble
#

:O

earnest phoenix
#

hey how we make commands moderator only?

opal plank
#

check permission from author

earnest phoenix
#

but

opal plank
#

if they have admin or specific perms for what you want, let the code run

#

otherwise return

#

that reminds me, i should export my functions for that

earnest phoenix
#

how i do that ๐Ÿค”

#

yes i mean fuzzy search

opal plank
earnest phoenix
#

help

#

yesss

#

because the prefix of my bot is >>>

opal plank
#

bots dont work here

earnest phoenix
#

a

opal plank
#

also your bot isnt here

earnest phoenix
opal plank
#

otherwise you'd have the role

earnest phoenix
#

oh

#

how do i have the developper role?

opal plank
earnest phoenix
#

oh ok

opal plank
#

it takes between 2-3 weeks

#

keep that in mind

earnest phoenix
#

my bot have to be approved

opal plank
#

indeed

empty owl
#

I donโ€™t think putting ur prefix as >>> would be good

earnest phoenix
#

ยฏ_(ใƒ„)_/ยฏ

opal plank
#

set it to ! and watch the world burn

empty owl
#

because if you put a space, itโ€™s a quote

opal plank
#

prob the most overused prefix

earnest phoenix
#

its inspired from python

#

nooooo

empty owl
#

quote

earnest phoenix
#

enderbot have > like prefix

opal plank
#

one is fine

#

2 starts quote

earnest phoenix
opal plank
#

and 3 is continuous

empty owl
#

thi

earnest phoenix
#

help

empty owl
#

one does quote too

opal plank
#

>>> type this

earnest phoenix
#

help

#

with enderbot

empty owl
#

> what about this

opal plank
#

isnt 2 one liner and 3 continous?

#

that might be on the code side though

#

not on client

empty owl
#

what

#

2 doesnโ€™t work for me lol

earnest phoenix
#

i dont have idea of a prefix

opal plank
#

its on code im pretty sure

#

when you send the json embed

#

>> Magic

earnest phoenix
#

i cant choose $ ! ? & . , ' - >

opal plank
#

probably better off with a mention

empty owl
#

Most of my prefixes are customizable and the default is just the first letter of the botโ€™s name and !

#

so like d!

earnest phoenix
#

its too basic

opal plank
#

ive noticed n is quite underused, so i went for n.

empty owl
#

Why not just make ur prefix customizable @earnest phoenix

earnest phoenix
#

thx

#

maybe /

opal plank
#

๐Ÿ‘

still merlin
#

Can I have some help, Whenever I save my bot my embed .settitle goes onto a thingy like this

empty owl
#

/ just looks really weird in my opinion as a prefix

earnest phoenix
#

and my bot are for a mc server

#

logic

empty owl
#

@still merlin

still merlin
#

?

opal plank
#

@still merlin MessageEmbed()

empty owl
#

.MessageEmbed()

opal plank
#

its a constructor

empty owl
#

You beat me to it

opal plank
#

gg too ez no re

earnest phoenix
#

so i need to add upvoted user data to db, for that i need a webhook?

#

or i can do that without webhook server

#

first i want to see if / are occuped

#

if i need a webhook server, what should i do with that

#

What's the problem?

#

me?

#

i am french ๐Ÿ˜‚

#

but i can speak english

#

good

#

so its normal if i am doing faults in english

#

because i am a noob

#

i just started to dev in JS

#

verified developer badge?

#

yeah

quartz kindle
#

you will likely not get it if you make a bot only to get it

earnest phoenix
#

ik

quartz kindle
#

discord is rejecting bots that have suspicious growth, ie grows too fast or is added to a lot of servers owned by the same people

earnest phoenix
#

@quartz kindle can i ask something about verified developer badge?

quartz kindle
#

sure

empty owl
#

me gusta comer un hamburguesa Iโ€™m waiting for people to ask questions

quartz kindle
#

i like hamburgers too

empty owl
#

Tim when did you certify

quartz kindle
#

hmm, let me check

empty owl
#

*get certified

earnest phoenix
#

can team members take it?

quartz kindle
#

you mean top.gg certified or discord verified?

empty owl
earnest phoenix
#

Discord

misty sigil
#

how do i edit embeds

empty owl
#

@misty sigil .edit

quartz kindle
misty sigil
#

but what do i .edit

empty owl
#

oh nice con grays congrats

finite bough
#

embed

earnest phoenix
#

little tip:

restive furnace
#

does anyone know how I can set ssh on google cloud properly? hmu if you do

empty owl
#

@misty sigil what Lang

misty sigil
#

d.js

earnest phoenix
#
client.on('message', message => {
    if (!message.guild) return;

    if (message.content.startsWith(`${prefix.prefix}help`)) {
        message.channel.send(`> __${prefix.prefix}kick__: Ejecter un membre du serveur`)
        message.channel.send(`> __${prefix.prefix}ban__: Bannir un membre du serveur`)
        message.channel.send(`> __${prefix.prefix}ping__: Verifier la connexion du bot`)
        message.channel.send(`> __${prefix.prefix}invite___: Inviter Quantum sur votre serveur!`)
        message.channel.send('Bot fait avec plaisir par __YuryHackgamer21#0540__!')
    }
})```
empty owl
#

you have to get the message and .edit(embed)

quartz kindle
#

@earnest phoenix idk about teams, never used teams before, but pretty sure they can

earnest phoenix
#

okey

#

you can just import the prefix from a file named prefix.json

#

and type ${prefix.prefix}

misty sigil
#

.edit, like is there anything specific

#

i need

empty owl
#

Wait give me a second

misty sigil
#

to edit the pings

earnest phoenix
#

you will just have to edit prefix.json to change the prefix of the bot

quartz kindle
#

@misty sigil you need to get the message, then you get the embed from the message, then you create a new embed based on the existing embed, then you edit the fields, then you edit the message with the new embed

misty sigil
#

ah

quartz kindle
#

for example

empty owl
misty sigil
#

.then(sent =>{}) right?

#

then i can sent.edit

empty owl
#

yes sent.edit(theNewEmbed)

quartz kindle
#
let msg = await channel.messages.fetch(messageid)
let embed = new MessageEmbed(msg.embeds[0])
embed.setTitle("bla")
msg.edit(embed)
empty owl
#

Or th at

earnest phoenix
#

how to remove embed from message

#

bec bot send messages

#

with embed

#

what i mean links

#

shows embed

empty owl
#

<linkHere>

misty sigil
#

anyone know how to like check db ping

earnest phoenix
#

to make not send embeds?

empty owl
#

ye

surreal sage
#
const ms = require("moment")
var span = document.getElementById("text")
setInterval(()=>{
    var time = ms('h:mm:ss a')
    span.innerHTML(`${time}`)
}, 900)

``` it just wont detect span
#
<html>
    <head>
        <script src="script.js"></script>
        <link rel="stylesheet" href="app.css">
        <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@1,600&display=swap" rel="stylesheet">
    </head>
    <body>
        <span id="text">Date</span>
    </body>
</html>```
earnest phoenix
#

maybe you try to load it into memory when the document didnt load yet

#

try putting it all into a 10 ms timeout

surreal sage
#

how can i ๐Ÿ‘€

earnest phoenix
#
setTimeout(()=>{
// js code
},10)
surreal sage
#

uhh ok

earnest phoenix
#

its stupid but it works

surreal sage
#
setInterval(()=>{
    const ms = require("moment")
    var span = document.getElementById("text")
    setInterval(()=>{
        var time = ms('h:mm:ss a')
        span.innerHTML(`${time}`)
    }, 900)
}, 10)

``` this?
earnest phoenix
#

setTimeout

#

not setInterval

surreal sage
#

oop

misty sigil
#

how do i measure database ping

earnest phoenix
#

you.. ping it

misty sigil
#

no shit

#

but how do i measure the time

surreal sage
#

didnt work

earnest phoenix
#

hM

#

wait you are loading that into a html document arent you

surreal sage
#

it still says span.innerHTML is not a function lol

earnest phoenix
#

jfgmldsj

surreal sage
#

no seperate files

earnest phoenix
#

i just realizued

opal plank
#

wait what

#

dude

quasi tiger
#

Hi

earnest phoenix
#

why am i so stupi

#

d

surreal sage
#

Hello

#

lol

quasi tiger
#

Whats this

opal plank
#

reponse timestamp - sent timestamp @misty sigil

earnest phoenix
#

@surreal sage innerHTML isnt a function

#

its a property

surreal sage
#

fu-

misty sigil
#

response ok

#

so i needa just

#

measure that

earnest phoenix
#

innerHTML = <time>

surreal sage
#

how can i put somethin in it

#

ahhhhh

earnest phoenix
#

== checks if the value is equal to something

#

= sets the value

surreal sage
#

gosh damn am stupid

#

ik

earnest phoenix
#

=== is == but it checks for type aswell

#

legends never die

#

wrong channel

#

D:

surreal sage
#

me = stupid

misty sigil
#

==

opal plank
#

==

coarse hearth
#

i cant figue out whats wrong with my code and why it is not responding

#
const Discord = require("discord.js");

module.exports.run =async (bot, message, args) => {
    let inline = true
    let resence = true
    const status = {
        online: ":online: Online",
        idle: ":idle: Idle",
        dnd: ":dnd: Do Not Disturb",
        offline: ":offilne: Offline/Invisible"
      }
        
const member = message.mentions.members.first() || message.guild.members.get(args[0]) || message.member;
let target = message.mentions.users.first() || message.author

if (member.user.bot === true) {
    bot = ":bottag: Yes";
  } else {
    bot = ":user: No";
  }

opal plank
#

me equals(==) stupid
me set(=) stupid
me equal and type(===) stupid

coarse hearth
#
const embed = new MessageEmbed()
                .setAuthor(member.user.username)
                .setThumbnail((target.displayAvatarURL))
                .setColor("#00ff00")
                .addField("Full Username", `${member.user.tag}`, inline)
                .addField("ID", member.user.id, inline)
                .addField("Nickname", `${member.nickname !== null ? `:yes: Nickname: ${member.nickname}` : ":no: None"}`, true)
                .addField("Bot", `${bot}`,inline, true)
                .addField("Status", `${status[member.user.presence.status]}`, inline, true)
                .addField("Playing", `${member.user.presence.game ? `๐ŸŽฎ ${member.user.presence.game.name}` : ":no: Not playing"}`,inline, true)
                .addField("Roles", `${member.roles.filter(r => r.id !== message.guild.id).map(roles => `\`${roles.name}\``).join(" **|** ") || ":no: No Roles"}`, true)
                .addField("Joined Discord At", member.user.createdAt)
                .setFooter(`Information about ${member.user.username}`)
                .setTimestamp()
    
            message.channel.send(embed);

            
    }

    module.exports.help = {
        name: "b!userinfo"
    }
opal plank
#

holy codeblock

#

omg

#

use FIELDS

coarse hearth
#

wherr

opal plank
coarse hearth
#

oh

opal plank
#

also embed builder is bad

coarse hearth
#

its s

#

idk how ๐Ÿ˜ฆ

opal plank
#

channel.send(embed: {/sttufs here})

#

actually i think embed is array

#

no, tis object

coarse hearth
#

not responding after

#

Fields

#

;x

opal plank
#

....

empty owl
#

channel.send({embed: embed})

opal plank
#

what did you change

misty sigil
#

how on earth

#

do i get the timestamp from mongo

opal plank
#

log time on response

misty sigil
#

so just log before

#

and log after

#

wait a sec

coarse hearth
#

๐Ÿ˜ฆ

opal plank
#

let startup = Date.now()
call mongo
mongo.on('res') finished = Date.now()
console.log(finished - startup)

#

@misty sigil

misty sigil
#

wouldn't the start logging be done by the message

opal plank
#

use a callback or a resolution

misty sigil
#

hm

opal plank
#

usualyl the gist of what you want is

the DB call
finished time
finished - startup```
#

you can either call the finished time after the DB call or do it on a callback

delicate shore
#

my bot is nto playing music

misty sigil
#

Read the error

#

PLEASE

delicate shore
#

Wot

misty sigil
#

invalid token

#

your token is invalid

slender thistle
#

Are you sure you are not using the client secret?

delicate shore
#

which token

misty sigil
#

bot token

delicate shore
#

Are you sure you are not using the client secret?
@slender thistle yes i am damn sure

#

oh

#

lol

#

i had open wrong prokect

#

project*

opal plank
#

it tells you the error my dude

delicate shore
#

this is real error

#

๐Ÿ˜ฆ

opal plank
#

is that ratelimit?

delicate shore
#

yes

slender thistle
#

You got ratelimited by YouTube

earnest phoenix
#

oh yeah the quota

#

the annoying pice of shit youtube built into their servers

#

hey guys hope everyone is doing fine and is having a good day, i seem to be getting this error and im not to sure where it is going wrong in that eval would be great if someone could help :)

client.shard.broadcastEval(`
                        const partnerGuild = this.guilds.cache.get('${row[i].guildid}');
                        if (partnerGuild) {
              const partnerChannel = partnerGuild.channels.cache.get('${row[i].partner}');
                          if (!partnerChannel || partnerChannel.type !== 'text' || !partnerChannel.permissionsFor(partnerGuild.me).has(['SEND_MESSAGES', 'VIEW_CHANNEL', 'EMBED_LINKS'])) {
                              con.query('UPDATE testing SET partner = null WHERE guildid = ' + partnerGuild.id, (err) => {
                                  if (err) console.log(err);
                              });
              }
              else if (!${result[0].nsfw} || partnerChannel.nsfw) {
                partnerChannel.send(${partnerMessage});
              }
            }
                    `)```


``Error [SyntaxError]: Unexpected identifier``
opal plank
#

(!${result[0].nsfw} || partnerChannel.nsfw)

#

dont use template literals inside that dude

empty owl
#
    let output = new Promise(async (resolve, reject) => {
        teamArray.forEach(val => {
            let guildMember = message.guild.members.cache.find(v => val === v.user.tag)
            if (!guildMember) reject("Fail")
        })
       
        let idArray = teamArray.map(val => message.guild.members.cache.find(v => val === v.user.tag).id)
        finalOutput["memberIDs"] = idArray
        finalOutput["teamNumber"] = parseInt(number)
        resolve(finalOutput)
    
  
    }).catch(_ => {
        return simpleEmbed(message.channel, "Setup", `${val} isn't in this server.`)
    })
    return output
#

im totally doing something wrong am I?

opal plank
#

actually, NONE of your templates are going to work

#

'' is only string

empty owl
#

thats in a function

opal plank
#

you need `` for template literals @earnest phoenix

earnest phoenix
#

@empty owl why dont you simply return the promise

#

but save it in a variable

#

also that doesnt even need to be in a promise

empty owl
#

what

#

wait

pure lion
#

๐Ÿ‘๏ธ

#

Shitdev is here

earnest phoenix
#

you dont need a promie for that

pure lion
#

What is up

earnest phoenix
#

Hi shitdev how u doing do u need assistance with smthing

pure lion
#

No, does anyone need help tho?

empty owl
#

like this?

#
teamArray.forEach(val => {
            let guildMember = message.guild.members.cache.find(v => val === v.user.tag)
            if (!guildMember) throw "Error"
        }).catch(_ => {
            return simpleEmbed(message.channel, "Setup", `${val} isn't in this server.`)
        })
       
        let idArray = teamArray.map(val => message.guild.members.cache.find(v => val === v.user.tag).id)
        finalOutput["memberIDs"] = idArray
        finalOutput["teamNumber"] = parseInt(number)
        resolve(finalOutput)
    
  
    return finalOutput```
pure lion
#

Oh a forEach

#

How do i use those

#

I need to learn

misty sigil
#

how on earth

#

do i use .then

empty owl
#

array.forEach(functio)

pure lion
#

It's easy

empty owl
#

@misty sigil

#

for promises

#

.then(functionarrowetc.)

misty sigil
#

oh yea

earnest phoenix
#

@misty sigil ```js
function daFunction(someParamNoOneNeeds=null) {return new Promise((res,rej)=>{setTimeout(function() {res(someParamNoOneNeeds)},2000)})}

daFunction("E").then(console.log) // Will log "E" after 2 secs

#

explained promises in both ways

pure lion
#

let m = await message.channel.send('pinging...').then((m) => m.edit(pingtime))

earnest phoenix
#

@pure lion okay you showed me you are a real shitdev

#

await OR then

#

decide

pure lion
#

Oh shit

#

Why did i put await

#

Omg I'm so retarded

earnest phoenix
#

why did you declare it into a var if you have the same var in a then function

pure lion
#

Shitdev :D

#

Bro idk

#

I didn't learn core JavaScript, I learnt it all through discord.js :')

empty owl
#

same

earnest phoenix
#

same

empty owl
#

but I made a javascript npm package

earnest phoenix
#

but i know how to use promises

#

@empty owl same

empty owl
#
let teamArray = teamMembers.split("\n")
        teamArray.forEach(val => {
            let guildMember = message.guild.members.cache.find(v => val === v.user.tag)
            if (!guildMember) throw "Error"
        }).catch(_ => {
            return simpleEmbed(message.channel, "Setup", `${val} isn't in this server.`)
        })
       
        let idArray = teamArray.map(val => message.guild.members.cache.find(v => val === v.user.tag).id)
        finalOutput["memberIDs"] = idArray
        finalOutput["teamNumber"] = parseInt(number)
        resolve(finalOutput)
    
  
    return finalOutput```
earnest phoenix
#

in fact, i made 4

empty owl
#

its not catching ;-;

opal plank
#

@earnest phoenix
sync code cannot wait for async code or wait for promises with .then
async code can wait for sync code but cannot wait for promises .then
promises with .then can wait for async and sync iirc

#

this is the general rule

earnest phoenix
#

i didnt understand a single letter

opal plank
#

ยฏ_(ใƒ„)_/ยฏ

pure lion
#

Yo how the balls do you make an npm that works and is useful

empty owl
#

magioc

pure lion
#

:0

opal plank
#

you mean you wanna make a package right?

pure lion
#

Yeah

opal plank
#

make an 'npm' is a node package manager

pure lion
#

Epicccc

earnest phoenix
#

So i got this for Join position and works but sometimes it gives

can't read the property 'user' of undefined``` for some reason as always... Even though every member cached and stuff

let JoinPM;
switch(message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp).findIndex(m => m.id === useri.id)){
case 0:
JoinPM = ${useri.user.tag} <![emoji_54](https://cdn.discordapp.com/emojis/724948450428452905.webp?size=128 "emoji_54")724948450428452905> ${message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp)[message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp).findIndex(m => m.id === useri.id) + 1].user.tag};
break;
case message.guild.memberCount:
JoinPM = ${message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp)[message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp).findIndex(m => m.id === useri.id) - 1].user.tag} <![emoji_54](https://cdn.discordapp.com/emojis/724948450428452905.webp?size=128 "emoji_54")724948450428452905> ${useri.user.tag};
break;
default:
JoinPM = ${message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp)[message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp).findIndex(m => m.id === useri.id) - 1].user.tag} <![emoji_54](https://cdn.discordapp.com/emojis/724948450428452905.webp?size=128 "emoji_54")724948450428452905> ${useri.user.tag} <![emoji_54](https://cdn.discordapp.com/emojis/724948450428452905.webp?size=128 "emoji_54")724948450428452905> ${message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp)[message.guild.members.cache.map(m => m).sort((a, b) => a.joinedTimestamp - b.joinedTimestamp).findIndex(m => m.id === useri.id) + 1].user.tag};
}```

summer torrent
earnest phoenix
#

It gives that error on the default trigger in the first user to get

pure lion
#

What's a package that nobody else wants to make?

earnest phoenix
#

@opal plank i tried what you said and its still saying it

opal plank
#

post code

#

and post error too

earnest phoenix
#

this is what i thought you meant

opal plank
#

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

pure lion
#

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

misty sigil
#

ok screw db ping

opal plank
#

dont use template literals

#

DONT

earnest phoenix
#

Why ` and template literals?

#

\` i mean

opal plank
#

if(!result[0].nsfw)

earnest phoenix
#

ohhhhhh you meant that phahaha

#

my bad

pure lion
#

Dude why is it all a string

#

Omg

opal plank
#

eval

earnest phoenix
#

confused you first check if the result isn't nsfw and send it and secondly you're checking if the channel is nsfw

pure lion
#

^

earnest phoenix
#

Why tho facepalm

delicate shore
#

how to make bot delete it's own message

#

after few seconds

opal plank
#

! reverts the signal

pure lion
#

Await, set time-out and delete @delicate shore

delicate shore
#

how

opal plank
#

it checks for those 2 statements first, THEN it flips it

#

wait

earnest phoenix
#

@delicate shore

msgToDelete.delete({ timeout: <time in ms> });
});```
#

or in dumfuck mode <send the message>.then((m)=>{setTimeout(m.delete,<time in ms>)})

#

Well that isn't efficient at all tho lol... Like you said dumfuck mode

#

it works

#

and its basically the same, as the delete function utilizes setTimeout aswell

balmy nimbus
#

or in dumfuck mode <send the message>.then((m)=>{setTimeout(m.delete,<time in ms>)})
@earnest phoenix

this code workes?

pure lion
#

Well that isn't efficient at all tho lol... Like you said dumfuck mode
Oh hey it's me

earnest phoenix
#

it works

balmy nimbus
#

bro thats what i need rn

earnest phoenix
#

or you can use voltrex' code

#

Ik, just saying that might sometimes throw an error not utilizing the timeout @earnest phoenix

balmy nimbus
#

tnx so much

earnest phoenix
#

@earnest phoenix what

#

@earnest phoenix becuase my bot doesn't send messages to nsfw servers lol

#

So yea... I tried yours a long time ago and sometimes it didn't utilize the timeout and threw an error of <message>.delete() is not a function... Confusing isn't it? @earnest phoenix

#

That's why it checks

#

@opal plank tried that and it still saying unexpected error

opal plank
#

send code

earnest phoenix
#

that is the dumbest error message i've ever seen and i cant imagine it throwing an error because of that @earnest phoenix

#

Identifier sorry

opal plank
#

send code

earnest phoenix
#

@earnest phoenix yea ik

#

Yes I saw lol

opal plank
#

code, not gyazo

#

@earnest phoenix

earnest phoenix
#
client.shard.broadcastEval(`
                        const partnerGuild = this.guilds.cache.get('${row[i].guildid}');
                        if (partnerGuild) {
              const partnerChannel = partnerGuild.channels.cache.get('${row[i].partner}');
                          if (!partnerChannel || partnerChannel.type !== 'text' || !partnerChannel.permissionsFor(partnerGuild.me).has(['SEND_MESSAGES', 'VIEW_CHANNEL', 'EMBED_LINKS'])) {
                              con.query('UPDATE testing SET partner = null WHERE guildid = ' + partnerGuild.id, (err) => {
                                  if (err) console.log(err);
                              });
              }
              else if (!result[0].nsfw || partnerChannel.nsfw) {
                partnerChannel.send(${partnerMessage});
              }
            }
                    `)```
#

I'm sure that's shown in the documents

opal plank
#

@earnest phoenix dude

earnest phoenix
#

As flags

opal plank
earnest phoenix
#

what

opal plank
#

template literals

earnest phoenix
#

oh

opal plank
#

......

balmy nimbus
#

1 problem,

how can i delete bot's Reply.?

pure lion
#

Await and delete

earnest phoenix
#

Go up and look ehat code i sent

pure lion
#

Or .then

earnest phoenix
#

*what

balmy nimbus
#

Await and delete
@pure lion

toss the code plz

pure lion
#

No

#

:)

opal plank
#

spoonfeeding at its finest

balmy nimbus
#

๐Ÿ˜‘

earnest phoenix
#

@balmy nimbus literally go up... Look at my code

pure lion
#

Lollll

opal plank
#

if you dont have the motivation to go up and get a premade code, why should we have motivation for you?

pure lion
#

^^^^

balmy nimbus
#

ok

pure lion
#

Maybe something to do with user?

earnest phoenix
#

You can't turn a user/member to a profile object

#

Profile object has been removed

#

Listed but deprecated

old plover
#

Hi

robust moth
#

It is right ??????

    message.languages = languages
if (message.guild) message.languages = require (`../../assets/languages/${getLanguage(message.guild.id)}`)```
earnest phoenix
#

@earnest phoenix doesn't mean it's working, you can't access to user's profile object without oauth2

#

i believe ive done what you have said now @opal plank

opal plank
#

try it and see it it errors

earnest phoenix
#
client.shard.broadcastEval(`
                        const partnerGuild = this.guilds.cache.get('row[i].guildid');
                        if (partnerGuild) {
              const partnerChannel = partnerGuild.channels.cache.get('row[i].partner');
                          if (!partnerChannel || partnerChannel.type !== 'text' || !partnerChannel.permissionsFor(partnerGuild.me).has(['SEND_MESSAGES', 'VIEW_CHANNEL', 'EMBED_LINKS'])) {
                              con.query('UPDATE testing SET partner = null WHERE guildid = ' + partnerGuild.id, (err) => {
                                  if (err) console.log(err);
                              });
              }
              else if (!result[0].nsfw || partnerChannel.nsfw) {
                partnerChannel.send(partnerMessage});
              }
            }
                    `)```
#

correct?

opal plank
#

looks good so far

#

if it errors let me know

earnest phoenix
#

yeah it does

#

i get

misty sigil
#

So I know that I need to measure the time of my db call but how

earnest phoenix
#

Error [SyntaxError]: missing ) after argument list

#

Really... facepalm

opal plank
#

do you not use a code editor?

earnest phoenix
#

i do

#

'row[i].guildid' => row[i].guildid
'row[i].partner' => row[i].partner
partnerMessage} => partnerMessage

#

but nothing came up for that lol

opal plank
#

please tell me youre not using some stupid stuff like notepad

#

atom, vim, vsc, anything of that caliber should tell you syntax error properly

earnest phoenix
#

im using vsc

#

lol

misty sigil
#

how do i purge bot messages

#

like from my bot

opal plank
#

will warn you about this

earnest phoenix
#

but i had it in string that why it didnt come up lol

opal plank
#

cuz } doesnt have a { to start with

#

also you just turning everything into strings

earnest phoenix
#

yeah i deleted the first one and forgot that one too haha

opal plank
#

i told you not to use template

#

you just converting it into strings

#

you literally removed ${} from everything i pointed out

#

this wont work at ALL

earnest phoenix
#

'row[i].guildid' => row[i].guildid
'row[i].partner' => row[i].partner
partnerMessage} => partnerMessage

misty sigil
#

how to purge messages from my bot
[LIBRARY] discord.js

earnest phoenix
#

@misty sigil you mean from cache or...

opal plank
#

fetch messages and then filter author

misty sigil
#

just messages sent by my bot

opal plank
#

ยฏ_(ใƒ„)_/ยฏ

earnest phoenix
#

seems to be working fine @opal plank

#

no errors and everything is doing as it should

restive furnace
#

@misty sigil just filter the messages by your bot and then bulk delete them

opal plank
#

its not beacuse it didnt error that it will work @earnest phoenix

misty sigil
#

yea ik

#

how would i filter messages by my bot

earnest phoenix
#

dude literally it fetched it from the db and did everything its mean to lol

opal plank
#

this is whats passing on your code

earnest phoenix
#

thanks for the help

opal plank
#

.get('row[i].guildid')
there isnt a guild with the id 'row[i].guildid'
there are guilds with '1287647815682764'

pure lion
#

Sometimes I wonder how people get verified but don't know how to use arrows bloblul

opal plank
#

aka 90% of this guild, im fine with helping, but sometimes it just amazes me

pure lion
#

๐Ÿ˜„

delicate shore
#

msg.channel.setRateLimitPerUser()

#

what should i enter in brackets

pure lion
#

Yes

delicate shore
#

do disable slowmode

pure lion
#

Dude hover over setRateLimitPerUser

delicate shore
#

0?

pure lion
#

Yes 0

delicate shore
#

ok

robust moth
#

Is this correct? And if so, which one should I use ?

    message.languages = languages
if (message.guild) message.languages = require (`../../assets/languages/${getLanguage(message.guild.id)}`)```
Or
```let languages = require ("../../assets/languages/english")
if (message.guild) languages = require (`../../assets/languages/${getLanguage(message.guild.id)}`)
    message.languages = languages```
delicate shore
#

How to make my bot delete message

#

after it executes the command

restive pebble
#

await message.delete()

quartz kindle
#

@robust moth both will cause an error if there is no language set for that guild id

#

but if the getLanguage function automatically falls back to english if no language is found, then you dont need the first line in the first place

delicate shore
#

@restive pebble not bot message

#

my message

restive pebble
#

command message?

empty owl
#
    let teamArray = teamMembers.split("\n")
        teamArray.forEach(val => {
            let guildMember = message.guild.members.cache.find(v => val === v.user.tag)
            if (!guildMember) throw "Error"
        }).catch(_ => {
            return simpleEmbed(message.channel, "Setup", `${val} isn't in this server.`)
        })
       
        let idArray = teamArray.map(val => message.guild.members.cache.find(v => val === v.user.tag).id)
        finalOutput["memberIDs"] = idArray
        finalOutput["teamNumber"] = parseInt(number)

    
  
    return finalOutput``` It throws the error, but doesnt catch
delicate shore
#

yes

restive pebble
#

message.delete()

quartz kindle
#

message.delete() lol

restive pebble
#

lol

quartz kindle
#

@empty owl you're mixing up a bunch of stuff

empty owl
#

yea?

quartz kindle
#

.catch() only exists in promises, and forEach() is not a promise

empty owl
#

ah

quartz kindle
#

also if you throw an error inside the forEach, it will stop looping

empty owl
#

i should use .some instead of a forEach loop right

#

just remembered

quartz kindle
#

if you want all members to be available, use .every()

empty owl
#

okay

robust moth
#

you dont need the first line in the first place
@quartz kindle I make this code DM and guild
First line use in DM

empty owl
#

wait but i want it to check if at least 1 isnt a guild member

#

and send an error emessage

quartz kindle
#

@robust moth then you can do this message.language = message.guild ? require(guild lang) : require(dm lang)

robust moth
#

Ok

quartz kindle
#

@empty owl array.every() returns true if all items pass the filter, and false if one of them doesnt

empty owl
#

okay thanks

hidden lynx
#

does anybody know how play songs with a spotify link with ytdl or sth else? I couldnt find anything googling :/

pure lion
#

@hidden lynx is ez

opal plank
#

omg

quartz kindle
#

do you got a link for that ^

#

lmao

restive furnace
#

spaghetti code

lusty quest
#

what in spagetti codes hell is this

opal plank
#

i dont have a link for it anymore, i took a screenshot of it

restive furnace
#

those }'s aren't even linear

amber fractal
#

nah, my ternary chain is worse

opal plank
#

worst part is that somehow this shit worked

lusty quest
#

reminds me on a command ive made but scraped again in favor of a switch case , there where like 40-50 else if statements

quartz kindle
#

Lol

amber fractal
lusty quest
#

chained together

quartz kindle
#

jesus fucking christ

opal plank
#

what

#

the

#

fuck

amber fractal
#

You may not understand it, but I do mmLol

lusty quest
#

r/softwaregore

quartz kindle
#

how can you live with that

opal plank
#

Kill it with fire before it reproduces

amber fractal
#

I couldnt

restive furnace
#

i would choose 50 switch statements/else ifs instead of that...

amber fractal
#

but the api I worked with wasnt in JSON so I had to do some weird stuff

#

I wasnt going for readability.

opal plank
#

try protobuf

#

its much better

amber fractal
#

I was working with an api that returned xml data and the xml converter I had was garbage

#

the api was made in like 2008

quartz kindle
#

no code is that complex that you'd need 50 ternaries or if elses lmao, there is always something you can put into an array or modularize it somehow

opal plank
#

complexity = bad

amber fractal
#

your brain is bad then

#

the most complex structure known to man basically

quartz kindle
#

what happens when the brain finally understands itself

opal plank
#

what

amber fractal
#

who knows

#

spontaneous combustion

lusty quest
#

smart people are lazy

opal plank
lusty quest
#

if you want work get done efficent get a lazy person to do it

daring musk
quartz kindle
#

postStats requires 1 argument

opal plank
#

if you want work get done efficent get a lazy person to do it
as a lazy person, can confirm

quartz kindle
#

@lusty quest i wrote about 10 lines of code in the last 3 days

daring musk
#
  const postStats = () =>
    dbl
      .postStats(guilds.size)
      .then(() => log("Posted Stats", "DBL"))
      .catch((err) => handleError(err, "Posting stats to DBL"));

  postStats();
  setInterval(() => postStats(), 1800000);```
opal plank
#

@quartz kindle pff pleb, i've only copied snippets from here and told them where the syntax error is

amber fractal
#

@quartz kindle I tried to modularize it, but I made this in like 2018 when I had no idea what I was doing I made it public in 2019 though :P

#

I probably could if I went back to it, but like nah

quartz kindle
#

wait until i publish my bot's old version on gh

#

nobody should see that

surreal sage
#

how do i make the yarn generated setup exe trusted by windows

opal plank
#

i privated my shit on git for that specific reason

daring musk
#

Anyone?

amber fractal
#

if they just made their api in json it would've been so much simpler

#

do they use d.js v12?

quartz kindle
#

@daring musk discord.js? which version?

opal plank
#

@daring musk guilds.size

earnest phoenix
#

What should i use instead of calculatedPosition in v12? (For roles)

opal plank
#

usually you'd want client.guilds.cache.size

amber fractal
#

^

hidden lynx
#

@pure lion how do i do that? with spotify

earnest phoenix
#

anyone?

daring musk
#

Eris

quartz kindle
#

did you define guilds anywhere?

#

otherwise it should be client.guilds.size

daring musk
#

const { guilds } = bot;

opal plank
#

doesnt it need to be on cache?

modest maple
#

Tim, you dont by anychance know how top.gg updates the server count and vote count

#

like what placeholder its trying to target

amber fractal
#

@earnest phoenix I just use <Role>.position

quartz kindle
#

@daring musk is that in your main file? the same file where you do bot.connect?

amber fractal
#

you could use rawPosition too

earnest phoenix
#

@amber fractal rawPosition?

daring musk
#

Yes

earnest phoenix
#

okey

amber fractal
#

I just use position though

quartz kindle
#

is the code inside the ready event? @daring musk

earnest phoenix
#

i would use rawPosition

amber fractal
#

I've never seen a difference in the two

daring musk
#

Yes

quartz kindle
#

can you console.log(guilds.size)?

daring musk
#

0

opal plank
#

also, you shouldnt use an interval on that

quartz kindle
#

@modest maple which placeholder?

opal plank
#

use on guildCreate event to update it

daring musk
#

What should I be using instead?

opal plank
#

guildAdd, i forgot

quartz kindle
#

@daring musk show full code

daring musk
#

You sure bout that?

modest maple
slender thistle
#

use on guildCreate event to update it
To update server count on top.gg, it's better to use an interval instead

modest maple
#

atm theyre just sitting there

opal plank
daring musk
#

?

opal plank
#

is it not better to update that value only when the guildCreate event is emitted instead of wasting process looping when the bot likely wont be updating that quickly?

amber fractal
#

@modest maple do you use ejs?

modest maple
#

no, but that doesnt matter

#

Im not talking about posting the data or getting it from the api

daring musk
#

Eh?

quartz kindle
#

@opal plank not exactly

opal plank
#

unless theres a ratelimit in place that might be abusable, i dont see why you'd use interval instead of guildCreate @slender thistle

earnest phoenix
#

hi

modest maple
#

Im talking about getting top.gg on the main page to update it

slender thistle
#

guildCreate fired more than 60 times per minute = ratelimit

opal plank
#

ah, figured

slender thistle
#

It makes more sense if you want to respect the API as well

earnest phoenix
#

how do i get the id of the mentioned user in a message

opal plank
#

i see

amber fractal
#

go ham

earnest phoenix
#

hamburger

amber fractal
#

btw, your thing doesnt work on light theme @modest maple

#

or didnt

#

wtf now it does Thonk

torpid delta
amber fractal
#

also, doesnt that remove the report button?

modest maple
#

its missing alot atm

amber fractal
#

F

modest maple
#

report button
2 ads missing
upvotes not live
server count isnt live (I think)
content bellow isnt set

quartz kindle
#

@modest maple you're trying to replace top.gg's html?

modest maple
#

i mean

#

ive mostly done it

#

It would of been easier had i been able to remove the nav

quartz kindle
#

there is no placeholder

#

the data is in the html source code

modest maple
#

๐Ÿ˜ฉ

quartz kindle
#

you can only get it with js

modest maple
#

so i just need the id points

quartz kindle
#

you'd need js to get it from the original

modest maple
#

i dont rlly care about how it updates it

#

but i just want that little span to update

#

but its going nani to it

quartz kindle
#

your span will never update

#

not by itself

modest maple
#

๐Ÿ˜ฉ

#

wtf sort of js are they running to have it not update it when the Ids are the same

quartz kindle
#

because its in the html source code lol

#

its not js

#

the numbers are built into the html when the page is downloaded

#

they are added server side

modest maple
#

๐Ÿค” Theyre templating?

quartz kindle
#

yeah

modest maple
#

fucking since when?

quartz kindle
#

since always?

tepid canyon
#

lool

modest maple
#

๐Ÿ˜ฉ of all the things they could of done, they went with templating on somthing that would of been better todo with js when moved

quartz kindle
#

why would js be better

modest maple
#

so you finna dont have this issue

quartz kindle
#

that would just make it need an extra ajax request

modest maple
#

maybe they could cut out one of their 4 spamming ads out then :P

quartz kindle
#

lul

modest maple
#

Dont give us js access but dont use js to update dynamic things because that would be too kind

quartz kindle
#

they want to to style the original elements, not replace them with your own

modest maple
#

well tough lol

#

Ive hacked this far enough

#

Im just gonna replace them with custom SVGs

quartz kindle
#

lmao

modest maple
#

nothing is ever simple ๐Ÿ˜ฉ

quartz kindle
#

give the originals position:absolute lol

slender thistle
#

I mean if we do allow replacing elements with your own

quartz kindle
#

so you can move them anywhere

slender thistle
#

do you think it won't be abused

modest maple
#

ive removed them entierly

#

to get rid of all the other html and stuff

#

i just went "display none that, display none this, hide this margin 0"

#

50 lines of CSS of just hiding dbl's html ๐Ÿ˜‰

quartz kindle
#

lmao

#

pretty sure they dont want you doing that

modest maple
#

well tough

#

not against the rules to use css

quartz kindle
#

its against the rules to hide some stuff

modest maple
#

im not hiding the required stuff

#

well

#

i wont once ive finished it

quartz kindle
#

xD

#

just give all the required stuff position:absolute and lock their position on the top or bottom of the page lol

modest maple
#

their bulma css is also fucky wucky my tables

#

they're doing the big weird and going bg white on hover

#

๐Ÿ˜ฉ

tight plinth
quartz kindle
#

dafuq is quick.db-plus

tight plinth
#

quick.db but better

worn niche
#

hi, how can I add role to mentioned user?
I want the mentioned user gets role Muted GG but I can't figure how to do it. Google can't help in this case (at least for me).
That's what I actually have:

client.on('message', message => {
  if (message.content === 'c2?mute') {
    let role = message.guild.roles.find(r => r.name === "Muted GG");
let member = message.mentions.members.first();
member.addRole(role).catch(console.error);


 
  }
});
dire obsidian
#

guys how i make to make a count of all the members?

worn niche
#

guys how i make to make a count of all the members?
@dire obsidian wait, I'll give you code

dire obsidian
#

๐Ÿ‘

slender thistle
#

Don't

#

Spoonfeeding is against the rules in this server

tight plinth
#

@worn niche member.roles.add if youre using v12, member.addRole if youre using v11

worn niche
#

๐Ÿ‘
@dire obsidian

`${message.guild.memberCount}`
tight plinth
worn niche
#

@worn niche member.roles.add if youre using v12, member.addRole if youre using v11
@tight plinth thanks

tight plinth
#

dont question messy code

dire obsidian
#

@worn niche you save me the day

worn niche
#

np

tight plinth
#

@earnest phoenix no

quartz kindle
#

then thats why

tight plinth
#

it returned me all of this

quartz kindle
#

that code is being executed multiple times

tight plinth
#

What's wrong @tight plinth
@earnest phoenix it changed if youre on v11

#

but it doesnt occur if i just execute the code in eval

quartz kindle
#

idk somewhere that params.id is being turned into boolean

#

thats a recursive function isnt it?

#

so it can parse each property

tight plinth
#

hm

knotty steeple
#

quick.db but better
@tight plinth just dont use quick.db :)

quartz kindle
#

ah lul

tight plinth
#

lol

daring musk
#

Is anyone seeing a 5 Minutes + Latency?

jaunty junco
daring musk
#

No one?

solemn latch
#

5 minutes of latency?

daring musk
#

IDK, I dont see tests coming at all

mossy cloak
#

Can Anyone Say Me How Can i Know How Many In How Many Server Run My Bot

jaunty junco
#

welp

#

you could see that from top.gg if your bot is in there

#

dont know of any other method

mossy cloak
#

Okey

#

But I Know One But The Work Is Not running Now

quartz kindle
#

@jaunty junco what library

jaunty junco
#

@quartz kindle discordia

wild ore
#

/app/events/message.js:12
let perms = client.elevation(message);
^
TypeError: client.elevation is not a function
at Client.module.exports.message (/app/events/message.js:12:22)
at emitOne (events.js:116:13)
at Client.emit (events.js:211:7)
at MessageCreateHandler.handle (/rbd/pnpm-volume/9049f060-35cf-41d7-ad03-5f6a3b852cd1/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
at WebSocketPacketManager.handle (/rbd/pnpm-volume/9049f060-35cf-41d7-ad03-5f6a3b852cd1/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:105:65)
at WebSocketConnection.onPacket (/rbd/pnpm-volume/9049f060-35cf-41d7-ad03-5f6a3b852cd1/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
at WebSocketConnection.onMessage (/rbd/pnpm-volume/9049f060-35cf-41d7-ad03-5f6a3b852cd1/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
at WebSocket.onMessage (/rbd/pnpm-volume/9049f060-35cf-41d7-ad03-5f6a3b852cd1/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/ws/lib/event-target.js:120:16)
at emitOne (events.js:116:13)
at WebSocket.emit (events.js:211:7)

#

pls help me

quartz kindle
#

@jaunty junco invite create is a relatively new event, its possible that lib doesnt support it yet, check for updates or ask their developers

jaunty junco
#

oh k

wild ore
#

pls help me
@wild ore

slender thistle
#

wait what, there's an invite_create event now?

jaunty junco
#

apparently

pallid silo
slender thistle
#

my dream of making an invite manager bot gets closer by each day, 2020 still has some hope

jaunty junco
#

what

#

invite manager bot?!?

#

ok

earnest phoenix
#

@pallid silo off topic

#

@slender thistle I alredy maded

#

Lmao

slender thistle
#

Private invite manager bot*, sorry

quartz kindle
#

@slender thistle yup lol, there is invite_create and invite_delete

slender thistle
#

But that could be abused tbh

earnest phoenix
slender thistle
#

Does it send the invite object in the payload?

quartz kindle
#

yup

earnest phoenix
#

I used quick.db

quartz kindle
earnest phoenix
#

@quartz kindle what is this

slender thistle
#

Now, do I want to edit my d.py until it's added officially or just wait zoomeyes

#

But that's.. nice

earnest phoenix
#

@slender thistle my is .js

#

@slender thistle how did you become website moderator

slender thistle
#

Applied when apps were open

quartz kindle
#

arent all mods website mods ?

earnest phoenix
#

When will they open up

slender thistle
#

There used to be a mod who wasn't a website mod but yeah

earnest phoenix
#

When will they open up

delicate shore
#

Imagine using Discord Bot Developer

slender thistle
#

When we need more staff

earnest phoenix
#

@delicate shore yup

#

I need to help you guus

#

Guys*

#

I hate discord bot dev

delicate shore
#

We spend a lot of hours finding solutions to errors and they just fucking enter two lines in discord bot maker

#

And boom

#

They are ready

slender thistle
#

well not all abstractions are bad

quartz kindle
#

and boom, their bots are bad

earnest phoenix
#

But they can't do 2 things

placid iron
delicate shore
#

Lol

placid iron
#

This is gate keeping

earnest phoenix
#

They can't do sharding....they can't update top.gg stats

placid iron
#

Let people have their fun

delicate shore
#

Noice

earnest phoenix
#

Thou sharding is easy

delicate shore
#

My bot is in 72 servers

earnest phoenix
#

But impossible with dbd

delicate shore
#

How many servers I need to be verified

hushed jungle
#

75

#

Almost there mate

delicate shore
#

Ohk

slender thistle
#

76 actually

earnest phoenix
#

@delicate shore 3 more there you go

delicate shore
#

Yeah

hushed jungle
#

Oof

delicate shore
#

Yep

placid iron
#

For me it was 76 cry

delicate shore
#

Sad

hushed jungle
#

I have provided the wrong information ๐Ÿ˜ฆ

#

This is a sad day

earnest phoenix
#

My is 808 servers in 2 weeks

delicate shore
#

Lol

#

My is 808 servers in 2 weeks
@earnest phoenix
Ok how tf

placid iron
#

@earnest phoenix that seems a bit slow tbh

#

Need more adverts

earnest phoenix
#

@placid iron hmm

placid iron
#

Smh

earnest phoenix
#

@placid iron bruh I don't advertise

delicate shore
#

Discord doesn't allow more than 100 servers until verified

earnest phoenix
#

My bot has unique working

delicate shore
#

I read their policy

hushed jungle
#

That limit is not enforced yet

delicate shore
#

It's changed

quartz kindle
#

only after november

delicate shore
#

My bot has unique working
@earnest phoenix
What is it about ?

earnest phoenix
#

@delicate shore they allow

delicate shore
#

DM me

#

And tell about ya bot @earnest phoenix

earnest phoenix
delicate shore
#

What does this do

earnest phoenix
#

Like his name

delicate shore
#

?

#

Wot

earnest phoenix
#

If I tell it will go offtopic maybe

delicate shore
#

Ok

#

My bot ^

#

But unfortunately I am rate limited by YouTube API

hushed jungle
#

What does sound player do

#

A music bot?

earnest phoenix
#

@delicate shore how rate limited?

delicate shore
#

@delicate shore how rate limited?
@earnest phoenix
It's a music bot

earnest phoenix
#

@slender thistle lol you reacted on my text

hushed jungle
#

Might check it out then

delicate shore
#

Lol

earnest phoenix
#

Rip

delicate shore
#

Can anyone help me

#

In overcoming rate limit

hushed jungle
#

I can't find it on top.gg ๐Ÿ˜ฆ

#

Oh you are not green

pure saddle
#

512mb ram enough for discord bot hosting?

delicate shore
#

Until I solve it

hushed jungle
#

Should have looked first my bad

slender thistle
#

512mb ram enough for discord bot hosting?
@pure saddle For small bots - yes
For medium/big bots - no

delicate shore
#

No

slender thistle
#

Also depends on how you make use of it

pure saddle
#

what u mean for small bots

delicate shore
#

My is 2GB

earnest phoenix
#

@delicate shore offtopic

slender thistle
#

Private bots used in small servers

hushed jungle
#

I don't know how much ram I use ๐Ÿ˜ฆ

pure saddle
#

ohh

delicate shore
#

what u mean for small bots
@pure saddle
Less than 30 servers

solemn latch
#

Your also hosting a music bot, so you use way more ram

pure saddle
#

hmm

#

no music bot

earnest phoenix
#

My is hosted on AWS

delicate shore
#

@earnest phoenix come in #general and tell me about your bot

pure saddle
#

i have cooldowns

earnest phoenix
#

@delicate shore aah see Stauts you will get support server

#

. Soory I don't mean for promotion

solemn latch
#

If you keep a clean cache, youll be able to go prett far with 500mb of ram

delicate shore
#

@delicate shore aah see Stauts you will get support server
@earnest phoenix ?

pure saddle
#

i use glitch for now

earnest phoenix
#

Is sharding helps to get better ping

solemn latch
#

Glitch is not a good platform to use rn for bots

pure saddle
#

ik

earnest phoenix
#

Glitch banned uptimmer bots

pure saddle
#

its enough for me

placid iron
#

Again for that why not use heroku

#

It's free

pure saddle
#

me?

#

heroku cant save persisent data

still merlin
#

Can I have some help, My eval command returns a success and result thingy but if its undefined or some error, no error message appears.

solemn latch
#

Or just pay the extra $2 a month and get a VPS

placid iron
#

I use the postgres db to store data

still merlin
#

but I set a error message

      const code = args.join(" ");
      let evaled = eval(code);

      if (typeof evaled !== "string") evaled = require("util").inspect(evaled);

      message.channel.send(evaled);
      message.channel.send(
        "``:x: Error preforming eval command``" + "(" + err + ")"
      );
    } catch (e) {}
  }
});```
placid iron
#

But if you need other things then that makes sense

pure saddle
#

i use quick.db

restive furnace
#

i pay 0$ for vps GWbruhTrolled (no joke rly)

earnest phoenix
#

me too

placid iron
#

Well I have a raspberry pi that my parents pay the electricity for

earnest phoenix
#

@still merlin seriously? Lol

#

@placid iron I want to know that postgresql store data where online or machine

finite bough
#

if u are looking for a online machine to store data

#

i prefer mongodb