#development

1 messages · Page 1074 of 1

stiff stream
#

like this?

#

?

fresh hatch
#

yes

stiff stream
#

k

jolly quail
#

Looks good

fresh hatch
restive furnace
#
.then((message) => {
        setTimeout(function() {
        message.delete()
      }, 3000)})
``` i think this will do

@fresh hatch spppoooooonfeeeeed spoonfeed

honest perch
fresh hatch
#

ayo, spoonfeeding check ✔️

honest perch
#

Since when does that emoji exist xd

fresh hatch
#

lmao

jolly quail
regal jacinth
#

@slender thistle

earnest phoenix
#

how toget the guild id

regal jacinth
#

in what

#

events or commands

earnest phoenix
#

commands

regal jacinth
#

show the code please

earnest phoenix
#

i tried:

bot.on("message", message => {
   var guildID = message.guild.id;
   //smh it gives error "Cannot read property id of null"
});
regal jacinth
#

oh that's js?
sorry idk about js

earnest phoenix
#

wait what it work's now

bitter sundial
#

are you messaging it in dm

earnest phoenix
#

smh

regal jacinth
#

lol?

earnest phoenix
#

are you messaging it in dm
no

bitter sundial
#

if its a dm guild doesnt exist

earnest phoenix
#

why

#

🤣

regal jacinth
#

lol do u have a server in ur dm?

bitter sundial
#

because a dm is not a guild

earnest phoenix
#

lol

#

they should make guilds usable in dms ¯_(ツ)_/¯

bitter sundial
#

but

#

there is no guild

#

in dms

#

its just a dm channel

wary flame
earnest phoenix
#

wtf

bitter sundial
regal jacinth
#

@slender thistle ammm u asked about the code so i sent it

earnest phoenix
#

it is giving error in var guildID = message.guild.id; but no error in message.reply(message.guild.id);

#

SMH

#

how about i use vsc to replace every single guildID with message.guild.id

#

tonkku staring at my code

bitter sundial
#

why

earnest phoenix
#

what happens if i dm him

#

will i die

#

🤣

bitter sundial
#

are you using node 14

earnest phoenix
#

no

#

v12

#

v12.18.2

robust moth
#

How reload command work . I want make a reload command

bitter sundial
#

and I mean node not djs

earnest phoenix
#

yeah

#

v12.18.2

bitter sundial
#

well sad

earnest phoenix
#

check my package.json

regal jacinth
#

@bitter sundial so i will delete the old bot in Top.gg and submit my new one
is it okay?

bitter sundial
#

but you could just return if guild doesnt exist

earnest phoenix
#

How reload command work . I want make a reload command
@robust moth basically it kills the current process and starts a new one

robust moth
#

Ok

earnest phoenix
#

but you could just return if guild doesnt exist
or use visual studio code to replace eveyr single guildID with message.guild.id

bitter sundial
#

@regal jacinth you can but I'm sure you're gonna end up waiting another 4 weeks for nothing

earnest phoenix
#

lol

regal jacinth
#

well my old one wont work anyway

bitter sundial
#

that doesnt solve the error you were talking about

honest perch
#

What library is luca in?

earnest phoenix
#

idk

#

smh

bitter sundial
#

djs

honest perch
#

Ah

#

Wouldn't it be better to rewrite to eris?

#

To save rem

bitter sundial
#

what does luca benefit from that

tight plinth
#

Eris doesn't save that much ram

bitter sundial
#

dsl uses eris

tight plinth
#

But discord.js-light does

#

Especially if you don't need to check for permissions

regal jacinth
#

then what should i do?
i don't know what is wrong with the code
it was working fine for 4 months(since i started codding)
and all of a sudden it broke

honest perch
#

Deno libs save the most

#

They are light af

tight plinth
#

Yeah

bitter sundial
#

have you checked if your bot breaks when its missing permissions

earnest phoenix
#

aaaaaaaaaaaaaaaaaa

#

it ain't working

#

should i update node

regal jacinth
#

no?

#

i did not ig

#

it well send the error in the terminal

#

like "Missing Permissions"

bitter sundial
#

are you sure it does for everything

regal jacinth
#

i don't know if it does for everything
i only tested it once with the help command
because i got denied cuz of it
but all the codes are the same ig

#

discord.ext.commands.errors.CommandInvokeError: Command raised an exception: Forbidden: 403 Forbidden (error code: 50013): Missing Permissions i tried the kick command with zero permissions and i got that

#

??

earnest phoenix
#

Guys does anyone have any ideas for open source projects I can make to put on my github profile?

regal jacinth
#

@bitter sundial hey
sorry to ping u but is it okay to invite the bot here and see if it breaks again or not
if it does then the problem was with my code
if it doesn't then probably with the application it self

digital ibex
#

yes alhassan

earnest phoenix
#

That’s already a thing

digital ibex
#

uh yeah?

earnest phoenix
#

I asked for ideas though not already made projects

digital ibex
#

they're both the same thing but ok

nocturne grove
#

ok so this is weird. When I'm starting my bot with the guild_members intent that I haven't turned on on the dev portal, I can't start the bot. But without using intents when I start it everything is fine lol

digital ibex
#

and it states its not already made but ok :p

earnest phoenix
#

I want to make smth thats minw

#

And from scratch

digital ibex
#

menno, what does ur client look like?

#

like new Client(...)

nocturne grove
#

yes, new Discord.Client()

#

but well it's a bit weird but I think that will change 7 Oct

earnest phoenix
#

i believe its GUILD_MEMBERS

#

Caps

nocturne grove
#

oh I did that

#

what I mean is if you don't specify intents it's no problem, but when you are specifying them and didn't enable one on the dev portal it gives an error

earnest phoenix
#

Whats the error

inner quarry
#

@nocturne grove I don't recommending turning on the privileged intents.

#

Because then your bot will be limited to 100 servers.

nocturne grove
#

that's not true

inner quarry
#

Later on.

nocturne grove
#

you can get them if you have a reason for it

inner quarry
#

@nocturne grove When Oct 7 came.

#

If you want to turn on intents because soon it will be required to.

#

I recommend using other intents.

nocturne grove
#

you can't choose which intents you want to use if you want your bot to do something. I just need guild_members for small things

inner quarry
#

Why you need that tbh?

swift void
#

My bot doesn't play music anymore yPandaCry

nocturne grove
#

I atleast need it for my support server only and I'm now working on a feature which will log what members joined/left and what members got/were removed from a role for my counter system

swift void
#

Some YouTube issue jeez

nocturne grove
#

@inner quarry ^

inner quarry
#

@nocturne grove I see.

nocturne grove
#

@robust moth is there a file/folder called a in that folder?

restive pebble
#

Android

#

emulated

#

Storage

earnest phoenix
#

you can use privileged intents above 100 guilds if you are verified iirc

restive pebble
#

Enjoy mobile hosting

nocturne grove
#

now everyone can use them tho

quasi arrow
#

Which bots are there in testing channels?

earnest phoenix
#

the event is still being sent regardless of the intent

nocturne grove
#

everyone can use them except bots with 100+ that didn't apply for them, after 7 Oct

earnest phoenix
#

that

nocturne grove
#

the event is still being sent regardless of the intent
@earnest phoenix what do you mean? If I turn guild_presences off I won't receive them right?

robust moth
#

@restive pebble right now I am outside at home

restive pebble
#

Oh cool

earnest phoenix
#

yeah i worded myself badly, what i meant is that everyone can still use the normal events regardless of the intent existing (if you don't login with intents enabled)

#

on oct 7th that will no longer be possible

midnight fiber
#

@nocturne grove MY bot get for VERIFICATION before 15 day but can't verify still now

nocturne grove
#

np mate but what did you mean that it will be sent regardless of the intent? Or is that about before 7 Oct?

robust moth
#

@robust moth is there a file/folder called a in that folder?
@nocturne grove a is demo folder

nocturne grove
#

lol why you're using caps. Well it takes some time @midnight fiber

midnight fiber
#

Ok

#

Thanks for help @nocturne grove

nocturne grove
#

okay make sure it doesn't read that folder if you don't want it

#

np

robust moth
#

help.js is inside ./commands/info/help.js

earnest phoenix
#

np mate but what did you mean that it will be sent regardless of the intent? Or is that about before 7 Oct?
@nocturne grove
right now you still have the option to not use intents, if you choose to do so you can still receive all events normally

#

my bot is not verified till 1 month alredy been verified it fast

nocturne grove
#

oh okay thanks

#

??
It requires some time. I also heard someone waited a month

earnest phoenix
#

Umm

#

what doesn't work

lusty quest
#

d.js?

earnest phoenix
#

Yeah

#

Does message.guildID work?

lusty quest
#

did you disabled for some reason the caching of guilds?

earnest phoenix
#

Oh

#

Cache

#

Yeah

lusty quest
#

no

earnest phoenix
#

umm

lusty quest
#

you get the guild object from the message

earnest phoenix
#

did you disabled for some reason the caching of guilds?
@lusty quest i haven't did anything to the guulds

lusty quest
#

not the Guild Manager

#

is message defined?

earnest phoenix
#

Yeah

#

Peek at my source

tight plinth
#

glitch

#

aaaaaaaaaaaaaaaaaaaaaaaaaaaaa

earnest phoenix
#

message.guild.id is valid
@lusty quest it gives the error Cannot read property id of null

#

aaaaaaaaaaaaaaaaaaaaaaaaaaaaa
@tight plinth lol

tight plinth
#

u know glitch is not meant to do discord bots right

earnest phoenix
#

Yeah

#

I know

#

But i don't care ¯\_(ツ)_/¯

swift void
#

Yo, uh can anybody help

#

I'm gettin this error

#
Error: StatusCodeError: 403 - ""
    at C:\Users\Administrator\Desktop\Team Thunder\node_modules\youtube-info\index.js:101:15
    at tryCatcher (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise._settlePromises (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\promise.js:725:18)
    at _drainQueueStep (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\async.js:15:14)
    at processImmediate (internal/timers.js:456:21)
earnest phoenix
#

403

#

Forbidden

lusty quest
#

@earnest phoenix does it say what line?

swift void
#

ik, youtube blocked my requests

#

what do I do

earnest phoenix
#

You aren't allowed to access the webpage

#

@earnest phoenix does it say what line?
@lusty quest yes

#

Lemme check the logs

#

Guys does anyone have any ideas for open source projects I can make to put on my github profile? (Something unique would be great)

lusty quest
#

@swift void did you authenticate your API request?

earnest phoenix
#

It should be the first line after bot.on("message")

swift void
#

I don't know

earnest phoenix
#

I swear there is no error with that

tight plinth
#

show code

honest perch
#

@earnest phoenix make some website with server side code

lusty quest
#

@earnest phoenix make a replacement for VAC but community driven

swift void
#

I got an api key

#

should I regen my api key

earnest phoenix
#

@lusty quest i only code nodejs

#

403 Forbidden usually means you can't access the webpage (either you're not authenticated or you're not allowed to view it)

honest perch
#

No

#

You're ip banned

earnest phoenix
#

@honest perch thats too vague lmao

honest perch
#

Erm

#

Trello clone

#

Like cards

earnest phoenix
#

Smth unique :/

swift void
#

holy im ip banned?

#

wat do I do???!?!

earnest phoenix
#

Ip banned should return 429

lusty quest
#

make a bot that call everyone who mentions him stupid

honest perch
#

For example I'm currently making a bot dashboard

earnest phoenix
#

@swift void discord api?

swift void
#

phew, I'm not ip banned

honest perch
#

Youtube didn't he say

swift void
#

google youtube info api

earnest phoenix
#

Oh ok

pale vessel
#

429 is too many requests

swift void
#

reeeeee

earnest phoenix
#

It means rate limited

swift void
#

dang I'm gettin rate limited

pale vessel
#

ip ban isn't rate limited

swift void
#

isn't youtube blocking my requests

earnest phoenix
#

@lusty quest check the first line below bot.on("message", message => {});

#

That's where the problem is

#

Everywhere else is fine

lusty quest
#

where tf is your bot.on Message? the entire file is a mess

earnest phoenix
#

C!guildid works fine

#

where tf is your bot.on Message? the entire file is a mess
@lusty quest 526 line

#

Scroll down

#

I love being messy ¯\_(ツ)_/¯

#

And /shrug

lusty quest
#

this looks ok

earnest phoenix
#

Yeah

#

But try running C!hype

#

In my support server

#

It gives an error in the logs

#

@lusty quest do i temporarily add you to the project so you can see the logs?

lusty quest
#

i dont use glich and will not make a account there

#

also i dont think your message.guild.id line makes the error maybe something that uses it

earnest phoenix
#

Yeah

#

Something that uses it

#

The hype stuff

swift void
#

How can I fix the YouTube 403 error?

#

I'm reading the docs

earnest phoenix
#

This:
(can't color syntax on mobile)

db.add(`userXP_${guildID}_${userID}.xp`,Math.floor(Math.random() * 5));

@lusty quest

#

That gives error

#

With FUCKING STOP CHANGINF MY TEXT AUTO-CORRECT

#

guildID

#

Doesn't give error when declared but gives error when i use it

#

welcome to runtime errors

#

the code doesn't know what can error and what can't because it isn't running - it can't run the logic for it

#

syntax and compile errors are different because they're baked in rules

#

so any IDE can tell you whether your code follows those rules or not

midnight blaze
#

trying to make a command where I can create a role

 message.channel.send("Role is created")
        let rolep = message.guild.roles.create({
                name: "muted",
                color: 'blue',
                permissions: [],
                position:1,
            })
              .then(console.log)
              .catch(console.error);
    message.member.roles.add(rolep);

Error:

(node:1080) UnhandledPromiseRejectionWarning: DiscordAPIError: Unknown Role
    at RequestHandler.execute (/home/runner/Anti-Spam/node_modules/discord.js/src
#

someone an idea what is going on here?

earnest phoenix
#

you're adding a promise

#

not a role

#

anything that you need to create - that needs to interact with the API is a promise and needs to be handled accordingly

#

either by using await/async pattern or promise .then pattern

nocturne grove
#

is it me or is the discord api acting weird?

unborn haven
#

hi

nocturne grove
#

Have I missed something or aren't bots in the role.members property?

muted venture
#

guys i have a question, how can i set the server numbers my bot is in, into the bot page?

earnest phoenix
#

Idk

muted venture
#

ok

earnest phoenix
#

This:
(can't color syntax on mobile)

db.add(`userXP_${guildID}_${userID}.xp`,Math.floor(Math.random() * 5));

Help

#

Bruh

#

Why can't i quote code block

nocturne grove
#

Can anyone help me? I have a role with 5 members. When I'm getting that size on my main bot, it returns 5. When I am getting it on my test bot with some intents disabled, it returns 2. With all intents again it returns 5. How?

earnest phoenix
#

you can it just displays differently on other platforms because discord is discord and discord is inconsistent in every aspect you can imagine lol

nocturne grove
#

Can anyone help me? I have a role with 5 members. When I'm getting that size on my main bot, it returns 5. When I am getting it on my test bot with some intents disabled, it returns 2. With all intents again it returns 5. How?
I now see it looks like it only counts members that are cached. But why?

midnight blaze
#

I know that it is a promise, that is why I added the then() catch() but it didnt work 🤔 anyway, I have found a solution

#

thanks tho @earnest phoenix

earnest phoenix
#

.then executes when the promise resolves, the add method proceeds to add the promise without waiting for the promise to resolve

#

it's why async/await pattern is more preferred

midnight blaze
#

I see, yeah, I have changed it to await later on, that was more or less the solution

#

I also had to add something else. Here the code:

#
let rolep = await message.guild.roles.create({
        data: {
          name: "muted",
          color: "blue",
          permissions: [], 
          position: 1
        }
});
sullen salmon
#

Is there any way to get the amount of messages in a channel?

earnest phoenix
#

that is indeed correct, pangloss

#

yes and no. bots do not have access to the search endpoint like users do so you can't do that - however what you can do is spam the GET endpoint for messages until you reach the very beginning of the channel, this is a method that is very risky because you'll get ratelimited a fuckton of times and you might even get API banned, even if you succeed it can take hours to complete @sullen salmon

sullen salmon
#

Cringe

earnest phoenix
#

huh?

sullen salmon
#

Cringe that it's not in

#

It would be a useful feature

earnest phoenix
#

oh

#

yeah

nocturne grove
#

@earnest phoenix can't you fetch messages until it doesn't return 100 anymore? Or is that the same?

earnest phoenix
#

yeah that's what i said

nocturne grove
#

oh okay

earnest phoenix
#

that's spamming the endpoint

#

night (one of the lead discord api devs) said they had plans to make the search endpoint available for bots back in january but we still have no news on that

#

it's just kind of a thing you get used to

#

they couldn't care less about their bot developer community

nocturne grove
#

hmm that's sad

earnest phoenix
#

Anybody knows why does this error happen on MongoDB?
Error: cyclic dependency detected

sullen salmon
#

I do wonder how applications like Discord chat Exporter don't get ratelimited

#

When fetching all messages

earnest phoenix
#

don't use mongo so i can't tell you much, however cylic (or circular) dependency is when one thing depends on the other but that other thing depends on the first thing

#

e.g. class A needs B to construct, but class B needs class A to construct

#

anyone know how to secure a vps for bot hosting?

#

check pins

#

e.g. class A needs B to construct, but class B needs class A to construct
@earnest phoenix
think of it like the you need work experience meme

fiery trellis
#

+help

swift void
#

I'd like to ask

#

why?

earnest phoenix
#

403 is the forbidden error

#

you do not have permission to access whatever you're trying to access

#

considering this is from youtube - first try updating the libraries you use

#

if that doesn't work

#

the video is either private, copyright claimed, taken down or age restricted

swift void
#

alright, that'll be ydl core

#

and opus and everything else?

earnest phoenix
#

nope, just ytdl

swift void
#

got it

#

How do I fix this? ;_;

Error [VOICE_CONNECTION_TIMEOUT]: Connection not established within 15 seconds.
    at VoiceConnection.authenticateFailed (C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\voice\VoiceConnection.js:297:27)
    at C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\voice\VoiceConnection.js:325:61
    at Timeout.<anonymous> (C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\BaseClient.js:83:7)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  [Symbol(code)]: 'VOICE_CONNECTION_TIMEOUT'
}
(node:4320) UnhandledPromiseRejectionWarning: Error [VOICE_CONNECTION_TIMEOUT]: Connection not established within 15 seconds.
    at VoiceConnection.authenticateFailed (C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\voice\VoiceConnection.js:297:27)
    at C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\voice\VoiceConnection.js:325:61
    at Timeout.<anonymous> (C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\BaseClient.js:83:7)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7)
(node:4320) 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:4320) [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.
pine raven
#

I'm just wondering but are most bots coded in JavaScript? mine coded in BDscript

swift void
#

yeah, most bots are coded in djs

pine raven
#

oh

#

since i dont have access to a pc i use my phone to code. should i switch to java?

#

is java harder?

marble juniper
#

its harder if ur on mobile

#

lol

pine raven
#

I have two bluetooth keyboards

misty sigil
#

js is harder

#

but can be done

pine raven
#

My mom wont let me use the pc because she says I stare at it too much.

#

ima try coding in java

misty sigil
#

It’s JS, not java

pine raven
#

ok

misty sigil
#

unless you literally mean java

pine raven
#

shush dont corect me

#

yes js

misty sigil
#

I know a dude, infact all of us do

#

who made @royal knoll on mobile

placid iron
#

I kinda edited a command into my bot to ban me from a server I wasn't in anymore on mobile once

pine raven
#

did he code in JS?

quartz kindle
#

js is an actual programming language

#

bdscript isnt

honest perch
#

Its the stackoverflow guy

misty sigil
#

did he code in JS?
@pine raven yes

robust moth
#
  let commandName = args[0].toLowerCase();
  fs.readdirSync("./commands/").forEach(dir => {
        delete require.cache[require.resolve(`./commands/${dir}/${commandName}.js`)];
        client.commands.delete(commandName);
        const commandFile = require(`./commands/${dir}/${commandName}.js`);
        client.commands.set(commandName, commandFile);
      });```

How can I get right commandFile path??
swift void
misty sigil
#

ok

#

You aren’t giving any code

crystal stream
#

Who could share the code to find out the number of servers the bot is on?

#

Thz <3

#

And another question, if my bot is in Russian, can it be rejected?

pale vessel
#

it cannot

#

just make sure it follows the rules i guess

misty sigil
#

unless something else is bad about it

#

or it’s offline

crystal stream
#

Ok, thz ^•^

#

Do you think using a library is a good idea for a bot that will be used on multiple servers?

misty sigil
#

I use a lib

earnest phoenix
misty sigil
#

How bot use emotes not be serwer
@earnest phoenix the bot has to be in the server, and it’s <:name:emojiid> or for animated <🅰️name:emojiid>

#

I have this issue idk what I need to do to fix it
@earnest phoenix that isn’t play.js is it?

restive pebble
earnest phoenix
#

Possibly

misty sigil
#

that’s index

earnest phoenix
#

I tried adding a play music command

#

And if didn’t work

#

So I removed it and now Idk what to do

misty sigil
#

yes

lone pond
#

yes
@misty sigil how? (jda)

swift void
#

Hey, how can I fix this error?

#
Error [VOICE_CONNECTION_TIMEOUT]: Connection not established within 15 seconds.
    at VoiceConnection.authenticateFailed (C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\voice\VoiceConnection.js:297:27)
    at C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\voice\VoiceConnection.js:325:61
    at Timeout.<anonymous> (C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\BaseClient.js:83:7)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  [Symbol(code)]: 'VOICE_CONNECTION_TIMEOUT'
}
(node:2736) UnhandledPromiseRejectionWarning: Error [VOICE_CONNECTION_TIMEOUT]: Connection not established within 15 seconds.
    at VoiceConnection.authenticateFailed (C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\voice\VoiceConnection.js:297:27)
    at C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\voice\VoiceConnection.js:325:61
    at Timeout.<anonymous> (C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\BaseClient.js:83:7)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7)
(node:2736) 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:2736) [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.
misty sigil
#

Could be

#

@swift void give us code. Not just an error

still merlin
#

I've had that error before, Give your bot more time to join the voice channel

swift void
#

Never mind guys, I fixed it

#

Ty

#

internet connection issue

#

Thanks

still merlin
#

Np

crystal stream
#

I use a lib
@misty sigil
quick.db is fine?

misty sigil
#

yea ig

crystal stream
#

Okey)

#

I had a problem that after a certain number of people, he cannot make top participants by the number of coins

earnest phoenix
#

all custom emojis need to be in the <id:name:> format

#

wait

#

i think it's the other way around

#

idk

misty sigil
#

yes

earnest phoenix
misty sigil
#

it is

earnest phoenix
#

<:name:id>

#

escape the emoji

#

put a backslash before sending it

misty sigil
#

with \

#

before.

earnest phoenix
#

the id is also located in the url of the emoji

#

right

#

discord filters out links now and keeps the embed

#

what's your code

crystal stream
#

how you get id
@earnest phoenix
I used the command to display the message content in the console, and that's how I used it. :)

earnest phoenix
#

is your bot in this guild

#

hm

#

try removing the <>

#

you can inspect element ig

pale vessel
#

you can right click and get the id/use the inspector

earnest phoenix
#

since discord is electron you can just do ctrl+shift+i

#

it'll pop up with chrome dev tools

pale vessel
#

if it's an animated emoji, add a before the first colon

earnest phoenix
#

yup

#

yeah

#

i just escaped it cause i have nitro

digital ibex
#

what

#

no you dont

golden condor
#

You don't need to do that

#

The bug is elsewhere

pale vessel
#

the error is unrelated

golden condor
#

Lol

#

The bug is not in that line

earnest phoenix
#

I have this serverinfo command and it just seems to not be working the bot won’t respond and I’m not sure why it is

golden condor
#

Can you be more specific @earnest phoenix

earnest phoenix
#

I’ll send the code

viral iris
#

how to do

{mes_count} messgae has been deleted
message.channel.send('`\`\`js /n ${mes_count} message has been 
deleted.`\`\`\').catch(WoW => {});
digital ibex
#

<a:name:id>

golden condor
#

Surround it with < >

spice pier
#

To send an emoji in chat do indeed need the <>

digital ibex
#

yes

#

unless its not custom

earnest phoenix
spice pier
#

a is also only needed for animated emojis

digital ibex
#

yes

earnest phoenix
#

@golden condor thats the code on haste

pale vessel
#

you were reacting, that's why you didn't need the <>

#

sending a message requires <>

earnest phoenix
#

Whoops I pinged the wrong person

#

tldr it's because the official client can detect things it needs to resolve faster (mentions, custom emojis etc.)

wispy viper
#

hello I'm doing user.tag to show someone's tag but it keeps saying undefined

let user = message.mentions.members.first() || message.guild.members.get(args[0])```
how user is defined ^
golden condor
#

@earnest phoenix can you remove the {} around embed

earnest phoenix
#

Okay

#

To restart the bot do I just kill the terminal and than open a new one

restive pebble
#
this.guild.me.voice.setSelfMute(true)```Always returns false and dosent works
pale vessel
#

removing {} wouldn't affect anything

#

(in that context)

earnest phoenix
#

It didn’t work

still merlin
#

How do you create a role, But if that role already exists do nothing? in discord.js

#

I cant find it on the docs

pale vessel
#

roles#create

viral iris
#
message.channel.send(" ```js\n${mes_count} message has been deleted.``` ").catch(WoW => {});

please help how to make ${mes_count} see in here

pale vessel
still merlin
#

Okay thanks flazepe

pale vessel
#

check if the role exist first by using roles.find()

wispy viper
#

hey faze

#

do yknow the answer to my problem ?

earnest phoenix
#

I’m trying to type refresh into the cmd to stop the bot but it won’t let me type

still merlin
#

Okay thank you so much flazepe

pale vessel
#

all good

pure lion
#

Did this guy just call you faze

#

?

wispy viper
#

hello I'm doing user.tag to show someone's tag but it keeps saying undefined

let user = message.mentions.members.first() || message.guild.members.get(args[0])```
how user is defined ^
pure lion
#

@wispy viper

  1. Don't ask to ask
    2. Don't dotpost
smoky spire
#

tag is on a user not a member

pure lion
#

You're getting a member object

#

Lol

#

do user.user.tag

wispy viper
#

ah

#

thank you much appreciated

pure lion
#

Np

earnest phoenix
#

Reee why won’t my bot go offline

#

All my attempts are failing

pure lion
#

Do ctrl + shift + esc

#

Then click on vsc

#

Then end task

earnest phoenix
#

Ohhhhh

#

That’s why lol

digital ibex
#

or just ctrl + c in the terminal lmao

still merlin
#

How do I find how many servers a user is in, For a userinfo command if my friend was in 11 servers it would say 11 servers on my embed/msg

pale vessel
#

grab their user token

#

you mean mutual servers?

earnest phoenix
#

you'll have to use oauth to get all of their guilds

pale vessel
#

so basically possible but a pain for user info command

still merlin
#

sigh Okay thanks

digital ibex
#

if u do the oauth just for the users guilds, just make a dashboard lul

#

oh well :/

pale vessel
#

you mean mutual servers?
@pale vessel

still merlin
#

No, all the guilds a user is in, but as a number

#

if thats even possible o.o

pale vessel
#

it is but not for a bot with a simple userinfo command

#

that would require a webserver for OAuth and the bot getting the user's guilds

still merlin
#

O.o

golden condor
#

Hello there, I am trying to create an npm package (using js) and I am trying to make it compatible with typescript, how would I be able to do this?

earnest phoenix
#

you code it in ts

#

add types and all

#

My bot is replying with the same thing twice and I’m not sure why it is anyone able to help

golden condor
#

But I know some other packages (such as d.js) which do not use ts but can be used in ts

earnest phoenix
#

Okay then you add d.ts

golden condor
#

.d.ts right?

earnest phoenix
#

declarations file

#

yep

golden condor
#

Ok

#

So what do I put in there?

earnest phoenix
#

you put the types of ur functions and stuff

#

google would be a lot of help

golden condor
#

What does @hardy spindlepes/node do in this situation

pale vessel
#

google

#

would be a lot of help

golden condor
#

Can I write it in ts

#

and compile it to js?

#

would that be easier?

lusty quest
#

@earnest phoenix d.js?

earnest phoenix
#

@lusty quest yes

#

Like when I do a command like d!help it’s meant to reply once but it replies twice

#

And I definitely haven’t changed anything to make it do that

lusty quest
#

how did you login into the API? did you use client.login(token) or did you pass TOKEN: YourTorken in the Client Constructor?

digital ibex
#

you can just write it in js, you dont need to write it into d.ts or ts or anything if u dont want to, @golden condor

lusty quest
#

or did you have 2 instances running?

digital ibex
#

and for types, just use jsdoc

#

and check if typeof whatver === 'whatever'

earnest phoenix
#

@lusty quest I might have had 2 running by acccident

#

But idk how to make it so I only have 1

lusty quest
#

stop all excessive ones

earnest phoenix
#

Okay

#

Thanks

#

@lusty quest it’s still doing it

golden condor
#

^^ Not sure what this error means

lusty quest
#

did you pass the Token to your Client constructor and use client.login()?

earnest phoenix
#

I think I did

sonic mango
#

hi

restive furnace
#

^^ Not sure what this error means
@golden condor you need to put that thing inside public: inside the class, thats what statically written/oop languages means

golden condor
#

Nah it was my fault, used require instead of import lol

summer torrent
#

@ornate flax spoonfeeding is not allowed

#

learn a prog. language and code it

ornate flax
#

@ornate flax spoonfeeding is not allowed
@summer torrent okay

obtuse jolt
#

my bot gives me this error
sqlMessage: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'prefix VALUES 'vtb!' WHERE guildID = '264445053596991498'' at line 1",

#
client.sql.query(`INSERT INTO guildconfig prefix VALUES ? WHERE guildID = ?`, [newprefix, message.guild.id], async function (error, results, fields) {
  if(error) {console.log(error);return message.channel.send("Unable to set new prefix, sorry about that!")}
  ...
})```
pale vessel
#

remove quotes

obtuse jolt
#

u wot

#

there are none

sudden geyser
#

guildconfig prefix
Should there be a space in there?

The values after VALUES should usually be in parentheses.

#

Also is it normal to supply a WHERE clause in an INSERT INTO statement.

pale vessel
#

yes

obtuse jolt
#

yes guildconfig is a table

#

prefix is the table value

#

i tried it with () around the prefix and ? parts

#

but the same error happens

ornate flax
#

households some people put their bots on another server fln, or how does one use that command, how does it save the bot to save his own diary? (who used it, etc.)

honest perch
#

@ornate flax what

sudden geyser
#

I mean, when I try my own SQL statement, it complains about the WHERE clause. Unless the sql is behaving differently depending on what database you're using, I don't see why it should be there when you're trying to insert new data.

ornate flax
#

@ornate flax what
@honest perch why, what happened?

honest perch
#

i dont understand what you just said lmao

ornate flax
#

good 😄

obtuse jolt
#

i add it to make sure it only saves to that guilds data set because they are guild by guild prefixes

sudden geyser
#

Would the guild (id) not have its own table value?

obtuse jolt
#

i removed the where ? thing and now it doesnt set the prefix it keeps it the same

sudden geyser
#

Then you were probably looking for UPDATE instead of INSERT INTO

obtuse jolt
tight plinth
#

U tried

obtuse jolt
#

😔

honest perch
#

mongo easier

sudden geyser
#

Update goes like UPDATE table_name SET field1 = new-value1, field2 = new-value2 [WHERE Clause]

obtuse jolt
#

I was wondering why it wasnt responding to my commands

left lake
#

7 second api ping and 3 second latency

#

hmm

twilit rapids
#

What are you doing thinkie

obtuse jolt
#

this is why i dont run my bots on my home wifi

signal wagon
#

What ping is that

#

Gateway

#

Rest

#

Or what

twilit rapids
#

mine is ws

#

but their ws is almost 3k

obtuse jolt
#

my ws was the 7k one

#

pretty much 8k

signal wagon
#

Send and edit a little slow atm

#

Usually around half that

obtuse jolt
#

give me ur vps's

signal wagon
#

Bro I'm paying less than $3 for mine

#

As if you can't afford that

obtuse jolt
#

i dont pay anything for how i host mine

twilit rapids
#

You're trying to send an empty message

#

Would be useful if you send the code you're using

signal wagon
#

cannot send an empty message

#

Often exceptions are self explanatory

twilit rapids
#

and what command are you getting this on

tight plinth
#

so im using git auto deploy for my bot, and it seems to work just fine. however, every time i restart the bot thanks to it, i got this error: https://lumap.is-inside.me/Z6dB6o73.png It doesnt afect anything, because the pull has already been done and pm2 automaticly restarts it, but how do i get rid out of this?

signal wagon
#

@earnest phoenix I assume it's in this line: return message.channel.send(err);, it's the only line that might be empty as far as I see

lusty quest
#

what does subject rely on? @tight plinth

tight plinth
#

oh wait

#

nvm, it was just me doing smth wrong

lusty quest
#

but this is a interestening way for updating stuff maybe i make me something like this too

signal wagon
#

So delete it?
@earnest phoenix Or just put "Error: ${err}" there first to check if that's the cause

swift void
#

How do you fix the Error: StatusCodeError: 403 - "" error?

snow urchin
lusty quest
#

did you cache members?

tight plinth
#

so i can't see if someome manually posts a request to it or if its me

lusty quest
#

rip

earnest phoenix
#

Need help, my console is printing this everytime I run a command.
@earnest phoenix because you are sending a message everytime

harsh badge
#

lol

snow urchin
#

did you cache members?
@lusty quest yup

lusty quest
#

so you use the client option right?

delicate shore
#
if(command === "stealemoji"){
    if (!msg.member.hasPermission(`MANAGE_EMOJIS`)) {
      return msg.channel.send(`You Don't Have Permission To Use This Command! Manage Emojis`)
    }

    const emoji = args[1];
    if (!emoji) return msg.channel.send(`Please Give Me A Emoji!`);


    let customemoji = Discord.Util.parseEmoji(emoji);
const Color = `RANDOM`;


  const Link = `${args[1]}`;
      const name = args.slice(1).join(" ");
  
      msg.guild.emojis.create(
        `${Link}`,
        `${name || `${customemoji.name}`}` );
      const Added = new Discord.MessageEmbed()
        .setTitle(`Emoji Added`)
        .setColor(`${Color}`)
        .setDescription(
          `Emoji Has Been Added! | Name : ${name || `${customemoji.name}`} | Preview : [Click Me](${Link})`
        );
      return msg.channel.send(Added);

   let CheckEmoji = parse(emoji, { assetType: "png" });
      if (!CheckEmoji[1])
        return msg.channel.send(`Please Give Me A Valid Emoji!`);
      msg.channel.send(
        `You Can Use Normal Emoji Without Adding In Server!`
      );




}```
#

my code

#

no error

#

but output

swift void
#
Error [VOICE_CONNECTION_TIMEOUT]: Connection not established within 15 seconds.
    at VoiceConnection.authenticateFailed (C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\voice\VoiceConnection.js:297:27)
    at C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\voice\VoiceConnection.js:325:61
    at Timeout.<anonymous> (C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\BaseClient.js:83:7)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  [Symbol(code)]: 'VOICE_CONNECTION_TIMEOUT'
}
(node:4236) UnhandledPromiseRejectionWarning: Error [VOICE_CONNECTION_TIMEOUT]: Connection not established within 15 seconds.
    at VoiceConnection.authenticateFailed (C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\voice\VoiceConnection.js:297:27)
    at C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\voice\VoiceConnection.js:325:61
    at Timeout.<anonymous> (C:\Users\Administrator\Desktop\Team Thunder\node_modules\discord.js\src\client\BaseClient.js:83:7)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7)
(node:4236) 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: 2)
#

My error

delicate shore
summer torrent
#

your network sucks @swift void

delicate shore
#

@summer torrent and me?

swift void
#

@summer torrent probably

summer torrent
#

@delicate shore no, what is the error

delicate shore
#

nothinng

#

it didnt add emoji

summer torrent
#

do you have error handler?

delicate shore
#

no

summer torrent
#

like <Client>.on("error", console.error)

delicate shore
#

yes

restive furnace
#

process.on("unhandledRejection", console.error) is good to habe too

summer torrent
#

^

delicate shore
#

i have

#

that

#

too

#

what should i do?

fast quail
#

hey, is there a way to make a on_reaction_add stop when the user react once
and I can't use wait for

swift void
#

How can I fix the StatusCodeError 403

#

when using a youtube api

#

started occuring again

summer torrent
restive furnace
#

@swift void means probably you have used your limit

summer torrent
#

um

swift void
#

but I've regenerated tonsa times @restive furnace

delicate shore
#

ok

#

nvm

#

it worked

#

the thing

#

was

#

it was talking the

restive furnace
#

but I've regenerated tonsa times @restive furnace
@swift void regen doesnt do anything, just do ip rotating and web scraping, thats what big bots do

delicate shore
#

link as name

#

and 24+ letter name of emoji

#

is not allowed

swift void
#

@restive furnace how do I do that

restive furnace
#

i dont know, never did, one of my friends just told me so. probably better to ask from someone else.

delicate shore
#

where do u host

#

i have bupassed t

#

many times

#

because i use glitch

#

so i just duplicate project

#

and it generates a new vps

restive furnace
#

he probably uses a real vps

#

and no. theres no way 1 project per vps.

#

its around 1000 projects per vps

delicate shore
#

ok

#

maybe i am lucky

restive furnace
#

yes

#

probably

delicate shore
#

to get my project in a new

#

vps

#

lol

lusty quest
#

@swift void did you use a free hoster?

delicate shore
#

ok

swift void
#

yeah @lusty quest

delicate shore
#

i pay 10 dollar per month tho

#

to glitch

swift void
#

a remote desktop connection

delicate shore
#

use a vpn

lusty quest
#

you can forget running a music bot on Glitch or heroku

swift void
#

eeee

lusty quest
#

they dont offer enought power for this

delicate shore
#

@lusty quest my is not a music bot

#

my bot has music

lusty quest
#

i wasnt talking to you if you havent noticed it

delicate shore
#

but is secondary

#

o

swift void
#

how about AWS

#

a remote desktop connection

delicate shore
#

k

swift void
#

I needa fix this 403 error

lusty quest
#

amazon AWS?

swift void
#

yepppp

lusty quest
#

will work

delicate shore
#

heroku

swift void
#

my api keys are perfectly functional.

#

but it still returns 403

#

errors.

delicate shore
#

Raye limit is different

#

then Api Keys

swift void
#

wat

#

wait what

lusty quest
#

maybe ratelimited?

swift void
#

I regenerated an api key four times,

#

starting from 0 requests

lusty quest
#

this wont reset the limit

delicate shore
#

that is problem

#

i also did that

swift void
#

how do I reset the limit + wat

lusty quest
#

wait

#

usually you are locked out on a timed base

swift void
#

oh dear

delicate shore
#

ok

#

e

swift void
#

glitch banned ping services ....

lusty quest
#

glitch is shit

swift void
#

no, heroku is shittier

delicate shore
#

glitch banned ping services ....
@swift void i pay 10 dollar per month

#

for premium

swift void
#

oh nice

#

good for you

delicate shore
#

yeh

lusty quest
#

if you got a credit card get the 1 free year from AWS

swift void
#

I take back whatever I said about glitch

#

^^^6

lusty quest
#

what you get for the 10$?

swift void
#

I am using the free year from AWS

delicate shore
#

what you get for the 10$?
@lusty quest no rate limiting on glitch
200% more storage and CPU and 24*7 hosting

lusty quest
#

the paid tier at glitch is still shit

#

what is the baseline?

swift void
#

superbrain,

this wont reset the limit

#

might I ask how I can reset the limit

lusty quest
#

wait

swift void
#

and support a bigger bot

delicate shore
#

wat

#

just wait

swift void
delicate shore
#

which key is limited

lusty quest
#

idk how long but you can calculate with 12-24 hours

delicate shore
#

youtube API?

swift void
#

yeah

delicate shore
#

oh lord

swift void
#

12-24 hours to reset the api

#

jesus

delicate shore
#

i left youtube API because evn after 2 days it's limit was not reset

swift void
#

oof

delicate shore
#

i shifted to YT_search

#

it is best

swift void
#

YT_search?

#

what's that?

delicate shore
#

no rate llimit

#

yes

#

it's package

lusty quest
#

make a shedule

swift void
#

tell me your secrets

delicate shore
#

it's npm package

swift void
#

npm i YT_search?

lusty quest
#

@delicate shore there is still a ratelimit

swift void
#

a ratelimit? oh fuck

delicate shore
#

@delicate shore there is still a ratelimit
@lusty quest no
only one rate limit
Of discord

lusty quest
#

just the guy who made the package calls the api

delicate shore
#

no

small peak
#

You can use distube package too if you use discord.js v12

delicate shore
#

a ratelimit? oh fuck
@swift void NO!

swift void
#

skick, distube package?

#

whattttt

lusty quest
#

no the pack has to call the YT api. scraping YT is forbidden by the YT TOS

swift void
#

-YT_search

delicate shore
#

i have not got any rate limit since 1.5 months

#

no the api has to call the YT api. scraping YT is forbidden by the YT TOS
@lusty quest noo

#

that is something else

swift void
#

ok pgamerx, how do I use YT_search

delicate shore
#

ok

#

listen

#

calm the fudge down

swift void
lusty quest
#

YT_search has to call the YT API. there is no other way to get stuff from YT on a legal base otherwise

swift void
#

installed the module.

#

oof

delicate shore
swift void
#

hey, at least I won't have to worry about api keys

delicate shore
#

it is easy to use

#

but i still couldn't figure out search command

#

lol

swift void
#

I need the search command damnnit

delicate shore
#

it is easy

#

read docs

#

you will get it

#

but not me

#

i am minute brain

swift void
#

to the docs!

#

i am second brain

#

chillax

#

ill read the docs out to you

delicate shore
#

here

#

there is code but it goes over me

#

so

swift void
#
const yts = require( 'yt-search' )
 
yts( 'superman theme', function ( err, r ) {
  const videos = r.videos
  const playlists = r.playlists || r.lists
  const channels = r.channels || r.accounts
 
  console.log( videos[ 0 ] )
} )
delicate shore
#

f

#

replace superman theme

#

with args{1}

swift void
#

no wait

delicate shore
#

or 0

swift void
#

that's yts

delicate shore
#

or whatever

#

wym

lusty quest
#

interestening. it really doesnt use the Google API it uses a Bot for making Searchquerys

#

probably a grey area

delicate shore
#

e

#

it uses

swift void
#

now how do I use this module

delicate shore
#

that

swift void
#

gonna read

delicate shore
#

cheerio

swift void
#
const yts = require( 'yt-search' )
 
yts( 'superman theme', function ( err, r ) {
  if ( err ) throw err
 
  const videos = r.videos
  videos.forEach( function ( v ) {
    const views = String( v.views ).padStart( 10, ' ' )
    console.log( `${ views } | ${ v.title } (${ v.timestamp }) | ${ v.author.name }` )
  } )
} )
 
// promises also supported
// const r = await yts( 'superman theme' )
#

yes, i did npm i cheerio

delicate shore
#

do play first

lusty quest
swift void
#

you got it

lusty quest
#

if you want to use it mainly for music lavalink is also a good thing (Most larger Music bots use it)

delicate shore
#

^

#

I use yt_search

#

as my bot is mainly meme and fun

#

and reddit thingy bot

swift void
#

I use ffmpeg

elder loom
#

e

swift void
#

e

elder loom
#

ffmpeg doesn't work for me

#

lavalink doesn't work

swift void
#

f

elder loom
#

i tried everything

delicate shore
#

ffmpeg

#

sucks

elder loom
#

lol

delicate shore
#

to be alive

elder loom
#

e

delicate shore
#

i think music is not main ^

#

so i use YT_search

lusty quest
#

iirc lavalink needs a lavalink server or something like this to work

delicate shore
#

i just have basic

elder loom
#

dang

delicate shore
#

music commands

#

iirc lavalink needs a lavalink server or something like this to work
@lusty quest yes

#

watch code lyon

#

on yt

#

for better

#

understanding

#

or if you gonna be a copy paster

#
#

and type Lavbalink music bot github

#

download the code

swift void
#

written a search command

#

lemme test

delicate shore
#

and enter your id and token and prefix and it should work

lusty quest
#

i guess its time to learn Go-lang

delicate shore
#

l

#

i-

#

it worked? @swift void

swift void
#

testing

green kestrel
lusty quest
#

this gives me flashbacks to a bug ive had. my bot had around 10 minutes delay between command use and execution

green kestrel
#

lol, thats slooow

#

the bug isnt the speed of it, the bug is that hint

#

best fetch a calculator, lol

lusty quest
green kestrel
#

the answer was like 15 billion dollars, it was too big for a 32 bit integer LUL

lusty quest
#

rip

green kestrel
#

the next hint is like....

#

that was the giveaway for me, i wasnt playing at the time, this was in someones pins lol

lusty quest
#

well atleast you found a bug

misty sigil
#

yea

lusty quest
#

i know a guy who try to break Discordbots for fun, he actually discovered a few bugs in my bots and i was able to fix them before i added them to dbl

misty sigil
#

then you can squash it

tight plinth
#

so basically im using git auto deploy for my bot. everything works, except one thing: if i DON'T have an instance of vscode opened connected to the vps via ssh, this happens: https://lumap.is-inside.me/POJCgKRS.png

green kestrel
#

i added remote start/stop to the bot today, which means that i can add dashboard functionality to show running games of trivia, start new rounds, and end existing rounds... im thinking that will be nice for non-technical users, but for technical users im going to add per-channel webhooks

#

so someone who knows that super secret webhook for the channel can call it with curl to start and stop a game

lusty quest
#

time to hammer my brain now with Golang

green kestrel
#

im thinking of tying that into stuff for e.g. games that start and stop at specific calender times/dates

#

you think anyone would directly use webhooks to start and stop trivia games?

tight plinth
#

can someone help me please ive been trying to fix this issue for like 3 hours and i cant fix it

#

i'm about to explode

lusty quest
#

i guess only 3% of the Discord users know how to use webhooks

green kestrel
#

it looks like git is trying to use vs.code as authentication @tight plinth

#

check its .gitconfig

tight plinth
#

hmm

green kestrel
#

its trying to auth thru a pipe that vs.code is creating while its running

#

/run/user/1004/vscode-git-<hex>.sock .... its a unix socket

tight plinth
green kestrel
#

its part of remote development it seems

lusty quest
#

i think its a issue with the git shell integration for vscode

tight plinth
#

lemme check

#

ok i changed my git config so it has my password, now lemme retry

#

aaand it works!

#

thanks you so much brain

#

u rly have a big brain mmlol

misty sigil
#

big brain brain

green kestrel
#

no problem @tight plinth 😄

sterile minnow
#

Heya,

Does anyone know how i make this time: 2020-07-20T19:28:09.708Z
In Normal Time?

#

(in html js)

ebon kelp
#

You could split it

#

date.split("T"), then you have ["2020-07-20", "19:28:09.708Z"]

#

Or, work with new Date( Date.parse("2020-07-20T19:28:09.708Z"))

small peak
#

(in html js)
@sterile minnow Use Date method, such as toTimeString(), toUTCString(), toLocaleString()

silver spear
#

i need some help

#

so im tying to make the bot page have a colored background

#

and im just not good enough at CSS to know how to do this

#

can someone pls help?

#

i found this <div style="background-image: url('img_girl.jpg');">

sterile minnow
#

ty

silver spear
#

but i put it into detailed bot desc

#

and nothing happens

sick fable
#

Can someone make a simple moderation not for my server?

#

I really need one

silver spear
#

mr. sloth, i can

#

dm me

sick fable
#

K

small peak
#

mee6 :>

silver spear
#

:.

ebon kelp
#

mee6 :>
@small peak or Dyno

#

no

misty sigil
#

no

silver spear
#

<div style="background-image: url('img url');"> isnt working

small peak
#

You can't post invite here :v

silver spear
#

in detailed bot desc

#

whats wrong

sick fable
#

@silver spear your dm's are closed

misty sigil
#

mr. sloth, i can
@silver spear dont give it for free lmao

silver spear
#

no, mine arent

ebon kelp
#

Because the image is not in the assets @silver spear

sick fable
#

@silver spear ys

silver spear
#

@misty sigil itll take me 5 mins

misty sigil
#

@indigo ocean stop it or i call a moderator

#

@misty sigil itll take me 5 mins
@silver spear the hosting costs

silver spear
#

mr.sloth no, yours are

#

i just checked

ebon kelp
#

@misty sigil You have access to Luca?

misty sigil
#

wut no

ebon kelp
#

Oh, idk because your vsc workspace is called luca

misty sigil
#

oh right

#

thats the fork

ebon kelp
#

ahh

muted venture
#

Hey is any body here know about heroku? i have some questions about it...(if u dont mind join general voice chat)

misty sigil
#

Ok, I know a bit

muted venture
#

@misty sigil do u mind if u join voice channel? i have some questions about it

small peak
#

Heroku restart dyno after 24h, so it's not recommended

ebon kelp
#

@misty sigil Luca bot has shit source imo

misty sigil
#

no idea personally i've never really used package.json on heroku

small peak
#

Maybe I can help :v you can chat here

misty sigil
#

no idea sorry

silver spear
#

need some help actuallyy

#

i've spent days

#

on this now

#

<div style="background-image: url('img_girl.jpg');">

#

i have that

#

but when i put in desc of bot page

#

it doesnt work

#

whats wrong?

hasty sparrow
#

Because https://top.gg/img_girl.jpg doesn't exist?

silver spear
#

(i have diff url)

earnest phoenix
#

So how to I use reaction roles for my bot? Like

small peak
#

<div style="background-image: url('img_girl.jpg');">
@silver spear Maybe something above it

silver spear
#

still didnt work...

small peak
#

@muted venture npm install --global windows-build-tools

silver spear
#

helpo

#

pleasio

#

something is wrongio

ebon kelp
#

<div style="background-image: url('https://media.discordapp.net/attachments/272764566411149314/735147641029132338/1568911350654_thumb-1920-1015834.jpg')">

silver spear
#

ok thx

ebon kelp
#

Why would you have a image as background in the first place?

silver spear
#

it didnt work netail

#

because bots like midori do

#

just no background ...

ebon kelp
#

You're editing it, I can't see it

silver spear
#

ugh

#

why wont it WOrKKKKK