#development

1 messages ยท Page 619 of 1

potent saffron
#

Why not ? xD

copper cradle
#

the dev portal literally has its own calculator

#

and invite generator

potent saffron
#

Oh right

smoky mica
#

yeah idk either lol

copper cradle
#

lmao

potent saffron
#

I forgot that detail Xd

fiery stream
#

ayy

#

i need dbl api server post help

smoky mica
#

for a second i felt its official discord until i read the footer lool

#

elaborate

fiery stream
#

mistois can u help me

slender thistle
#

DBL api server post?

fiery stream
#

@slender thistle yeo

slender thistle
#

what lib

fiery stream
#

js

slender thistle
#

Use dblapi.js

fiery stream
#

whats that is that the whole bot hingy

slender thistle
#

npm package, it has autopost

fiery stream
#

is that a third party discord.js thingy

slender thistle
#

Not really d.js

#

but yes

fiery stream
#

but i already have my bot running up on discord.js

slender thistle
#

You are not modifying your already running bot by using dblapi.js

fiery stream
#

im getting confused

slender thistle
#

dblapi.js is literally just a package that you can implement into your bot

#

Do you know what npm is

fiery stream
#

lmao there is nothing link dblapi.js on npm website

#

like

#

im searching it

slender thistle
#

You are not searching well enough

fiery stream
#

so i can ust add this in on ready function dbl.on('posted', () => { console.log('Server count posted!'); })

#

huh?

#

@slender thistle ^^^^?

#

event i meant

slender thistle
#

If you define dbl and implement it into your bot, yes

fiery stream
#

got it

grizzled spruce
#

@gilded plank botinfo @molten gyro

gilded plankBOT
#
Bot info
ID

577522747123564565

Username

Himawari Hokori

Discriminator

7463

Short Description

A cute multi purpose bot centered around Fun and Administration!

Library

discord.js

Prefix

-]

Total Upvotes

13

Monthly Upvotes

12

Server Count

22 Servers

Owner(s)

@ruby zephyr
@grizzled spruce

earnest phoenix
#

My bot is hitting 2400 soon, should I shard? would anyone have sharding tutorial for discord js?

modern sable
#

@earnest phoenix Discord refuses to connect your bot once you go above 2500 without shards

#

the usually recommended amount is 1000/shard iirc

earnest phoenix
#

I know..sharding looks really tedious though

shy rose
#

Yes it is a bit

But it's more tedious once you've hit 2500 and your bot refuses to connect

pliant needle
#

I'm halfway tempted to start now tbh

#

And I'm at 11

mossy vine
#

its actually not even too hard to set up from my experience

earnest phoenix
#

๐Ÿ˜ฎ I sharded my bot

#

that was so overwhelming

copper cradle
#

@simple silo ```bash
$ npm i express

mossy vine
#

you dont need the $, it works anywhere with npm installed

copper cradle
#

ik

#

I just thought it looked nice

fiery stream
#

Yo whats the best heroku alternative idc if its paid

grim aspen
#

a vps

fiery stream
#

No with continuous deployment

#

Vps doesnt have that

sly swift
#

What bot can auto-delete all messages in a channel except for 1?

I want to make a self-role channel that keeps just one pinned message and deletes all the [.iam role] and any other messages

woeful flare
#

you can set YAGPDB to delete its messages and your messages that are used to command it immediately

#

thats what we do

ancient vine
#

In need of some advice. How would you deal with your bot throwing missing permission errors in other servers?
Noticing a trend of users adding the bot, trying a command and when nothing happens they just kick it. But I know they've disabled message permissions or something that prevents the bot from speaking

mossy vine
#

.catch

ancient vine
#

Feels annoying to lose a potential server of users just because the owner has no clue how discord and rรดle management works

copper cradle
#

@sly swift use message.delete(200)

#

If you're using Discord.js ofc

sly swift
#

@woeful flare I can delete successful commands right now, but not other text messages

copper cradle
#

just use message.delete(200) smh

#

at the beginning of the command

woeful flare
#

you can set up a custom command with that bot so it automatically does something every so many minutes or even seconds, and then combine that with a clean command and your set to go, which it also has.

#

@sly swift

#

youll set up a timed trigger for 1 second to activate the clean command at such intervals.

delicate zephyr
#

@pliant needle I literally set up sharding before I even developed the bots commands

grizzled spruce
#

So how does one customize ther bot page?

#

?

inner jewel
#

html, css, js

#

js only for certified

grizzled spruce
#

Well Ik that but where do we customize it?

inner jewel
#

on the long description

mossy vine
#

in long desc

grizzled spruce
#

Oooo

#

Ok then

#

HTML HERE I COME

somber ember
#

Oh we can do that

grizzled spruce
#

Take a look

#

My background is so nice ๐Ÿ˜ƒ

earnest phoenix
#
let sug = new Discord.RichEmbed()
	.setColor("GREEN")
	.setTitle("๐Ÿ’ก โ€ข Nouvelle suggestion")
	.setDescription(`${suggestion}`)
	bot.channels.get("580064675996237864").send(sug);
	sug.react("โœ…").then(message.react("โŒ"))

I have a doubt about the sug.react
its will work?

mossy vine
#

no

#

of course not

#
bot.channels.get("580064675996237864").send(sug).then(msg => {
    msg.react("")
})```
whole hamlet
#

Can anyone remind me how to display a channel name in an embed (d.js) it's slipped my mind

earnest phoenix
#

@whole hamlet

whole hamlet
#

That not how I wanted to do it but thanks, I've got it now @earnest phoenix

earnest phoenix
#

u welcome

#

@earnest phoenix What kind of stats?

#

I don't know how to apologize.

#

I do not know how to do the stats fortnite

mossy vine
#

you can

scarlet phoenix
#

Look for a fortnite stats API, then you would query that

mossy vine
#

you need to use an external API

#

^

whole hamlet
#

I used the fortnite public api, can we link it?

mossy vine
#

find an api

#

read its documentation

#

implement it

#

done

scarlet phoenix
#

Idk if thats the best one, but you made me type fortnite into my search bar, so I will never forgive you

whole hamlet
#

You could use the npm fortnite package

pallid zinc
#

Any example of self assignable role

modern sable
#

wrong channel and please dont repost your question in 3 seperate channels

slender thistle
#

seperate? Did you mean separate?

grizzled spruce
#
const dbl = new DBL("", { webhookPort: , webhookAuth: '' });
dbl.webhook.on('ready', hook => {
  console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);
});
dbl.webhook.on('vote', vote => {
  console.log(`User with ID ${vote.user} just voted!`);
});```
#

what am I doing wrong

#

whenever anyone votes i get this message

grim aspen
#

ffs no

mossy vine
#

see now youre getting muted

grizzled spruce
#

ooof too long lemme get screenshot

earnest phoenix
#

STOP RIGHT THERE

#

I SAID NO

mossy vine
#

imagine making discord bots in 2019

grizzled spruce
#

i get that error message

#

what im i doing wrong

#
const dbl = new DBL("", { webhookPort: , webhookAuth: '' });
dbl.webhook.on('ready', hook => {
  console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);
});
dbl.webhook.on('vote', vote => {
  console.log(`User with ID ${vote.user} just voted!`);
});```
unique nimbus
#

there is no catch block whatever that is

slender thistle
#

Empty string as token inb4

mossy vine
#

youa rent even getting it from your code

grizzled spruce
#

getting what?

mossy vine
#

the error

#

its from dblapi.js/index.js

grizzled spruce
#

...

#

hmm

#

oh wait wrong error message

#

heres the one

#

it says my webhook is running but whenever someone votes i just get that error

#

help anyone?

earnest phoenix
#

so im creating a webhook like this:

const hook = message.channel.createWebhook("webhook name");```
and im trying to send messages with it using this
```JAVASCRIPT
hook.send("hello");```
but console is saying `hook.send` is not a function
i am so braindead rn i have no idea what to do
mossy vine
#

you need .createWebhook().then(webhook => webhook.send())

earnest phoenix
#

thank you so much

#

how would i send messages with that webhook in another file?

copper cradle
#

what?

earnest phoenix
#

npm i express

#

2 fast 4 u xyber

#

@simple silo delete the package in node_modules

mossy vine
#

Can any of you read lol

earnest phoenix
#

Use client.user.setActivity() @noble halo

#

Just read

mossy vine
#

And missing permissions as well

copper cradle
#

@simple silo lol

#

sudo -s

#

and then try again

#

it makes no difference

#

knew it

earnest phoenix
#

Delete "express" in node modules

noble halo
#

bot starting is error

earnest phoenix
#

And do npm i express

#

Or npm i express@latest

copper cradle
#

si

#

use

earnest phoenix
#

@noble halo just read docs about setActivity

copper cradle
#

npm remove express

#

are you in your main user

earnest phoenix
#

client.user.setActivity('I like potatoes', { type: 'WATCHING' });

#

^

copper cradle
#

it may be that you don't have permissions

earnest phoenix
#

@noble halo

noble halo
#

?

earnest phoenix
#

Look up

earnest phoenix
#

You can dl package without npm on glitch

#

@noble halo client.user.setActivity('I like potatoes', { type: 'WATCHING' });

#

That

#

Put your activity in string

#

And you can change the type "WATCHING, PLAYING, STREAMING"

noble halo
#

ฤฑ make but the not work

earnest phoenix
#

@noble halo what is the error

noble halo
#

client.user.setActivity('YouTube', { type: 'WATCHING' });

earnest phoenix
#

Yeah

#

But

#

Wath is the error

noble halo
earnest phoenix
#

Dude

somber ember
#

Ur using set game

earnest phoenix
#

Just remplace setGame by setActivity

somber ember
#

Its deprecated

earnest phoenix
#

@noble halo

#

Done? @noble halo

noble halo
#

i using

client.user.setActivity('YouTube', { type: 'WATCHING' });

earnest phoenix
#

Yeah

noble halo
#

but

#

it gives an error

earnest phoenix
#

Delete setGame

somber ember
#

Maybe ur not saving

earnest phoenix
#

Do ctrl+h -> setGame - > setActivity

noble halo
#

okey

earnest phoenix
#

And dont forgot to save

noble halo
#

replaced

#

i using glitch

#

auto saving

earnest phoenix
#

Oh okay

#

And now its good?

noble halo
#

still same

earnest phoenix
#

Do you have delete setGame?

noble halo
#

yes

#

replace setActivity

somber ember
#

send ur code

noble halo
#

ur code?

somber ember
#

your code

noble halo
#

Invite Others to Edit code?

grim aspen
#

no

#

send your code here

somber ember
#

No just send the part where it says is the error

noble halo
#

one place does not give error

#

opening to error

copper cradle
#

why don't you send a pic of your code?

noble halo
#

i turkish bad english sorry :F

#

๐Ÿ˜„

copper cradle
#

don't worry

#

just send a pic of your code so that we can help

noble halo
earnest phoenix
#

Save

#

Ctrl+s

noble halo
earnest phoenix
#

Make a error

noble halo
#

what?

earnest phoenix
#

To make your bot crash

#

And restart it

#

Idk if you can restart bot in glitch

grim aspen
#

i don't think you can

#

never used glitch

earnest phoenix
#

Same

copper cradle
#

send a pic of your entire code

earnest phoenix
#

Without token :)

copper cradle
#

do u still have tht setGame anywhere in the code?

#

^
^

earnest phoenix
copper cradle
#

@simple silo wait, so, you're installing express through glitch?

#

oooooh

#

you can't do that

earnest phoenix
#

i think glitch has a module for install package without npm

copper cradle
#

just install the dependency anywhere else and copy the thing in the package.json

#

not the whole thing tho

noble halo
#

How do I solve the error? (missing permission) @earnest phoenix

pliant needle
#

@delicate zephyr hawt

copper cradle
#

give the bot the permission it requires

#

smh

#

Can't you read?

noble halo
#

i read

copper cradle
#

Missing permission

earnest phoenix
#

@noble halo if(!message.guild.me.hasPermission('CREATE_CHANNEL')) return;

#

Line 216

#

i think is that

copper cradle
#

nope

#

its hasPermission

earnest phoenix
#

oh yeah

#

edit ^

copper cradle
#

bruh

#

why are you sing ` ` instead of ```js

```

smh

flat bloom
#

lol idk why but i named my bot into Sireno lol

earnest phoenix
#

bc its not a big code

#

just a line of code

copper cradle
#

but still

#

it looks awful

earnest phoenix
#

no

#

i have a rpg bot

tidal oar
#

How can i make multiple prefixes, i tried to make it but i wasnt very successful

#

&stats

#

& is the only prefix

#

I meed it to be a mention too

#

Like this

#

@earnest phoenix stats

#

What type of music

#

No i dont, it was my first project but it uses alot resources and i cant keep it up

earnest phoenix
#

its good @noble halo

scarlet phoenix
#

depends, I store each guilds prefixes in a mysql db table. Then when a message is posted in any server i pull that servers settings and cache them. On each message from that guild I check against the prefixes defined in the settings

noble halo
#

thank you @earnest phoenix

earnest phoenix
#

np

noble halo
#

error is 'Manage Channel' permission

tidal oar
#

I mean i dont need customizable prefixes right now @scarlet phoenix, i just need to know how i can use multiple prefixes at the same time

earnest phoenix
#

what ? @noble halo

noble halo
#

sorry

tidal oar
#

Theres alot of Turkish people

#

Lol

noble halo
#

thank you again

scarlet phoenix
#

Same thing, just skip pulling the settings

if matches prefix1 or prefix2:
    dostuff()
#

Basically what OR was made for

earnest phoenix
#

@noble halo np ;)

scarlet phoenix
#

Fairly trivial

tidal oar
#

I never used or ๐Ÿ˜‚ wow

#

I will check it out

#

For now im not on pc

#

I used || or && most of the time

grim aspen
#

what library are you using for your bot?

tidal oar
#

Js

scarlet phoenix
#

That will help you

grim aspen
#

explains much

tidal oar
#

Thanks

earnest phoenix
#

you can use ||, or

tidal oar
#

Oh so i dont need || to specify "or"

earnest phoenix
#

?

#
if(one or two)
if(one || two)
#

Dont use &&

tidal oar
#

Okay thanks

earnest phoenix
#

||, or = or
&& = and

tidal oar
#

Yes i know i didnt know we could use text

earnest phoenix
#

Okay

cold canyon
#

Now what

earnest phoenix
#

Write dbl css github

#

On google

#

@cold canyon

grim aspen
#

i was just looking at that

pine flicker
#

Hey, for anyone wondering, you can change the text color on the report and support server button with this code:

    color: (hex color code here) !important;
    transform: translateY(0px);
}```
#

You can also change the text color of the bot name:

    color: (hex color code here);

}```
earnest phoenix
#

Thx

#

I need that

pine flicker
#

I wrote that

#

I figured it out

#

With a little more advanced code, you can add a colored border around the bot's avatar:

    height: 100%;
    border: 4px rgba(rgba color sequence) solid;
    border-radius: 50%;
}```
earnest phoenix
#

Ohh nice

grizzled spruce
#
const dbl = new DBL("", { webhookPort: , webhookAuth: '' });
dbl.webhook.on('ready', hook => {
  console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);
});
dbl.webhook.on('vote', vote => {
  console.log(`User with ID ${vote.user} just voted!`);
});```
#

Itโ€™s saying Thers an API error and itโ€™s not authorized

grim aspen
#

did you ever put your api token?

grizzled spruce
#

I did

grim aspen
grizzled spruce
#

Hmmm thatโ€™s th one I put

#

Wait

#

I found th issue

#

I never set it up on my bot page omg

earnest phoenix
#

anyone here knows about sharding?

dreamy breach
#

What library are you using?

earnest phoenix
#

discord.js

dreamy breach
smoky spire
#

internal sharding or regular?

earnest phoenix
#

i know about this, i have a question it didn't answer

dreamy breach
#

Okay, tell us ;p

earnest phoenix
#

i have 2 files, shards.js and bot.js, you can probably know what each does, but how do i get the sharded token in bot.js?

dreamy breach
#

bot.js has commands or events?

#

Or it's a config file only

smoky spire
#

client.token

earnest phoenix
#

so client.token already has token in it after sharded? so no need client.login?

dreamy breach
#

Normally yeah

#

Once your bot is started

earnest phoenix
#

that's what i wanted to know, thanks

#

it didn't work, i had to use client.login with a specified token to get the bot to work, but i wanted to know if after sharding is there a variable that contains the token in bot.js

steel heath
#
client.settings = {
    token: client.token,
    id: client.user.id,
    djsversion: require("discord.js").version
}``` if you put this in your `ready.js`, I assume it'll work so you can get token with `client.settings["token"]` in anywhere you have the client variable
earnest phoenix
#

Hey Can you help Me

grizzled spruce
#

Hello

earnest phoenix
#

Hello @grizzled spruce

#

What is the problem

grizzled spruce
#

You need help?

#

Your brief description is too long, you need to make it shorter. And You need to make the long description longer

earnest phoenix
#

Ok , Thk

grizzled spruce
#

Np

hearty lake
#

bruh

earnest phoenix
#

@hearty lake

#

Help me

grim aspen
#

with what

#

help me is not specific enough

earnest phoenix
#

Why does not he show me the page of Bot

grim aspen
#

403 is the forbiddon error code

#

you tried accessing a certain part of the site and it was not allowed

copper cradle
#

@earnest phoenix are you trying to create a bot or to add one to the site

#

bc yesterday someone thought that this was the site to create the actual bot

earnest phoenix
copper cradle
#

bruh

#

At least answer lol

earnest phoenix
#

The link does not work

copper cradle
#

ofc it doesn't work

#

the bot still needs to be approved

#

just wait

#

the process can take up to 2 weeks

#

what

earnest phoenix
#

Ok , thk

copper cradle
#

np

copper wraith
#

Hey can someone tell me on how to make a command send a message to you in dms? Iโ€™m using python for my bot!

copper cradle
#

oof

#

idk anything about python

#

but I've seen python bots

#

so I guess it's something like

#

message.author.send()

#

or idk

hushed quarry
#

@copper wraith you need a user object (message.author), then just call send

#

@copper cradle if you don't know, then don't respond... this is common sense

copper cradle
#

I had to try

#

Well

#

I literally got it

earnest phoenix
#

Hey @copper cradle

#

When will bot accept?

copper cradle
#

._.

#

I told you

#

Idk

#

this process can take up to 2 weeks

#

or less

earnest phoenix
#

Ok Thk , Gaes

copper cradle
#

np

earnest phoenix
#

,Give me a link ServerSupport you

copper cradle
#

there's no support server

earnest phoenix
#

Mmm. Ok

earnest phoenix
#

so i am creating a webhook and i give a url for the profile picture but the profile picture stays default and doesn't use the one i provide

#

does anyone know why this could be happening?

copper cradle
#

its "avatar_url"

earnest phoenix
#

it was something wrong with the linj

#

link

#

ty anyway

copper cradle
#

oof

west spoke
#

Cant you use a file?

earnest phoenix
#

@hasty hedge

earnest phoenix
#

Hi Gaes

#

Can Help Me

ruby sluice
#

Hi What is logging tag

#

what uses of logging

copper cradle
#

what

ruby sluice
#

there is logging tag right ?

grizzled spruce
ruby sluice
#

ow

grizzled spruce
ruby sluice
#

give a role to the bot

grizzled spruce
#

Can somebody smert plz explain what my error is telling me

#

I started getting this error after setting up the DBL api webhook

ruby sluice
#

or make the bot role the highest

#

at discord server

grizzled spruce
#

? This is for the webhook that notifies me when someone votes

ruby sluice
#

if missing permissions that mean that the bot no have permissions

grizzled spruce
#

My bot is set to require admin...

ruby sluice
#

set the bot role to the top ?

grizzled spruce
#

I canโ€™t do that for every server the bot is on

warm flame
#

Oh no a bot that requires admin

grizzled spruce
#

Dont most

warm flame
#

No

grizzled spruce
#

? Every one Iโ€™ve ever used does lol. Either that or it requires 1,000,000 perms so it practically has admin

ruby sluice
fiery stream
#

ayy my iframe doesnt work but the code is right help

lilac geyser
#

I'm putting in it my bot support server and it's annoying

#

I've seen other bot servers without that

modern sable
#

putting < > around the link disables any embeds that it would generate

lilac geyser
#

Oh

#

Around the link

modern sable
#

yup

#

doesn't work for invites though
<https://discord.gg/EYHTgJX> still embeds

lilac geyser
#

it worked, thanks

#

Yeah thanks

modern sable
short siren
#

The embed is still there Thonk

modern sable
#

they're two seperate messages

#

<https://discordbots.org/> shouldn't generate one

dreamy breach
#

Hey pandaamazed

earnest phoenix
#

huum

#

ุŒWhat? @earnest phoenix

#

leash

lapis meteor
#

it works lol

pallid zinc
#

need help with react roles node.js

#

anyone?

pallid zinc
#

how to set streaming here
```
const activities_list = [
"v2.0",
${bot.users.size} users use me,
${bot.guilds.size} servers,

]; 


 setInterval(() => {
    const index = Math.floor(Math.random() * (activities_list.length - 1) + 1); // generates a random number between 1 and the length of the activities array list (in this case 5).
    bot.user.setActivity(activities_list[index]); // sets bot's activities to one of the phrases in the arraylist.
}, 5000); // Runs this every 10 seconds.

});```

copper cradle
#

.setActivity('snails', { type: "STREAMING", url: "your twitch channel url"});

#

I'm not sure if it was like that

pallid zinc
#

url is important

copper cradle
#

yes

#

@pallid zinc

pallid zinc
#

ok

#

you tube url with work

#

@copper cradle

calm saddle
#

What is the best way to bring in a variable into a bot command, I am trying to make a simple bot that you can call with !weather-NAMEOFCITY and then call a weather API to return the result

copper cradle
#

no

#

that's pretty simpme

#

but firsf

#

oof

#

gtg

calm saddle
#

i started with the example online which replies to !ping with pong

grim aspen
#

which library are you using?

#

if discord.js, then there's https://discord.js.org/#/

calm saddle
#

Javascript

grim aspen
#

then first link i've sent, but it's discord.js not javascript for library

calm saddle
#

thisi s what i want

#

thanks dude

neat tinsel
#

Anyone elses bot randomly reconnect to Discord's API

#

Or when their bots playing music it randomly disconnects without an error

copper cradle
#

@neat tinsel yes

#

this happened to me yesterday

neat tinsel
#

I'm sure it was then it happened

#

Bots playing status was gone

copper cradle
#

yeah

neat tinsel
#

Been happening quite a bit recently

copper cradle
#

yes

#

I had to reset it with the eval command

#

since I las listening to music

neat tinsel
#

The bot disconnecting from voice channels is the most annoying

copper cradle
#

yeah

grizzled spruce
#

I set up a webhook to listen for votes but whenever someone votes I just get this error

hushed berry
#

have you read the error @grizzled spruce

grizzled spruce
#

Yes

#

And Iโ€™m confused

hushed berry
#

the webhook bit doesnt matter then

#

whats the webhook listener doing?

grizzled spruce
#

Wait

#

I may have found the use

#

*issue

grizzled spruce
#

Nope Iโ€™m still getting the error

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

how do you get a webhook's id & token? i cant even find it in the settings for the webhook

#

js

mossy vine
grim aspen
#

first off

#

add your bot and wait for it to get accepted

#

then do what xyber said

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

so i can't ask for help if i dont have an accepted bot then

#

ok

ruby dust
#

@earnest phoenix webhook's id and token are visible directly in the webhook URL, which are the last 2 arguments like in the cyber's example

earnest phoenix
#

nice

#

thanks

#

can i do webhook.id to get the id?
thatโ€™s what it seems like in the docs

pallid zinc
#

How can I auto role bot a different role and member different?

#

With filter?

#

Will it work it filter

ruby dust
#

Getting the webhook id like that only works if you already have the webhook object defined

pallid zinc
#

I can filter bot

#

It's easy

#

.filter

copper cradle
#

I hate when people Define Discord in every command when using a command handler

#

why can't they just pass the god damn thing

earnest phoenix
#

๐Ÿ˜ณsweat

pallid zinc
#

client.channels.get("580011269780799541").setName(`Member Count : ${guild.members.filter(member => !member.user.bot).size}`, `voice`) }, 1 * 5000);

copper cradle
#

bruh

pallid zinc
#

Sorry

copper cradle
#

what

pallid zinc
#

Wrong code

copper cradle
#

lol

pallid zinc
#

It work fine

copper cradle
#

then

errant ocean
#
    const embed = new RichEmbed()
        .setAuthor(message.author.username, message.author.displayAvatarURL)
        .addField("Server Name", message.guild.name)
        .addField("Server ID", message.guild.id)
        .addField("Owner Name", message.guild.owner.user.tag)
        .addField("Owner ID", message.guild.ownerID)
        .addField("Server Region", message.guild.region)
        .addField("Server Creation", message.guild.createdAt)
        .addField("Members", message.guild.memberCount)
        .addField("Channels", message.guild.channels.size)
        .addField("Emotes", message.guild.emojis.map(e=>e.toString()).join(", "))
        .setColor(settings.embed.DEFAULT)
        .setFooter(settings.bot.name + " " + settings.bot.version, client.avatarURL)
#

Why does this error in guilds where the bot doesn't have proper perms?

#

(here for example)

mossy vine
#

because... the bot doesnt have proper permissions... so it errors...

cerulean jacinth
#

you will die of lag

errant ocean
#

@mossy vine It can send message though and other bots send the same kind of embed

#

I'm wondering what the specific issue is

#

nvm got it

#
    const emotes = message.guild.emojis.map(e=>e.toString()).join(", ")

    if (message.guild.emojis.size < 1) {
        emotes = "None"
    }
#

Is this going to properly check if there are no emojis in the server?

candid yew
#

-bots @peak fractal

gilded plankBOT
#
Reverse#0001
Bots

@reef moat
@gritty harbor

pallid zinc
#

how can i set var that defind in global in function

#

and also set to global

#

EX

function setvar() {
    something = "newthing";
 }
output(something);```

but i test it , something become undefine
late hill
#
  1. there's no reason to use var there
  2. the function is never called
pallid zinc
#

Lol

ruby dust
amber fractal
#

Bearer is like a user one for OAuth2 iirc

#

You use that for authing on a website

ruby dust
#

hm ok

scarlet phoenix
#

Bearer tokens follow the RFC6750 standard

#

Markdown pls

ruby dust
#

alright, but now I have another issue

#

I managed to send a message and delete the message, but for some reason I can't bulk delete messages

#
>>> r = requests.post('https://discordapp.com/api/channels/420467083323768833/messages/bulk-delete', headers = headers, data = {'messages': [580422554456686592, 580422706009210880, 580422729853960192]})
>>> r
<Response [400]>
>>> r = requests.post('https://discordapp.com/api/channels/420467083323768833/messages/bulk-delete', headers = headers, data = {'messages': ['580422554456686592', '580422706009210880', '580422729853960192']})
>>> r
<Response [400]>
#

and I can't find the issue, if there is one like a typo

scarlet phoenix
#

My guess is your body is malformed

#

Idk for sure, but the 400 would point that way

#

Or one or more of the IDs cant be deleted for whatever reason

ruby dust
#

those are all messages sent today and by the client itself

#

in discord docs it says that it expects the messages parameter to include an array of ids

#

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

quiet topaz
#

why this won't work?

#
  "token" : "(censored)",
  "owner" : "huz17#4371",
  "joincmd" : "no",
  "login" : "login",
  "commands" : {
    "queue" : "no",
      "volumen" : "no",
      "stop" : "yes"
      
     
    }
  
}```
#

the token is there, but i don't want, that somone see it7

copper cradle
#

do u get an error in the console?

quiet topaz
#

yes

#

wait

copper cradle
#

Incorrect login details?

quiet topaz
#

    throw err;

    ^


SyntaxError: /app/config.json: Unexpected token : in JSON at position 108

    at JSON.parse (<anonymous>)

    at Object.Module._extensions..json (internal/modules/cjs/loader.js:720:27)

    at Module.load (internal/modules/cjs/loader.js:600:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)

    at Function.Module._load (internal/modules/cjs/loader.js:531:3)

    at Module.require (internal/modules/cjs/loader.js:637:17)

    at require (internal/modules/cjs/helpers.js:22:18)

at Object.<anonymous> (/app/bottot.js:17:16)

    at Module._compile (internal/modules/cjs/loader.js:701:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)


internal/modules/cjs/loader.js:723

    throw err;

    ^


SyntaxError: /app/config.json: Unexpected token : in JSON at position 108

    at JSON.parse (<anonymous>)

    at Object.Module._extensions..json (internal/modules/cjs/loader.js:720:27)

    at Module.load (internal/modules/cjs/loader.js:600:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)

    at Function.Module._load (internal/modules/cjs/loader.js:531:3)

    at Module.require (internal/modules/cjs/loader.js:637:17)

    at require (internal/modules/cjs/helpers.js:22:18)

at Object.<anonymous> (/app/bottot.js:17:16)

    at Module._compile (internal/modules/cjs/loader.js:701:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)``` i host it over glitch most time
#

oops i send it more than one time

copper cradle
#

hmm

#

where's position 108?

#

can u send a pic of the json file?

quiet topaz
#

yes

#

here

fiery stream
#
<!-- It should work. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
#

Why doesnโ€™t that i frame work

copper cradle
#

lemme see

fiery stream
#

@copper cradle any ideas

copper cradle
#

nope

#

my internet is dead

#

I'm using my school's internet

floral stone
#

Why is my border inside the image and not around it?

#
         .img {
         margin-top: 25px;
         margin-left: 25px;
         width: 450px;
         height: 450px;
         border-width: 5px;
         border-color: #000000;
         border-style: solid;
         border-radius: 250px;
         } ```
#
   <body>
      <div class="profiles">
          <img class="img" src="https://i.imgur.com/X2XG1tU.png">
      </div>
   </body>
</html>```
#

What is causing the problem?

main spoke
#

=m p

grim aspen
hearty lake
earnest phoenix
#

I need some help with adding a catch block to my code because this server doesn't let bots have perms..So I am consistantly getting my CMD/Console log filled with DiscordAPIError Missing Permissions warnings/errors. and yes I am new to coding and every website I look at for documentaion doesn't help me.

mossy vine
#

.send().catch(e => {})

earnest phoenix
#

Where in my code do I put that is my 2nd problem

#

on a method that returns a promise

mossy vine
#

^

#

anywhere you get the errors at

earnest phoenix
#

Thanks

normal epoch
#

-help

pliant gorgeBOT
#

Hello ๐’ฏโ„‹โ„ฐ๐’ฅ๐’ช๐’ฆ๐’œโ„›!
Need help? Get more help and information here: https://discord.gg/pFPrbyq

Some FAQ:

+ Does this bot/website have a bump function?
No, Discord Server List does not support any bumping functions.
``````diff
+ My image|member count|emojis|name wont update?
Try updating your server on the website.

Go here (https://discordbots.org/servers/264445053596991498/edit) to edit Discord Bot List.
This bot does not have any other commands yet!

grim aspen
dawn kindle
#

I fixed the respond thingy

#

Now can any mods unmute my bot?

grizzled spruce
#

Ping whichever mod muted ur bot

dawn kindle
#

@modern sable

modern sable
#

bot id?

#

unmuted it

dawn kindle
#

alright thanks

split jungle
#

Hello, does anyone of you know, how to set a background color for here? my bot has grey, this one is blue, and how to set those words?

grim aspen
split jungle
#

oh

#

and this supports color setting too? or is this something special?

grim aspen
#

i think it's automatically applied, you can't change it

split jungle
#

how did that guy get the blue background

#

it has to be possible somehow appearnetly?

grim aspen
#

like i said

#

it's automatically applied

split jungle
#

and what you have to do, to get it automatically applied? ๐Ÿ˜‚

#

normal bots are all grey

grim aspen
#

set the playing status

split jungle
#

ooh, i will go try it ๐Ÿ˜ƒ

#

thank you Creeper55k

#

๐Ÿ˜ƒ โค

plucky sun
#

Can we modify players' perms in a specific text room? Please

#

(With discord.js)

cold canyon
grim aspen
#

i dmmed marco about it

cold canyon
#

Thx

earnest phoenix
#

my console log is still getting spammed with the DiscordAPIError missing permissions error and warnings. even after adding

var promise1 = new Promise(function(resolve, reject) {
  throw '';
});

promise1.catch(function(error) {
  console.log(error);
});
// expected output:

to my code

cold canyon
#

Try reinstalling discord.js @earnest phoenix

#

Wait

#

nvm

earnest phoenix
#

It's an anti-spam bot that doesn't have permissons here and it's flooding my console log with errors and warnings

#

btw

cold canyon
#

oof

earnest phoenix
#

using discord-anti-spam npm

copper cradle
#

just add this sv as an exception

#

in the command handler

#

and then the bot will ignore this server

earnest phoenix
#

I'll give it a try

#

One problem

#

Guys

#

I don't have different files with my bots commands in it

#

I cannot use fs

#

I write everything right, my console sees commands in file, but they dont get triggered

copper cradle
#

just add it at the beginning of the message event smh

#

@earnest phoenix

earnest phoenix
#

i even copy-pasted the discord's tutorial of it

copper cradle
#

lmfao

earnest phoenix
#

but im fine with current

#

but making it modular will make my code look clear

#

@copper cradle
I'll give it a try. I am sorry that I am not a super coder like evryone else here.. I am still learning.

cold canyon
#

I have 0 knowledge about js, but a fair knowledge for py

earnest phoenix
#

I have done some research and it isn't a message event that is causing the Missing Permissions error/warnings.. So I can exactly add if (message.guild.id === 'this server's id') return; to the beginning of a message event

#

the only message events that I have are kick, ban, ping, invite, help and vote

cold canyon
#

@modern sable Unban Sunny#9672, he/she didn't do anything

#

Sry if this is the wrong chat

modern sable
#

why was their server spammed in #logs then

#

and yeah it is

cold canyon
#

Sunny didn't do it tho @modern sable

#

Even tho he/she's a mod there

modern sable
#

kinda suspicious don't you think

cold canyon
#

No

#

Sunny DMed me too

modern sable
#

appeals are usually done by sending a ban appeal to appeals@discordbots.org

modest monolith
#

How do i make my bot DM/PM someone

cold canyon
#

What is an appeal btw

spring ember
#

@modest monolith do you have the user object available?

#

what is given to you

modest monolith
#

no and Sendmessage async

spring ember
#
try {
    await user.SendMessageAsync(msg);
} catch (Exception e) {
    ...
}
earnest phoenix
#

you can call SendMessageAsync on the user directly

spring ember
#

oh really?

earnest phoenix
#

yes

spring ember
#

oh yeah it's an extended method

#

@modest monolith what do you have

modest monolith
#

i figured it out

copper cradle
#

@earnest phoenix don't worry

red plover
#

Can't create an youtube api key, have anyone the same pblm?

fiery stream
#

Noo

red plover
earnest phoenix
#

Oof.
also I don't speak that language.

opaque eagle
#

I speak French kinda but not well enough to understand that

red plover
#

An error occurred while loading /apis/api/youtube.googleapis.com/credentials?project=platinum-analog-241302. Try Again.

opaque eagle
#

Try Again.

red plover
#

It's the same every time I go on ID for trying to get the key

opaque eagle
#

Honestly idk

#

Maybe b/c ur ISP, workplace, school, or government censors your internet access

copper cradle
#

^

red plover
#

Idk, I will see

#

Thanks anyway

opaque eagle
#

@trim swallow that requires a backend language

trim swallow
#

oh

amber fractal
#

so my bot randomly turned off like 5 hours ago, randomly. I havent updated it in like 2 months

#

I've been trying to fix it but nothing is working

#

I already regened the token

opaque eagle
#

If you want some way to authenticate a user, and it doesn't have to be an email-based login form, you can implement OAuth, which is generally much easier and doesn't require a backend language @trim swallow

red plover
amber fractal
#

Like the code starts, but it cant connect. No errors either

opaque eagle
#

@amber fractal what lib/lang

amber fractal
#

Discord.js

#

It's logging my before connect stuff

#

like starting my dblapi

opaque eagle
#

Try this... js const client = new Discord.Client(); client.login().then(() => console.log("Connected!"));

amber fractal
#

Nope, but it still logs the dblapi stuff

opaque eagle
#

Show code

amber fractal
#

Let me try restarting the vps first

opaque eagle
#

lmao go ahead

amber fractal
#

Like I said I havent updated it since I moved to master

opaque eagle
#

Ohhhhh that says a lot

#

A heck of a lot of things changed in master

amber fractal
#

Well I changed all my code when I switched

opaque eagle
#

Are u sure ur not "suppressing" any errors?

#

Oh

amber fractal
#

I switched like 2 months ago

#

Lol

opaque eagle
#

Lmao

amber fractal
#

Yeah, not even sentry has anything

#

which is just the error logger that sends to my phone if there's errors

opaque eagle
#

Yeah ik

#

Are u sure ur not "suppressing" any errors?

Like doing smth similar to this so that the errors don't show upjs process.on("unhandledRejection", () => {})

amber fractal
#

No, even if I had that it'd go to sentry

opaque eagle
#

ok

amber fractal
#

Restarting the vps did nothing gimme a sec

opaque eagle
#

Is there a GitHub repo or smth that I could look at?

amber fractal
#

Gotta edit out a bunch of stuff

#

No, I'll show the code in a sec

opaque eagle
#

Yep take ur time

amber fractal
quartz kindle
#

remove everything except discord.js and bot.login

#

then add things in stages

opaque eagle
#

OMG ur alive @quartz kindle

#

This is the dude I was getting confused with u @weak parrot

quartz kindle
#

its possible that something is stuck in a loop

#

Lol

amber fractal
#

Nah still didnt connect

#
const Discord = require('discord.js');
const bot = new Discord.Client({shardCount: 'auto'});
const fs = require('fs');
var privates = JSON.parse(fs.readFileSync("../private.json", "utf8"))

bot.login(privates.pt).then(() => {console.log('connected')});
#

But I just havent updated it in a while so idk why it'd just come up now

opaque eagle
#

Lmao why not just require() instead of JSON.parse(readdirSync())

amber fractal
#

I havent updated it in 2 months, that part has been there for 6 months

opaque eagle
#

Lmao

#

Forget the code

#

Make sure u can use curl or ping to connect to the api

amber fractal
#

I started this project with no coding knowledge

#

the api? you mean discord?

opaque eagle
#

yeah

amber fractal
#

I have no idea how to use curl :P

opaque eagle
#

What about just node-fetch or https

amber fractal
#

Well I know how to use those

quartz kindle
#

how many guilds is your bot in?

amber fractal
#

819

quartz kindle
#

remove the shard auto

opaque eagle
#

^

#

Sharding is only necessary after like 2k guilds
(Mandatory after 2.5k, but recommended after 2k)

amber fractal
#

It'd still spawn 1 either way

#

Ill try

#

no dice

quartz kindle
#

remove the json file and hardcode your token

opaque eagle
#

Lol

amber fractal
#

Still nothing

#

no error

quartz kindle
#

add a catch to it

#
client.login('my token')
 .then(console.log)
 .catch(console.error);```
amber fractal
#

I did

#

This is weird, I but another one of my bot's tokens in

#

and it worked

quartz kindle
#

then reset your token again

amber fractal
#

Nope

#

It refuses to connect to this bot

quartz kindle
#

then contact discord lol

#

maybe you got blocked/banned

amber fractal
#

I did

#

They are never helpful

#

it's worked on 2 of my other apps so far

#

To discord it always boils down to "there must be a coding error on your side"

quartz kindle
#

well idk what else to do. make a new folder, install d.js from scratch

#

i g2g

amber fractal
#

wtf, I started it with different code now tho

#

but it wont start with nothing

#

Finally

opaque eagle
#

If ur banned from discord you'd get an error along the lines of /api/v7/gateway

amber fractal
#

it started finally

opaque eagle
#

Lol

earnest phoenix
#

Nothing I do seems to work. Now I am getting DiscordAPIError Missing Access On top of the Missing Permissions error/warning in my console log.

opaque eagle
#

Showing the exact error would help a lot @earnest phoenix

earnest phoenix
#

that is the most recent one

#

the missing Permissions error/warning never changes

opaque eagle
#

The first one most likely has to do with your internet

#

The second one is that ur bot doesn't have permissions to do smth in a server

#

I'd check if the bot has those permissions first, and throwing an error if it doesn't (before doing the action that requires that permission).

earnest phoenix
#

My internet is ok and I don't have problems with other bots, And I know the issue with the Missing Permissions because this server doesn't give bots any permissions. So all of today I have been trying to get the bot to stop flooding my Console log with those warnings/errors and nothing I do seems to work. and I don't know about the Missing Access error/warning as that was the first time it ever happened.

west spoke
#

@earnest phoenix also could you make your name pingable :v

#

Without having to copy it

earnest phoenix
#

Ok

#

If I could change my nickname I would

west spoke
#

Change your username

earnest phoenix
#

Buutt I don waannaa..it looks cool.
have a mod or staff change my nickname for now..if more than you keep asking then I will

west spoke
#

:v

#

Also its hoisting I believe

#

No, surprisingly

#

Wow

fiery stream
#
    if (GoogleAuth.isSignedIn.get()) {
      // User is authorized and has clicked 'Sign out' button.
      
    } else {
      // User is not signed in. Start Google auth flow.
      GoogleAuth.signIn();
    }```
#

how can i add herf function in there?

copper cradle
#

herf?

fiery stream
#

href @copper cradle i make mistakes sorry

copper cradle
#

ooh

fiery stream
#

$('#sign-in-or-dashboard-button').html(user.w3.ig).href('/Dashboard.html');

#

so the href isnt working from there

copper cradle
#

I actually thought herf was something lol

fiery stream
#

lmao

earnest phoenix
#

what should i put for 1 week cooldown?

copper cradle
#

bruh

#

2,99x10^(23)

#

idk

lapis meteor
#

let muterole = message.member.guild.roles.find(r => r.name === "DJ")
if(!muterole) return;

#

(node:2414) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'roles' of undefined

copper cradle
#

remove guild

#

no

#

actually

#

remove message.member

#

ni

#

no

lapis meteor
#

ok lol

copper cradle
#

just remove member

#

sorry for that

#

it's 11 pm

lapis meteor
#

but i want if the member has the role DJ

#

not if the guild has role

copper cradle
#

then

#

remove guild

#

why are you calling it muterole?

lapis meteor
#

idk

copper cradle
#

TSC Tutorial right?

lapis meteor
#

wtf

#

no

#

hm

#

i copied it

#

the muterol only

copper cradle
#

idk

lapis meteor
#

and then i added it in my music code

#

there was a glitch in volume command

#

ex: &&volume 9999

copper cradle
#

you can limit the vol tho

lapis meteor
#

ik yes

ruby talon
#

@earnest phoenix for a week U think it should be 604.800

earnest phoenix
#

@earnest phoenix how old are you

vapid helm
#

Hi

__Respond to non-prefixed commands __
My bot responds to commands without prefix, on a channel previously authorized by a user with server management rights .permit. Does that break the rule?

Send automatic messages without being triggered by a prefixed command
My bot sends messages that are delayed (<5min) due to a user command, this breaks the rule?

ruby dust
#

this'd need more context for me to understand what you mean

vapid helm
#

in relation to what points? both?

ruby dust
#

on the first one I think it's fine, but I don't get the second one

vapid helm
#

e.g. : you send a timer with the command 1 (without prefix; but in authorized channel) , after a delay (like 30s for the command 1), bot respond

ruby dust
#

this should technically be fine, but like try to prove it to someone that saw a "random message" like that out of context

grizzled spruce
#

Can someone help guide me through adding the vote webhook to my code? I use discord.js, and I plan to add the webhook in my index, (which already has the server states api in it)

grizzled spruce
#
const dbw = new DBL(``, { webhookPort:, webhookAuth: '' });
dbw.webhook.on('ready', hook => {
  console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);
});
dbw.webhook.on('vote', vote => {
  console.log(`User with ID ${vote.user} just voted!`);
});```
#

Iโ€™m not getting any vote logs. Can someone tell me what Iโ€™m doing wrong

pallid zinc
#

How can I host 24/7 on glitch

mossy vine
#

you buy a vps

#

as a serious answer, you already are hosting 24/7 on glitch. if that doesnt work, use uptimerobot to ping your projects domain every 5 minutes

pallid zinc
#

I tried uptimerobot but my bot still go off after I leave glitch page

grizzled spruce
#

I use glitch and uptime robot and mine are both online 24/7

pallid zinc
#

Can you host for me

#

On glitch

mossy vine
#

or how about buying a vps

#

its cheap

earnest phoenix
#

thereโ€™s many guides how to setup a bot on glitch

#
if(time === "second"){
		time = "seconde(s)";
	} 
	else if(time === "minute"){
		time = "minute(s)";
	} 
	else if(time === "hour"){
		time = "heure(s)"
	} 
      message.channel.send(`**โœ… Salon verrouillรฉ pendant ${ms(ms(time), { long:true })}**`)

Translation to French so that its replaces for example hour through heures does not work. Who can help me?

pallid zinc
#

It showing err on 49 line

#

And there is no err

#

Line 49 is empty

#

Now tell xyber

earnest phoenix
#

@pallid zinc Check if you miss any }

#

Also, I'm using Heroku instead of Glitch. Heroku is much better and easier to use

#

You may use Heroku if you cannot use Glitch

grizzled spruce
#

heroku is free?

spring ember
#

Chan.send, so kawaii

ivory hazel
#

did you write the bot in glitch, or did you import it?

spring ember
#

also capitalizing a variable name, smh

late hill
#

what does the ms function do @earnest phoenix

earnest phoenix
#

You want the whole code?

#

@late hill

late hill
#

You're calling it twice which already makes me wonder what's going on

#

But yeh sure

#

Show the entire code for the ms function

earnest phoenix
#

ok

late hill
#

It's a function you wrote?

earnest phoenix
#

y

#

e

#

s

#
const ms = require('ms');

module.exports.run = (client, message, args) => {
	
  if (!client.lockit) client.lockit = [];
  let time = args.join(' ');
  let validUnlocks = ['release', 'unlock'];
  if (!time) return message.channel.send('**โŒ Veuillez introduire un temps.\n__Balises :__\n1s = 1 seconde\n1m = 1 minute\n1h = 1 heure.**');

  if (validUnlocks.includes(time)) {
    message.channel.overwritePermissions(message.guild.id, {
      SEND_MESSAGES: null
    }).then(() => {
      message.channel.sendMessage('**โœ… Lockdown dรฉsactivรฉ.**');
      clearTimeout(client.lockit[message.channel.id]);
      delete client.lockit[message.channel.id];
    }).catch(error => {
      console.log(error);
    });
  } else {
    message.channel.overwritePermissions(message.guild.id, {
      SEND_MESSAGES: false
    }).then(() => {
    	if(long === "second"){
		long = "seconde(s)";
	} 
	else if(long === "minute"){
		long = "minute(s)";
	}
	else if(long === "hour"){
		long = "heure(s)"
	} 
      message.channel.send(`**โœ… Salon verrouillรฉ pendant ${ms(ms(time), { long:true })}**`).then(() => {

        client.lockit[message.channel.id] = setTimeout(() => {
          message.channel.overwritePermissions(message.guild.id, {
            SEND_MESSAGES: null
          }).then(message.channel.sendMessage('**โœ… Lockdown dรฉsactivรฉ.**')).catch(console.error);
          delete client.lockit[message.channel.id];
        }, ms(time));

      }).catch(error => {
        console.log(error);
      });
    });
  }
};
module.exports.conf = {
  enabled: true,
  guildOnly: false,
  aliases: ['lock'],
  permLevel: 2
};

module.exports.help = {
  name: 'lockdown'
}
late hill
#

require('ms')

#

So it's a module you installed

earnest phoenix
#

yes ^^

late hill
#

What you're doing doesn't make sense

earnest phoenix
#

just a translation

grim aspen
#

what the hell is ms?

late hill
#

The ms module returns the "hours" "minutes" stuff

#

So you calling ms on your edited values

earnest phoenix
#

@earnest phoenix I am 19. why do you ask?
Yes I woke up a little bit ago and finished a shower, everyone having a convo rn you can ignore me as I am responding to a question that was asked at 2:30AM my time in this channel

late hill
#

Will obviously not work

fiery stream
#

Ayy

late hill
#

Edit them after using ms

earnest phoenix
#

not understood.

grim aspen
#

what package did you install?

#

i'm confused

#

to define the bot

fiery stream
#

How do i make href work

#

^^^^

late hill
#

I'm not gonna read your code because my dinner is ready

fiery stream
#

Where it says /dashboard

late hill
#

ms returns that

#

use ms

#

Then change the result

#

Your logic is just wrong

#

Switch order

#

And it'll work

earnest phoenix
#

k

pallid zinc
#

@earnest phoenix I also use heroku but now module problem

earnest phoenix
#

Ooooof

#

Your token gonna get leaked

grim aspen
#

i don't recommend using heroku for your bot's host

earnest phoenix
#

hey here is a crazy idea

dont use free hosting

late hill
#

yes gamers

#

bash bash bash but please use correct statements when doing so

#

Your token isn't going to get leaked because you use heroku

#

Heroku is an actual company that also has paid plans

#

They state that their repos are private

#

Big doubt that they are just lying about that.

#

In the case that they are, I'm pretty sure you can sue them and earn a good bit of money.

#

gO FOr iT

#

Anyway

white brook
#

Hey I'm on phone how can I switch a bot to be online I have a bot

#

Is a special tool to switch a bot to be online?

late hill
#

I wonder how people go about having their bot in multiple languages as their are multiple ways I can think of.
Do you use an api, do you make a request to that api each time, do you save the translations somewhere in your own database, ...?
If anyone wants to share their ways, that would be greatly appreciated. kannaHeart

#

Not looking for code, just the logic you're using. (but perhaps if you use an api, a link to that api would be nice)

mossy vine
#

the thing that would mostly make sense to me (and what im working on right now) is a webserver written in python that exposes a few endpoints, and my js bot just sends requests to it

spring ember
#

@white brook short answer no, long answer yes on few phones using Android 9

mossy vine
#

alternatively, you could just do what i did in my Freeman project, where i just use exec and grab the output from stdout

spring ember
#

I have my own app to run a bot

#

It sucks

late hill
#

oh

white brook
#

Pls what app??????

#

Plsssssssssssssss

mossy vine
#

did you write code for your bot

white brook
#

๐Ÿค” ๐Ÿค” ๐Ÿค”

#

No

mossy vine
#

uh..

#

you need to write some code in a programming language with a proper code editor to make your bot do... things

#

if you dont know any programming languages, there are shitty programs that essentially make the bot for you, but theyre bad

#

tfw you try to explain a simple concept nicely but whitenames just dont understand :(