#development

1 messages ยท Page 356 of 1

strange lintel
#

What do you need now

agile basalt
#

can't see what type of error tho

icy lynx
#

hello

agile basalt
#

closes too fast

#

and yes, i have python 3.6

#

before u ask bout f-strings

icy lynx
#

Why is there a f

#

๐Ÿ‘€

strange lintel
#

Just put input() at the end of your code

agile basalt
#

what?

#

oh

#

ok

strange lintel
#

Then it waits for you to press enter to exit

#

I just have my ide setup to do a press any key to exit whenever i run python with it

#

also whats an f string

#

I feel like im behind on python versions

agile basalt
#

still closes instantly

strange lintel
#

do like a = input ()

#

I think python got annoying and made you do that now

icy lynx
#

Also, whats the error?

agile basalt
#

still closes instantly so i cant read the error

icy lynx
#

Open with cmd

strange lintel
#

^

#

Do python filenamehere in cmd

#

or python3 filenamehere

agile basalt
#

oh

agile basalt
#

nonetype has no attribute id

blissful reef
#

LMFAO

agile basalt
#

wait no

#

it is

strange lintel
#

Co away clumsy

blissful reef
#

lol

strange lintel
#

This is development not shitpost

blissful reef
#

its not shitpost

#

my bot joined that

#

and i thought it was funny

agile basalt
#

ughhh

icy lynx
#

Can you show the whole python code?

#

Especially the top

#

There should be something like

agile basalt
#

wdym

icy lynx
#

client = Discord.Client

agile basalt
#

i don't use that

#

i use commands.Bot(command_prefix='str')

icy lynx
#

What do you use instead?

agile basalt
#

commands is from discord.ext

strange lintel
#

Hes not using rewrite

blissful reef
#

how would i check if a channel is nsfw

#

?

#

d.js

agile basalt
#

i am using rewrite

icy lynx
#

confused

#

Try this

strange lintel
#

Clumsy it's a bool in the channel object

icy lynx
#

Ahh wait

blissful reef
#

thx failed

icy lynx
#

lowercase d

agile basalt
#

ahhhhh

icy lynx
#

Did it work?

agile basalt
#

no

strange lintel
#

Show us the line

icy lynx
#

What is the error

#

Actually

#

What lib are you using?

strange lintel
icy lynx
strange lintel
#

Which one are you using

#

@agile basalt commands.Bot(command_prefix='str') show us that line

#

The whole line

prime cliff
agile basalt
#

bot = commands.Bot(command_prefix='c.') @strange lintel

strange lintel
#

Ok

agile basalt
#

i reverted my changes so at least the bot is online, but no dbl temperarily is better than the whole bot down

strange lintel
agile basalt
#

i'll ask again tomorrow

strange lintel
icy lynx
agile basalt
#

i gtg

strange lintel
#

Oh ok bye

agile basalt
#

thx tho

icy lynx
#

o/ just use my code

agile basalt
#

for trying

strange lintel
#

Yeah hugops code should work

#

All you have to do is put the token in

#

Then just paste it into your code

blissful reef
#

how can i make a command only be able to be used once per day?

mellow sierra
icy lynx
#

@blissful reef with an if statement and unix timestamp

blissful reef
#

whats a unix timestamp

#

XD

umbral pelican
blissful reef
#

ik i did

#

can you guide me to a website with doctumentation on it

umbral pelican
#

it's just a timestamp

#

number of seconds since 1st Jan 1970

blissful reef
#

ahh

#

thanks

#

can i use this to do it

umbral pelican
#

I'd use moment for dealing with dates/times

blissful reef
#

okay thanks

umbral pelican
#

mhm, that's it

blissful reef
#

thanks man

shrewd field
#

How do I use filter and map

languid dragon
shrewd field
#

filter

#

ok

#

thanks

languid dragon
unkempt arch
#

Help, i've uploaded my bot to discordbots.org but i cant seem to see the server count. it only gives me errors

#

Js

#

discord js

#

and node.js

#

when i add the api it gives me error that it doesnt exist

#

ill reinstall it

lethal sun
#

code?

#

use skenfetch

#

snekfetch*

#

define it

unkempt arch
#

ok

lethal sun
#

no need to install it using npm

unkempt arch
#

oh

#

REALLy

lethal sun
#

it already exists

#

code?

unkempt arch
#

THX

lethal sun
#

show come

#

code*

#

lol

#

๐Ÿ˜‚

unkempt arch
#

oof time to script it.

#

Like

#

To keep my bot running

#

ok

#

hope it doesnt kill my bot lol

#

ok

#

ill test it

#

thx it worked like a charm

lethal sun
#

..

#

np

icy lynx
unkempt arch
#

ook

lethal sun
#

me

#

kinda

#

@thorny hinge

#

lemme open my code

#
            db.get(`SELECT * FROM economy `, function(err, row) {
                console.log(row)
            })```
#

that should work

#

@thorny hinge ^

#

WHERE row = text

#

?

fervent goblet
#

you can't

sand roost
#

@shrewd field is the bot running on linux?

lethal sun
#

How to search users by a discriminator. d.js

worn ridge
#

How can I sandbox eval in python?

quasi sandal
worn ridge
#

๐Ÿ‘

viral tiger
#

Collection<User>.find("discriminator", "disc")

#

probably

#

@lethal sun

bitter sundial
#

use filter if you want multiple results

unique star
#

there is also findAll

wanton nova
#

(This is asciidoc)

topaz fjord
#

It fucks with _

wanton nova
#

oh

#

ok thanks

#

nothing i can do about that

next bluff
#

Yup

#

My bot does a little web scraping actually

novel bronze
#

Same

#

Mine's extremely basic though lol

next bluff
#

Same with mine, looks for a couple tags, follows a link, and just stores some of the text in the DB

shrewd field
#

How do you list the roles after each other

gusty topaz
#

make the field inline

#

what library are you using?

#

@shrewd field

bitter sundial
#

I have a feeling he doesn't know how to loop lol

shrewd field
#

d.js

#

like this

#
   .addField(`Role Names: ` ,
             `${message.guild.roles.map(r => r.name)}\n`, true)```
#

this is what i have and it prints it next to each other sperated by commas

#

which I don't want

#

I want it like the picture

#

this is what I have

#

I want it like this

naive hazel
#

I don't understand, how do I add user id as an filter in awaitMessages?

  .then(() => {
    message.channel.awaitMessages(response => response.content === '1' || '2', {
      max: 1,
      time: 30000,
      errors: ['time'],
    })
quiet bobcat
naive hazel
#

But that cancels out the whole command

quiet bobcat
#

hm

next bluff
naive hazel
#

@quiet bobcat What I mean by that is if someone else writes for example 1 in this case, the command ends there

quiet bobcat
#

?

naive hazel
#

Like.. if you do the command and I'd write 1 and then you'd write it after, it wouldn't register anymore. You'd have to start the command all over again

shrewd field
#

@next bluff didn't help

naive hazel
#

Anyone?

shy rose
#

@shrewd field Is that the roles thing from my bot ๐Ÿ˜›

#

cause if so your like the 20th person trying to make it

topaz fjord
#

Doesn't seem that hard Thonk

unique star
#
const { RichEmbed } = require("discord.js")

const embed = new RichEmbed ()
message.guild.roles.forEach (role => {
embed.addField (role.name, role.id, true)
});
message.channel.send ({embed})
#

@shrewd field

topaz fjord
#

Spoooooonfeeeeeed

unique star
topaz fjord
#

Bad

unique star
#

no u

#

I don't know why you would want to do such a thing anyway lol

#

d.js errors if you try to add more than 25 fields

naive hazel
#

How do I filter user ids in awaitMessages

unique star
#

add a check to the filter options

naive hazel
#

I don't know how sweatpepe

abstract mango
#

@unique star everything errors above 25 bc that's the limit lol

unique star
#

ik

#

but other libs just ignore it and send the embed with only 25

#

d.js sends nothing but the error

earnest phoenix
#

i have a code in discord.js that will find out if the message author upvoted the bot
if (votes.body.includes(msg.author.id)) {
votes being the website thing votes from the api thing yes
and when i try to run it it says "cannot read .includes of undefined"
but if i remove the ".body" it works, but not correctly
heelp

#

i got this code from a friend

icy lynx
#

Stuff are missing

earnest phoenix
#

oh ok

#

i have no idea what im doing

#

theres more to the code i just posted the part that highlighted the error

fathom pebble
#

@earnest phoenix you might need to send the entire code that checks the votes

shrewd field
#

hey

#

how do you do the lastnames command

#

It gets all your previous user names.

lethal sun
#

that isnt possible i think

#

unless if you have a database

languid dragon
#

lmao

#
  1. You'd need a database to;
  2. Store all namechanges
  3. You'd only be able to get the namechanges where your bot was present
ebon apex
#

Also something to add to that,
4. You wouldn't be able to see previous name changes before you had the database and change logging present

rose briar
#

and a bot that runs 24/7 to catch all the name changes

languid dragon
#

^

earnest phoenix
#

CODE : ```js
const snekfetch = require('snekfetch');
const key = 'HIDDEN FOR ME';

snekfetch.post(https://discordbots.org/api/bots/393359617310195713/stats)
.set('Authorization', key)
.send({ server_count: client.guilds.size,
shard_count: client.shard.count,
shard_id: client.shard.id })
.then(() => console.log(Posted to dbl.))
.catch((e) => console.error(e));

languid dragon
#

shard is null

#

ezpz

earnest phoenix
#

and?

rose briar
#

im a lazy fuck so i just use litedb

ebon apex
#

Are you sharding?

languid dragon
#

either "shard" doesn't exist or is not defined

earnest phoenix
#

i want only server count

ebon apex
#

If you're not sharding that is the incorrect way

languid dragon
#

erm

ebon apex
#

Err

languid dragon
#

LOOOOOL

ebon apex
#

Ignore me

#

shh

languid dragon
#

LMFAOOO

ebon apex
#

KEN

languid dragon
#

i do the same dw

#

LMFAO

ebon apex
#

I SAID NOTHING

languid dragon
#

WE ALLLLLLL SAW IT

#

;]

ebon apex
#

SHHH

languid dragon
#

have u slept today? ;]

ebon apex
#

Barely

languid dragon
#

tsk tsk

earnest phoenix
ebon apex
#

Are you using Discord.js @earnest phoenix

#

Have you ever sharded?

earnest phoenix
#

yes]

#

no

ebon apex
#

If you're not sharded you need client.guilds.size

languid dragon
#

how many guilds do you actually have

earnest phoenix
#

5 ๐Ÿ˜ฆ

#

NOW

rose briar
#

oi same here m8

ebon apex
#

Then you have no need to shard

languid dragon
#

well you dont need to shard yet

rose briar
#

sad that 4 of em are mine

ebon apex
#

You can just use client.guilds.size

earnest phoenix
ebon apex
#

Yes

languid dragon
#

also i think its

#

client.shard.manager.shards

ebon apex
#

Nah

#

EIther will work

earnest phoenix
languid dragon
#

oh

earnest phoenix
#

my terminal is full

languid dragon
#

ive never sharded LUL

earnest phoenix
#

and up and down

ebon apex
#

You can remove the console.log part

#

wait

#

hmm

#

That is loggin an error

earnest phoenix
ebon apex
#

Yeah

#

I saw that now

#

Key is defined properly?

earnest phoenix
#

and how i can rezolv

#

?

ebon apex
#

You put your key in the variable?

earnest phoenix
#

yes

#

i putted

languid dragon
#

-bots AndrewKit_221

gilded plankBOT
#
AndrewKit_221#2887
Bots

@crude bone

ebon apex
#

I've never used Snekfetch

earnest phoenix
#

ye

languid dragon
#

its straightforward asf

ebon apex
#

You're getting a 400

#

hmm

languid dragon
#

if you comment out the shard_count

ebon apex
#

The data might not be in correctly, I cannor remember if snekfetch will auto put type as json

languid dragon
#

dont forget to remove the ,

ebon apex
#

The comma

#

Yea

languid dragon
#

that could cause issues, it has done for me in the past

earnest phoenix
#

removed

#

the same

ebon apex
#

Try it now?

languid dragon
#

show the code and error again pls

earnest phoenix
#

this is the same error

ebon apex
#

It might be the fact that it's not in JSON format

languid dragon
#

1 sec

ebon apex
#

In your send it is, but I mean it may not be sending as json format

rose briar
#

I hate xml (Only beacuse i never botherd looking into it)

ebon apex
#

Can bots respond in here or nah?

#

nvm

#

ignore me

earnest phoenix
#

-bots @ebon apex

gilded plankBOT
#
Tetrabyte#4866
Bots <:dblSupporter:317251816226160641>

@celest yarrow

languid dragon
#
  snekfetch.post(`https://discordbots.org/api/bots/${client.user.id}/stats`)
    .set('Authorization', 'bot_api_key')
    .send({ server_count: client.guilds.size }) // 
    .then(() => /* do whatever here COMPLETE_EVENT */)
    .catch((e) => /* do whatever here ERROR_EVENT */)
ebon apex
#

Remove the global part

languid dragon
#

oops, i have my client as a global

#

oh fuk

ebon apex
#

yeah

rose briar
#

-bots @rose briar

languid dragon
gilded plankBOT
#
- อ€ฬ— ใƒขใ‚ขใƒใƒฃใƒณ อฬ–-#9669
Bots

@undone wraith

ebon apex
earnest phoenix
#

@languid dragon no

languid dragon
#

no?

earnest phoenix
#

the same error

#
snekfetch.post(`https://discordbots.org/api/bots/393359617310195713/stats`)
.set('Authorization', key)
.send({ server_count: client.guilds.size }) // 
.then(() => console.log("TADA!"))
.catch((e) => console.log(e))
rose briar
#

Is ffmpeg the only video convertion lib that is good? or is there somthing simpler (I only need webm -> gif convert)

earnest phoenix
#

IDK

#

iDk

ebon apex
#

Yeah this works

#
snekfetch.post(`https://discordbots.org/api/bots/${client.user.id}/stats`)
    .set('Authorization', config.api.discordBots)
    .send({ server_count: client.guilds.size })
    .then(() => {})
    .catch((e) => {})
#

Change the key spot obviously

quiet bobcat
#

Wait do you do the same to shard count?

ebon apex
#

Nah

#

I'll show you what I do for my shard count

quiet bobcat
#

No need to, just wondering

#

Not even close

ebon apex
#

kk

quiet bobcat
#

wait what was the recommended server count to get shards?

ebon apex
#

1,500 is recommended. but 2,500 is required

quiet bobcat
#

Alright

#

I'm like .1% there lol

ebon apex
#

I'm nowhere near

#

still doing it ๐Ÿ˜‚

quiet bobcat
#

๐Ÿ˜‚

shrewd field
#

CODE:

  if (message.content === (prefix1 + "rlist")) {

const { RichEmbed } = require("discord.js")
const embed = new RichEmbed ()
message.guild.roles.forEach(role => {
embed.addField("roles" , 
  `${role.name} , ${role.id}`, true)
});
message.channel.send ({embed})
  }```
ERROR:
```css
/app/node_modules/discord.js/src/structures/RichEmbed.js:152
    if (this.fields.length >= 25) throw new RangeError('RichEmbeds may not exceed 25 fields.');
RangeError: RichEmbeds may not exceed 25 fields.
fathom pebble
#

The embed is too big.

shrewd field
#

how Can i put this line

#
message.guild.roles.forEach(role => {
embed.addField("roles" , 
  `${role.name} , ${role.id}`, true)
});```
#

I want to put this line in something that is more than 2048 chachters

#

other than description

fathom pebble
#

It's not possible using an embed

quiet bobcat
#

not the problem

#

You have more than 25 fields

shrewd field
#

then how is this possible

fathom pebble
#

When you have 25+ roles it won't work

#

Because the embed is too large

#

It's not possible to change the limit

shrewd field
#

look at this

#

How is this made

#

??

languid dragon
#

with embedded fields

quiet bobcat
#

It has 25 feilds

shrewd field
#

if it has 1 extra field what to do

quiet bobcat
#

Yes but you have 26 or more

#

idk

shrewd field
#

ok so fields no

quiet bobcat
#

make another embed I guess

shrewd field
#

then what are other options

quiet bobcat
#

Not sure how you would do that though

ebon apex
#

You can look into pages

#

with like reactions

languid dragon
#
{embed: {
    fields: [
        {title: 'Field Title Here', value: 'Field Content here'},
        {title: 'another field', value: 'blah blah', inline: true}
    ]
}}
quiet bobcat
#

ooh good idea Tetra

shrewd field
#

huh?

quiet bobcat
#

having pages

shrewd field
#

links

quiet bobcat
#

no

fathom pebble
#

I don't know any open source bots with pages

languid dragon
#

its called JSON

#

remember?

shrewd field
#

what about JSON

languid dragon
#

its how you'd add fields to an embed

#

the embed object

#

aka json

#

channel.send({embed: {}})

quiet bobcat
#

Is that how you add embeds in v 12?

shrewd field
#

look

languid dragon
#

thats just how i do it/ have always done it

#

a lot easier tbh

shrewd field
ebon apex
#

That's sending the embed raw

quiet bobcat
#

Ok

ebon apex
#

Which is amazing

fathom pebble
#

I do message.channel.send(new RichEmbed() blah ...

shrewd field
#

this is a screen shot from dyno

ebon apex
#

Ew

shrewd field
#

bot

ebon apex
#

Using an embed builder

shrewd field
#

it has roles

quiet bobcat
#

Ken with that does it work in v12?

languid dragon
#

v12 what

#

d.js?

quiet bobcat
#

yeah

languid dragon
#

tis should work with all of them

ebon apex
#

That is v9+

shrewd field
#

jon

ebon apex
#

Sending raw

shrewd field
#

jon

quiet bobcat
#

Because the way I'm using cant be done

languid dragon
#

yeet

shrewd field
#

look at this

#

more than 25 roles

fathom pebble
#

@shrewd field That's not an embed

shrewd field
#

what is this

fathom pebble
#

That's a code block

quiet bobcat
#

Its not fields

languid dragon
#
thats not an embed
quiet bobcat
#

Its a code block

ebon apex
#

`

CODE BOCK

`

shrewd field
#

ok

#

so in embeds it is IMPOSSIBLE

languid dragon
#

```yes

#

no its not impossible

#

its common sense

shrewd field
#

then

#

how should I do it

languid dragon
#
{embed: {
    author: {
        icon_url: 'yes.png',
        url: 'yes.html',
        name: 'Yeet'
    },
    description: 'a description',
    fields: [
        {title: 'Field Title Here', value: 'Field Content here'},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true}
    ]
}}
shrewd field
#

ok

#
{embed: {
    fields: [
        {title: 'Field Title Here', value: 'Field Content here'},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
    ]
}}```
#

in the fields I will put this

ebon apex
#

What he sent you cannot use an embed builder

languid dragon
#

uh

ebon apex
#

What he sent is sending an embed raw

shrewd field
#

ok

#

in value I do the stuff

#

right

ebon apex
#
msg.channel.send({embed: {
    fields: [
        {title: 'Field Title Here', value: 'Field Content here'},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
        {title: 'another field', value: 'blah blah', inline: true},
    ]
}});
languid dragon
#

push to the array

ebon apex
#

But for the fields

shrewd field
#

ok

ebon apex
#

You can leave the fields blank

#

Then you can push to them

languid dragon
#
let embed = {embed: { fields: [] }}

embed.embed.fields.push({title: 'another field', value: 'blah blah', inline: true})
ebon apex
#

If you define the embed as an array

shrewd field
#

so i put the roles stuff in the field value

ebon apex
#

Like that

shrewd field
#

what is push

stone kiln
ebon apex
#

Then send the embed variable instead of doing {embed: { ECT... }}

languid dragon
stone kiln
#

i remember doing that

languid dragon
stone kiln
#

that is a long time ago

#

๐Ÿ˜‚

shrewd field
#

ok

languid dragon
#

that embed visualizer is gud asf

stone kiln
#

i know

#

the one from nadeko is based upon that one

ebon apex
#

I love how good it looks

#

It's like accurate as fuck

languid dragon
#

its how i learnt to do things raw

#

i genuinely always use raw

#

lemme show u my this.Embed()

#

its neat

shrewd field
#

in field value

stone kiln
#

< almost always uses a db mmLol

shrewd field
#

do i use this

languid dragon
#

OwO

stone kiln
#

nice id mmLol

languid dragon
stone kiln
languid dragon
#

class > function

stone kiln
#

db > json

ebon apex
#

^

#

TRU TRU

#

Always better

stone kiln
#

i use mongodb

#

because i can easily get to it via a magic link on my website mmLol

#

and see all data

fathom pebble
#

what's the link mmLol

ebon apex
stone kiln
#

i had to make it myself lel

#

@fathom pebble can't show because it is a tab for vpns too mmLol

#

don't wanna get hackled you know

languid dragon
stone kiln
#
  if (typeof options.nonce !== 'undefined') {
    options.nonce = parseInt(options.nonce);
    if (isNaN(options.nonce) || options.nonce < 0) throw new RangeError('MESSAGE_NONCE_TYPE');
}```
๐Ÿค”
slow elk
#

@bitter sundial I got a question about the detailed description of the DBL bot profiles.

Is it necessary to make the description, when made with HTML and CSS, responsive? And if yes, can we do that with CSS media queries?

bitter sundial
#

not necessary, its up to you and yes you can

slow elk
#

Alright, thanks

shrewd field
#

hey

#

how can I make a reboot command

#

My bot is on a vps so I can't have pm2

paper cliff
#

Me I use a run.bat

#

with auto-restart

#
@ECHO OFF

goto start

:start
cls
python bot.py
ping -n 2 127.0.0.1 >nul
goto start
shrewd field
#

i can't use that

quiet bobcat
#

js?

shrewd field
#

yes

#

js

#

and d.js

quiet bobcat
#

Install forever

shrewd field
#

k

quiet bobcat
#

and then do like reboot command and do proccess.exit();

shrewd field
#

how do i use it?

quiet bobcat
#

forever start thingy.js

shrewd field
#

that's it

quiet bobcat
#

mhm

lethal sun
#

How to check if a user already used a command, and if the user did then send a message.

#

discord.js

languid dragon
#
  1. you have ping command
  2. you have a "user used this object,array or map"
  3. user uses ping command smla adds to map
  4. user uses ping command again smla ping command checks to see if exists in map
  5. profit
#

The thing:

let pingCommand = require('commands/ping.js')
global.usedPingCommand = []

client.on('message', (message) => {
    return pingCommand.func(message)
})

The command:

module.exports = {
    func: function(message){
        if (usedPingCommand.includes(message.author.id) {
            // the user already used this
            return message.channel.send('You already used this command!')
        } else {
            // adds to the array, the user used ping    
            global.usedPingCommand.push(message.author.id)
        }
        return message.channel.send('Pong!')
    }
}
#

thats the idea of it

#

hope this helps

earnest phoenix
#

If two people use a discord.js command that reads a json file, will it corrupt the file? Or is it when it is trying to write to the file while also reading it

young cradle
#

If it's just reading, it will not corrupt, race conditions cannot occur on JSON without data being written

earnest phoenix
#

kk thanks

lethal sun
#

@languid dragon ty

novel bronze
#

So uh

#

I got my bot to rename itself during December as a joke

#

Am currently unable to get it to change back for some reason

#

It runs the code to get the name changed back

#

but as soon as it changes, the name immediately changes back to the December name somehow

#

I know that Discord throttles username changes to two per hour, which is why I've been trying to reset it periodically every few hours

#

but still a no-go GWmythiFeelsBadMan

lethal sun
#

code?

novel bronze
#
if (month == "12") { // Could probably do one-line statements for this but I want to be safe
        //bot.user.setUsername("LarryButzBot");
        console.log("Larry!!!!");
    } if (month != "12") {
        bot.user.setUsername("WrightBot");
    } ```
#

Made that cringy af console output line just to make sure that it's not accidentally running the code to set it to the December name

abstract mango
#

@shrewd field "you don't have pm2" Oh yes you can

languid dragon
#

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

#

why would that change anything?

gusty topaz
#

he uses electron on d.js

#

@i cant spell your name because you used inaccessible characters
i see the reason

#

You never built the app object

languid dragon
#

this has nothing to do with bots rn

gusty topaz
#

and its the constructur

languid dragon
#

nvm i realised my mistake kthx

gusty topaz
#

ah

earnest phoenix
#

HELP!
I am currently creating a cool command that allows you to communicate across servers, however. I have problem! Once connected to the guild, I cant seem to make messages send to the other guild!
Please halp!

 let messagesent = message.content.split(/\s+/g).slice(0).join(" ");
        message.channel.awaitMessages(response => response.content)
  .then((collected) => {
          if(collected.first().content.guild.id===message.guild.id) {
            callChannel.send(messagesent)
          }
          if(collected.first().content===callChannel.guild.id) {
            message.channel.send(messagesent)
          }
#

JavaScript btw

worn ridge
#

Does anyone how to embed links in embeds or normal messages? (Im using Python)

earnest phoenix
#

embeds only... Do [Click Here](Link Goes Here)

#

@worn ridge

worn ridge
#

Oh ok, Thank You ๐Ÿ˜ƒ

paper cliff
#

@earnest phoenix Communicate across servers? GWupuGuriThinking

earnest phoenix
#

Yes

paper cliff
#

Good idea.

earnest phoenix
#

Anybody care to look at this channel and help people? Ive been waiting for almost 6 hours for a response... Still been trying to figure it out!

#

@earnest phoenix i could ask in another server for you

#

please do ๐Ÿ˜ƒ

#

whats your error @earnest phoenix

#

there is no error lol, Just it wont post to either of the chat channels when call is accepted and they start talking

bitter sundial
#

the awaitMessage's messages will always match the same guild as they were sent in

#

because you are only collecting the messages in that channel

earnest phoenix
#

How would I set it so that it will not go past that code until the user $hangup

#

what is content.guild?

bitter sundial
#

^^

earnest phoenix
#

Uhhhh not sure lmao

#

that could be your problem

#

I think it is to make sure that no other Guild that the bot is in is able to see their convfersation and have it post in all servers

#

did you c&p this?

#

Yep

#

Need whole code?

#

you on master or stable?

#

stable

#

so your getting no errors when running?

#

can you console log it?

#

correct

#

up to what line?

#
consoleloghere
 let messagesent = message.content.split(/\s+/g).slice(0).join(" ");
        message.channel.awaitMessages(response => response.content)
  .then((collected) => {
          if(collected.first().content.guild.id===message.guild.id) {
            callChannel.send(messagesent)
          }
          if(collected.first().content===callChannel.guild.id) {
            message.channel.send(messagesent)
          }
#

i think

#

@earnest phoenix I can call this server and show you what happens

#

go for it

#

im not too sure on your error, il take a closer look, and put it into my ide, but im not promising a fix

#

Hmm, bot didnt even seem to call that channel lol lemme try testing-1

lethal sun
#

How can I delete a row in a SQLite Database?

            var id = 1;
            db.run(`DELETE FROM profile WHERE ID=${message.author.id}`, id, function(err) {
                if (err) {
                  return console.error(err.message);
                }

                console.log(`Row(s) deleted ${this.changes}`);
            })```
I'm using that code but it keeps giving me this error: 
```SQLITE_RANGE: bind or column index out of range```
gusty topaz
#

Do NOT make queries like that...
Use prepared statements please

#

Change db.run to this
db.run("DELETE FROM profile WHERE ID IS $1",{$1:msg.author.id},function(err) { yourCode });

lethal sun
#

Thanks! Works perfectly!

rose briar
#

Am I a scrub for using LiteDB?

earnest phoenix
indigo notch
#

@lethal sun FIX IT, you're doing SQL injections

#

db.run('DELETE FROM profile WHERE ID = ?', message.author.id)

lethal sun
#

oh alright

#

thanks

tacit sleet
#

How do i get it to show how many servers my bot is in with the API token?

#

???

inner jewel
tacit sleet
#

ok

topaz fjord
#

Can someone help me with somethig

indigo notch
#

sure

topaz fjord
#

So I have a form that takes in 2 values separated by a comma

#

It insert into the db as ['waaaa, waaaaaa']

indigo notch
#

you cant have arrays in SQLITE

#

USe somenthing like mongoDB for arrays

topaz fjord
#

But I want it to be like ['waaaa', 'waaaaaa']

#

In using mongo

indigo notch
#

show code

topaz fjord
#

Give me a couple mins

indigo notch
#

and do ya use mongoose?

topaz fjord
#

Yes

topaz fjord
#

i can show you the code for the form

earnest phoenix
#

ANybody able to help me with my bot please?

#

I asked for help yesterday

#

HELP!
I am currently creating a cool command that allows you to communicate across servers, however. I have problem! Once connected to the guild, I cant seem to make messages send to the other guild!
Please halp!

 let messagesent = message.content.split(/\s+/g).slice(0).join(" ");
        message.channel.awaitMessages(response => response.content)
  .then((collected) => {
          if(collected.first().content.guild.id===message.guild.id) {
            callChannel.send(messagesent)
          }
          if(collected.first().content===callChannel.guild.id) {
            message.channel.send(messagesent)
          }
topaz fjord
#

And this is for the form Wessel

#

and this is what i mean by the array messing up

bitter sundial
#

I can quite clearly see you are looking for help with your own bot list in this bot list

#

@topaz fjord

#

do not do that

topaz fjord
#

oke

worn ridge
#

Can someone give me an example how to post my stats with python?

inner jewel
worn ridge
#

Lol

#

Did not saw that channel ๐Ÿ˜‚

topaz fjord
#

@bitter sundial sorry tonks

bitter sundial
#

next time it's a 24h moot

#

and well

topaz fjord
#

o

bitter sundial
#

lets just say you dont want to get it again

topaz fjord
#

why do u make big screenshots

#

i can barely read them

bitter sundial
#

open in browser

topaz fjord
#

and how do u do dis

#

u must have a big ass screen or some shit

bitter sundial
#

I combined screenshots

topaz fjord
#

o

worn ridge
#

How do I use the widget in an embed?

bitter sundial
#

in a discord embed?

worn ridge
#

yes

#

I have the markdown code

#

From the website

bitter sundial
#

thats not gonna work for discord embeds

worn ridge
#

But Embeds support markdown doesnt they?

oblique sequoia
#

Limited markdown

worn ridge
#

Oh ok ๐Ÿ˜•

bitter sundial
#

you can set the image in the embed's image section

worn ridge
#

Yeah but not a svg ๐Ÿ˜„

umbral pelican
#

use the png version manshrug

worn ridge
#

Oh I can request a png ๐Ÿ˜„

#

No information about that on the widget page

umbral pelican
#

that would be too easy

worn ridge
#

๐Ÿ˜„

#

The problem is discord saves the image only one time. So when im sending the same link again but the image behind is different, the shown image will not change ...

bitter sundial
#

it'll change after some time

#

and yeah I should document the widget api more

umbral pelican
#

and normal api wink_blob

#

so I know there's a ?sort

bitter sundial
#

true

umbral pelican
#

is it just ?sort and ?fields that isn't documented

bitter sundial
#

i think

#

idk

#

maybe

umbral pelican
#

lol

earnest phoenix
#

Can someone tell me how to set presense to "Watching" just like @gilded plank has

indigo notch
#

precense type 3

umbral pelican
#

see the pins

#

also, nice ads in pins

earnest phoenix
#

My bot is allowed to log what commands on my bot people use right? I have a log channel on my support server for GameBot, was just wondering if the bot is allowed to do that

#

@umbral pelican

umbral pelican
#

uh, yeah sure

earnest phoenix
#

Is it normal to do that or not lol

worn ridge
#

How can I change the size of an image in markdown?

inner jewel
#

@earnest phoenix if the channel is public you can't iirc

earnest phoenix
#

iirc?

elder rapids
#

If I recall correctly

earnest phoenix
#

oh, lol thanks

earnest phoenix
#

@inner jewel Sorry for the tag but just wanting to know. Am I able to create a Level System for @broken zenith, However, I will disable it in this Server. Is that okay?

inner jewel
#

yes

earnest phoenix
#

Alrighty, thanks ๐Ÿ˜ƒ

earnest phoenix
#

can someone mind helping me

#

for the pinned message i tryed to get my bot to say "Watching for emoji-help" and it just says playing

#

code is

#
bot.user.setPresence({ status: 'online', game: {
            name: "for emoji-help",
            type: 3,
} });
inner jewel
#

it's activity not game

earnest phoenix
#

oh

#

thanks

#

@inner jewel after restarting the bot it doesnt show anything

inner jewel
#

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

earnest phoenix
#

rip

#

Lew'

#

Oh no it's bad.

#

I got streaming to work but not watching / listening

earnest phoenix
shy rose
#

that emoji looks like ascii lenny Thonk

earnest phoenix
#

lol

weak hamlet
#

can some1 help me with adding bots to my server?

supple kernel
#

Lmao

shrewd field
#

Hello

#

I am getting this as unexpected token

#

exports.run = async (client, message, args) => the unexpected token is the bracket before client.

glossy sand
#

make sure you're actually running a version of node that supports async/await

languid dragon
#

^

indigo notch
#

@shrewd field or you learn how to use async await

shrewd field
#

Where could I learn that

languid dragon
shrewd field
#

Ok

earnest phoenix
#

Logs just keep saying no such table: eco
JavaScript
SQLite

  //Money Daily System Test!
  if(command==="cash") {
  sql.get(`SELECT * FROM eco WHERE userID = "${message.author.id}"`).then(row => {
    if(!row) {
      sql.run("INSERT INTO eco (userID, cash) VALUES (?), (?)", [message.author.id, "$50"])
    } else {
      sql.run(`UPDATE eco SET cash = ${row.cash + 1} WHERE userID = ${message.author.id}`);
      console.log(row.cash)
    }
  }).catch(() => {
    console.error;
    sql.run("CREATE TABLE IF NOT EXISTS eco (userId TEXT, cash INTEGER)").then(() => {
      sql.run("INSERT INTO eco (userID, cash) VALUES (?, ?)", [message.author.id, 50]);
    });
  });
  }
#

Nevermind, Got it working lol

earnest jacinth
#

So i have made my first bot, questioning my life now, how to start scripting, if anyone is up for help DM me, thanks (i need help in general :3)

mighty barn
#

I got no time for dms so here's a fast quick tutorial: 1) Learn a codign languag (I suggest javascript to begin), 2) Get a Library (Eris or Discord.js are best for javascript), 3) learn how to use the library, 4) Good to go, be cwieatve

earnest jacinth
#

kk

restive silo
#

python is also pretty neat for starters

earnest jacinth
#

tbh im too stupid for this if someone could run me through the entire process it might help but alone? i highly doubt that i just keep getting errors

restive silo
#

nobody will teach you everything from scratch, you might wanna learn a lot of stuff by yourself or you give up on making a Discord Bot

rose briar
#

Python has ugly syntax, BRACKETS RULE!

#

Runs away

earnest jacinth
#

guess what im trying

restive silo
#

@rose briar banne

rose briar
#

Allready banne

#

i just hacke

restive silo
#

fuck

rose briar
#

-DeleteAccountOnDiscordDB @rose briar

#

XD

earnest jacinth
#

if iยดd know it and someone would ask me i would help him

#

ah i got it

rose briar
#

Im a c# guy

#

its like an abusive relationship

#

bitch hits you

#

but you love her for her potential XD

quiet bobcat
#

Maybe?

rose briar
#

I do use that yes

quiet bobcat
#

Check out the docs

rose briar
#

I do have the libs yes

#

XD

languid dragon
#

kbye

quiet bobcat
#

docs mb

rose briar
#

I meant in the .net not always being the easiest

quiet bobcat
#

oh

#

lol

rose briar
#

thats wrong doc

quiet bobcat
#

ok mb

rose briar
#

cur ver is 1.0.2?

quiet bobcat
#

idk

rose briar
#

05.01.2018 16:14:47 Discord Info Discord.Net v1.0.2 (API v6)

#

yeah

#

that doc is old

dire kernel
#
events.js:72
        throw err;
              ^
Error: read ECONNRESET
#

every 5 hours

#

on a VPS

#

where my other bot, running alongside it, is not affected

novel bronze
#

Uh

#

this might sound stupid but

#

are you sure its not err instead of er

dire kernel
#

does that matter, and no it's err

#

that's just me being stupid typing it out

novel bronze
#

lol k

dire kernel
#

i had to type it out because i clicked off of the console lol

novel bronze
#

rip

dire kernel
#

you have any idea why?

#

discord.js server says bad internet but no. it's on a vps and the other bot on that same vps is not affected

novel bronze
#

No clue tbh GWmythiFeelsBadMan

umbral pelican
#

it's just from a connection error

dire kernel
#

i don't get it though

umbral pelican
#

catch and ignore

dire kernel
#

how

novel bronze
#

^^^^ lmao

dire kernel
#

how is it getting a connection error when my other bot is fine

novel bronze
#

Both bots are being run on the same computer, right?

dire kernel
#

yes

#

same vps

novel bronze
#

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

#

Maybe Discord hates one but not the other

dire kernel
#

or maybe my VPS is shit

earnest phoenix
#

@rose briar actually current version is 2.0.0 but the current stable release is 1.0.2

rose briar
#

Yeah? the official version is 1.0.2

#

and the test build is 2.0.0

#

@earnest phoenix What is the point of correcting a 2 hour old post that was correct?

earnest phoenix
#

a) wasnt correct
b) what's the point of pinging me to go back on alerady resolved situation
and c) because i don't pay attention to time

rose briar
#

How is me stating that the current version(Entails the one used by the masses) is 1.0.2

#

Then you going well its actually 1.0.2

#

Actually happening?

earnest phoenix
#

How is me stating that the current version(Entails the one used by the masses) is 1.0.2
Then you going well its actually 1.0.2

WaitWhat

rose briar
#

Essentialy why did you correct me stating the stable builds as 1.0.2

earnest phoenix
#

current version != stable version

rose briar
#

With "actually current version is 2.0.0 but the current stable release is 1.0.2"

#

It so does.

earnest phoenix
#

anywa

#

y

#

im gonna drop this because i dont have the nerve to deal with people who want to argue constantly

#

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

rose briar
#

No im just wondering if you smoked somthing before posting.

earnest phoenix
#

beats me if you can't spell something properly

#

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

rose briar
#

What does me having dyslexia and not being a native english speaker have to do with anything?

#

Also if you are in the dev team fix docs

earnest phoenix
#

what...wh.. who... who mentioned anything about dsylexia

Yes, okay you have a disability but you're not on a time limit, you can read over what you wrote once again...?
You're trying to pull the 'oh he is harassing me' card on me, just drop it, because you know god damn well that that's not the right way to play.

rose briar
#

"beats me if you can't spell something properly" Basicly insulting my ability to type, personal attacks...

#

Also get of your high horse

earnest phoenix
rose briar
#

you fucked up stop trying to do whatever you are trying to do...

glossy sand
#

both of you need to calm the hell down

rose briar
#

XD why tell us to calm down when we have not posted for 20 mins?

glossy sand
#

because no other moderator has told you yet and you both should know better than to argue over such a petty thing

#

what i mean is, consider it a warning not to do it again

frank zenith
#

So how do I go about getting my bot added to the list? Do the admins appreciate funny bots like one that posts random facts when certain strings are typed?

earnest phoenix
#

Okay, so I have been trying to create an economy for my bot. However, I'm not too sure why everything else comes up fine except from the row.farms. It returns as null.
JavaScript, SQLite

if(command==="cash") {
    sql.run("CREATE TABLE IF NOT EXISTS eco (userId TEXT, cash INTEGER, farms INTEGER)").then(() => {
      sql.run("INSERT INTO eco (userId, cash, farms) VALUES (?, ?, ?)", [message.author.id, 50, 1]);
    });
    sql.get(`SELECT * FROM eco WHERE userId ="${message.author.id}"`).then(row => {
    if (!row) { // Can't find the row.
      sql.run("INSERT INTO eco (userId, cash, farms) VALUES (?, ?, ?)", [message.author.id, 50, 1]);
    } else {
      let amount = [row.cash + 1 * row.farms]
      sql.run(`UPDATE eco SET cash = ${amount} WHERE userId = ${message.author.id}`).catch(console.error);
      sql.get(`SELECT * FROM eco WHERE userId ="${message.author.id}"`).then(row => {
      message.channel.send({embed: { color: green, description: `**Information:**\n\n**Cash:** :tickets:${row.cash} Game Bucks!\n**Farms:** ${row.farms} `}})
      })
    }
    })
  }
#

This is what it Returns:
Say this is an embed for example:

**Cash:** :tickets: Game Bucks
**Farms:** null
earnest phoenix
#

@umbral pelican Do you use SQLite?

vital lark
#

Simple

earnest phoenix
#

retthink plz

vital lark
#

Don't use SQLite

earnest phoenix
#

^

#

Please ๐Ÿ˜ข

#

All the problem is is that Farms returns a null

west wedge
#

Hi

naive hazel
#

Does anyone know how to merge 2 images together then sending it through Discord without having to save it

#

with node js

glossy sand
#

what do you mean by "merge"

naive hazel
#

Like adding user's avatar to an image then sending the image into the chat

glossy sand
#

oh

#

use an image manipulation library

#

i've heard good things about jimp

naive hazel
#

I tried jimp but couldn't find away to do it without having to write it

#

Aka save it

split adder
#

Can you delete the image after saving it?

quasi marsh
#

Why couldn't you?

#

But if you are developing things like profiles you might consider saving them

#

It'll save you on processing power

shrewd field
#

Hey

#

When I do if (message.content.toLowercase(). startsWith(prefix) return message.reply("There is no prefix the command is starting with.")) I get an error unexpected token return.

#

Can someone help me here.

languid dragon
#

if (message.content.toLowercase().startsWith(prefix))

topaz fjord
#

what the hell is that spacing

#

@shrewd field also

#

dont make it reply

shrewd field
#

OK no reply

#

What else

#

Ok

#

I get it

paper cliff
#

use message.channel.send insteed

gentle rock
#

dont use message.channel.sendMessage

#

it will give annoying deprecation warnings

pine idol
#

Anyone knows how to teach LUA to a noob?

languid dragon
devout laurel
#

plz give me nfsw anime code.js

#

plZ โค

abstract mango
#

๐Ÿค”

earnest phoenix
#

Hello i have a question

#

if i add a new command like ban kick ETC will the permissions for the bot in discord update if i update the invite link on the bot list website

inner jewel
#

no

novel bronze
#

Trying to understand the question

inner jewel
#

that'd be a huge security risk + discord doesn't care about the link

#

on the website

novel bronze
#

Like, the bot's auth link?

inner jewel
#

if you change it on the website 1) discord won't know 2) discord doesn't care

novel bronze
#

Oh I just got it

#

Yeah basically what Hoister said

#

Editing the permissions in a bot's auth link only affects what permissions will be given to the role automatically created and assigned to the bot on the server the bot is being added to

#

so therefore the link isn't in any way related to the bot's permissions after it's been added to a given server

#

The only way for the bot to get new permissions is for the server admins to update the bot's role to give it the perms it needs

undone plover
#

anyone know how to fix [object Jimp]? Please tag me

topaz fjord
#

@undone plover can u put this at the bottom of your code ```js
process.on('unhandledRejection', error => console.log(unhandledRejection:\n${error.stack}))
.on('uncaughtException', error => {
console.log(uncaughtException:\n${error.stack})
process.exit() //better to exit here.
})
.on('error', error => console.log(Error:\n${error.stack}))
.on('warn', error => console.log(Warning:\n${error.stack}));

undone plover
#

ReferenceError: error is not defined

#

hmmm

topaz fjord
#

wut

undone plover
#

idfk

earnest phoenix
#

@uncut slate

client.channels.get(idcanal).send(args);
                            ^
TypeError: Cannot read property 'send' of undefined```
uncut slate
#

Please don't mention me (or anyone for that matter) for specific questions, anyone who knows will answer

#

chances are your bot doesn't have that channel

earnest phoenix
#

Sorry I'm new to the server

#

Thanks for helping

#

argus

lethal sun
narrow flare
#

How do I get if an user ID is a bot or not?

#

DM or mention me if you can answer my question.. XD

inner coral
#

..

quiet bobcat
#

This is a pretty simple question but how do I make embed fields inline with discord.js?

languid dragon
#

inline:true

quiet bobcat
#

ok

#

Do I do the same for footers and thumbnails? Like js footer: "footer text here", thumbnail: message.author.displayAvatarURL

languid dragon
quiet bobcat
#

Oh

#

Thanks

languid dragon
quiet bobcat
#

How can I make it set a timestamp on the embed?

#

Like when it was created at

bitter sundial
#

you get the time

#

and then put that time into timestamp

quiet bobcat
#

ok

quiet bobcat
#

Just wondering how do I get the current time? I've tried Date.now() which is the only way I can currently think of

quasi sandal
#

@quiet bobcat try new Date()

quiet bobcat
#

oh facePalm

#

forgot that

quasi sandal
#

XD

quiet bobcat
#

Do you mind helping me again?

quasi sandal
#

sure

quiet bobcat
#

It's not sending the message I want it to send to the channel I want. I want it to send to a channel for when the bot joins and leaves but I get this error: ```js
bot.channels.get("391715001612377856").send({embed: {
^

TypeError: Cannot read property 'send' of undefined``` And the code for it is up there

quasi sandal
#

it can't find the channel

quiet bobcat
#

But it could before

#

I just changed the way I send embeds

#

Because the way I'm using appearently doesn't work in v12

languid dragon
#

r u sure u got the right snowflake?

quiet bobcat
#

Yeah

#

I just copy pasted it from my old way

#

And that can send

quasi sandal
#

also @quiet bobcat you might want to have a look at the RichEmbed Builder

languid dragon
#

raw is better EYES

quiet bobcat
#

I used rich embed before

#

But that didnt work in v12?

#

For some reason

quasi sandal
#
const embed = new Discord.RichEmbed()
  .setTitle("This is your title, it can hold 256 characters")
  .setAuthor("Author Name", "https://i.imgur.com/lm8s41J.png")
  /*
   * Alternatively, use "#00AE86", [0, 174, 134] or an integer number.
   */
  .setColor(0x00AE86)
  .setDescription("This is the main body of text, it can hold 2048 characters.")
  .setFooter("This is the footer text, it can hold 2048 characters", "http://i.imgur.com/w1vhFSR.png")
  .setImage("http://i.imgur.com/yVpymuV.png")
  .setThumbnail("http://i.imgur.com/p2qNFag.png")
  /*
   * Takes a Date object, defaults to current date.
   */
  .setTimestamp()
  .setURL("https://discord.js.org/#/docs/main/indev/class/RichEmbed")
  .addField("This is a field title, it can hold 256 characters",
    "This is a field value, it can hold 2048 characters.")
  /*
   * Inline fields may not display as inline if the thumbnail and/or image is too big.
   */
  .addField("Inline Field", "They can also be inline.", true)
  /*
   * Blank field, useful to create some space.
   */
  .addBlankField(true)
  .addField("Inline Field 3", "You can have a maximum of 25 fields.", true);

  message.channel.send({embed});```
#

this looks nicer

quiet bobcat
#

Couldn't send the messages

languid dragon
#

ew

quasi sandal
#

Also i'm a java dev that knows a bit of js XD

languid dragon
#
.send({embed:{
    title: "ya",
    description: "yep",
    url: "yes/yes.html",
    color: 0x36393E,
    timestamp: "2018-01-06T11:22:22.125Z",
    footer: {
        icon_url: "yes.png",
        text: "some footer text"
    },
    thumbnail: {
        url: "obvious.png"
    },
    image: {
        url: "anotherObvious.png"
    },
    author: {
        name: "yes",
        url: "yes",
        icon_url: "yes"
    },
    fields: [
        {name: "name of field", value: "the content", inline: true},
        {name "another", value: "more lel", inline: false}
    ]
}})
quiet bobcat
#

I know how to send embeds

languid dragon
#

ye

#

well if the bot cant find the channel

quiet bobcat
#

But it cant send to that channel

languid dragon
#

its simply because you've got the wrong snowflake

#

or the bot is not in the guild

quiet bobcat
#

It's in the guild and it's the right snowflake. I'm sure about that zoomeyes

languid dragon
#

double check a few times

#

bot.channels.get("391715001612377856") is clearly undefined

quiet bobcat
#

The thing is that I can eval it

#

and it works

#

so idk

languid dragon
#

wait

#

what is the code for

quiet bobcat
#

Weird

#

It works now

languid dragon
#

its probably outside of the client ready event lul

quiet bobcat
#

It is

languid dragon
#

thats why

#

lol

quiet bobcat
#

But I created a new event that's guildDelete

#

And guildCreate

languid dragon
#

you created a new event?

quiet bobcat
#

Yeah?

#

Or idk

#

if this is an event then yes js bot.on("guildDelete", guild => {

steel shoal
#

Who can help me with page's in discord.js

crude mantle
#

wdym @steel shoal

steel shoal
#

we have an realy long command but we wanna split it in a few things

crude mantle
#

multiple send message

#

or edit message

steel shoal
#

so like a book if you type 3 it will show you the 3 message

crude mantle
#

ok

#

so have u defined a variable named args?

steel shoal
#

@late siren

#

what did you do?

#

he is creating the bot with me

crude mantle
#

lol

late siren
#

yes we that defined

#

xD

crude mantle
#

ok

late siren
#

But we want it as a emotical reject not as typing

#

xD

#

when you click on the emotical 3 or 2

#

enz.