#development

1 messages Β· Page 415 of 1

lament meteor
#

^

knotty steeple
#

also you forgot ""

lament meteor
#

also it is client.login('token')

languid dragon
knotty steeple
#

^

earnest phoenix
#

oh ok

lament meteor
#

@languid dragon when u try not to spoon feed but the person doesnt understand anything

earnest phoenix
#

XD

#

im dumb

languid dragon
#

then

#

how about you do some research

#

and actually learn how to code before you start using the discord API wrapper

earnest phoenix
#

ik how to do commands

#

im just not the best with node and that stuff

languid dragon
#

you clearly dont know how to javascript

#

since you tried to put a string in without quotes

earnest phoenix
#

lets please not argue

#

im in a good mood

languid dragon
#

not an argument

#

stating the facts

halcyon torrent
#

^

#

you'd better learning before trying to code

#

I hope you already generated a new token x)

earnest phoenix
#

πŸ˜ƒ

#

uhhh i cant get the perms to wokr

#

work

halcyon torrent
#

huh?

earnest phoenix
#

like %warn

#

there not working 😦

south finch
#

hi guys spoonfeed me 😟

halcyon torrent
#

@quasi raptor any mention of role/channel/user contains the id of the entity you're pinging, <@!id> for users, <@&id> for roles, <#id> for channels, add \ before mention and you'll see that ^^
so you only need to use a little bit of regexp to get the provided id

quasi raptor
#

@halcyon torrent thats great!

halcyon torrent
#

@quasi raptor pepo

earnest phoenix
#

hey um guys

#

my commands arent working

#

could anyone help me pls

#

i could send you a file for them

halcyon torrent
#

dont you think you get more help than you should? xD

earnest phoenix
#

im sorru

halcyon torrent
#

learn to debug on your own, you have console.log and internet if you dont understand the error message

earnest phoenix
#

its not an error message

#

it just none of my commands are working

#

AHAHAH I FIGURED IT OUT

#

IM OUT MOTHERFUCKERS

#

WOOOOOOOOOOOOOOOO

#

XD

floral stone
#

my message didn't come through

#

ah

#

I'm thinking about making my images from html instead of pillow package

#

what do you guys think?

tardy hatch
#

Ignoring exception in command greet
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/bot.py", line 846, in process_commands
yield from command.invoke(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 367, in invoke
yield from self.prepare(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 345, in prepare
yield from self._parse_arguments(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 304, in _parse_arguments
transformed = yield from self.transform(ctx, param)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 212, in transform
raise MissingRequiredArgument('{0.name} is a required argument that is missing.'.format(param))
discord.ext.commands.errors.MissingRequiredArgument: ctx is a required argument that is missing.

#

I have this problem

#

I can run only potato help

#

...

floral stone
#

**ctx is a required argument that is missing **

tardy hatch
#

...

#

Not missing

#

Or lmao

#

Is added

floral stone
#

it is

#

pass_context=True

#

did you do that

tardy hatch
#

Um no? How

floral stone
#

what's your code

tardy hatch
#

Wait one sec

#

@bot.command()
async def greet(ctx):
await ctx.send("πŸ˜ƒ πŸ‘‹ Hello, there!")

floral stone
#

yeah

#

you need to pass context

tardy hatch
#

How

floral stone
#

async, right?

tardy hatch
#

Yep

floral stone
#

@steel nacellet.command(pass_context=True)
async def greet(ctx):
await ctx.send("πŸ˜ƒ πŸ‘‹ Hello, there!")

#

oh

#

ping

tardy hatch
#

=))

#

Okay

slender thistle
#

ctx.send is rewrite and context should be passed automatically.

floral stone
#

^

tardy hatch
#

Ignoring exception in command greet
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 50, in wrapped
ret = yield from coro(*args, **kwargs)
File "bot.py", line 25, in greet
await ctx.send("πŸ˜ƒ πŸ‘‹ Hello, there!")
AttributeError: 'Context' object has no attribute 'send'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/bot.py", line 846, in process_commands
yield from command.invoke(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 374, in invoke
yield from injected(*ctx.args, **ctx.kwargs)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 54, in wrapped
raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Context' object has no attribute 'send'

#

Error

floral stone
#

-- just said

#

ctx.send is rewrite and context should be passed automatically.

slender thistle
#

You are using async, I assume?

tardy hatch
#

..

#

I got this code from internet

#

I want to listen

#

Want full code?

slender thistle
#

Try using bot.say.

tardy hatch
#

Okay wait

slender thistle
#

And pass_context=True

floral stone
#

await bot.send_message(ctx.channel, "hi")

slender thistle
#

Or await bot.say()

floral stone
#

^

slender thistle
#

self is not defined there, hence, I doubt it is self.bot.

floral stone
#

yeah

#

I kn

tardy hatch
#

@steel nacellet.command(pass_context=True)
async def greet(ctx):
await ctx.send("πŸ˜ƒ πŸ‘‹ Hello, there!")

#

Replace this with..?

#

@slender thistle @floral stone

floral stone
#

I'm in class

slender thistle
#

One sec

floral stone
#

don't have time to spoonfeed

slender thistle
#

await bot.say("Hello There!")

#

Instead of await ctx.send()

#

Mods plz no ban.

tardy hatch
#

:)))

#

Thanks ❀

slender thistle
#

You are welcome.

earnest phoenix
#

@tardy hatch You are using the latest version of discord.py...
send is part of the rewrite version

slender thistle
#

A.K.A async.

#

Well, they said before that they were using async. Β―_(ツ)_/Β―

knotty steeple
#

so i want to make a giphy command that searches for a gif. there is a parameter for rating. should i do g or pg

slender thistle
#

gg

#

But on serious note, pg. GWchadThink

earnest phoenix
#

g = global
pg = 13+

#

So go for pg πŸ˜›

knotty steeple
#

ok

nimble star
#

Can anyone tell me something simple? I have a bot coded in discord.py (rewrite version, non-command module) and am wondering about one of the features discord.py holds. It's the presence changing for the client.

The client can change the status and game at the same time. However, because the rate limit is at 5 updates in 1 minute, does changing the game and status of the bot in one presence changing line count as 2 presence updates in Discord? What I mean is this example I can take from my own bot.

await client.change_presence(activity=bot_game, status=bot_status)```

Does it change the ``activity`` and ``status`` seperately and so count as 2 changes or does it change them simultaneously and then count as only 1? Thanks in advance.
spring ember
#

It is one afaik

nimble star
#

Alright, thanks.

knotty steeple
#

how do i send a gif in a "raw" embed

#

discord.js

halcyon abyss
#

like you would send a simple picture

#

And for this question, docs are your greatest friend

knotty steeple
#

i am not using a richembed

floral stone
#

how to remove that little bit of white, moving the div

#

it's the body

#

you can see

gusty topaz
#
body, html {
    margin: 0;
}
#

^ css btw

floral stone
#

ik

#

let me try it

#

I tried it with body

#

forgot about html xD

gusty topaz
#

I am not sure if its either html or body

#

so I always just do it on both

#

Β―_(ツ)_/Β―

floral stone
#

probably html

glossy sand
#

i usually start all stylesheets with a

* {
  margin: 0; padding: 0;
  box-sizing: border-box;
}
#

the problem of the page margin solves itself plus you get consistent margin/padding behaviour across all browsers

shrewd hedge
uncut slate
#

looks like you tried running a one note file with node

#

πŸ€”

karmic parcel
#

lol

lapis crystal
#

How do you make the bot say how many servers it is on the client log, i have tried many things but i don't know what to do. I'm using discord.js

knotty steeple
#

do you know how to get how many servers it is in

lapis crystal
#

no

knotty steeple
#

client.guilds.size

#

just console.log that

lapis crystal
#

i know how to make it appear on the client logs

#

thank you

peak mountain
#

@languid imp

slender thistle
#

Does anyone know what can make an asyncio loop not work?

severe socket
#

what are you using?

slender thistle
#

Python.

floral stone
#

what's your code

#

nvn

#

gg

dire abyss
#

.

#

i need some help please.

floral stone
#

be specific

#

language?

dire abyss
#

js

slender thistle
#

Adding await asyncio.sleep() into try: actually made it work. Thonk

topaz fjord
#

Show code

#

And error

dire abyss
#

error = message is not defined

elder rapids
#

You don't define it

floral stone
#

isn't it an argument

topaz fjord
#

You can't use message outside of the message evrnt

elder rapids
#

Guild create doesnt have that

topaz fjord
#

Event

elder rapids
#

This is a guild create event

#

Not a message receive

dire abyss
#

so?

#

what do i have to do to fix it

elder rapids
#

So you cant reference a message

topaz fjord
#

Use bot.guilds.get

elder rapids
#

It doesn't exist

#

^^

#

πŸ‘€

topaz fjord
#

bot.channel.get

dire abyss
#

alright 1 min

topaz fjord
#

For channels

#

@elder rapids nou

elder rapids
#

@topaz fjord nou

topaz fjord
#

weeb

floral stone
#

no me

dire abyss
#

let me try it

#

it doesnt work.

#

guys.

elder rapids
#

That's not enough info

topaz fjord
#

Show error

dire abyss
#

there is no error

#

it just doesnt send to the channel

topaz fjord
#

Then show how you did it

dire abyss
#

wdym

elder rapids
#

... The code

dire abyss
elder rapids
#

I just realized you set bot activity in create and delete

#

That's gonna get you d/c from the gateway

topaz fjord
#

Your supposed to get the guild before u get the channel iirc

dire abyss
#

so how do i fix it?

topaz fjord
#

Get the guild then get the channel from the guild

dire abyss
#

oh

#

bot.guild.channels.get

topaz fjord
#

No

dire abyss
#

wtf?

topaz fjord
#

Let me ask you a question

#

Have you even checked the docs

dire abyss
#

what docs.

topaz fjord
#

The discord.js docs

dire abyss
#

nope

#

new error.

elder rapids
#

While we're at it please don't set bot activity in guild create/delete

topaz fjord
#
elder rapids
#

Kthx

topaz fjord
#

Check that

#

Link

#

bot.guilds.channels.get is not a thing

#

The docs explain that

dire abyss
#

thats great

#

so what do i put instead

topaz fjord
#

I feel like what I said before just was ignored

dire abyss
#

Do you know how to fix my problem ?

topaz fjord
#

I do but im not gonna give you code

dire abyss
#

y i cri

elder rapids
#

Because we don't spoonfeed

#

Have a will to learn

topaz fjord
#

Rule 7B

dire abyss
#

assfeed instead?

topaz fjord
#

This is what docs were made for

dire abyss
#

i am trying to learn

#

but i need more help

#

@elder rapids what would u class this command as

brave bolt
#

I'm getting this infrequent issue and it seems to happen on very few downloads

Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
#

I thought I already fixed it once, apparently not

#

any thoughts?

spring ember
#

umm please provide a bit of context like code

brave bolt
#

That's all it prints out, it attempts to download audio from youtube then throws that error only on specific songs

#

I get no lines where it errors since it's not related to my project

slender thistle
#

Could it be country restriction?

brave bolt
#

it has something to do with the SSL certificate

#

I have already added the SSL cert from youtube to my keystore

#

thought that fixed it, did on some songs

#

and not others

#

tis an odd one

elder rapids
#

Why would you need to manually add youtubes tls cert

earnest phoenix
#

Idk the error.

#

And bot isn’t responding,

#

What do you think it is?

halcyon torrent
#

please, use codeboxes when you're sharing code ablobcry

earnest phoenix
#

Can’t

halcyon torrent
#

reading code like normal messages hurts a lot

#

sure you can, lol

earnest phoenix
#

I am on mobile.

brave bolt
#

@elder rapids It was one of the recommendations I read off google as an attempt to fix it AkaShrug

uncut slate
#

--and strip the invite next time

#

also you can use codeblocks on mobile

halcyon torrent
#

just do add 3 ` at the beginning and the end of the code part :x

elder rapids
#

Youtubes tls cert should automatically work fine if you have he proper cert Auth like every OS should

earnest phoenix
#

Don’t see it.

halcyon torrent
#

`

earnest phoenix
#

β€˜β€™β€™

halcyon torrent
#

copy it

junior lily
#

WHATS WITH THE PINGING

#

W T F

earnest phoenix
#
const Discord = require('discord.js');
module.exports.run = async (bot, message, args) => {
  let msg = '__**Help Menu**__';
  bot.commands.forEach(c => {
    msg = msg + `\n**${c.help.name}** - ${c.help.description}`;
  });
  msg = msg + `\n**For more help, go to **(server invite) the bot prefix is also ${bot.prefix} you can find it by clicking the bot Mee5 and see what its watching.`;
  let embed = new Discord.RichEmbed().setDescription(msg).setColor('#2763b8');
  message.channel.send('Help has been sent in DMs! Good luck with my commands!');
  message.author.send(embed).catch(() => {
    message.channel.send('An error occured');
  });
}
module.exports.help = {
  name: 'help',
  description: 'Shows the help menu'
}
#

There.

halcyon torrent
#

any error message?

earnest phoenix
#

Umm

#

I can send pictures of them.

halcyon torrent
#

it's fine

#

do it ^^

earnest phoenix
#

See anything?

junior lily
#

wait why did we get pinged?

#

confoosed

slender thistle
earnest phoenix
#

How do you make your bot always run without you having your pc on?

spring ember
#

buy a vps

earnest phoenix
#

Use a website host.

#

Not the best decision but an ok one.

#

?

#

Explain?

spring ember
#

you need a server to run the bot

earnest phoenix
#

What server

spring ember
#

you can use your pc or rent a server

earnest phoenix
#

How to use a pc?

#

How to do that

spring ember
#

run the code?!?

earnest phoenix
#

Oh

elder rapids
#

You sure you want a PC on 24/7

earnest phoenix
#

No

elder rapids
#

Rent a vps then if you don't want that

spring ember
#

then you need to rent a server or vps

earnest phoenix
#

Okay

#

Or use a website host.

#

Free.

spring ember
#

I mean or by the name

earnest phoenix
#

What’s that

#

But not as good.

topaz fjord
#

@earnest phoenix ew no

#

Free hosts are shit

earnest phoenix
#

What do you mean by not as good

spring ember
#

^

earnest phoenix
#

I use them for tests.

#

What so bad about it

elder rapids
#

Don't use a web host for non web stuff

#

Tf

spring ember
#

they are weak

#

very weak

earnest phoenix
#

Slower

#

Oh

#

@elder rapids, If I’m making a chat moderator and joke bot, I can’t use web host?

elder rapids
#

You're not making a website

topaz fjord
#

Well you can but dont

elder rapids
#

Just rent a vps

topaz fjord
#

Web hosts are made for one

#

Thing

earnest phoenix
#

Oh

topaz fjord
#

And it's in the name

elder rapids
#

It'll save you lots of hassle

#

Trust me

earnest phoenix
#

Yup.

#

How much are they usually

topaz fjord
#

@elder rapids such a weeb

elder rapids
#

Nothing more than few dollars a month

#

Starting out ofc

earnest phoenix
#

Oh ok

elder rapids
#

Bigger better servers can cost 50 to hundreds

topaz fjord
#

When you need more power you would have to upgrade

earnest phoenix
#

Oh

topaz fjord
#

@elder rapids thousands

elder rapids
#

Yes and thousands

earnest phoenix
#

Depends on how big the bot you want to be.

elder rapids
#

I'm on mobile cut me slack

earnest phoenix
#

So the big bots like pokecord

elder rapids
#

I'm not going to write everything

topaz fjord
#

@elder rapids no

earnest phoenix
#

They pay thousand if dollars?

elder rapids
#

They potentially are

earnest phoenix
#

Oh

elder rapids
#

Rythm

#

Yes

earnest phoenix
#

Oh

topaz fjord
#

Rythm are about 5-6k iirc

spring ember
#

you don't need 1000$

earnest phoenix
#

^

elder rapids
#

Rythm has several dedis

topaz fjord
#

Most are for lavalink

dire abyss
#

sup fuckers

#

im back

earnest phoenix
#

So for a bot with maybe 10-30 commands, how much would it be

dire abyss
#

for help

topaz fjord
#

Ew

elder rapids
#

A bot shard doesn't need much for cpu

#

Cpu is why rythm costs a lot

spring ember
#

thanks for insulting us before asking for help lol

dire abyss
#

πŸ–• @topaz fjord

earnest phoenix
#

10-30 commands not much I say,

#

Thanks

topaz fjord
#

@dire abyss not getting help then

#

/shrug

dire abyss
#

i cri

#

me sorry

#

and ur on phone

#

lmao

topaz fjord
#

I don't accept

elder rapids
#

The resources your bot needs is more dependent on what your bot is doing

dire abyss
#

but i accept 😎

elder rapids
#

Not amount of commands

dire abyss
#

i need mental help

topaz fjord
#

More servers = more money

dire abyss
#

i checked that dumbass website

#

wait u can make money

elder rapids
#

We're not a mental hospital

dire abyss
#

HOLD THE FUCK UP

topaz fjord
#

Lmfao

#

Its called patreon

dire abyss
#

u can make money

#

oh

#

fuck that shit

topaz fjord
#

Now

elder rapids
#

That's good shit not fuck that shit

topaz fjord
dire abyss
#

fuck me too

topaz fjord
#

Also that discord.js website is useless lmao

earnest phoenix
dire abyss
#

ik

topaz fjord
#

It actually helps if you know how to read docs

dire abyss
#

so

#

can i have some help

elder rapids
#

We gave you some

dire abyss
#

it didnt help

#

much

elder rapids
#

Learn how to interpret documentation then

topaz fjord
#

It helped me when someone told me to check docs

#

So

dire abyss
#

that goes up my ass

topaz fjord
#

/shrug

dire abyss
#

basically

#

u cant just tell me the little tiny code for it.

earnest phoenix
#

Nope.

elder rapids
#

No because it's spoon feeding

dire abyss
#

why the fuck not

topaz fjord
#

No

elder rapids
#

We're not here to code for you

dire abyss
#

i know

earnest phoenix
#

You won’t learn then.

topaz fjord
#

Rule 7B

dire abyss
#

i just need some fucking help

stuck coyote
#

Why is not my website displayed on your website as online?

elder rapids
#

We gave you links to resources for help

#

And gave a good guidance

dire abyss
#

and it didnt work

earnest phoenix
#

If you need help we cannot help you by πŸ₯„

topaz fjord
#

The real question is why are you vulgar

dire abyss
#

idk

earnest phoenix
#

It does work.

stuck coyote
topaz fjord
#

No need to do that while asking for help

dire abyss
#

u wana spoon my ass EWWW @earnest phoenix

topaz fjord
#

@stuck coyote how is this related

earnest phoenix
#

...

dire abyss
#

so basically

elder rapids
#

I'm about to ping a mod GWmythsBlobGlare

earnest phoenix
dire abyss
#

u know what my code is yes.

earnest phoenix
#

This is for development help.

dire abyss
#

ik retard

#

it says message is not defnined

earnest phoenix
#

Define it.

dire abyss
#

but there is no message to be definded

#

well there is

stuck coyote
dire abyss
#

but its weird

topaz fjord
#

@stuck coyote your bot is displayed offline because it's offline

dire abyss
#

its guildcreate/delete thing

earnest phoenix
#

Well we cannot help you with that much info.

elder rapids
#

@stuck coyote your bot was kicked most likely

stuck coyote
#

No, it's online

molten pewter
#

Several people are typing...

dire abyss
elder rapids
#

That's what "???" means

dire abyss
#

that works

#

but it doesnt work when i put it in guildcreate/delete

elder rapids
#

We told you why your code didn't work in the other stuff

topaz fjord
#

I just checked your bot and it's offline

elder rapids
#

Go back and look

dire abyss
#

wtfff

stuck coyote
#

@elder rapids No, he did not

dire abyss
#

f

#

i need mental help

topaz fjord
#

@stuck coyote

molten pewter
#

What category would an XKCD command be under?

topaz fjord
#

Now you turned it on

south finch
#

it wasnt in the server

topaz fjord
#

owo

dire abyss
#

what the fuck does that mean

south finch
#

dude

topaz fjord
#

@south finch it was wut u talking about

#

Check shitpost

south finch
#

no it wasnt lol, aeth added it

topaz fjord
#

It was here 2 minutes ago

south finch
#

i know but u checked AFTER aeth added it

dire abyss
#

yep i give up 2day

topaz fjord
#

This is fake

molten pewter
#

something like user.guild.channel

south finch
#

@dire abyss either keep this like G rated or dont message in here at all.

molten pewter
#

Don't use that, it's an example

topaz fjord
#

Not even right but k

molten pewter
#

I know it's not right

#

It's just psuedocode

#

Β―_(ツ)_/Β―

spring ember
#

oh no

#

you can't code with pseudo

molten pewter
#

I know, thus I said don't use my example

#

Anyways, what category would an XKCD command be under?

spring ember
#

fun on my bot

molten pewter
#

ok, thanks

stuck coyote
#

Not with me @topaz fjord

topaz fjord
#
bot.guilds.get('id').channels.get('id')
```  @dire abyss I don't know how fucking clear I can get
floral stone
#

is that js or py

elder rapids
#

c#

floral stone
#

oh

topaz fjord
#

js

dire abyss
#

THANK U BABE @topaz fjord

floral stone
#

ok

topaz fjord
#

No

elder rapids
#

spoonfeed is cool

dire abyss
#

^

elder rapids
#

It was a joke

dire abyss
#

:c

#

fuck u

topaz fjord
#

Im sorry @elder rapids just got really pissed off

elder rapids
#

Wow

dire abyss
#

LOL

#

lmfao

#

piss u off = spoon feed ( not in the ass)

topaz fjord
#

I wouldn't have done that tho

#

But you didn't understand a thing I said

dire abyss
#

^

topaz fjord
#

That's not something to be proud of

elder rapids
#

?

dire abyss
#

i think we're going to be the three muskateras

topaz fjord
#

No

dire abyss
#

fuck u too babe

topaz fjord
#

No

#

@south finch im scared

dire abyss
#

LOOOOOOOOOOOOOOOOOOOOL

#

im not a rapist.

topaz fjord
#

I thought wanda told you to keep it pg

floral stone
#

pg 13

south finch
#

okay

elder rapids
#

πŸ™ Aly

floral stone
#

wanda, you deserved a pat

topaz fjord
#

pat

floral stone
#

@south finch pat pat

south finch
#

fucking weirdos

#

not u guys

#

but that guy

elder rapids
#

er slight mention, they just wanted a spoonfeed too

topaz fjord
#

Weirdos is not singular

floral stone
#

❀

elder rapids
#

sigh

south finch
#

i mean for people like him

topaz fjord
#

Ok

south finch
#

anyway

topaz fjord
#

I need clarification

south finch
#

back to dev talk

topaz fjord
#

Time to hope into gen

#

*hop

earnest phoenix
#

The discord outage broke my bot.

elder rapids
#

Where was that one guy that was talking about VPS now, it's like he just left

#

:c

topaz fjord
#

Yup

earnest phoenix
#

WTH

#

Every command I use makes an error.

topaz fjord
#

Show error?

earnest phoenix
#

I think it is the discord outage error.

abstract crystal
earnest phoenix
#

But it doesn’t have 2048 characters.

abstract crystal
#

i'm sorry to say it, but it most probably does

earnest phoenix
#

3 letters.

#

msg

abstract crystal
#

in description?

earnest phoenix
#

Yup.

abstract crystal
#

interesting

earnest phoenix
#
const Discord = require('discord.js');
module.exports.run = async (bot, message, args) => {
  let msg = '__**Help Menu**__';
  bot.commands.forEach(c => {
    msg = msg + `\n**${c.help.name}** - ${c.help.description}`;
  });
  msg = msg + `\n**For more help, go to **(server invite) the bot prefix is also ${bot.prefix} you can find it by clicking the bot Mee5 and see what its watching.`;
  let embed = new Discord.RichEmbed().setDescription(msg).setColor('#2763b8');
  message.channel.send('Help has been sent in DMs! Good luck with my commands!');
  message.author.send(embed).catch(() => {
    message.channel.send('An error occured');
  });
}
module.exports.help = {
  name: 'help',
  description: 'Shows the help menu'
}
#

Look.

abstract crystal
#

how many commands?

#

It sure does exceed 2048 chars

#

in the embed description

earnest phoenix
#

How?

#

It only has 40 commands.

topaz fjord
#

Embeds can't go over 1024

abstract crystal
#

well you have a for each command for every cmd with the description of it, ofc it does exceed, try printing out the msg variable and you'll see

topaz fjord
#

tf

earnest phoenix
#

So how do I make it have more than one post than?

abstract crystal
#

embed description is 2048
field description or value is 1024

#

post more embeds?

#

or make a paginator with the reactions

topaz fjord
#

More like ratelimiter

abstract crystal
#

or just make a list of command without the description

earnest phoenix
#

No thanks.

#

I don’t have time to go through all 40 commands.

#

Deleting the description line.

topaz fjord
#

its not that hard

abstract crystal
#

you don't have to delete the desc?

earnest phoenix
#

?

#

I also would need to fix the bot,js

abstract crystal
#

just remove that line

#

lul

earnest phoenix
#

Ok.

#

But I rather make separate posts.

abstract crystal
#

as you want

earnest phoenix
#

Since that would help a lot more.

#

What if I reach the limit even after I take off description.

abstract crystal
#

add more fields

#

i guess

earnest phoenix
#

Ok gtg.

#

If you want to explain do it in my DMs so I can read it tomorrow l

#

Only if you want to.

abstract crystal
earnest phoenix
#

for my bot I wrote a lib that handles the limits shown above and if those are exceeded it paginates with reactions you could do the same but instead of pagination just send multiple messages

#

that way you'll have a centralized place and you can reuse it in other commands as well

floral stone
#

why make your own lib

verbal night
#

@floral stone Becuase why not?

floral stone
#

It's extraly unneeded imo.

halcyon abyss
#

still better than spamming copy paste πŸ€”

earnest phoenix
#

lib I meant more like a wrapper lol

#

not lib like discord.js lib xD

earnest phoenix
#

because thats in Client

#

you need to export the class in order to use it like that through require

#

module.exports = class jrClient ...

#

that would work too

#

it has this error tho.. TypeError: Class extends value #<Object> is not a constructor or null

#

idk why

#

should i export Discord.Client instead?

topaz fjord
#

no

earnest phoenix
#

are you exporting jrClient where jrClient is located @earnest phoenix

#

or you did it in the command file xD

#

nah im exporting it in the same file

#

which is Client.js

#

you can try something very basic to see if it works and then go chunk by chunk to find out what's messing with it

#

as an example, that works

#

why is command extending client, i see a big problem

#

who knows what he is doing mmLol

#

please dont show bad examples kthank

#

I am following his code so I don't confuse him more

#

@earnest phoenix btw, Client is undefined thats why and commands shouldn't extend Client

#

its not undefined, its an object =)

#

Im making a framework like klasa and kommanda

#

ive made a v1 already

#

but im moving to classes

#

instead of functions

#

@earnest phoenix you cant make klasa or komada

#

its one of a kind

#

@clever yew amirite

#

I know

clever yew
#

No

#

What

earnest phoenix
#

im pretty much just adding util to discord.js

#

yes but Commands shouldn't extend Client

#

thats just a horrible idea and wont work

#

true

#

okay

#

how am i suppost to get <Client>.commands tho?

molten pewter
#

Having trouble with thinking of some commands to add, any suggestions?

brisk notch
#

same

earnest phoenix
#

uhh

#

userphone?

#

:3

#

I have userphone on my bot

#
const fs = require("fs");

class Client extends DiscordClient {
    constructor(...args) {
        super(...args);
        this.commands = new Discord.Collection();
    }

    async loadCommands() {
            // load all commands from directory, require them, set them into this.commands... profit
    }

    async login(token) {
        await this.loadCommands();
        return super.login(token);
    }
}```
#

then

#

make a base Command class

clever yew
earnest phoenix
#

what terminal is that

#

like program

clever yew
#

Hyper

brisk notch
#

nice

uncut slate
#

ew

molten pewter
#

Does Hyper support SSH?

uncut slate
#

it's a terminal

#

yes

clever yew
#

yea

earnest phoenix
#

How do I make my bot send multiple

#

help message?

#

messages*

verbal night
#

Which language are you using @earnest phoenix ?

earnest phoenix
#

Node.js

#

And Discord.js as the lib

#

Like when someone does {prefix}help

#

It sends more than one help messages in the users DMs.

verbal night
#

ah, js, i'm useless then >.>

earnest phoenix
#

Oh ok.

small lily
#

@earnest phoenix can't you just do user.send() multiple times?

earnest phoenix
#

I don't even have that once.

small lily
#

for DMing users?

earnest phoenix
#

Wait what I am confused.

small lily
#

how are you currently sending a dm?

earnest phoenix
#
const Discord = require('discord.js');
module.exports.run = async (bot, message, args) => {
  let msg = '__**Help Menu**__';
  bot.commands.forEach(c => {
    msg = msg + `\n**${c.help.name}** - ${c.help.description}`;
  });
  msg = msg + `\n**For more help, go to **(server invite the bot prefix is also ${bot.prefix} you can find it by clicking the bot Mee5 and see what its watching.`;
  let embed = new Discord.RichEmbed().setDescription(msg).setColor('#2763b8');
  message.channel.send('Help has been sent in DMs! Good luck with my commands!');
  message.author.send(embed).catch(() => {
    message.channel.send('An error occured');
  });
}
module.exports.help = {
  name: 'help',
  description: 'Shows the help menu'
}
small lily
#

can you not just send two things?

earnest phoenix
#

How?

small lily
#
message.author.send("Help message part 1");
message.author.send("Help message part 2");
earnest phoenix
#

Where do I put it??

small lily
#

what are you even trying to do

earnest phoenix
#

Well.

#

My help message that appears in peoples DMs is over 2k charavters.

#

characters

small lily
#

ok

earnest phoenix
#

So I need to make it send more than one post so they can see all of it.

#

Well fro the command to work.

#

for*

small lily
#

and where do you send the help message in the code

earnest phoenix
#

The one that makes it DM the user?

small lily
#

yes

earnest phoenix
#

I think it is line 10

small lily
#

so just do it twice

  let embedPart1 = new Discord.RichEmbed().setDescription(msgPart1).setColor('#2763b8');
  message.channel.send('Help has been sent in DMs! Good luck with my commands!');
  message.author.send(embedPart1 ).catch(() => {
    message.channel.send('An error occured');
  });
  let embedPart2 = new Discord.RichEmbed().setDescription(msgPart2).setColor('#2763b8');
  message.author.send(embedPart1 ).catch(() => {
    message.channel.send('An error occured');
  });

earnest phoenix
#

Sorry I don't get that.

#

@earnest phoenix Yes it works with Node, you have to know How to use JSON parse and such things though

#

that's fine

#

I've left JS and I'm going for C# instead

restive silo
#

C# is really nice HikariOK

slender thistle
#

python for life

frail harness
#

^

cold harness
#

yes

radiant plover
cold harness
#

#python4life

verbal night
#

python>.>

dusty shuttle
#

@earnest phoenix can u show me help command file for js?

earnest phoenix
#

Ok.

#

But it doesn't work.

#

For me it doesn't.

dusty shuttle
#

ohh

#

should i create a new folder and paste it?

earnest phoenix
#

Oh you are using it.

#

Sorry but I don't like to spoonfeed.

dusty shuttle
#

okay

#

ty anyways

earnest phoenix
#

Your welcome.

tiny turtle
#

How do people catch actual name changes and avatar changes? I can catch nick names and message edits but not those.

ruby dust
#

What lib?

earnest phoenix
#

if your lib isn't shit it'll have events for both of them

#

just take a look at the documentation or source

spring ember
#

Nicknames are usually under member update

restive silo
#

wait the lib isn't forced to split anyway ThinkFish you can do that with a simple if statement

#

username and avatar changes trigger userUpdate

#

and you can test with simple statements

mental solstice
#

C# > all

earnest phoenix
#

can someone help me send the server count to the website?

#

im sorry for asking alot

#

and also

#

DISCORD.JS ALLDAY

languid dragon
#

or you can go to the api docs on the website for the updated way

earnest phoenix
#

ok

#

thx

languid dragon
#

we have a dblapi.js library for posting the stats now

earnest phoenix
#

coolcool

languid dragon
slender thistle
#

Should I PR my weird code to dblpy lib because it's example kinda does not work.

earnest phoenix
#

i'm having trouble with adding my dbl token?

#

is it the one where we get on the place where you sent me?

slender thistle
#

It is in bot's Edit page.

#

Or, uh.

languid dragon
#

you can get ur API tokens from clicking ur app here

earnest phoenix
#

coolcool

languid dragon
#

is that d.js?

#

use that instead

tardy hatch
#

Hello!

#

Anyone can help me to add cogs?

#

To load

#

In python

earnest phoenix
#

I can't.

tardy hatch
#

..

languid dragon
#

@earnest phoenix then why bother replying? lmfao

#

@tardy hatch i don't think anyone here will help you with cogs

#

it's something you will need to read the documentation on

earnest phoenix
#

Idk

languid dragon
#

then dont

tardy hatch
#

@languid dragon

#

U can give me a link?

languid dragon
#

sure thing

tardy hatch
#

Or u can help me

languid dragon
#
tardy hatch
#

=))))))))))))))

#

Please man

earnest phoenix
#

Here:

languid dragon
#

are you trying to add redbot cogs?

tardy hatch
#

@languid dragon no

earnest phoenix
tardy hatch
#

I try to add cogs for a simple python bot

languid dragon
#

because

#

it doesn't even seem like you know what you're asking for

#

if that's what you're looking at

#

then the instructions are right there

tardy hatch
#

Ok

#

Thx

languid dragon
#

literally took me 2 seconds to fucking google it

#

try googling yourself next time fb1

tardy hatch
#

...

lament meteor
#

how to download google Cosmo

tardy hatch
#

@languid dragon i want to add cogs in bot

#

In python bot

languid dragon
#

that's something you figure out on your own?

#

what bot do you have

lament meteor
#

google: how to add cogs to a python bot

tardy hatch
#

I can t finddd

#

@lament meteor u can help me..?

lament meteor
#

too rusty at python sorry

molten pewter
#

@rich depot really needs better hosting

#

I'm hosting my bot on a hecking raspberry pi, and it's still faster than breadbot

ruby dust
#

it's been over10 times since I'm recommending skysilk to people

#

there is a free plan you can use

#

but right now they are in beta testing so any plan gives you 100% discount

molten pewter
#

But is it better than a Raspberry Pi?

ruby dust
#

idk what's better, it's like a normal any other vps

molten pewter
#

Well, I practically have my Raspberry Pi next to me right now, so

ruby dust
#

well, the only difference is you will be connecting to your vps's vm

molten pewter
#

ok, but it says free for a limited time

#

So I'll have to pay eventually

ruby dust
#

yes they are in beta testing

#

they are a new service

#

but they still have a free plan that anyone will be able to use after closing beta

#

iirc, the free plan contains 12mb/s, 500GB storage and 512MB RAM

#

something like that

molten pewter
#

The Pi 3 has 1GB of ram and can be wired to your home network

#

It also supports usb

#

so checkmate Β―_(ツ)_/Β―

ruby dust
#

does your bot even use that much of that system?

molten pewter
#

Let's see

#

&stats

#

oh right

#

bot commands don't work here lol

#

= STATISTICS = β€’ Mem Usage :: 17.15 MB β€’ Uptime :: 18 secs β€’ Users :: 6,597 β€’ Servers :: 22 β€’ Channels :: 548 β€’ Discord.js :: v12.0.0-dev β€’ Node :: v10.0.0

#

That's what it says

ruby dust
#

I thought your bot is @rich depot, theses are the stats from @fallen crag Thonk

molten pewter
#

I was just saying that breadbot needs better hosting since it was slower than my bot

#

Which my bot is also kinda slow

low owl
#

Are you sure the delay is because of the hosting?

tardy hatch
#

Hey

#

How can i add cogs to a python bot

#

Please help ke

#

Me

#

How can i load cogs?

lament meteor
#

omg dis guy he cant even google

ruby dust
#

I wish I could count the amount of times you have already asked this and acting like it's the first time you have ever asked

tardy hatch
#

On google i can t find

lament meteor
#

@ruby dust ikr

ruby dust
#

thanks ken

lament meteor
#

^

low owl
#

Then you should learn how to research

karmic parcel
#

rip

earnest phoenix
#

Can anyone help me?

#

I don't get the error.

#

So I need help from someone that understands it to try to explain it to me.

knotty steeple
#

do you have that module installed

lament meteor
#

in package.json add gifsearch

earnest phoenix
#

It already is there.

knotty steeple
#

have you installed the module

earnest phoenix
#

gif-search

#

Yes.

knotty steeple
#

you clearly forgot the - in the require

#

if thats the name of the module

#

gif-search

earnest phoenix
#

Well.

#

It won't let me.

knotty steeple
#

why

earnest phoenix
#

It will show an error.

#

Wait that nvm.

quasi raptor
#

why the python can stop by itself automacilly when we left it idle

quiet jungle
earnest phoenix
#

I am trying to grab the latest message within a channel with discord.py (rewrite). However i see no variable in the channel object to grab the messages, let alone the latest one.
Anyone else did this before and so how can i grab the message?

I see get_message, but without an id i wont be able to grab that last one

(Maybe i am just missing the value)

channel

['__abstractmethods__', '__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__slotnames__', '__slots__', '__str__', '__subclasshook__', '_abc_cache', '_abc_negative_cache', '_abc_negative_cache_version', '_abc_registry', '_edit', '_fill_overwrites', '_get_channel', '_move', '_overwrites', '_state', '_update', 'category', 'category_id', 'changed_roles', 'create_invite', 'create_webhook', 'created_at', 'delete', 'delete_messages', 'edit', 'get_message', 'guild', 'history', 'id', 'invites', 'is_nsfw', 'members', 'mention', 'name', 'nsfw', 'overwrites', 'overwrites_for', 'permissions_for', 'pins', 'position', 'purge', 'send', 'set_permissions', 'topic', 'trigger_typing', 'typing', 'webhooks']
molten pewter
#

What are some essential bot commands that every bot should have?

earnest phoenix
#

nvm, solved.

channel = bot.get_channel([channelid])
async for message in channel.history(limit=1):
     return message.content
spring ember
#

@molten pewter whatever if it is kind of significant

#

like a fun command or a utility or music, not only info ping and help

molten pewter
#

Like, I need suggestions for commands

#

My bot currently has 40

floral stone
#

@earnest phoenix

spring ember
#

get your own ideas lol don't ask for more

molten pewter
#

ok

floral stone
#

that's what I do

earnest phoenix
#

Thats another way of doing it ye

quiet jungle
#

Axler

slender thistle
languid dragon
#

its development related i guess

#

i think DND should be uppercase

slender thistle
#

Right.

#

One sec.

languid dragon
#

and i feel like it's hard to read

#

like you can't differentiate what is a title and what is content

#

ygm?

ruby dust
#

use markdown

languid dragon
#

like

Status: DND

#

could be

Status: DND

#

or at least something else, but then vertically it'll be difficult to read

slender thistle
#

Will see.

elder rapids
#

@slender thistle personally still think if you haven't done anything with it to move the users pfp into the author image

languid dragon
#

^

slender thistle
#

Back.

#

@elder rapids wdym?

elder rapids
#

Embed author has an image

slender thistle
#

Oh

#

I got it wrong at first. πŸ˜„

#

What about the image field? Leave it empty or?

languid dragon
#

its ok

slender thistle
#

Maybe I will just combine the title and artist.

#

Thanks for help. πŸ‘Œ

gleaming summit
#

I need help about nginx

#

lol

waxen spoke
#

Ask your question rather than saying you need help and unnecessarily drawing out the conversation

gleaming summit
#

ok

#

so

#

What I want; I want to set ssl config to my server (nginx)
What is env; Ubuntu 18.04 LTS server & nginx 1.14
What is prob; Error code in Firefox is SSL_ERROR_NO_CYPHER_OVERLAP
What was last config; ssl_ciphers HIGH:!aNULL:!MD5;

#

Here

earnest phoenix
#

How would I make my bot send more than one help post in DMs?

spring ember
#

lib?

earnest phoenix
#

Discord.js

#

Node.js as lang

spring ember
#

I think you need to change the default help command

#

and js is the lang

earnest phoenix
#

I mean like you know how dyno and other bots have more than one post in your DMs when you do {prefix}help.

#

I am trying to add that to my bot since it won't work unless I do so.

spring ember
#

send the help command code

earnest phoenix
#

Lemme change to not have the invite in it one sec.

#
const Discord = require('discord.js');
module.exports.run = async (bot, message, args) => {
  let msg = '__**Help Menu**__';
  bot.commands.forEach(c => {
    msg = msg + `\n**${c.help.name}** - ${c.help.description}`;
  });
  msg = msg + `\n**For more help, go to **{server invite} the bot prefix is also ${bot.prefix} you can find it by clicking the bot Mee5 and see what its watching.`;
  let embed = new Discord.RichEmbed().setDescription(msg).setColor('#2763b8');
  message.channel.send('Help has been sent in DMs! Good luck with my commands!');
  message.author.send(embed).catch(() => {
    message.channel.send('An error occured');
  });
}
module.exports.help = {
  name: 'help',
  description: 'Shows the help menu'
}
#

There.

spring ember
#

just send multiple embeds

#

you can try and paginate it

earnest phoenix
#

What do you mean??

#

@spring ember

spring ember
#

create an array and split it to multiple arrays of a length of your choice

#

then send each one in different message

earnest phoenix
#

One second let me see what arrays mean in discord.js docs

spring ember
#

it's in javascript

#

javascript array

earnest phoenix
#

Oh ok.

wide sparrow
#

guys how to use islambot

spring ember
#

ask their support server?

earnest phoenix
#

Umm how would I do that??

#

@spring ember Sorry for the ping but how would I do that?

#

Sorry I am not really used to this.

low rivet
#

learn javascript first @earnest phoenix

earnest phoenix
#

Ok.

#

You are sending a single embed and the text its too big to fit. What you want to do is split the text in multiple pieces and instead of sending one embed, send all the pieces one by one. However not knowing about arrays is something very primitive so you should definitely first learn the basic programming stuff, read about the language you’ll be using, read some of the lib’s docs etc. and then try to solve problems.

wide marsh
#

oi

fresh cedar
#

oi

earnest phoenix
#

i have an issue

night imp
#

error?

kind garnet
#

Im trying to get the total member count, offline or online. Everytime the bot updates the member count name of a channel, it fluxates

#

doesnt give me the same number

earnest phoenix
#

@night imp oops

#

not a constructor

kind garnet
#

how would I get all of them, including offline members in 100 + member servers

earnest phoenix
#

@kind garnet discord.js?

kind garnet
#

yes

earnest phoenix
#

msg.guild.members.size is what you need i think

night imp
#

What line is the code on @earnest phoenix ?

earnest phoenix
#

41 class definition

#

84 and 85

#

are the constructor errors

kind garnet
#

@earnest phoenix of the whole clients members

#

not just the current guild

earnest phoenix
#

o

#

client.users.size

#

or client.members.size cant remember

night imp
#

@earnest phoenix not that good with Java, but can you search your code for gClient.chatMsg

#

Or chatMsg

earnest phoenix
#

its JS

#

what's searching going to do

kind garnet
#

its users

pulsar cairn
#

Java doesn't have TypeErrors

kind garnet
#

and that doesnt work

night imp
#

Seeing if it is called anywhere

earnest phoenix
#

ti is

low owl
#

@earnest phoenix Because you need to do new gClient().chatMsg(..)

#

I think

earnest phoenix
#

um

low owl
#

And then fill in whatever comes inside the first ()

#

The uri

earnest phoenix
#

no

#

already done

#

think of gClient as a Discord.Client()

low owl
#

Well, I'm out of ideas then πŸ‘€

earnest phoenix
#

rip

kind garnet
#

@night imp any ideas?

earnest phoenix
#

@kind garnet , why doesn client.users.size work

#

can you provide the error?

kind garnet
#

It doesnt give an error.

earnest phoenix
#

what does it return

kind garnet
#

it gives off fluxuating member sizes.

low owl
#

Perhaps because caching?

night imp
#

^

#

Also make sure your discord.js is up to date

#

I just tested it and got the same output

kind garnet
#

d.js is up to date

#

how would I cach client.user.size

#

@night imp ^

night imp
#

It should do it by default...

kind garnet
#

Yea well its not

#
    client.channels.get('444332803572891649').setName(`${client.guilds.size} Servers | ${client.users.size} Users`);
   let msg = message.channel.send("Updating Server & Guild Count...").then(msg => msg.edit("Updated!!"))
}}```
topaz fjord
#

i need smart java person who uses lavalink

#

wut does this mean

#
[17:28:34] [ ERROR] [SocketServer] Error when opening websocket
java.lang.NumberFormatException: For input string: ""
        at java.base/java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.base/java.lang.Integer.parseInt(Unknown Source)
        at java.base/java.lang.Integer.parseInt(Unknown Source)
        at lavalink.server.io.SocketServer.onOpen(SocketServer.java:81)
        at org.java_websocket.server.WebSocketServer.onWebsocketOpen(WebSocketServer.java:568)
        at org.java_websocket.WebSocketImpl.open(WebSocketImpl.java:706)
        at org.java_websocket.WebSocketImpl.decodeHandshake(WebSocketImpl.java:281)
        at org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:215)
        at org.java_websocket.server.WebSocketServer$WebSocketWorker.run(WebSocketServer.java:888)