#development

1 messages · Page 1389 of 1

earnest phoenix
#

to find docs

hollow sedge
#

You don't have to specify the argument type because it's an event @vapid rock

vapid rock
#

Of course I dont have to, but this enables automatic suggestions in IDE

lucid prawn
#

ok

hollow sedge
#

Oh I see

lucid prawn
#

i did the meme command do i have a error
my coded

 if(message.content.startsWith(prefix + "meme" )){
        let msg = await message.channel.send("Fetching a meme, please wait a second!");
        fetch('https://meme-api.herokuapp.com/gimme')
            .then(res => res.json())
            .then(json => {
                let embed = new Discord.RichEmbed()
                    .setTitle(json.title)
                    .setImage(json.url)
                    .setFooter(`Link: ${json.postLink} | Subreddit: ${json.subreddit}`)
                msg.edit(embed)
            });
    }
#

my error

        let msg = await message.channel.send("Fetching a meme, please wait a second!");
                  ^^^^^

SyntaxError: await is only valid in async function
solemn latch
#

you need to make the function this is in be async

sudden geyser
#

The error is self-explanatory: You used await in a non-async function.

#

So make the function you're in async.

lucid prawn
#

can i just delete it

#

@solemn latch

solemn latch
#

you can make the function async

lucid prawn
#

how i do that

#

nvm

#

like this

bot.on("message", async message => {
    if(message.author.bot) return;
    if(message.content.indexOf(prefix) !== 0) return;
 
    const args = message.content.slice(prefix.length).trim().split(/ +/g);
    const command = args.shift().toLowerCase();
sudden geyser
#

Try it out and see

lucid prawn
#

here my error

 UnhandledPromiseRejectionWarning: TypeError: Discord.RichEmbed is not a constructor
    at C:\Users\love\Documents\New folder\index.js:17:29
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:11484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)        
(node:11484) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
#

and it did not send the meme

#

@solemn latch

solemn latch
#

richembed doesnt exist

lucid prawn
solemn latch
#

rich presence isnt rich embed

quartz kindle
#

no, you have to go here

#
lucid prawn
quartz kindle
#

this one

solemn latch
#

rich presence is not richembed

lucid prawn
#

ummm

#

my head

solemn latch
#

see how richEmbed and richPresence are diffrent words? 🤔

#

they are not the same thing

lucid prawn
#

ok

opal plank
#

isnt embed type gonna be deprecated soon?

solemn latch
#

you mean richembed?

opal plank
#

embed type

solemn latch
#

the entire thing pandasad

opal plank
outer perch
#

you mean richembed?
@solemn latch it's called MessageEmbed now

opal plank
#

aha

#

i was right

#

i knew i read that somewhere

outer perch
#

was that Discord?

opal plank
#

click the link i sent

outer perch
#

understood

solemn latch
#

so, how does messageembed work now then 🤔

#

if embed type is dep

opal plank
#

dunno, i just know that i need some testers to give feedback for my bot

solemn latch
#

its flawless, zero bugs did indepth testing. now pay me!

opal plank
#

bold of you to assume i got money

earnest phoenix
#

what

lucid prawn
earnest phoenix
#

give us more context

#

we can't read your mind

quartz kindle
#

...wat

solemn latch
#

how does eval help you with that

#

dont think eval does anything you cant do with normal code.

earnest phoenix
#

nbr .d

quartz kindle
#

you want to make a user premium through eval? sure you can do that, i do that myself

solemn latch
#

🤔

quartz kindle
#

but you have to build a system for that

#

make a database, put users in the database, make a field or column to enable or disable premium, then use eval to switch it on or off for a given user

#

then build your features around this database, and check if users are premium or not when they use commands

vocal sluice
#

if a bot is missing say manage_roles permission how would you have it send an error message if it is?
I know it's like:

    return message.channel.send('missing manage_roles');```
what would you put before .hasPermission?
agile lance
#

make a database, put users in the database, make a field or column to enable or disable premium, then use eval to switch it on or off for a given user
@/Tim#2373 Would this work with quick.db?

#

Ok so

hollow sedge
#

@/Tim#2373 Would this work with quick.db?
@agile lance any db can work, as long as you know how to use it

agile lance
#

When you complete the action

#

Add a .catch(err => message.reply(“Missing permissions”))

#

After you trigger the action

upper elm
#

I'm trying to integrate a webhook to my bot so I can send a message to a channel when someone votes, is there anything I should use to decide our port and path? like how do I determine what port to use

hollow sedge
#

?? thats not even what they're asking @agile lance

upper elm
#

I'm on a home network

agile lance
#

I misread it

#

I apologize

#

Put message.member before .hasPermission

#

@vocal sluice ^

#

?? thats not even what they're asking @agile lance
@hollow sedge I apologize I read it wrong.

hollow sedge
#

yeah i see

young flame
#

@solemn latch dev senpai i have a question?

robust blade
#

can anyone tell me what is the best discord bot hosting website?

blissful coral
#

ℹ️ This is a list of hosting providers, not a backing/support for them. You will need to make your own decision. All $dollar prices are in USD.

#

@robust blade

robust blade
#

wow

#

that is a lot

blissful coral
#

<3

robust blade
#

so none of them are free

#

welp

blissful coral
#

Not really a free option

outer perch
#

I use Heroku @robust blade but you'll have no more than 440h/month

#

it's like from day 1 to 26 each month

blissful coral
#

Don't recommend Heroku

#

It is not meant for discord bots

#

Meant for web hosting

outer perch
#

there is no free hosts for discord bots

blissful coral
#

Exactly

#

So don't recommend a free host that is not for discord bots

outer perch
#

it's like the world's telling me to shut down my bot forever

blissful coral
#

Reasons why you shouldn't use Heroku for your bot:

  • Bots are not what the platform is designed for. Heroku is designed to provide web servers (like Django, Flask, etc). This is why they give you a domain name and open a port on their local emulator.
  • Heroku's environment is heavily containerized, making it significantly underpowered for a standard use case.
  • Heroku's environment is volatile. In order to handle the insane amount of users trying to use it for their own applications, Heroku will dispose your environment every time your application dies unless you pay.
  • And due to a lot of other issues....
outer perch
#

cuz I can't pay for any host

#

I never had any problems with it

agile lance
#

const member = message.guild.members.cache.get("721088412077129760")

member.roles.add(message.guild.roles.cache.get(r => r.name == "Head Manager"))

Error: Cannot read property of “roles” of undefined

outer perch
#

aside from the limited hours

blissful coral
#

@agile lance member is undefined

agile lance
#

No it isnt

#

I defined member

#

Look at the code again

blissful coral
#

Doesn't matter if you defined member

agile lance
#

Then how is undefined?

blissful coral
#

message.guild.members.cache.get() is undefined

agile lance
#

He is inside the guild

blissful coral
#

Because it does not find the member

#

Attempt doing

outer perch
#

@marsh mortar

#

this is a role tag

#

you're tagging a role

agile lance
#

Thats a user

blissful coral
#

<GuildManager>.members.fetch()

outer perch
#

copy the id again

agile lance
#

Its a user @outer perch

outer perch
#

k

#

u right there

blissful coral
#

@agile lance do console.log(client.users.cache.get(`userid`))

agile lance
#

Alright

blissful coral
#

and show me what it logs

agile lance
#

All it logged was “undefined”

blissful coral
#

Then that ID is not found

agile lance
#

So copy his ID again and try again?

blissful coral
#

I am telling you, that you have the incorrect ID. Right click on the users username and click copy ID

agile lance
#

It found him after he talked in chat now

outer perch
#

try tagging the user in the chat

blissful coral
#

because he was cached

outer perch
#

ok cool

blissful coral
#

Ok so it cached him

agile lance
#

Now try?

blissful coral
#

Sure

agile lance
#
TypeError: message.guild.members.get is not a function
opal plank
#

cache

blissful coral
#

Cache

opal plank
#

also pls tell me u using the id and not <@numbers>

blissful coral
#

[v12] Methods accessing cached data are now found on the cache

- guild.roles.get("id")
+ guild.roles.cache.get("id")

This is the case for any structure relying on cached data, the most likely affected parts of your code are the Collection methods and properties (.size, .has(), .get(), .filter(), .map(), .find(), .forEach(), .reduce(), .sort(), .some())
https://discordjs.guide/additional-info/changes-in-v12.html#managers-cache

#

@opal plank they aren't

opal plank
#

k good

blissful coral
#

From the code snippets they gave us atleast

agile lance
#
Promise {
  <rejected> TypeError [INVALID_TYPE]: Supplied roles is not a Role, Snowflake or Array.
blissful coral
#

Show code snippet

agile lance
#

Should I attempt adding it by ID not by role name?

outer perch
#

yeah

blissful coral
#

No show code snippet

outer perch
#

should be better idk

blissful coral
#

Incorrect.

agile lance
#

const member = message.guild.members.cache.get("721088412077129760")

member.roles.add(message.guild.roles.cache.get(r => r.name == "Head Manager"))

blissful coral
#

Stop trying to give info that won't fix the problem plz <3

opal plank
#

^^

#

if you dont know, dont comment

outer perch
#

I'd use the id

opal plank
#

you'll end up betting in the way rather than helping

blissful coral
#

We aren't asking what you would use. They are asking for what would fix it

outer perch
agile lance
#

just do

blissful coral
#

const member = message.guild.members.cache.get("721088412077129760")

member.roles.add(message.guild.roles.cache.get(r => r.name == "Head Manager"))
@agile lance use .find() when searching for name not .get()

agile lance
#

.get(“id”) i assume

#

Alright

outer perch
#

it would fix, but in another way

#

use .find() when searching for name not .get()
true

blissful coral
#

No need for the useless comments

agile lance
#

It worked now

#

Thanks

blissful coral
#

You can only pass a ID in .get(), in .find() you can provide what you are searching by

#

No problem, cheers!

outer perch
#

You can only pass a ID in .get(), in .find() you can provide what you are searching by
well, I forgot that

#

it would be just .get('ID')

#

🤦‍♂️

drifting wedge
#

How can I have 2 forms In the same page and have 2 submit buttons but have them not interact with eachother?

#

Html lmao

blissful coral
#

Can't you name each button so you know what button it is

#

Then just listen to them seperately

opal plank
#

cant you onClick() => document.getElement(button_1) => do stuffs ?

earnest phoenix
#

(node:13912) UnhandledPromiseRejectionWarning: ReferenceError: ms is not defined

#

🤕

lucid prawn
#

how do i fix this

ReferenceError: args is not defined
earnest phoenix
#

you need to define args

#

like

#

exports.run = async (client, message, args) => {

opal plank
#

@earnest phoenix you do notice you also gave the answer for your own problem, right?

upper elm
#

djs
how do I get the number of reactions on a message?

blissful coral
#

message.reactions.size iirc

upper elm
#

ok I'll try thanks

blissful coral
#

@lucid prawn By creating args

#

I suggest you don't use code taken off the internet

#

@earnest phoenix that is incorrect on how to define args btw

#

you have to define it from where you are executing the file and pass it when running it

upper elm
#

didn't work, i'll try looking at the documentation again

blissful coral
#

@upper elm Try <message>.reactions.cache.size

earnest phoenix
#

@earnest phoenix you do notice you also gave the answer for your own problem, right?
@opal plank Q

#

XD!

#

but

#

how i can

#

define

#

ms

blissful coral
#

const ms = value

#

Suggest you learn basic js before attempting to develop a discord bot

earnest phoenix
#

wait

#

but i already know how to define something

#

but in that especific case

blissful coral
#

Then why did you ask what you knew the answer to

earnest phoenix
#

i tried to make a mute command

#

but

blissful coral
#

oh

earnest phoenix
#

Ok let me show you

blissful coral
#

read the ms library docs

earnest phoenix
#

Oh ok

#

thanks

lucid prawn
#

I suggest you don't use code taken off the internet @blissful coral

#

i didnt just take code off the internet i have args defind

#

do it saying it not defing

blissful coral
#

Don't have to be agressive

#

Nor send any involvement to a gun

prisma oriole
#

lol

blissful coral
#

and we cannot help you define something if you do not show us how you pass the function in the first place

prisma oriole
#

yeah if your error is as generic as that A. we need the code B. its probably pretty apparent what the error is

lucid prawn
#

here my coded

        if(message.content.startsWith(prefix + "say" )){
            const saySomething = args.join(' ')
            if (!args.length){
                return message.channel.send('You must include an argument, ' + message.author.toString())
            }
            message.delete()
            message.channel.send(saySomething)
          }
        if(message.content.startsWith(prefix + "meme" )){
            const embed = new Discord.MessageEmbed()
            got('https://www.reddit.com/r/memes/random/.json').then(response => {
                let content = JSON.parse(response.body);
                let permalink = content[0].data.children[0].data.permalink;
                let memeUrl = `https://reddit.com${permalink}`;
                let memeImage = content[0].data.children[0].data.url;
                let memeTitle = content[0].data.children[0].data.title;
                let memeUpvotes = content[0].data.children[0].data.ups;
                let memeDownvotes = content[0].data.children[0].data.downs;
                let memeNumComments = content[0].data.children[0].data.num_comments;
                embed.setTitle(`${memeTitle}`)
                embed.setURL(`${memeUrl}`)
                embed.setImage(memeImage)
                embed.setColor('RANDOM')
                embed.setFooter(`👍 ${memeUpvotes} 👎 ${memeDownvotes} 💬 ${memeNumComments}`)
                message.channel.send(embed);
            })
        }
blissful coral
#

Where do you define args

#

lets not joke about suicide please and thanks

lucid prawn
#

im not joke

#

but ok

prisma oriole
#

yeah posting a picture of someone holding a gun in their mouth seems pretty lively and not joking about suicide

#

but

#

anyways

blissful coral
#

Suggest you talk to a professional if you are not joking.

lucid prawn
#
const agrs = message.mentions.users.first()
blissful coral
#

def not how you define args lol

#
let args = message.content.slice(prefix.length).trim().split(/ +/g);
    let command = args.shift().toLowerCase();
lucid prawn
#

it work for my last command

prisma oriole
#

your code basically only defines args if its a mention

#

in any other circumstance its not defined

outer perch
#

should I do something about the prefix working in upper case?

#

like, if someone writes Gp! or gP! or even GP! the bot still answers?

#

or should I restrict it to only when someone writes gp!?

prisma oriole
#

thats up to you as the developer, although if did want to do that, its fairly simple as you should just set the content to lowercase and just check for a lowecase value

blissful coral
#

^

outer perch
#

thats up to you as the developer, although if did want to do that, its fairly simple as you should just set the content to lowercase and just check for a lowecase value
@prisma oriole I perfectly know how to do

#

I just wanted an opinion on 'should I'?

prisma oriole
#

as i said in the first parts, its up to you, I personally would in case someone accidentally types Gp!

#

since some ppl on mobile have auto case

outer perch
#

people with 1st letter upper case in mobile

#

yeah

lucid prawn
#

my error @blissful coral
ReferenceError: Cannot access 'args' before initialization

blissful coral
#

Then you define args after you call upon it

#

@outer perch Pretty simple actually, you can just do a .toLowerCase() when you are checking if the message is the prefix

neon heart
sullen pawn
#

Hi

sweet abyss
#
let args = message.content.slice(prefix.length).trim().split(/ +/g);
    let command = args.shift().toLowerCase();

@blissful coral how to send code like this ??

delicate shore
#

Hey

#

How can i add a timeout

#

not .setTimeout

#

How can I remove something from mongo db after some time

#

say 12 hours

near stratus
#

How can I remove something from mongo db after some time
@delicate shore
I used a separate piece of code to check every data and remove the expired every 5 minutes

#

I sorted and then started removing from the top to the one valid

#

@blissful coral how to send code like this ??
@sweet abyss
use 3 `

sweet abyss
#

i dont understand at all

#

shoul i have to copy paste the code ??

delicate shore
#

@delicate shore
I used a separate piece of code to check every data and remove the expired every 5 minutes
@near stratus Which method?

analog imp
#

yo, anyone familiar with calling in objects to guildMemberAdd? keep getting missing permission errors on that event only, and it has all permissions (and yes operates without an integration, that has been updated and attempted already). could this be in relation to instead invite object, or in relation that the server is partnered/discoverable?

#

the object i'm calling is the invite on that event btw, thanks :) (discord.js)

hollow sedge
#

@sweet abyss
```
code
```

near stratus
#

@near stratus Which method?
@delicate shore
Just create a code with your desired language
Then create a col named EXPIRED
Set the data to TIMESTAMP+2days or whatever
Then sort it and keep removing them from the top until you find one which haven't reached the time limit.
Call the function after a certain time

sweet abyss
#

@sweet abyss
```
code
```
@hollow sedge thankx

hollow sedge
#

@hollow sedge thankx
@sweet abyss np

analog imp
#
2020-11-16T04:26:30.055729+00:00: (node:4) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions
2020-11-16T04:26:30.055742+00:00:     at RequestHandler.execute (/app/node_modules/discord.js/src/rest/RequestHandler.js:170:25)
2020-11-16T04:26:30.055742+00:00:     at processTicksAndRejections (internal/process/task_queues.js:97:5)
2020-11-16T04:26:30.055830+00:00: (node:4) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 11)

(edit, error message might help)

for those who are interested, it works in guilds that are not in discovery, but the guild it is having issues with MissingPermissions is discovery enabled. is this a potential api error/bug itself? it works in other servers perfectly but not the discoverable one. just a bit irritating :/

delicate shore
#

Thanks

agile lance
#

@analog imp That means the bot is missing permissions in that said server when trying to complete the action

analog imp
#

right, but it has admin permissions in that server, and same with the server where it's working as intended.

#

here is where i am absolutely stumped:

#

i can confirm both servers have the exact same permissions as well

sweet abyss
#

hallo

#

how to send small codes like only (g!help ) will be shown as code the the text

#

g!help

#

g!help
@sweet abyss in this it is takin whole line pls help

hasty mulch
#

Do it only once @sweet abyss

#
`Example`
sweet abyss
#
`Example`

@hasty mulch this is also taking whole line

#

ohh

#

o got it

#

g!help

#

nice

hasty mulch
#

There you go

sweet abyss
#

i wnt to add it in my bot help embed so thts why i ask this

young flame
#

lmao all the devs are offline

clever vector
#

Hello Developers

young flame
#

code

twilit rapids
#

@clever vector show the full error and the code that's causing it

#

We won't be able to help you otherwise

clever vector
#

its full

twilit rapids
#

That's not the entire error

clever vector
#
const canvacord = require("canvacord");
const { MessageAttachment } = require("discord.js");

module.exports.run = async (client, message, args) => {
    let user = message.mentions.users.first() || client.users.cache.get(args[0]) || message.author;
    let triggered = await canvacord.Canvas.trigger(user.displayAvatarURL({ format: "png", dynamic: false }));
    let attachment = new MessageAttachment(triggered, "triggered.gif");
    return message.channel.send(attachment);
twilit rapids
#

That's only a part of the stacktrace

pale vessel
#

canvacord.Canvas is undefined

#

I'd suggest looking in their docs

clever vector
#

the owner of the bot do the command

#

i mean owner of canvacord

pale vessel
#

Make sure you're using the latest version

restive furnace
#

don't copy paste either

clever vector
#

if i do my own\

#

Its cant mention other

pale vessel
#

Because the new syntax is new Canvacord.Canvacord().trigger(<image>);

young flame
#

@clever vector const canvas = Canvacord

#

or something like that

#

Canacord canvas isnt a thing so you can make it Canvas

clever vector
#

Ok let me try

young flame
#

or something like that

pale vessel
#

I guess js const { Canvacord } = require("canvacord"); const image = await new Canvacord().trigger(user.displayAvatarURL());

young flame
#

i have to look through my thing

#

like that

#

or Canvas = canavacord

tribal siren
#

how to make the bot show the in-server nickname?

#

i tried member.user.nickname, it doesn't work

pale vessel
#

What library?

tribal siren
#

JavaScript

#

discord.js

#

v12

earnest phoenix
pale vessel
#

If you want the bot's nickname, grab the bot as the guild member using guild.me and get the nickname property; guild.me.nickname

tribal siren
#

oh, so it's like guild.member.nickname?

pale vessel
#

Not really

#

guild.me

#

guild.member is not valid

pale vessel
#

Do you want the member's nickname or the bot's nickname?

tribal siren
#

do i have to do it from const guild = message.guild.id

#

Do you want the member's nickname or the bot's nickname?
@pale vessel member's nickname

pale vessel
#

Ah, the author?

tribal siren
#

the mentioned user

pale vessel
#

I see

#

It would be member.nickname

#

nickname is a member property, not User

earnest phoenix
#

error

young flame
#

uh

pale vessel
#

Show the full error

tribal siren
#

nickname is a member property, not User
@pale vessel thank you, works now

young flame
#

i'm making a css bot desciption

weak parrot
#

You need to use inspect element on your browser to get the class names for different parts of the website

young flame
#

ah

#

AhHaaha

weak parrot
#

Then use those class names in your CSS code and change their colors/background or whatever

young flame
#

hhh

#

oki

#

do i just paste the code in the bot desciption or

pale vessel
#

Some properties require you to put !important in order to actually overwrite the style

young flame
#

do i like reverse markdown voodoo it

#

Some properties require you to put !important in order to actually overwrite the style
@pale vessel yeah to overwrite it

#

so it knows to put it over certain things

weak parrot
#

You just use those CSS classnames in your css script and give it different properties

young flame
#

kk

#

brb

unborn ridge
#

my bot in 20 servers what will happen if i try to add it on top.gg

pale vessel
#

Nothing?

unborn ridge
#

funny ques

young flame
#

can you do html only to @weak parrot ?

#

like how you can do css only

unborn ridge
#

will it be added

#

?

weak parrot
#

Uhh what for? If you're going to write both I'd recommend keeping them together but sure you could write them apart/standalone

pale vessel
#

will it be added
@unborn ridge Sure, they don't have a minimum server count requirement

slender snow
#

halo

vale garden
#

hi

#

i need some help

young flame
#

Uhh what for? If you're going to write both I'd recommend keeping them together but sure you could write them apart/standalone
@weak parrot oh

vale garden
#

i have a pokecord bot

#

and i just implemented a evolve feature

young flame
#

can you do it for your bot desc to

#

not the long one

vale garden
#

but when the pokemon evolves using a stone

young flame
#

the short one

pale vessel
#

What are you trying to change?

vale garden
#

its name randomly changes to null in the json file

pale vessel
#

You can style anything inside the page using the <style> tag

vale garden
#

does anyone know what the problem might be

weak parrot
#

You can change the entire page's CSS from longdescription

tribal siren
#

if (message.member.presence.status === 'dnd') message.member.presence.status = ':dnd: Do Not Disturb';

young flame
#

You can change the entire page's CSS from longdescription
@weak parrot ah

#

bet

#

and thanks

pale vessel
#

You shouldn't modify variables like that

tribal siren
#

it says: TypeError: Cannot read preperty 'presence' of undefined

pale vessel
#

Create another variable or store it somewhere else

tribal siren
#

it works for mentions but doesn't on message.member

pale vessel
#

and it could be because message.member is undefined

#

Is the message from a guild?

earnest phoenix
#

right?

pale vessel
#

Right

tribal siren
#

oh don't worry i fixed it

#

thank you

earnest phoenix
halcyon linden
#

What exactly I need to do a dashboard for a discord.js bot?

earnest phoenix
#

error

pale vessel
#

What exactly I need to do a dashboard for a discord.js bot?
@halcyon linden You need to know how to work with OAuth

earnest phoenix
#

@pale vessel

pale vessel
#

That is not the full error

earnest phoenix
#
    throw err;
    ^
Error: Cannot find module 'discord.js'
Require stack:
- /app/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)
    at Function.Module._load (internal/modules/cjs/loader.js:526:27)
    at Module.require (internal/modules/cjs/loader.js:666:19)
    at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/app/index.js:1:32)
    at Module._compile (internal/modules/cjs/loader.js:759:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at Function.Module._load (internal/modules/cjs/loader.js:555:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:826:10)```
#

@pale vessel

pale vessel
#

Did you include discord.js inside your package.json?

earnest phoenix
merry thunder
#

My bot crashing

halcyon linden
#

@halcyon linden You need to know how to work with OAuth
@pale vessel Where can I read about that?

earnest phoenix
#

Did you include discord.js inside your package.json?
@pale vessel yes

somber wigeon
#

p

pale vessel
#

You also need to learn templating language like EJS or learn React/Vue/others

earnest phoenix
#
const fs = require("fs");
const player = require("./modules/Music");
const app = require("express")();
const http = require("http");
const server = http.createServer(app);
app.listen(process.env.PORT);

setInterval(() => {
  http.get(`http://${process.env.PROJECT_DOMAIN}.glitch.me/`);
}, 280000);

app.get("/", (rq, rs) => {
  return rs.status(200).send("pong?");
});

class P74Y extends Client {
  /**
   * @constructor
   * @param {options} options options
   */
  constructor(options) {
    super(options);
    this.commands = new Collection();
    this.aliases = new Collection();
    this.wait = require("util").promisify(setTimeout);
    this.logger = require("./modules/Logger");
    this.config = require("./config");
    this.admin = this.config.admin;
    this.db = require("quick.db");
    this.queue = new Map();
    this.player = new player(this);
  }```
pale vessel
#

EJS is nice and simple for beginners

earnest phoenix
#

index.js

pale vessel
#

Show the package.json

#

The error is not with your code

earnest phoenix
#
  "name": "happy",
  "version": "0.0.0",
  "description": "happy!",
  "main": "index.js",
  "scripts": {
    "test": "node index.js",
    "start": "node index.js"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/happy55573/happy.git"
  },
  "keywords": [
    "happy",
    "discord",
    "discord.js",
    "musicbot"
  ],
  "author": "happy55573",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/happy55573/happy/issues"
  },
  "homepage": "https://github.com/happy55573/happy#readme",
  "devDependencies": {
    "@types/node": "^13.7.0"
  },
  "dependencies": {
    "discord.js": "^12.4.1",
    "@discordjs/opus": "^0.3.2",
    "chalk": "^4.1.0",
    "discord-ytdl-core": "^4.1.5",
    "express": "^4.17.1",
    "hastebin-gen": "^2.0.5",
    "moment": "^2.29.1",
    "moment-duration-format": "^2.3.2",
    "node-fetch": "^2.6.1",
    "simple-youtube-api": "^5.2.1",
    "snekfetch": "^4.0.4",
    "quick.db": "^7.1.2"
  },
  "engines": {
    "node": "12.x"
  }
}```
#

@pale vessel

pale vessel
#

That should have worked

earnest phoenix
#

module?

pale vessel
#

Have you tried redeploying your app?

earnest phoenix
#

yes

merry thunder
#

Some one help me?

earnest phoenix
#

css?

pale vessel
#

Seems like you just need to wait

sweet abyss
#

hallo

young flame
merry thunder
#

@earnest phoenix no

earnest phoenix
young flame
#

i'm not done yet doe

sweet abyss
#

i want to change my discription of my bot
because i added some features so i want to edit my bots discrip plas help me

merry thunder
#

i dont have css code

earnest phoenix
#

wich

pale vessel
#

@young flame Where are you writing it?

earnest phoenix
#

which*

young flame
#

long description

pale vessel
#

You're rewriting the whole page inside the description?

young flame
#

i'm writing it in the long desciption

#

You're rewriting the whole page inside the description?
@pale vessel basically lol

weak parrot
#

Why

pale vessel
#

All the content only show inside the description

young flame
#

idk

pale vessel
#

It would be bot page-ception

young flame
#

ah

#

welp

#

there goes my plans of making poggers.png the background

weak parrot
#

Hmm?

young flame
#

i wanna gonna-

#

noting hhh

#

so that wont work or

weak parrot
#

You can change background?

sweet abyss
#

i want to change my discription of my bot
because i added some features so i want to edit my bots discrip plas help me

pale vessel
#

You can add content inside the description, but not outside (CSS can do that on some element though). Any style you add inside the description (using the <style> tag) applies to elements outside the description

unborn ridge
#

can i ask a ques

young flame
#

ah

#

kk

unborn ridge
sweet abyss
#

anybody help me my upper question (pls mention only)

unborn ridge
#

hslhelp

earnest phoenix
#

go

pale vessel
#

anybody help me my upper question (pls mention only)
@sweet abyss You can edit your bot description by going to your bot page

sweet abyss
#

i go but there is no option to edit it

@sweet abyss You can edit your bot description by going to your bot page
@pale vessel

earnest phoenix
#

ytdl

#

so

#

frick

pale vessel
sweet abyss
#

oh i found it

#

sorry

#

to disturb

earnest phoenix
#

lol

clever vector
#

Can anyone help me

#

i want to do like Current prefix for Discord Bot List

#

How to do that

earnest phoenix
#

our bot prefix

clever vector
#

the Discord Bot List code

#

Like its the code that cache the server name

earnest phoenix
#

no requird

#

leave

#

that point

clever vector
#

I want to do

#

🙂

sweet abyss
#

anybody whould help mee ??

clever vector
#

What is the problem

earnest phoenix
#

anybody whould help mee ??
@sweet abyss problem?

sweet abyss
#

i copy pasted my bot codes in Detailed description of your bot *

#

is it correct ??

pale vessel
#

Not really

sweet abyss
#

or i shoult delete it

pale vessel
#

You need to explain what your bot does and document its commands, if possible

#

Remove your bot's code, it shouldn't be there

sweet abyss
#

ohk

#

opk

#

what it min 300 ??

#

is it words or line ??

pale vessel
#

300 characters, if I recall correctly

#

Spaces do not count

sweet abyss
#

means (ABCD)<these are 4 characters ?? i am right ??
i wouldn't write acbcs i that to pass the requirments

rustic nova
#

Yes

sweet abyss
#

ohk

young flame
weary quiver
#

Yes

mellow jewel
#

What is your OS?

weary quiver
#

What's that

mellow jewel
#

Windows/Linux

weary quiver
#

Windows

mellow jewel
#

can you go to your command prompt and type python --version

weary quiver
#

Oh ok

mellow jewel
#

This will tell you what version you are using and tell me that

weary quiver
#

Ok

#

@mellow jewel it shows this

mellow jewel
#

hmm not here

weary quiver
#

What

earnest phoenix
#

it's there mmLol

#

3.9

mellow jewel
#

Click the start button then type cmd and press enter

Then type pip install discord.py

weary quiver
#

Which start button

mellow jewel
#

I mean the windows button

weary quiver
#

Oh

#

Ok thx

unborn ridge
#

i need help pls

rustic nova
#

@unborn ridge

#

What?

unborn ridge
#

i want to play audio file in vc

#

i have that audio file in vs code

#


module.exports.run = async (client, message, args) => {

  if (!message.member.voice.channel) {
    return message.channel.send(`join vc`);
  } else {
    message.member.voice.channel.join().then(connection => {
      console.log(`[${message.guild}] ${message.author.username} has issued the ${module.exports.help.name} command.`)
      const dispatcher = connection.play('../gab.mp3');

      dispatcher.on('end', end => {
        message.member.voice.channel.leave();
      });
    })
  }
};

module.exports.help = {
  name: 'nahi'
};```
#

it joins but no sound

earnest phoenix
#

how can i check when a server was created?

#

djs

twilit rapids
#
<Guild>.createdAt
earnest phoenix
#

thank u

unborn ridge
#

i need a helppls

#

my bot is connecting vc but not playing anything

#

and no errors

twilit rapids
#

Showing your could would be helpful

unborn ridge
#


module.exports.run = async (client, message, args) => {

  if (!message.member.voice.channel) {
    return message.channel.send(`join vc`);
  } else {
    message.member.voice.channel.join().then(connection => {
      console.log(`[${message.guild}] ${message.author.username} has issued the ${module.exports.help.name} command.`)
      const dispatcher = connection.play('../gab.mp3');

      dispatcher.on('end', end => {
        message.member.voice.channel.leave();
      });
    })
  }
};

module.exports.help = {
  name: 'nahi'
};```

@unborn ridge

#

@twilit rapids

#

please

twilit rapids
#

Oh I'm not able to help you now, at work

#

You could try asking in the djs server if no one is responding

unborn ridge
#

link?

humble rock
twilit rapids
#

Should be on their docs website

lethal grail
#
    name: "slowmode",
    description: "Lets you set slowmode on the channel.",
    execute: (client, message, args) => {
        const amount = parseInt(args[0])
        if(isNaN(amount)) return message.channel.send("It doesn't seem to be valid number")
        if(args[0] === amount + "s") {
        message.channel.setRateLimitPerUser(amount)
        if(amount > 1) {
        message.channel.send("slowmode is now " + amount + " seconds")
        return
        }
        else {message.channel.send("slowmode is now " + amount + " second")
        return }
    } if(args[0] === amount + "min") {
        message.channel.setRateLimitPerUser(amount * 60)
        if(amount > 1) {
        message.channel.send("slowmode is now " + amount + " minutes")
        return
        } else { 
            message.channel.send("slowmode is now " + amount + " minute")   
             
    
    return }
    } if(args[0] === amount + "h") {
        message.channel.setRateLimitPerUser(amount * 60 * 60)
        if(amount > 1) {
        message.channel.send("slowmode is now " + amount + " hours")
        return
        } else {
            message.channel.send("slowmode is now " + amount + " hour")
        return}
    } else {
        message.channel.send("You can only set seconds(s), minutes(min) and hours(h)")
    }

    }
}
earnest phoenix
#

how can i see who invited a bot?

weary quiver
#

What to do now

astral yoke
#

this dosent work on a channel that has it in the name

#
    message.channel.send("test")
}```
earnest phoenix
#

read the error lol

#

it's so hard for people to read ¯_(ツ)_/¯

rustic nova
true wharf
#

Does anyone know if there is a bot where if you click on a reaction it kicks you from the server? Similar to reaction roles

earnest phoenix
#

for what purpose would you need that other than pissing off server members

astral yoke
#

^

pale vessel
true wharf
#

Think like a matrix themed server where opt in is red pill / blue pill. Blue pill kicks you

earnest phoenix
#

what the fuck

rustic nova
#

also @weary quiver I hope i am not seeing this
@earnest phoenix concerning indeed extremelyflushed

true wharf
#

The film The Matrix

earnest phoenix
#

Just check reaction then member.ban

astral yoke
#

they arent a developer

#

they are looking for one that has it

rustic nova
#

Most likely a Hard request then

earnest phoenix
#

well i dont know of a bot made to kick people for reacting to a message 😂

#

kick =/= ban doe MegaThonk

slender thistle
#

@weary quiver install Microsoft Visual C++ 14.0

lyric lynx
slender thistle
#

Server count?

lyric lynx
#

yes

slender thistle
lyric lynx
#

ok

pure lion
#

(ytdl-core) sometimes when i try and play a song it returns "video stream unavailable", can someone give me advice

#

im not sure if i have to proxy or what

red hollow
#

never seen such thing on ytdl

#

u sure u use pure ytdl-core?

pure lion
#

yes

red hollow
#

mm

slender thistle
#

I assume copyrights could be the cause

red hollow
#

sounds like region lock tbh

slender thistle
#

Does it work with other videos?

neon heart
#

(ytdl-core) sometimes when i try and play a song it returns "video stream unavailable", can someone give me advice
@pure lion use discord-ytdl-core or ytdl-core-discord

red hollow
#

dont use discord-ytdl-core its shit

pure lion
#

is it plug and play?

neon heart
#

im using ytdl-core for get url and discord-ytdl-core for play song

red hollow
#

nothing wrong with ytdl-core

neon heart
#

dont use discord-ytdl-core its shit
@red hollow why?

red hollow
#

because it is shit lmao

neon heart
#

wth

red hollow
#

but that error sounds like region lock dice

pure lion
#

wait i need to try something, brb

#

yeah i host in france

red hollow
#

u can try doing getInfo and checking if info.formats is(nt) empty

pure lion
#

gonna filter audioonly

#

if that doesnt work then its proxy time

neon heart
red hollow
tribal siren
#

**❯ Nickname:** ${member.nickname}

#

why it doesn't work?

pale vessel
#

Doesn't work as in?

tribal siren
#

doesn't work

#

it used to

#

but now it doesn't

pale vessel
#

What isn't working about it?

#

Is it null? undefined?

tribal siren
#

oh wait

#

wrong pic

#

so what can i do here

pale vessel
#

can you show your embed code?

rustic nova
#

.nickname is not a function

pure lion
#

when i tried to play not if you were the last junkie on earth:

Error: input stream: Video unavailable
#

Passing in audioonly got a few more videos to work though

#

its just that one that ive found

white mesa
#

how do you do a Server Count on a java bot tagg my

haughty mirage
#

.nickname is not a function
@rustic nova whats the rest of the string?

pure lion
#

@tribal siren nickname is most likely a string and not something that ends with ()

tribal siren
#

oh don't worry i fixed it :)

pure lion
#

good

unborn ridge
#

how to make bot website

rustic nova
#

Bot website?

#

You're talking about a dashboard

#

You will require html, css and potentially js or php to be able to get started

#

Look into oauth2.0 if you wish that your users can change settings for each Servers and have their settings stored

#

@unborn ridge

unborn ridge
#

hmm

#

amy tutorial vid

#

no i dony want users can change setting

rustic nova
#

Making the actual website, probably not. You might find some tutorials though on how you can make the background stuff, like oauth as i mentioned

#

So you want just a static website or?

unborn ridge
#

yes

drifting wedge
#

Dashboard = pain

#

But if u do, if u do python use flask

unborn ridge
#

take a painkiller

rustic nova
#

Yeah you will need to have html/css knowledge

lyric lynx
unborn ridge
rustic nova
#

In order to get started, there's a bunch of tutorials

unborn ridge
#

where

rustic nova
#

@lyric lynx #topgg-api, read the topic of that channel

#

where
@unborn ridge google is your friend

unborn ridge
#

yeah

#

and youtube is my sis

#

lol

#

can i ask something

rustic nova
#

Sure, what is it?

lyric lynx
#

@lyric lynx #topgg-api, read the topic of that channel
@rustic nova means?

unborn ridge
#

just a random thught like who gets revenue of ads displayed on bot page on top.gg

cinder patio
rustic nova
#

Topgg of course

unborn ridge
#

lol

#

ok

rustic nova
#

But sooner or later, you receive some from votes

#

@lyric lynx there's a link to the top.gg api

drifting wedge
#

this is my dashboard for example

#

atleast part of it

#

ive spent like a crapton of time on this

slender thistle
#

just a random thught like who gets revenue of ads displayed on bot page on top.gg
@unborn ridge Bot owners will be able to withdraw the rewards from what I know

rustic nova
#

I gave up with oauth2.0 after realising you have to refresh your token

#

The user tokens T_memesadkek

drifting wedge
#

@rustic nova can u help me out rq with forms:

rustic nova
#

Forms?

drifting wedge
#

how can i separete forms:

#

html forms

rustic nova
#

Oh no clue lmao

drifting wedge
#

lmao of

#

ok*

rustic nova
#

i only partially know html

drifting wedge
#

🙂

#

^ me

boreal iron
#

Separating ?

drifting wedge
#

like i have it so u have to submit certain forms, so how can i make like the submit button submit a specific form?

unborn ridge
#

is git clone wring

boreal iron
#

You just put the form tags around each form and put a submit button into.
Having multiple forms requires unique names for each element.

unborn ridge
#

wrong

drifting wedge
#

You just put the form tags around each form and put a submit button into.
Having multiple forms requires unique names for each element.
@boreal iron submit button in the forms?

#

like i have it in a separate form

unborn ridge
#

is git clone wring
@unborn ridge @rustic nova

#

and is dashboard made in vs code

#

pls

drifting wedge
#

and is dashboard made in vs code
@unborn ridge ??????????????????????????

unborn ridge
#

i want to make a simple website

#

for bot

drifting wedge
#

tho i did make it in atom

#

but thats just cuz my vsc doesnt like flask

#

dunno why

boreal iron
#

I don’t know what you wanna do.
Using POST or GET methods requires to actually send ur form. But your submit button actually is not inside the form tags?

unborn ridge
#

i just want to show stats commands

drifting wedge
#

i prefer vsc > flask

#

I don’t know what you wanna do.
Using POST or GET methods requires to actually send ur form. But your submit button actually is not inside the form tags?
@boreal iron 1 sec

#
<form action = "../guild" method = "POST">
                          <input class="input-group-text" aria-describedby="basic-addon1" name="prefix" value="{{ serverprefix }}" type="text">
                        </form>
                    </div>

                      <div class="form-group">
                        <label class="form-control-label" for="basic-url" style="color:black">Nickname</label>
                        <form action = "../guild" method = "POST">
                          <input class="input-group-text" aria-describedby="basic-addon1" name="botname" value="Arch" type="text">
                        </form>
                    </div>
                    <form method = "POST">
                      <input type="submit" class="btn btn-success">
                    </form>```
#

so like i have 2 forms for text

#

and 1 form for submit

#

should i just make it in 1 form tag

boreal iron
#

First of all HTML tags don’t allow spaces, not method = " - use method="... instead

#

Secondly if the endpoint is the same use one form tag

drifting wedge
#

i think they do............

#

it works

#

like it gets the form thing

boreal iron
#

Yeah working doesn’t mean it’s the right syntax

unborn ridge
#

in which app i can make simple website for bot

#

plez

#

please

crimson beacon
#

Like a basic app?

unborn ridge
#

yes

crimson beacon
#

I mean, you can use Wix....

unborn ridge
#

oo ya lol

#

wordpress also works

crimson beacon
#

Or even Google Sites.

#

¯_(ツ)_/¯

unborn ridge
#

(╯°□°)╯︵ ┻━┻

drifting wedge
#

there we go

unborn ridge
#

__

drifting wedge
#

fixed

crimson beacon
#

I made my own, but that's just because I find that easier.

unborn ridge
#

||||

#

¯_(ツ)_/¯

boreal iron
#

Aye and remember all contents inside form tags belong to the form

drifting wedge
#

so like all in 1 form?

boreal iron
#

Yes

drifting wedge
#

will do brb lmao

#

so i can have divs inside form?

#

not best in html

boreal iron
#

lmao yes

drifting wedge
#

as u can tell

crimson beacon
#

If you want, you can take a look at this.

boreal iron
#

div containers have nothing to do with the form elements at all

crimson beacon
#

It's just a side project I was working on.

#

It has the <form> tag in it.

drifting wedge
#

alr

#

welp cant test it

#

so assuming it works

#

thanks

#

like i cant rn lol

boreal iron
#

huh ok

#

Well just had back to me if so later

#

Gonna be at PC next time I guess and may have a better look than on mobile

drifting wedge
#

alr ty

#

so like if its all in 1 tag

#

itll work?

#

how will flask know the difference doe?

#

they all start with this: <form action="../guild" method="POST">

#

they both

boreal iron
#

Well I actually don’t know what your form does yet so I can guess only

#

Reading the value names makes me think of changing the prefix?

drifting wedge
#

ye

#

also how can i change the text of the submit button>

#

?

#

like it just says submit

boreal iron
#

value="name"

drifting wedge
#

value

#

ty!!

#

alr ttyl

boreal iron
#

The name tag is the identifier of your POST method

unborn ridge
#

OO I Added invite bot button on webpage

boreal iron
#

name="prefix" would be send as POST method and can be fetched with $_POST['prefix'] (in PHP for example)

unborn ridge
#

is it compulsary to host bot if i want to invite it here

#

?

rustic nova
boreal iron
#

It needs to be online to get verified

drifting wedge
#

name="prefix" would be send as POST method and can be fetched with $_POST['prefix'] (in PHP for example)
@boreal iron ye i got that

#

but gtg sry

boreal iron
#

bb

fickle sapphire
#

I'm looking for an easy way to create a transcript file with messages inside it.. I fetched the messages but I'm not quite sure how to do the file part.. using fs? If I use fs it would take a lot of space in my VPS so whats the best way to do so?

carmine summit
#

client is not defined

#

Help

boreal iron
#

Well if you wanna keep the transcript a long time it will indeed need place no matter using a database or the filesystem directly

earnest phoenix
#

how to stop command

rustic nova
#

@earnest phoenix !stop KEKW

#

Jk, what are you referring to with "stop command*

quartz kindle
#

@fickle sapphire if its just text messages, it wont take much space

boreal iron
#

Just return the command

earnest phoenix
#

like i want to make bingo starts in 2 minutes and if someone wants to cancel it to type &bingoStop

boreal iron
#

Oh nvm

neon heart
#

<prefix>stop

#

lmao

rustic nova
#

Store your bingo game somewhere and implement something that stops it (cancels for interval for example)

carmine summit
#

if (message.content.includes(stop)) return process.end()

earnest phoenix
#

so with process.end() function?

carmine summit
#

Yes

earnest phoenix
#

thank you

carmine summit
#

Np

#

Can someone help me? I get this annoying error:
client is not defined

earnest phoenix
#

well it isn't defined

carmine summit
#

How do I define it?

earnest phoenix
#

pass by reference or create it if you don't have one

carmine summit
#

I don't have one.

earnest phoenix
#

client = discord.commands.Bot(command_prefix="#prefix")

#

im assuming you're using djs

carmine summit
#

Yes djs

earnest phoenix
#

see their docs

#

this is in python

#

@pseudo raptor it's best to learn a language most "Discord bot makers" can't really compete with someting hand crafted

#

they have a simple bot app

carmine summit
#

What docs?

earnest phoenix
#

I use python but the majority use javascript

#

https://discord.js.org

also could've found it with a google search

carmine summit
#

How do I define client?????

#

Spoonfeed me plz

neon heart
#

const client = new Discord.Client()

carmine summit
#

Discord is not defined

quartz kindle
#

lmao

carmine summit
#

Helppp

neon heart
#

holleesheet

arctic hare
#

First you need to define what is discord

carmine summit
#

How?

arctic hare
#

then you need to define client

earnest phoenix
#

stop trolling

arctic hare
neon heart
#

const Discord = require('discord.js')

carmine summit
#

require is not a function

#

Aaaaaa

quartz kindle
#

lmfao

neon heart
earnest phoenix
#

you're annoying, not funny

arctic hare
#

Check the guide .-.

quartz kindle
#

hes trolling xD

arctic hare
#

xD

neon heart
#

XD

carmine summit
#

require is not a function
Helpp plzzzzzzz

slender thistle
#

pain

arctic hare
#

in js

carmine summit
#

Making a bot is hard

arctic hare
#

How do you have a badge XD

boreal iron
#

Imagine not using a lib and writing anything yourself

earnest phoenix
#

i mean

#

large bots have their own private libraries / big mods of public ones

neon heart
#

@arctic hare custom status lol

boreal iron
#

Using a modified lib is still a lib

carmine summit
#

I'm stuckkk

drifting wedge
#

large bots have their own private libraries / big mods of public ones
@earnest phoenix gotta make my lib, brb

outer perch
#

require is not a function
Helpp plzzzzzzz
@carmine summit show me the code

carmine summit
#

Oh ****

earnest phoenix
#

@drifting wedge :blobsweat: i was thinking of dominating bots like dyno etc

#

i need my nitro ree

drifting wedge
#

discord.gift/poop

outer perch
#

haha

vale garden
#

hi does anyone know how the datetime package works

#

im new to py btw

#

lol

#

datetime.datetime.now().hour is what i printed and i am getting 12 even tho it is 5 pm here

earnest phoenix
#

is it maybe returning in GMT+0

#

ie UTC

vale garden
#

oh yea

#

maybe

#

kk thx

arctic hare
#

Anybody know how can I know which discord client the user is using? (mobile, web etc) in js (something for userinfo command)

crimson vapor
#

iirc you can only get status but im not sure

rustic nova
quartz kindle
unborn ridge
#

is it important to host bot before adding totop.gg

#

?

quartz kindle
#

yes

unborn ridge
#

if i dont host it will not be added

#

?

quartz kindle
#

it will be added if it works

#

doesnt matter where its hosted

unborn ridge
#

pc hosted

#

?

quartz kindle
#

but if its hosted, it will work 24/7

#

so less chance of being offline

unborn ridge
#

i know that

#

main thing

carmine summit
#

Double host it

#

So that there will be two instances running

unborn ridge
#

yes

carmine summit
#

So that if the other one dies, you still have another instance running

quartz kindle
#

lmao

outer perch
#

So that if the other one dies, you still have another instance running
@carmine summit but it'll answer 2x

carmine summit
#

Its better than nothing

quartz kindle
#

better than 0x

#

xDD

rustic nova
#

There comes the concept of shards

#

If i understand shards correctly

carmine summit
#

No.

quartz kindle
#

sharding wont help you when top.gg tests your bot

carmine summit
#

Shards r confusing

quartz kindle
#

unless you're lucky

rustic nova
#

Never used sharding (fuck you gboard) because it's confusing

carmine summit
#

Better to have two instances running than sharding the bot

quartz kindle
#

lmao

#

if you never used sharding then your bot is smol

carmine summit
#

I can't even get my bot to get verified

#

I don't have gov. ID

quartz kindle
#

rip

earnest phoenix
#

i think you can use anything to prove your actual existence

#

lol

quartz kindle
#

i have 4 ids

slender thistle
#

is it maybe returning in GMT+0
usually it would be utcnow() then, but I assume that the machine had its timezone set to UTC

carmine summit
#

So I have to code somthing like activeness.{guildID}

#

Then when it reaches 90+ servers

#

It will leave servers

outer perch
#

I don't have gov. ID
@carmine summit you have 3 ways to verify

carmine summit
#

That has the lowest activeness points

#

@carmine summit you have 3 ways to verify
@outer perch I don't have Gov. ID, Birth Cert, or Passport

outer perch
#

how??

carmine summit
#

I'm 13?

severe gyro
#

Then how are you still living where you are

#

Oh

quartz kindle
#

you have a birth cert

earnest phoenix
#

^

outer perch
#

I'm 13?
@carmine summit Birth Cert.

carmine summit
#

Nah birth cert go brrrr

quartz kindle
#

your mom has it

earnest phoenix
#

you can also ring up your hospital and ask for a copy of it, at least here you can

quartz kindle
#

if she lost it, you can request a new one in the city where you were born

carmine summit
#

I live at the Philippines. The system doesn't accept birth certs from us

quartz kindle
#

wat

severe gyro
#

Discord would though

carmine summit
#

Ive tried it

outer perch
#

@carmine summit send an email to Discord Support

carmine summit
#

Won't work

#

I have also sent an email to discord support

#

They answered

quartz kindle
#

lol rip

earnest phoenix
#

discord support is completely useless

#

chances of getting to a real human is like 1/1000

carmine summit
quartz kindle
#

but you can get a gov id if you request one no?

outer perch
#

my ID has expired, and I can't renew it cuz of Covid-19 and had to be delayed to December

carmine summit
#

but you can get a gov id if you request one no?
@quartz kindle FUCK YOU COVID

quartz kindle
#

lmfao

earnest phoenix
#

how did u i do the bot sent the 15 first roles?

 let rolemap = message.guild.roles
            .sort((a, b) => b.position - a.position)
            .map(r => r)
            .join(",")

thats what i type

quartz kindle
#

ask a friend to verify for you

carmine summit
#

ask a friend to verify for you
@quartz kindle Can you be my friend?

severe gyro
#

I can be the friend if needed

blissful coral
#

UwU double ping

earnest phoenix
#

just pocket one of your parents' / guardians' ID while they're not looking 😏

quartz kindle
#

@carmine summit nope sry :^)

carmine summit
earnest phoenix
#

but seriously just ask your parent/guardian

carmine summit
#

They won't allow

#

And I might get eaten

#

If i do that

regal saddle
earnest phoenix
#

getting the birth cert is not a problem, stripe doesn't accept the birth cert lol

severe gyro
#

I can be that friend though

carmine summit
regal saddle
#

sad

boreal iron
#

cough Darkweb

blissful coral
rare plume
#

Yes?

unborn ridge
#

i am getting problem with emojiinfo

#

pls

#

i have all other commands

#

just emojiinfo

rare plume
#

Whats the problem?

unborn ridge
#

i dont know how to define emoji

#

i made channel role guild and userinfo

rare plume
#

My way is also bad

unborn ridge
#

plsss help

rare plume
unborn ridge
#

😭

rare plume
#

So i have the id and then get the emoji from the cache

#

Thats how i do it

unborn ridge
#

like to get role from message

earnest phoenix
#

stop command doesnt exist

unborn ridge
#

we do

#

message.mentions.roles.first()

#

how to get emoji

earnest phoenix
#

how to stop command

#

that is running

rare plume
unborn ridge
#

i saw

#

but

rare plume
#

I meaned shovel

earnest phoenix
slender thistle
#

uhhhhh

#

what