#development

1 messages · Page 460 of 1

topaz fjord
#
  1. that looks like a mass dm code
sick cloud
#

```js
code
here
```

topaz fjord
#
  1. it is mass dm code which isnt allowed
sick cloud
#

and yeah it is, which isn't allowed

earnest phoenix
#

ım new 😦

topaz fjord
#

so

earnest phoenix
#

anydesk ??

topaz fjord
#

mass dm is when you send a message to every single user

earnest phoenix
#

yes

topaz fjord
#

which is against discord terms or service

earnest phoenix
#

it is not workgin

topaz fjord
#

you can get banned from discord for doing that

vernal rivet
#

What's your bot suppose to do?

earnest phoenix
#

I can not assign community message with botum command does not work

#

...

#

help me please

topaz fjord
#

what your doing is not allowed

earnest phoenix
#

Bulk messaging command is not working on my bot

knotty steeple
#

well

#
  1. you are going to get ratelimited
  2. its pretty much mass dms, which is not allowed
earnest phoenix
#

I can not explain the command, the command is not working corrupted

vernal rivet
#

Yes, what is your bot in general suppose to do @earnest phoenix

sullen path
#

don't make that a command

topaz fjord
#

if he is turkish we can get eggsy to help

#

@sullen path spam

knotty steeple
#

he is turkish

earnest phoenix
#

yes.

topaz fjord
#

~~ping eggsy when @knotty steeple ~~

knotty steeple
#

@steel heath can you help

earnest phoenix
#

eggys closefd

#

eggs

#

help me

night imp
#

what is the error

steel heath
#

What?

vernal rivet
#

🤔

sullen path
#

as far as we can tell, he's trying to mass DM

topaz fjord
#

we need you to be our translater eggsy

steel heath
#

ok sure

topaz fjord
#

you need to tell Mortal that the command he is making is against discord tos

knotty steeple
#

Okay, so im making level up system and i want to make it so that you cant spam to easily level up, so how long should the ratelimit last?

#

:v

steel heath
topaz fjord
#

@knotty steeple why tho

#

i make my level up account for each users message they send

earnest phoenix
#

prohibition cause I made

knotty steeple
#

but then

#

spam = ez level up

earnest phoenix
#

HMM OK

#

would you help me develop the bot?

knotty steeple
#

no

steel heath
#

Are you guys sure he's Turkish tho

#

why am i here

#

whats my life about

knotty steeple
#

ye im pretty sure he is turkish

vernal rivet
#

Lol

earnest phoenix
#

ım turkish

#

?

topaz fjord
steel heath
#

Then why doesn't he just read my message angeryBOYE

#

yeah he is

earnest phoenix
#

yes

#

ım turkish

#

evet ben türküm

steel heath
knotty steeple
#

3 seconds is good for my ratelimit right

vernal rivet
#

😅

night imp
#

I would say 7-10

#

But up to you blobshrug

obtuse wind
#

something like that right?

sick cloud
#

what lib?

obtuse wind
#

Library: Node.js (Discord.js)

Help Request: The Code in the picture does not give my bot the roles listed.

knotty steeple
#

any errors?

obtuse wind
#

no

#

it doesn't even log

knotty steeple
#

very weird

obtuse wind
#

I mean I can send the whole code here

knotty steeple
#

why do you need to add two roles tho

obtuse wind
#

1 of them is for Moderator
and the other 1 gives them staff member role

knotty steeple
#

o

gilded blaze
#

Do mUser.addRoles

#

You already should have the GuildMember object

#

Don't need to resolve it again

earnest phoenix
#

How do I check number of days user has been on discord for?

obtuse wind
#

it still didn't give the roles

knotty steeple
#

@earnest phoenix library

obtuse wind
gilded blaze
#

No

obtuse wind
#

HMM

gilded blaze
#

Change message.guild.mUser to just mUser

#

mUser is the GuildMember

#

Already resolved

obtuse wind
#

alright

#

i'll try that

gilded blaze
#

@earnest phoenix Get the created timestamp and subtract it from the current timestamp then divide it by the number of milliseconds in a day (simple multiplication). And round the absolute of the solution.

#

Be aware of timezones btw.

earnest phoenix
#

Will do

#

@gilded blaze thanks

hardy fiber
#

you know you should probably be done for the night when you start coding a different command then the one you started with half way through.

#

(in the same (in this case) if statement)

last ferry
#

Can anyone explain to me how sharding works in Discord.Net

#

I’d like to get it set up before my bot hits 2.5k

earnest phoenix
#

what is this?

slender thistle
#

@rotund mesa Adapt the code to event? invoke() requires a Context object which is not passed in the event parameters

hot sleet
#

i want to check if there was any message collected in awaitmessages or no

#
const msgs = await message.channel.awaitMessages(msg => {

    return msg.content === answers[question];
    return msg.author.id === id;

}, {maxMatches: 1, time: 5000});```
slender thistle
#

@rotund mesa Oh, wait. What do you mean by "calling a cog"?

sick cloud
#

that isn't how awaitMessages works

floral zinc
#

Is it better to make the bot send the help command per pn and if the user doesnt have pms enabled, tell him to enable them? Or should the Bot then send the Help in the channel the command is executed in?

earnest phoenix
#

@night imp

floral zinc
#

Oh and how would I get the list of voters with the java api?

earnest phoenix
#

Any idea on how to track the invite link user used to join server via D.JS?

fluid basin
#

Only way to track invite on any library is to check manually to see compare difference of invite when user joined, that said you will also need to maintain a list of all the invite in the server

earnest phoenix
#

That's what I was thinking about

knotty steeple
#

Anyone would know why a random sqlite_sequence table popped up in my database?

earnest phoenix
#

are you using autoincrementing?

knotty steeple
#

no Thonk

earnest phoenix
#

🤷

knotty steeple
#

guess ill just delete then

#

and i cant

earnest phoenix
#

m!yardım

#

@earnest phoenix sa bişi soracam

ruby dust
#

don't you love when someone mentions you in another language...

knotty steeple
#

also wrong channel

gleaming glen
hushed berry
#

@ruby dust groovy

fluid basin
#

GROOVY >>>

hushed berry
#

😂

earnest phoenix
#

@ruby dust is skysilk gonna be payed now cuz its currently on Maintenance

ruby dust
#

idk

#

I got an email saying that they released a premium something, didn't really read details

earnest phoenix
#

o ok

ruby dust
#

would actually make sense as to why they accept applications to join the free beta if they would let their beta testers to continue to use their containers for free, as long as they don't delete them which would create a new container which would then be payed

earnest phoenix
#

theres a boost thing now

#

XD

ruby dust
#

I guess they are still in beta then, since adding new functions in production isn't always a good idea

earnest phoenix
#

ahhh

ruby dust
#

and how is your medium container better than my small only in SSD size Thonk

earnest phoenix
#

XD

ruby dust
#

also you are showing your vps ip

#

👏

fluid basin
#

yeah

earnest phoenix
#

they dont have my key tho

#

😄

ruby dust
#

it's still better to be safe

fluid basin
ruby dust
#

leviathan?

#

that exists?

fluid basin
#

yup

ruby dust
#

oh there's even better one

#

ultimate

fluid basin
#

but ultimate is not in beta

#

so

earnest phoenix
#

XD

#

waittt

#

is it free

#

?

ruby dust
#

not anymore

#

medium is the only available left in beta

#

well not only

#

but the largest container

earnest phoenix
#

but i can boost up to large

#

?

#

should i ?

fluid basin
#

is there anyone with ultimate?

#

I don't think so actually

ruby dust
#

idk what will happen once beta will be over, so I wouldn't risk it

earnest phoenix
#

ok

ruby dust
knotty steeple
#

SqliteError: disk I/O error what does this error mean

earnest phoenix
#

ik

#

so i shouldnt do it

#

right?

ruby dust
#

I mean, does it mean that the boost will be active for 24 hours or the option itself?

earnest phoenix
#

no clue

#

i dont want to lose my vps tho

#

so

#

?

#

idk

knotty steeple
#

wait

#

if you got a vps in beta

earnest phoenix
#

?

#

yesi have

knotty steeple
#

is it free forever

earnest phoenix
#

really?

knotty steeple
#

idk im asking

earnest phoenix
#

no clue

ruby dust
#

that was my theory all this time, at least let their beta testers to keep their free containers

earnest phoenix
#

hopefully

neat falcon
#

free vps notlikeboye

shy verge
#

xd

fluid basin
#

The free tier would be free I guess

#

Idk

neat falcon
#

what host

knotty steeple
#

uh

#

skysilk

neat falcon
#

bearcop

#

i hear beta users don't keep their stuff tho if it's not on a free plan

knotty steeple
#

SqliteError: disk I/O error

#

this error

#

is annoying me now

floral zinc
#

What would be the best way to get a new voter?

#

in java

earnest phoenix
#

Does anyone know why i'm getting this when i'm trying to find a guild with client.guilds.find() in discord.js?

TypeError: fn.bind is not a function

knotty steeple
#

how are u finding the guild

#

whats in find()

earnest phoenix
#

client.guilds.find('name', "SkyBlock | Play")

#

that's how i'm finding the guild

#

and i'm getting the error

gleaming glen
#

try .get maybe?

#

instead of find

knotty steeple
#

get is only for ids

gleaming glen
#

uh

knotty steeple
#

try in the find function g => g.name === "GUILDNAME"

#

works for me

earnest phoenix
#

client.guilds.find(g => g.name === "SkyBlock | Play")

#

like this?

knotty steeple
#

yes

topaz fjord
#

you can also use .filter

gaunt fox
#

every role is able to read and access but it still says dat ?

gleaming glen
#

this is not the place for asking that i think

gaunt fox
#

he told me to

south finch
#

we're not partner bots support server

earnest phoenix
#

@KJ#2551 partner bot server is trash

#

He left lol

#

Last time they banned me for nothing cause I had a good role and left and joined every time a new problem comes up

south finch
#

okay this isn't the channel for this nor is it even needed to be brought up.

earnest phoenix
#

wait for the skyslik thing if i delete my current vps and make the one thats in premium will i keep it?

#

cuz some in premium are free in beta

opal mulch
#

I have a problem

slender thistle
#

@earnest phoenix Doubtfully

earnest phoenix
#
/root/Gamer/node_modules/dblapi.js/src/index.js:138
  async postStats(serverCount, shardId, shardCount) {
        ^^^^^^^^^
SyntaxError: Unexpected identifier

I got this Error while starting my bot up on a Skysilk VPS using Node.js

lament meteor
#

@earnest phoenix is your node updated?

earnest phoenix
#

Running on v6.11.0

#

@lament meteor

uncut slate
#

you need v7.6+

earnest phoenix
#

How do I update it? 😛

#

@uncut slate

lament meteor
#

download node.js again

uncut slate
#

depends on how you installed it, for the most part google will help you better than I can

#

that works

earnest phoenix
#

Im not using a desktop view

#

Im using putty terminal

timber wyvern
#

a,

upper ember
lament meteor
#

o oops @upper ember

#

sorry was kinda lazy to check

earnest phoenix
#

is this correct for grabbing a mention?
let mention = message.content.substr(prefix.length + "slap ".length)

#

idk what embed field I can put mentions instead of the mention id

knotty steeple
#

discord.js right

earnest phoenix
#

yep

knotty steeple
#

this is the proper way msg.mentions.members.first()

#

msg can be replace with message in your case

earnest phoenix
#

ok

#

so can I just put that in the embed field?

#

or for the let mention line?

knotty steeple
#

you can use it on the let mention line

earnest phoenix
#

ok thanks

knotty steeple
#

and use mention in the embed field

earnest phoenix
#

ok

#

wait am I supposed to put something in those brackets?

   let mention = message.mentions.member.first()

                                         ^


TypeError: Cannot read property 'first' of undefined


knotty steeple
#

its because u didnt mention anyone

earnest phoenix
#

I did

hardy fiber
#

Members not member as well

earnest phoenix
#

ok

hardy fiber
#

Wait, users

knotty steeple
#

member works

hardy fiber
#

I always use users

earnest phoenix
#

so I'm supposed to put something in the brackets?

hardy fiber
#

No

earnest phoenix
#

so it should work with me only changing to users?

hardy fiber
#

Yes

earnest phoenix
#

k lemme go try

#

welp

#

still has userid

hardy fiber
#

Cant mention people in embed titles I don't think

earnest phoenix
#

anywhere where you can?

hardy fiber
#

So you can do .username for their name, and in fields and descriptions I think

earnest phoenix
#

ok

#

wait could I make it bold?

#

2018-08-08T18:33:26.175456+00:00 app[worker.1]: at Guild._addMember (/app/node_modules/discord.js/src/structures/Guild.js:1142:19)
2018-08-08T18:33:26.175454+00:00 app[worker.1]: at Client.emit (events.js:211:7)
2018-08-08T18:33:26.175461+00:00 app[worker.1]: at WebSocketPacketManager.handle (/app/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:103:65)
2018-08-08T18:33:26.175459+00:00 app[worker.1]: at GuildMemberAddHandler.handle (/app/node_modules/discord.js/src/client/websocket/packets/handlers/GuildMemberAdd.js:12:13)
2018-08-08T18:33:26.175463+00:00 app[worker.1]: at WebSocketConnection.onPacket (/app/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
2018-08-08T18:33:26.175467+00:00 app[worker.1]: at WebSocket.onMessage (/app/node_modules/discord.js/node_modules/ws/lib/event-target.js:120:16)
2018-08-08T18:33:26.175465+00:00 app[worker.1]: at WebSocketConnection.onMessage (/app/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
2018-08-08T18:33:26.175469+00:00 app[worker.1]: at emitOne (events.js:116:13)
2018-08-08T18:33:26.230274+00:00 heroku[worker.1]: Process exited with status 1
2018-08-08T18:33:26.249988+00:00 heroku[worker.1]: State changed from up to crashed What crash?

#

Help me

#

jesus

knotty steeple
#
  1. can you put that in a codeblock
  2. what is causing the error
earnest phoenix
#

I see

#

I think

#

whats with the Guild._addMember thing?

#

@earnest phoenix

#

wait

#

ok

#

its supposed to be guildMemberAdd if your using discord.js

#

module.exports = member => {
let username = member.user.username;
member.send('Sunucuya Hoş Geldin!');
member.guild.defaultChannel.send('');
};

#

um what

knotty steeple
#

```language
// code
```

earnest phoenix
#

😦

#

I'm Not english

gleaming glen
#

@earnest phoenix default channel system has been removed from Discord, don't recommend using it.

#

if guild's default channel gets deleted, your bot might give an error when trying to send message to that channel

earnest phoenix
#

How can I solve this problem?

gleaming glen
#

You can set a provider so that they can set a channel for those messages.

#

And the bot can send those if that provider is set to some channel

#

otherwise; it won't.

earnest phoenix
#

Will I fix her problem?

gleaming glen
#

?

earnest phoenix
#

hey For anyone who uses skysilk. should i use the boost button?

earnest phoenix
#

hey @earnest phoenix , where'd you get that pfp? it looks familiar.

brisk notch
#

How do you delete a reaction from a message?

#

(Discord.js)

#

o nvm

faint cedar
#

Does anyone have a comparison between Eris and Discordjs

wide ruin
#

Nope, glitch

earnest phoenix
#

Skysilk beta might be over soon

#

jsut saying

knotty steeple
#

So i have a profile command and im making it so you can set your own description, whats the character limit of field values in embeds on discord?

grave mist
#

@knotty steeple is it field?

knotty steeple
#

what

grave mist
#

Is it field or description

knotty steeple
#

field value

#

in discord.js you can set name and value

grave mist
#

Then it's 2048

#

Title of fields: 256

heady zinc
#

@faint cedar what kind

#

they are really different

faint cedar
#

Well, im looking for performance comparisons

knotty steeple
#

ok ill add a limit of 2020

#

lmao

heady zinc
#

eris uses about 2 times less RAM compared against d.js v11

grave mist
#

Lol

heady zinc
#

still hold true against d.js v12 as far as i know

faint cedar
#

What about against djs v12

grave mist
#

It will definitely hide msgs

knotty steeple
#

i heard v12 fixes memory issues like that

#

but GWcmeisterPeepoShrug

faint cedar
#

Sistine could run around v12 at maybe 120MB's

#

with about 2,408 guilds

grave mist
#

Here idk which version I'm in lol

faint cedar
#

Then again her commands weren't used as often

heady zinc
#

a well configured v12 would compete against eris

#

there's really few reasons to chose eris over d.js nowadays

#

except that they still didn't released v12 kek

knotty steeple
#

what more do they need to add just release v12 already lol

grave mist
#

So what is Eris like d.js?

heady zinc
#

no

faint cedar
#

Well, my goal is to try and write a large bot to run on a small server

heady zinc
#

d.js has far more features

grave mist
#

So in overall, which has more

faint cedar
#

I'm not looking for features, performance is what im looking for.

grave mist
#

Also I asked it's a lib like d.js right

heady zinc
#

though eris benefits from a community-made sharder for large-scale bots

#

so if you don't want to spend time writing your own sharder for d.js you might prefer this

faint cedar
#

I've already wrote a lot of things for discordjs

#

even a load balancer

heady zinc
#

then i don't think you will gain anything from switching to eris

knotty steeple
#

whats a load balancer

heady zinc
#

as i said v12 can compete against eris in terms of performance so ye you're better off staying with it

grave mist
#

If I wanna switch to eris, I have to change all my codes?

knotty steeple
#

what does it do

faint cedar
#

Yes

heady zinc
#

not all

knotty steeple
#

most things you have to change is msg.channel.send to bot.createMessage

heady zinc
#

not much if you're switching from v11

knotty steeple
#

lul

faint cedar
#

@knotty steeple The load balancer I use spawns processes evenly between all cpu cores.

grave mist
#

Oh noes

heady zinc
#

from v12 you'll need to change a lot tho

knotty steeple
#

and some other stuff

grave mist
#

I'll better stay in d.js

knotty steeple
#

just wait until v12 is fully released

faint cedar
#

Instead of all of the shards spawning on a single thread, it spawns them all on all available cpu cores.

grave mist
#

If i change to eris, I'll have to check each cmd on what I should change lol so its better not to xhange

heady zinc
#

ye that's what the community-made sharder of eris do

#

so if you already have that

#

you really don't need to switch to eris

sick cloud
#

my profile command just keeps typing and won't generate 👀

const { MessageAttachment } = require('discord.js');

const { Canvas } = require('canvas-constructor');

const { get } = require('snekfetch')
    , imgUtil = require('fs-nextra');

module.exports = {
    name: 'me',
    description: 'View your social profile.',
    aliases: [],

    execute: async (msg, args) => {
        try {
            await msg.channel.startTyping();
            const background = await imgUtil.readFile('./profile-bg.png');


            const profileCard = new Canvas(800, 600)
            .addImage(background, 0, 0, 800, 600)
            .toBuffer();

            const profileAttachment = new MessageAttachment(profileCard, 'profile.png');
            msg.channel.stopTyping(true);
            msg.react('✅');
            msg.channel.send(profileAttachment);
        }
        catch (err) {
            msg.react('❌');
            console.error(err);
        }
    },
}
knotty steeple
#

const { Attachment } = require('discord.js'); @sick cloud

#

how do i make awaitMessages only for the person that ran the command
discord.js

sick cloud
#

@knotty steeple it's MessageAttachment, and uh, add a check to the filter

#

whats your current code for it?

knotty steeple
#

i was just looking at an example code for awaitMessages

#
message.channel.send('What tag would you like to see? This will await will be cancelled in 30 seconds. It will finish when you provide a message that goes through the filter the first time.')
.then(() => {
  message.channel.awaitMessages(response => response.content === 'test', {
    max: 1,
    time: 30000,
    errors: ['time'],
  })
  .then((collected) => {
      message.channel.send(`The collected message was: ${collected.first().content}`);
    })
    .catch(() => {
      message.channel.send('There was no collected message that passed the filter within the time limit!');
    });
});
heady zinc
#

"This will await will be cancelled in 30 seconds"

#

k

earnest phoenix
#

anyone know any free vps?(not heroku/glitch)

knotty steeple
#

@heady zinc its example code btw

#

as i said

sick cloud
#

no such thing exists @earnest phoenix

#

there is skysilk but its beta and needs a CC

#

@knotty steeple response => response.content === 'test', is your filter, change it to response => response.content === 'test' && response.author.id === <message>.author.id,

knotty steeple
#

o

#

ok

#

thanks

earnest phoenix
#

im using skysilk atm and a staff team has told me that there beta is about to end

sick cloud
#

ohk

knotty steeple
#

where are the docs for awaitMessages

sick cloud
#

TextChannel#awaitMessages iirc

knotty steeple
#

im trying to find errors for it

#

like how there is time

quartz kindle
#

@earnest phoenix google compute engine

#

but you need a credit card

faint cedar
#

Does anyone understand bitwise in nodejs?

fiery birch
#
client.on("message", (message) => {
  const args = message.content.split(" ").slice(1);
  if (!message.content.startsWith(config.prefix) || message.author.bot) return;

  else if (message.content.startsWith(config.prefix + 'lol')) {
    randomQuote()
    .then(quote => message.channel.send(quote))
}});
#

theres my code

#

Rather than sending the message in the channel, it sends [object Object]

#

any help appreciated pls

sick cloud
#

use JSON.stringify(quote, null, 2); in the message.channel.send( <here> ); and see what it throws out

#

the quote is an object, most likely has more fields of data @fiery birch

fiery birch
#

so I would like to get the quote and author from this then only

sick cloud
#

okay, so

#
message.channel.send(quote[0].content);
#

that'd get you the content of the quote

knotty steeple
#

dangit tony

sick cloud
knotty steeple
#

i was gonna send that

#

but yea thats what you have to do

fiery birch
#

Oki ty

knotty steeple
#

yes i hate objects as well mmLol

earnest phoenix
sick cloud
#

they probably have their dms shut, have the bot blocked, or don't share a server with the bot

#

@earnest phoenix ^

fiery birch
#

Is there a way to remove the paragraph tags from the content?

sick cloud
#

some kind of .replace or .split

earnest phoenix
#

@sick cloud tnks but How do I turn off error console ?

knotty steeple
#

or use some regex

sick cloud
#

you can't

#

unless you add a .catch that doesn't log

#
quote[0].content.replace('<p>', '').replace('</p>', '');
#

a simple way to get rid of it

#

@fiery birch ^

earnest phoenix
#

tnks ❤ @sick cloud

sick cloud
#

np

fiery birch
#

Alright that worked

#

do I need to install some unicode or something

sick cloud
#

uhhh use decodeURIComponent( <the quote code> );

earnest phoenix
sick cloud
#

that should replace them

#

you'd need to learn image generation

#

using canvas or jimp or something

#

which is really hard tbh

#

there is a guide i know of, hold on

fiery birch
#

huh I dunno if I can get the quote codes

sick cloud
#

no, the code your using lmfao

earnest phoenix
#

wow tnks

sick cloud
#
message.channel.send(decodeURIComponent(quote[0].content.replace('<p>', '').replace('</p>', '')));
#

and np

fiery birch
#

huh

#

decodeURIComponent didnt work

#

should I just replace the ' with `

knotty steeple
#

just use regex to remove the html stuff GWqlabsThisIsFine

sick cloud
#

how do you pull the first 3 items of an array and throw away the rest?

marble elm
#

how do i change the style of the bot tags / vote button / invite button / bot profile picture / bot avatar / bot name?

sick cloud
#

using css

marble elm
#

obvs

#

very helpful

#
.longdescription .content {
background-color: #2C2F33;
height: 1000px !important;
width: 1200px !important; 
display: block;
margin-left: auto;
margin-right: auto;  
} ``` i have this for the long description how would i change it to the rest
#

what would i change .longdescription to

sick cloud
#

body

#
const data = itemArray.first(3);

would this work and give me the first 3 in an array?

inner jewel
#

slice(0,3)?

sick cloud
viscid falcon
#

in the long description i saw that html and some inline css is supported, does stuff like text align in css not work?

sick cloud
#

all css should work, just some website css may override it

viscid falcon
#

so am i doing it wrong then (sorry , i dont normally use inline)

inner jewel
#

i'm 99% sure repeating attributes doesn't work

#

style="a: b; c: d;" should work

viscid falcon
#

oh ok, thx

#

It worked! Thx so much!

deep inlet
#

What's the variable used for the client in the developer console?

sick iron
#

Well... anyone know the hex code to “remove” the color of an embed? Is it “#2C2F33” or something else.. I just had the idea and I’m on mobile so I can’t really test it. I’ve seen other bots do it

unborn crow
#

Yeah, i want this too!

sick iron
#

I’ve searched in this channel with the search crap feature but.. I can find anything and probably was wording something wrong.

deep inlet
#

Ah yes, one second

#

@unborn crow @sick iron #36393f

unborn crow
#

Thanks a lot!

#

deep inlet
#

Np

#

Did some quick Gimp and conversion :P

unborn crow
#

xD

sick iron
#

Thanks. You’re a life saver.. cause I’m lazy... 🙃

earnest phoenix
#

help what is this

latent heron
#

it tells you the error

earnest phoenix
#

this one?

#

the bot is in a voice channel and fails to leave the channel

pale marsh
#

Ask the lib devs maybe?

earnest phoenix
#

:=1

#

i show you my code which is mentioned in the error

#

so it seems like if you leave the bot in the voice channel for 24 hours it will fail to leave

#

and will give an error

#

whats the thing

#

called where you share code

frank dust
#

hastebin?

earnest phoenix
#

yeah

earnest phoenix
#

Why my bot can't send embed messages? @earnest phoenix - that bot

#

Or I stupid?

gilded blaze
#

Library?

earnest phoenix
#

python

#

@gilded blaze It's because library?

gilded blaze
#

No. discord.py supports embeds. I don't mess with python.

earnest phoenix
#

But his can't send embed message. @gilded blaze

#

I don't know why

#

Only here

#

maybe it's just because bot can't delete message?

sick cloud
#

does the bot have permission to embed links?

latent heron
#

question for the people who breathe discord.py rewrite

#

in async i know you have to run bot.process_commands(message)

#

in the on_message()

#

but in rewrite I don't know if that function event still exists. does anyone know the alternative in rewrite?

#

i'm typing my commands from the rewrite dev branch of my bot

#

and it just keeps responding back with this

discord.ext.commands.errors.CommandNotFound: Command "<< insert command name here >>" is not found```
earnest phoenix
#

awaiting approval after I removed it the first time ;-;

#

why did I delete it in the first place

slender thistle
#

@latent heron The same process_commands as it was in async

latent heron
#

tried and wont work

slender thistle
#

How are you adding a command? Mind sending the code? GWchadThink

earnest phoenix
#

how to use a messagecollector without a filter?

#

(d.js)

latent heron
#
# Returns back response times from the bot
    @commands.command()
    async def ping(self, ctx):
        print("[GLOBAL] Requesting command '{}', OK.".format(command + ctx.command.name))
        print("[DEV NOTE] Response time at {} ms.".format(mill))
        ms_2 = round(int(time.time() / 100000000)) / 10

        embed = discord.Embed(
            title = "Pong!",
            description = ":ping_pong: Internal: {}\r\n:heart: Server: {}".format(ms, ms_2 - ms),
            color = 0xE64C4C
        )
        await self.client.say(embed = embed)```
#

this is example

#

i have them in cogs

slender thistle
#

What is mill?

latent heron
#

whoops

#

haven't fixed it, i've been working on async to rewrite conversion

#

ignore that for now, it's the exact same thing as ms

slender thistle
#

There is no self.client.say

#

It's ctx.send in rewrite

latent heron
#

huh

#

why

#

thats a bit odd

slender thistle
#

<Messagable>.send

latent heron
#

i was told i dont need to pass ctx

#

is this true or no

slender thistle
#

ctx is passed by default unless you do it like @commands.command(pass_context = False)

#

But then, you wouldn't be able to send response in the chat :^)

latent heron
#

hmm

#

but the issue is that it doesn't recognize the command at all

#

i'm calling it with the @commands.command()

slender thistle
#

Loading the cog?

latent heron
#

yes

#

even now with the edits

#

it gives the same "not found" response

earnest phoenix
#

how to use a messagecollector without a filter?
(d.js)

elfin tulip
#

so poni bot was added to my server and i didnt add it and the person who did left and i was wondering how do i turn off the greeting card

latent heron
#

the DBL server is not for Poni bot

#

go to the poni bot support server

elfin tulip
#

shit

latent heron
#

ok cool

#

so now the command error is gone

#

but now the commands dont even work lmao

#

gotta love cogs

earnest phoenix
#

guys how to block client.token eval command

gleaming glen
#

just add a line to check if input has token in it

#

if it does, it'd return

#

@earnest phoenix up

royal laurel
#

can do that I wasnt usre where to go

#

Also not sure who denied the bot

sick cloud
gleaming glen
sick cloud
#

ew iphone

gleaming glen
#

ew

royal laurel
#

I found

#

man you guys are fast haha

gleaming glen
#

yea

royal laurel
#

I wonder if removing the channels would break it

earnest phoenix
#

ew

#

iphone

gleaming glen
#

which channels?

sick cloud
#

"removing the channels"

gleaming glen
#

📱

royal laurel
#

well they are saying it should be whitelisted

sick cloud
#

look look show how you "whitelist" channels

gleaming glen
#

just like you whitelisted them, whitelist everyone i guess?

earnest phoenix
#
 if (client.commands.has(command)) {
      command = client.commands.get(command)

is this the correct way to get a specific command for specific help?

sick cloud
#

depends on your code

royal laurel
#
  "logchannel": "464146525379887114",
  //channel that the tip message will reply in if Multi or Role tip is used.
  "botspamchannels": ["464146525379887114", "448594915841277955"]```
gleaming glen
#

you shouldn't set this to a specific channel

#

users can be able to change those channels

#

like, they have to be able to set the log channel for their servers

royal laurel
#

Yeah it makes sense for sure

#

sounds like i need to code a module

#

to let the user set the log channel

gleaming glen
#

you can use a provider to set channels for each guild

royal laurel
#

Hmm, I think im following

#

You wouldnt happen to know any examples would you?

gleaming glen
#

i know

sick cloud
#

we aren't going to spoonfeed you

#

get a database, play with it, learn how

gleaming glen
#

yep

royal laurel
#

I mean, sure

#

just asking

gleaming glen
#

so yes, i do know

#

set a provider for it being enabled or not, and for the channel of it

earnest phoenix
gleaming glen
#

why don't u try it before asking

earnest phoenix
#

i've tried it.

sick cloud
#

and

earnest phoenix
#

i wanted a second opiniom

gleaming glen
#

i guess you can say if it works or not

#

okay..

earnest phoenix
#

because I get NO output whatsoever

#

there... finally fixed it

gleaming glen
#

nice

latent heron
#

This isnt the place to ask for code.

royal laurel
#

"Development" channel not a place for code?

#

Is there a code channel then lol?

earnest phoenix
#

it's that they wanna make you learn it, not just get copies
I guess

gleaming glen
#

exactly

#

you don't directly ask for code

mental trellis
#

it's a place for when you get stuck on something and need to be pointed in the right direction.

#

and still show that you attempted something and explain what you tried

latent heron
#

There are literally docs for coding discord bots

#

Simply asking for code here does not work

earnest phoenix
#

Boiz

#

there's one thing I'm having trouble with

#

discord.js; how exactly does .catch(error) work

#

:3

#

Like I wanna make it message.reply(error) instead of writing in console

#

oof

gleaming glen
#

you can do that

earnest phoenix
#

Im trying to split a message into two parts as the Lyrics are quite long... This is my code:

return message.channel.send({embed: { color: green, title: `Lyrics | ${message.author.username}`, description: `*${res}*`}}, { split: true }).catch(console.error);

However, the only thing it returns in discord is:
[object Object]

earnest phoenix
#

oof

#

well I know there's a .slice thingy atleas

#
import discord

client = discord.Clien()

@client.event
async def on_ready():
#

help

#

me

latent heron
#

Question on discord.py: can you make bots mute channels? (text channels)

earnest phoenix
#

Make it like "Bplay neffex" then it joins the room then play the song, cause currently i have a suppurate command for that

#

@latent heron what do you mean mute text channels?

latent heron
earnest phoenix
#

oh but why would you want your bot to do that?

latent heron
#

because im reading commands from every channel in servers

#

but i want to add a blacklist option for certain opt channels

earnest phoenix
#

so like you want your bot not work in other channels?

latent heron
#

could also help with performance

#

yes

earnest phoenix
#

for sure you dont mute it

#

you copy the ID of the channel

#

then code a code so that you can add it to the blacklisted rooms

latent heron
#

that doesn't make the bot ignore listening

#

it will still listen to the channel

earnest phoenix
#

but not work there

latent heron
#

how are you saying i can even blacklist it in the first place

#

because commands have to depend on on_message()

#

to even process ext.commands

#

im saying that

#

if there was something like

#

bot.mute_channel("channel id")

#

that it could theoretically ignore that channel

#

and not listen to it by on_message()

earnest phoenix
#

yeah i got what you mean

#

but in my bot, it can igonore channels

#

by copying the ID of the channel

#

and putting your code in

latent heron
#

what

#

it's not ignoring channels

#

it's ignoring commands being parsed in those channels

#

big difference

#

i want to ignore the whole channel

earnest phoenix
#

¯_(ツ)_/¯

stray field
#

For IDEA, what does it mean by group ID?

slender thistle
#

@latent heron

@bot.event
async def on_message(message):
    if message.channel.id != 265156286406983680:
        # your stuff
stray field
#

Can anyone help me?

#

I'm very new to this.

gleaming glen
#

about what?

stray field
#

The group ID for IDEA.

#

What does it mean by that?
Like the actual

#

site for your bot or?

gleaming glen
#

uh, i dunno those, someone else can help you, just wait a little bit

stray field
#

No one will respond.

earnest phoenix
#

Help

#

app[worker.1]: at WebSocket.onMessage (/app/node_modules/discord.js/node_modules/ws/lib/event-target.js:120:16)2018-08-09T09:37:52.970820+00:00 app[worker.1]: at emitOne (events.js:116:13)2018-08-09T09:37:53.041164+00:00 heroku[worker.1]: State changed from up to crashed2018-08-09T09:37:53.016824+00:00 heroku[worker.1]: Process exited with status 1

#

What crash ?

#

a man needs help

#

async def cmd_autoplaylist(self, channel, author, player, voice_channel): """ Usage: {command_prefix}autoplaylist Enable or disable the autoplaylist """ self.config.auto_playlist = not self.config.auto_playlist await self.safe_send_message( channel, "The autoplaylist is now " + ['disabled', 'enabled'][self.config.auto_playlist]) # if nothing is queued or playing, start a song if not player.playlist.entries and not player.current_entry and self.config.auto_playlist: await self.on_player_finished_playing(player)

#

i want it to only disable the playlist for that server

#

not for every server

neat falcon
#

pls use codeblocks

latent heron
#

hm ok shiv

earnest phoenix
#

there

latent heron
#

never thought of this until now...

#

but can bots have animated pfp's

fluid basin
#

nope

latent heron
#

awh

#

i wish you could

#

i would pay for nitro for my bots 4 that

fluid basin
#

xD

#

same tbh

neat falcon
#

send logs

earnest phoenix
#

i want it to enable/disable the autoplaylist in the server

#

not for every server

earnest phoenix
#

` async def cmd_repeat(self, player):
"""
Usage:
{command_prefix}repeat

    Cycles through the repeat options.
    Default is no repeat, switchable to repeat all or repeat current song.
    """

    if player.is_stopped:
        raise exceptions.CommandError(
            "Can't change repeat mode! The player is not playing!",
            expire_in=20)

    player.repeat()

    if player.is_repeat_none:
        return Response(":play_pause: Repeat mode: None", delete_after=20)
    if player.is_repeat_all:
        return Response(":repeat: Repeat mode: All", delete_after=20)
    if player.is_repeat_single:
        return Response(":repeat_one: Repeat mode: Single", delete_after=20)`
#

help?

small mango
#

use a codeblock pls

earnest phoenix
#

i never used

#

it

#

before

floral zinc
earnest phoenix
#

oh

#

i thought

#

code blocks

#

the software

#
async def cmd_repeat(self, player):
        """
        Usage:
            {command_prefix}repeat

        Cycles through the repeat options.
        Default is no repeat, switchable to repeat all or repeat current song.
        """

        if player.is_stopped:
            raise exceptions.CommandError(
                "Can't change repeat mode! The player is not playing!",
                expire_in=20)

        player.repeat()

        if player.is_repeat_none:
            return Response(":play_pause: Repeat mode: None", delete_after=20)
        if player.is_repeat_all:
            return Response(":repeat: Repeat mode: All", delete_after=20)
        if player.is_repeat_single:
            return Response(":repeat_one: Repeat mode: Single", delete_after=20)
#

Use java

#

dont know java

sturdy chasm
#

If I wanted to send to console a list of unique arrays (just the ones that are arrays within the arrays within the arrays), how would I do it?
Here's a shortened version of the array:

["something", ["Any"]],
["Name", ["Grasslands", "Jungle"]]];```
hybrid raptor
#

vote.user.addRole('Voter').catch(e => {

#

that does not work

#

lol

floral zinc
#

FrogLP java gud

#

:p

earnest phoenix
quartz kindle
#

@ leapsoffaith
if you want to access a specific level only, for example 3rd level of the array, i'd use a for loop inside a for loop that checks for typeof

spring ember
#

@earnest phoenix this is the way Thonk I am not sure if you can tag in embed titles

earnest phoenix
#

hmm Thonk

#

ok

earnest phoenix
#

Hello

#

hi

#

I need help with a bot

#

@coarse carbon

#

wdym?

#

Is there a way I can make it give out only 1 role.

#

oh

#

¯_(ツ)_/¯

#

.>

knotty steeple
#

this isnt the place to talk about this btw

earnest phoenix
#

cough

#

I was told to talk her by someone

#

named sirius

knotty steeple
#

this is for bot development not support

earnest phoenix
#

okay

#

thanks

#

.>

slender thistle
#

Go to the bot's support server and ask there

spiral perch
#

i got a question about my bot

#

I recently got a new laptop and the bot i made was on my pc so i moved it and did the whole "pip3 install discord.py" thing and the bot should have worked but then i clicked on it and it just pulls up the command window for half a second then goes away

#

im using python

quartz kindle
#

shift + right click on an empty space in its folder > command prompt here

#

try to start it from the command prompt, if it gives any error, the window wont instantly close

latent heron
#

does Discord have an internal ID system?

#

Now that Nitro allows you to edit your tag number

#

there must be some internal id setup now, right?

#

i mean for a long time the discriminator (tag number) was the internal id

#

but now its all changed

pale marsh
#

You know you have an ID right?

latent heron
#

yes

#

i meant it as in like

#

well idk now

#

i think i just made myself retarted

earnest phoenix
quartz kindle
#

all accounts have a unique id, which is what we use in our bots to identify people

sturdy chasm
#

so the typeof thing works, however I have another problem now. Arr1 is const, and I'm trying to .slice() it's 3rd dimension to a var Arr2. When I have it outputted to console, it says "undefined".

#

Arr2 is is to output

#

I have been trial and erroring it for a bit with what I can find on stackoverflow, however no such luck

earnest phoenix
#

what exactly are u trying to do? ill see if i can help

sturdy chasm
#
["Grimtooth's Traps", "Infamous Wheel Trap", ["Any"], "Room", "n/a", 4, "./traps/infamous_wheel.png"],
    ["Grimtooth's Traps", "Roman Amphitheatre Trap", ["Grasslands", "Jungle"], "Room", "n/a", 3, "./traps/roman_amphitheatre.png"],
    ["Grimtooth's Traps", "Illusions", ["Any"], "Room", "n/a", 3, "./traps/illusions_trap.png"],
    ["Grimtooth's Traps", "Slider Spiker Trap", ["Any"], "Room", "n/a", 3, "./traps/slider_spiker.png"]];
.
.
.
var Arr2 =  Arr1[l][w].slice();```
#

basically, where "l" and "w" are, I have a for loop searching for the 3rd dimension.

earnest phoenix
#

so whats the issue

sturdy chasm
#

the issue is, when I have Arr2 being returned to a console.log(func.run(message));, it prints out "undefined"

earnest phoenix
#

idk what your console.log(func.run(message)); does, but have you tried just logging arr2

#

try and narrow down the issue

#

because slice always returns an array, so if you were going out of bounds it would throw an error.

#

sooo if ur not getting an error, Arr2 is most likely defined, but your weird console.log(func.run(message)) probably has some logic error there

sturdy chasm
#

alright, I'll check into that. Thanks.

earnest phoenix
#

What are you trying to do with that array if u dont mind me asking? maybe i can help with some simpler way to achieve what u wanna do

sturdy chasm
#

I'm trying to have it return a unique list of biomes (stored within the 3rd dimension) from the available Arr1

earnest phoenix
#

so you want like ['Any', 'Grasslands', 'Jungle'] in that case? ^

sturdy chasm
#

right

earnest phoenix
#
let biomesArray = []
Arr1.forEach(record=> {
    record[2].forEach(biome => {
        if(!biomesArray.includes(biome)) {
            biomesArray.push(biome);
        }
    })
})

Now assuming that data format remains the same that would work.

#

so:
for each item in that array
-for each of the biomes(index 2)
--if its not in our biomes array
---add it

sturdy chasm
#

That did it! Thank you so much!

earnest phoenix
#

👌 always try and brainstorm through it like the 2nd message i sent

#

eventually you notice alot of patterms and remember ways to do certain things. u get better and better

sturdy chasm
#

What's sad is that I'm a computer science major, and I didn't think of looking for patterns. I guess it's due to the fact that I've never coded in javascript before

spring ember
#

same watcha learning?

earnest phoenix
sturdy chasm
#

learning how to return an array of depth to another file that asks for it

earnest phoenix
quartz kindle
#

note that in javascript forEach is much slower than for

inner jewel
#

in most languages that's the case

quartz kindle
#

yeah, but in js the difference is huge, while in php for example the difference is negligible

inner jewel
#

JIT might be able to optimize the forEach with enough executions

valid surge
#

anyone know what code id need to add to have the current time added to the end of a message from my bot (keep in mind code is probably my least knowledgeable aspect of literally everything ever

quartz kindle
#

which language?

valid surge
#

.js is the type of bot i assume is the answer but like i said i dont know code

quartz kindle
#

in javascript you can use the function Date() to get the current time

valid surge
#

thx

quartz kindle
#

by default it returns a string like this

#

"Thu Aug 09 2018 13:53:12 GMT-0300 (Brasilia Standard Time)"

#

if you need the current time/date in other formats, there are several methods for the date function

valid surge
#

msg.edit(Session Status = Up. ${msg."where the time should go?} );

That is where im at rn

quartz kindle
#

you can read more here

earnest phoenix
#

${msg."where the time should go?} looks like ur about to read a property of msg zoomeyes

valid surge
#

im trying to define msg right now. Pretty much what i'm trying to do is have it where we type !up it shows Patrol Session = Up @ everyone (tags everyone) than the current time

#

and i got most of it this time is just killing me tho

quartz kindle
#

if you just need the current time, without the date, you can do Date().getTime()

valid surge
#

the dates good to

#

i need it all lol

quartz kindle
#

so basically js .send(`your message etc date is: ${Date()}`)

#

tbh idk if this works with template literals, i dont actually use them, but it should

uncut slate
#

Yes

#

that effectively calls Date().toString()

quartz kindle
#

yeah

#

im used to concatenation, not used to template literals xD

valid surge
#

do i need to put somehting between the ()?

quartz kindle
#

no

#

unless you want to define a specific date

#

no arguments = current date

earnest phoenix
#

Can someone help me out with eris?

valid surge
#

My problem is with that it’s not currently showing anything

#

Oh I found another mistake lol I’ll fix that first than try

#

Probably gonna go eat first

earnest phoenix
#

ok

uneven depot
#

hey guys, is there any way I can get in touch with whoever declines bots? They said there were no (functioning) features but it seemed to work for me so I want to see what bug caused this before I resubmit

split lantern
#

Discord js Version 11.4 out

#

@uneven depot #mod-logs look for your bot there

uneven depot
#

@split lantern Oh ok thanks

slender lagoon
#

If my bot was declined I cant edit it? I have to rewrite everything?

#

<@&264889767072628742>

languid dragon
#

editing it wont change anything

#

you don't need to ping everyone to get an answer

slender lagoon
#

I wanted to ping only the website guys

languid dragon
#

the answer is yes, next time be more courteous

#

you don't need to ping EVERYONE

#

you only need to ping 1 person

sick iron
#

But do you need every single one of them? thonkku

slender lagoon
#

Im just mad im sorry I had a large description that I need to rewrite

languid dragon
#

@sick iron didn't need to comment

#

@slender lagoon that's why you wait until after approval to do complicated descriptions 👍

slender lagoon
#

But I had to have 300 characters

#

Your site's rules

languid dragon
#

why was it declined

slender lagoon
#

The help command wasn't very helpful

#

I changed it now

#

@languid dragon

languid dragon
#

i'm here, you don't need to ping me.

sick iron
#

Sorry. I'll remember to stay past the line. (That's just something I do and I'll fix it)

earnest phoenix
#

This seems to keep crashing my bot... how can i put an end to it so my bot doesnt keep fucking up its token?

17|mini-me | You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
17|mini-me | Error: 404 Not Found
17|mini-me |     at _response.transport.request.then (/home/node/mini-me-stable/node_modules/snekfetch/src/index.js:193:21)
17|mini-me |     at <anonymous>
17|mini-me |     at process._tickDomainCallback (internal/process/next_tick.js:228:7)
zealous crescent
#

How do we post images in our bots desciption?

floral zinc
#
<img src="URLTOIMAGEHERE" alt="Description of Picture (Shows when picture cant get shown for example)">
zealous crescent
#

ok

#

I need the picture to show

#

@floral zinc ^

floral zinc
#

ADS!

zealous crescent
#

?

#

I really don't know what you are talking about

floral zinc
#

Advertisement!!

zealous crescent
#

whats with that?

spring ember
#

He can ask for help ffs

floral zinc
#

U dont get it

#

nvm

spring ember
#

@zealous crescent did you add <img

#

Send the edit

zealous crescent
#

<head>
<title>How To Insert An Image</title>
</head>

<body>

<img src="Capture.png" />
<img src="Capture.png" alt="OverRealm Music playing music with a couple of commands on the line ready for use!">

</body>
</html>```
#

thats the html

spring ember
#

Capture doesn't exist

floral zinc
#

Nononono

#

You need an url

spring ember
#

Change to a url

zealous crescent
#

ok

floral zinc
#

can you host it?

spring ember
#

He can use imgur

#

Or even discord cdn

floral zinc
#

doesnt imgur delete after some time?

spring ember
#

Maybe I'm not sure

zealous crescent
#

Nope still the same

#

<head>
<title>How To Insert An Image</title>
</head>

<body>

<img src="Capture.png" />
<img src="https://imgur.com/lwa0pwP" alt="OverRealm Music playing music with a couple of commands on the line ready for use!">

</body>
</html>```
spring ember
#

Weird

zealous crescent
#

wait i think i knwo the problem

#

brb

#

Ohhh now it works

#

https://i.imgur.com/lwa0pwP.png%22

vast bane
#

Uh

#

how much is Lavalink supposed to use normally

#

Mine is using like 400mb and it's not even playing

valid surge
#

so i got the time showing on my bot but how do i get it to be a specific time zone its currently chowing GMT i have the date() right now

floral zinc
#

Language?

spring ember
#

@vast bane it is usually close to that

queen ginkgo
#

Idk whats going on here xD

vast bane
#

Whaaat, on the site it says low memory usage

#

readme*

topaz fjord
#

I usually just limit lavalink to 1gig of ram

vast bane
#

See uh the problem

#

is

topaz fjord
#

And I managed 14 vc connections with that

vast bane
#

my vps

#

has one 1gig of ram

spring ember
#

400mb is low

vast bane
#

my bot uses like 500mb

spring ember
#

Try ffmpeg lmao

vast bane
#

I have but

spring ember
#

Ffmpeg eats resources

topaz fjord
#

500mb bot

#

Tf

#

How many servers

vast bane
#

Like 1290

#

also i made a typo

#

300

#

not 500

#

so That's 300mb left to use which is partly used by the VPS

spring ember
#

It's very good usage

floral zinc
#

Are we allowed to change the style of the Bot Name title on DBL?

gleaming glen
#

can i set a provider on a user with sqlite?

#

like this this.client.provider.set("msg.author.id", 'destekci', "1");

#

this doesn't works

#

is there another way for it?

#

can someone help?

valid surge
#

so sorry i didnt respond before language is js and i cant get it not to show GMT with my command it'll show the time when i type !time but in GMT which isnt really helpful

#

does it matter where my bot is from maybe? idk

sick iron
#

It's the time of the machine the bot is ran on I believe

earnest phoenix
#

The bot gives such an error The bot does not open when you delete the crash file, what can I do?

#

2018-08-09T18:58:45.691655+00:00 app[worker.1]: at Client.emit (events.js:211:7) 2018-08-09T18:58:45.691658+00:00 app[worker.1]: at Guild._addMember (/app/node_modules/discord.js/src/structures/Guild.js:1142:19) 2018-08-09T18:58:45.691661+00:00 app[worker.1]: at GuildMemberAddHandler.handle (/app/node_modules/discord.js/src/client/websocket/packets/handlers/GuildMemberAdd.js:12:13) 2018-08-09T18:58:45.691663+00:00 app[worker.1]: at WebSocketPacketManager.handle (/app/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:103:65) 2018-08-09T18:58:45.691665+00:00 app[worker.1]: at WebSocketConnection.onPacket (/app/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35) 2018-08-09T18:58:45.691667+00:00 app[worker.1]: at WebSocketConnection.onMessage (/app/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17) 2018-08-09T18:58:45.691670+00:00 app[worker.1]: at WebSocket.onMessage (/app/node_modules/discord.js/node_modules/ws/lib/event-target.js:120:16) 2018-08-09T18:58:45.691671+00:00 app[worker.1]: at emitOne (events.js:116:13) 2018-08-09T18:58:45.809030+00:00 heroku[worker.1]: State changed from up to crashed 2018-08-09T18:58:45.792449+00:00 heroku[worker.1]: Process exited with status 1

valid surge
#

what do you mean? my machine is CST and it keeps showing GMT

sick iron
#

no

#

nevermind

#

fuk I'm stupid

floral zinc
#

Chefy try toLocaleString

valid surge
#

@floral zinc where would you recommend putting that?

abstract crystal
#

ello, is there any possible way to differ a leave from a kick?

uncut slate
#

check audit logs

floral zinc
#

Audit log is not perfect tho

drowsy lily
#

@vast bane i have run lavalink successfully at Xmx 64m in the past

#

if yours is "eating" 400mb that means that you allowed it to eat that many ram in the first place

#

you should look up how java and ram works

quasi marsh
#

Maybe Java should stop munching

lament rock
#

Ever since I updated to the new Discord.js 11.4, I've been getting ffmpeg not found errors despite it actually being installed along with the binaries.
Anyone else having this issue or how I can fix it?

zealous veldt
#

I hear you have to sacrifice a goat to the d.js gods by pushing it throw a life sized case fan

lament rock
#

thank you kanye. Very helpful

stone flower
#

hey guys, can I find a user by their name in discord.js?

gleaming glen
#

yeah

stone flower
#

client.users.get("namehere")

#

this is not working

#

then how? 😄

gleaming glen
#

you do that with id

#

client.users.get(name, "") there was something like this

#

or maybe .find instead of .get

stone flower
#

i will take a look

#

eh not working :/

gleaming glen
#

why do you need this for?

stone flower
#

I just need to find users by names, I want to add for a specific name a role

#

But I have like 160 ppl to add role

#

And I can't just find their id's and add that way

#

I want to user their names.

gleaming glen
#

i didn't understand actually but

lament rock
#

client.users.find(u => u.username == "name here");

stone flower
#

got it

#

bot.users.find("username" ,"Flappieh")

#

this works

gleaming glen
#

wow okay

stone flower
#

client instead of bot

#

and works 😄

#

ty guys

gleaming glen
#

nice

lament rock
#

what lang and lib?

#

what version of discord.js? They just released 11.4 today

#

you might a few issues without voice revolving around ffmpeg not being installed even tho it is if you do voice on 11.4

#

hm. I'd try to give 11.3.2 a try first then try 11.4 if 11.3.2 isn't good

valid surge
#

alright so i got another question for y'all is it possible for me to have my command !up to say Patrol Session is Up! than whatever i type after !up be included

For Example if i Type !up It would just say Patrol Session is Up!

But if I type !up Start Time 9:30 EST it would say Patrol Session is Up! Start Time 9:30 EST

Or if I type !up for 2 Hours it would say Patrol Session is Up! for 2 Hours

language is .js

quartz kindle
#

so basically make the bot repeat after you?

#

just add the message argument to the send

earnest phoenix
#

question? how would i get a bot to do a nice link like with github markdown ([Link name](link_url))

sullen path
#

Like that

#

I believe it only works in embeds though

sick cloud
#

@earnest phoenix you can only do it in embeds

inner jewel
#

only in field values and description

sick cloud
#

webhooks can do it in general chat messages tho mmLol

sullen path
faint cedar
#

Would anyone be able to give me an answer to what algorithm would be the fastest and most secure at the same time? https://awau.moe/a151d8.png

inner jewel
#

i'd just go with HS256

#

as long as you don't leak your key and it's decently sized you'll be safe

quartz kindle
#

If you are developing the app that is receiving the tokens, then you should use HS256. It is more secure, faster, and the token is smaller.

RS256 is an asymmetric algorithm, meaning it uses a public/private key pair. AuthRocket uses the private key for signing and provides you the public key to use to validate the signature.

If you don't have control over the app/client receiving the tokens, then RS256 is a good choice. The key can be used in a browser or mobile app, doesn't have to be secure, and can be shared without compromising security.```
small solar