#development

1 messages · Page 715 of 1

shy turret
#

I'm pretty sure you need to delete .setColor() to do that

#

but I'm not sure

earnest phoenix
#

I have and it comes up default grey

shy turret
#

wait nope

earnest phoenix
#

For the color :/

shy turret
#

idk then

#

does anyone how to make a zip with nodejs?

#

OMG

#

FINALLY

#

DONE

vocal phoenix
#

@earnest phoenix setColor("0x34363D")

earnest phoenix
#

@vocal phoenix that removes it?

vocal phoenix
#

It matches the embed's color, so it looks like there* is no color.

#

Definitely won't* work for light theme.

earnest phoenix
#

Thanks

earnest phoenix
#
            message.guild.createChannel(TESTVAR, "voice")
                .then(channel => {
                    let category = message.guild.channels.find(c => c.name == "TESTING" && c.type == "category");

                    if (!category) throw new Error("Category channel does not exist");
                    channel.setParent(category.id);
                        var every1 = message.guild.id;
                        channel.overwritePermissions(every1, {"CONNECT": false})
                }).catch(console.error);

I'm trying to create a voice channel that people can view but not connect to, this still broken reee
any help would be apprecicated

fallow spire
#

Is there an Error?

earnest phoenix
#

(node:35540) DeprecationWarning: Guild#createChannel: Create channels with an options object instead of separate parameters Error: Value must be specified. at Map.find (F:\desktop\PCB Testing\node_modules\discord.js\src\util\Collection.js:499:45) at message.guild.createChannel.then.channel (F:\desktop\PCB Testing\app.js:243:44) at process._tickCallback (internal/process/next_tick.js:68:7) (node:35540) DeprecationWarning: Collection#find: pass a function instead

warm marsh
#

What version of djs?

#

Also, the error tells you to pass an object of options instead of separate parameters.

#

You can find accepted properties on their website under channelData.

earnest phoenix
#

So we been setting up a restful like api to handle bot functionality so we can reuse it on multiple platforms etc right, but thinking about it there must be something more effecient then having the bot call a local api right?

#

like isnt there a way to have processes interact without having to use an api necessarily

glacial mango
#

My bot is online but doesn't respond to commands

#

how can I fix that?

valid frigate
#

lol uber moment

#

processes cant share websocket connections ofc

#

so if this is clustering processes then just stick with an internal api

#

good ol req/res never hurt anyone

glacial mango
earnest phoenix
#

hello everyone! I have a little problem. Could someone please come and install the bot Invite Manager on my server? Please contact me by mp

#

no

sinful lotus
#

ipc

#

spawn a main process, have it spawn specific child process per spawwn

#

connect it via ipc

#

@earnest phoenix ^

earnest phoenix
#

Hmmmmmm

#

Time to learn 2 ipc

sly anchor
#

Join

earnest phoenix
#

@glacial mango install windows-build-tools

#

Or if you’re only testing, just use opusscript instead

glacial mango
#

I've installed windows-build-tools but I still get that error

#

Wdym with opus script?

earnest phoenix
#

opusscript doesn’t work as well but you shouldn’t have any issues installing it @glacial mango

#

You should always use node-opus for production though

glacial mango
#

What's difference between testing and production?

slim heart
#

Testing / development application is for when you’re changing code and you wanna like make sure it actually works.
Production is the actual finished product, in this case the bot that people will actually be inviting.
It’s bad practice to change something on what people are using at that time at risk of breaking something or stopping responding to users trying to use the bot

regal python
#

Is it possible to make a discord bot using c#? It's for a school project

slim heart
#

Google

regal python
#

found, thanks!

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

regal python
#

sweet, just wanted to know that it is possible

glacial mango
#

I need node-opus for production

#

How to install it

amber fractal
cerulean salmon
#

but in chat, bot not responding

amber fractal
cerulean salmon
#

@amber fractal 💗 thank you
i used includes() now worked as i expected

amber fractal
#

👌

earnest phoenix
#

Im trying to host a bot which i found of github on glitch the bot goes online but none of the commands r working can someone help me?

amber fractal
#

Actually

#

C:\Users\terhe\.node-gyp\10.16.0\x64\node.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x22F720

#

There's your error

glacial mango
#

So, how do I fix that?

#

I've tried that link but doesn't work

amber fractal
#

Well the link I provided was for a different error, I didn't find yours until then and it says invalid file or disk full

#

The file might not exist or your hard drive could be full I guess

glacial mango
#

How could I make the file exist?

quartz kindle
#

@glacial mango
check hard drive for corruption chkdsk C: /F
try installing your bot in another folder

earnest phoenix
#

How can i block blacklisted user on website panel :/

brave elm
#

I can't launch .bat files.
Can someone help me. If you can please PM me. Thanks

FIXED

valid frigate
#

bruh moment

earnest phoenix
#

lil bruh moments ❤

west spoke
earnest phoenix
#
ReferenceError: guild is not defined
    at message.guild.createChannel.then.channel (F:\desktop\PCB Testing\app.js:238:36)
    at process._tickCallback (internal/process/next_tick.js:68:7)
            message.guild.createChannel(playerCount, "voice")
                .then(channel => {
                    let category = message.guild.channels.find(c => c.name == "VRC_Playercount" && c.type == "category");

                    if (!category) throw new Error("Category channel does not exist");
                    channel.setParent(category.id);
                        channel.overwritePermissions(guild.defaultRole, {"CONNECT": false} , {"VIEW_CHANNEL": true})
                }).catch(console.error);

Trying to call for the guild.ID to set a @ everyone role permission for a channel, its making the channel but not setting the permission, and apparently guild is not defined ??
i feel like im being hella dumb here

slender thistle
#

channel.overwritePermissions(guild.defaultRole, ...

#

You have message.guild but are using guild

earnest phoenix
#
            message.guild.createChannel(playerCount, {type: 'voice'} , {permissionOverwrites: message.guild.defaultRole, 'CONNECT':false , 'VIEW_CHANNEL':true})
                .then(channel => {
                    let category = message.guild.channels.find(c => c.name == "VRC_Playercount" && c.type == "category");

                    if (!category) throw new Error("Category channel does not exist");
                    channel.setParent(category.id);
                        channel.overwritePermissions(message.guild.defaultRole, {"CONNECT": false} , {"VIEW_CHANNEL": true})
                }).catch(console.error);

Adjusted to this, no errors, but the channel perms are still open to the @ everyone role, no changes, no "CONNECT":false "VIEW_CHANNEL":true
whats the best way to call for the current guild ID/(the @ everyone role) for this kinda thing

#

I'm dumb
I was using message.guild.defaultrole for the channel.overwitePermissions

this fixed it

channel.overwritePermissions(channel.guild.defaultRole, {"CONNECT": false} , {"VIEW_CHANNEL": true})
#

channel,guild.defaultRole

quasi forge
#

I need reviews regarding the looks of https://2360dfab.ngrok.io it's incomplete so you may get a lot of 404s

earnest phoenix
#

first thing I noticed when scrolling in the get started part

quasi forge
#

And yes, it's dark theme only

earnest phoenix
#

is that some things

#

seem to snap?

#

like it snaps the top a bit

quasi forge
#

When you scroll down, yes

#

Scroll back up and it's fine. I deliberately made it that way

earnest phoenix
#

why

#

a sudden jerking motion like that is kinda funky

quasi forge
#

Exactly

#

The funk

glacial mango
#

@quartz kindle how do I do that? I don't understand what you mean

quartz kindle
#

then google it

earnest phoenix
#

I mean didn't you kind of say

quasi forge
#

More precisely, I need reviews on the colors

earnest phoenix
#

bad colors

#

new scheme

quasi forge
#

Lol

earnest phoenix
#

seriously

#

at least in my opinion, nothing realy matches

#

even look at bot dashboards to get an idea

#

they often have very nice layouts and color schemes

quasi forge
#

Ty but I'm kinda trying to make something completely unique here

earnest phoenix
#

you can be completely unique, but still not make it a rainbow

#

its a personal opinion, but on the main page

#

with those two boxes

#

add some drop shadow

#

and maybe not use almost pure black

quasi forge
#

There should be

#

And it's #121212

#

Not pure black

earnest phoenix
#

and maybe not use almost pure black

quasi forge
#

Unless I'm running the production one

earnest phoenix
#

also

#

the bottom right bottom

#

that says Join Discord

#

is missing a border color

quasi forge
#

Ah yes, it's running the production one, that I haven't updated in ages, my bas

#

Bad*

#

I already added a drop Shadow and removed the border color

#

From the button

earnest phoenix
#

the highlighted text with the background is nice

#

link text

#

not highlighted

#

but

#

perhaps on the doc page

#

change the background of some of the code example windows

quasi forge
#

Yes thats to be done but I can't seem to find a color that's good enough to be used there.

#

I want it to be a shade of grey with a slightly extra blue.

#

But can't seem to find the perfect combination

earnest phoenix
#

so

#

grey with

#

blue?

#

gru

quasi forge
#

Well, I'll continue the trial and error

earnest phoenix
#

ok last thing oof, its killing me to keep asking stuff sadbread
so I'm trying to move a channel category to positon 0, then add a channel to that category

it just returns with Error: Supplied channel is not a channel or snowflake.
is there a way to set a category position?
i've got it set to position 0 in the create-channel, but that doesnt seem to set it for some reason

earnest phoenix
#
        message.guild.createChannel('VRC_Playercount', {type: 'category', position:'0'})
        message.guild.setChannelPosition('VRC_Playercount', '0')

Error: Supplied channel is not a channel or snowflake.

quartz kindle
#
let channel = await ....createChannel(....)
....setChannelPosition(channel,0)```
earnest phoenix
#

oof, im real dumb some times

#

cries in dumb brain

                .setChannelPosition(channel,0)
                                    ^
ReferenceError: channel is not defined
quartz kindle
#

updated the answer

#

also, why are you setting the position after, when you already set it during creation?

earnest phoenix
#

idk, the position set during creation isnt taking hold, its just dumping the category at the bottom of the list, rather than setting its position to the top

#

so i thought re-setting it after might work

#

(node:27232) UnhandledPromiseRejectionWarning: ReferenceError: channelCreate is not defined

#

createChannel =/= channelCreate

#

tims example showed createChannel

#

im being dumb dont mind me oof

#

lol thats fine

#

we all have those days

#

well I mean, same issue ;-;
(node:37180) UnhandledPromiseRejectionWarning: ReferenceError: createChannel is not defined

#

well

#

did you define it somehow

tranquil drum
#

are you using message.guild.createChannel

earnest phoenix
#

^

#

yah
one sec

#
if (command === 'channel') {
        if(message.author.bot) return;
        message.channel.send ("Adding Channel");
        //message.guild.createChannel('VRC_Playercount', {type: 'category', position:'0'}) -oldcode
            let channel = await message.guild.createChannel('VRC_Playercount', {type: 'category', position:'0'}) //-new
            .setChannelPosition(channel,0)  //new
        //message.guild.setChannelPosition('VRC_Playercount', '0') -oldcode
            .catch(console.error);
#

its one of those days

tranquil drum
#

yikes

earnest phoenix
#

(node:38816) UnhandledPromiseRejectionWarning: ReferenceError: channel is not defined

quartz kindle
#

i typed .... to not re-type what you already had

#

not for you to remove it

tranquil drum
#

don't chain those calls

#

wait for the promise to resolve so you can use channel

quartz kindle
#

but if you want to do it that way, you also can

#

if you wrap it in parenthesis

#

(await something()).somethingElse()

tranquil drum
#

the channel object wouldnt point to anything

quartz kindle
#

can use channel.setPosition() instead

tranquil drum
#

you would need message.guild.setChannelPosition(await message.guild.createChannel(....))

#

ah

#

idk the lib

quartz kindle
#

yeah both ways work

earnest phoenix
#

old code was simply this

        message.guild.createChannel('VRC_Playercount', {type: 'category', position:'0'})
        message.guild.setChannelPosition('VRC_Playercount', '0')

all i wanna do is move the category to position 0 ;-; buh its not doing it on creation nd its giving an error for .setchannelpos

#

discord.js

quartz kindle
#

because setChannelPosition requires a channel object or a channel ID

#

not a channel name

earnest phoenix
#

ahhhh

#

holy fuck im being really dumb today, one sec

#

sometimes simple shit just makes me wanna cry

quartz kindle
#

just read the docs

earnest phoenix
#

docs broke me, send help

valid frigate
#

development and logic aside it's honestly best to take a break

#

as a reminder for anyone who does need help & you know you're too tired to fix it, just step outside or sleep and you'll probably see the problem a little clearer after that break

earnest phoenix
#

very true, I was tryna figure it out using the docs last night, gave up and went to bed, now im back at it and I'm still dead inside SataniaThumbsUp

earnest phoenix
#

I FIXED IT

#
    if (command === 'channel') {
        if(message.author.bot) return;
        message.channel.send ("Adding Channel");
        message.guild.createChannel('VRC_Playercount', {type: 'category', position:'0'})
        client.on("channelCreate", function(chan1){ //read channelCreate for ID
        message.guild.setChannelPosition(chan1.id, '0')  //set channelID to position 0
        console.log(chan1.id)}) //double check if ID is printed
#

Thanks guys ❤

mossy vine
#

why are you putting an event listener in a command

#

that seems to be a really bad idea

tranquil drum
#

lol i guess that works

#

as long as you're removing the event listener

earnest phoenix
#

im lazy and only want it to work with that one command, so idk

#

it works so im happy xD

tranquil drum
#

otherwise it'll stack on each time someone does that command

earnest phoenix
#

oof

#

ohh boy I see what you mean by that stack, might have to move the listener outside or something to fix it

stray wasp
#
  const request = await axios({
    method: 'post',
    url: 'https://discordapp.com/api/oauth2/token',
    data: {
      client_id: config.authentication.clientID,
      client_secret: config.authentication.clientSecret,
      grant_type: 'authorization_code',
      code,
      redirect_uri: 'https://localhost/',
      scope: 'identify email'
    },
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  });

Working on getting discord Oauth working but this just returns 400 everytime

#

And I'm using this example

late hill
#

Definitely is a horrible idea @earnest phoenix

#

Not only will you be adding another listener each time someone does that

#

Those will also ALL be fired each time someone creates a channel

quartz kindle
#

^

fickle anvil
#

discord.js: what is the difference of message.send and message.reply ?

quartz kindle
#

and by someone, really anyone ever, not only those who use the command

#

also creating channels through discord

late hill
#

reply mentions the author of that message

fickle anvil
#

ah thanks!

quasi forge
#

Basically

#

This is message.send

#

@fickle anvil, this is message.reply

earnest phoenix
#

how would I go about removing the listener after its done its thing

late hill
#

mentioning users in each reply is something users may dislike, so you could try avoiding that

#

DapperSquid use a different approach

quartz kindle
#

@earnest phoenix dont go that route please

earnest phoenix
#

cries

late hill
#

If you look at the docs

earnest phoenix
#

whelp at least i got the code section working a bit, need to grab the created channel ID a different way I guess

late hill
#

Which means you can

let channel = await guild.createChannel(whateverArguments)```
#

You could also

guild.createChannel().then(channel => {
    //channel.id
})```
quartz kindle
#

which is exactly what i said before, but my answer wasnt spoonfeedy enough lul

late hill
#

oh

#

oof

amber fractal
#

Well you could use .once instead of .on and it only listens once iirc

quartz kindle
#

well, yeah, but in between creating the listener and the event arriving, you can accidentally catch another event lul

amber fractal
#

What was he attempting to do

quartz kindle
#

create a channel then set its position

amber fractal
#

All I saw was

how would I go about removing the listener after its done its thing

#

Oh

#

You can set it as you create it, no?

quartz kindle
#

he did, but said it didnt work

earnest phoenix
#

oof I fixed the thing, sorry for being dumb abt it earlier, I tried the let method and put it in the wrong place so was just like, nah this wont work
just re-tried in a different place and it works perfectly

amber fractal
#

Im on phone right now, but I might be able to help later

quartz kindle
#

btw have you tried position:0 instead of position:'0'?

#

ie, a number, not a string

#

when you create a channel

earnest phoenix
#

oh god, if its that simple ima just yeet myself off a cliff

#

one sec

quartz kindle
#

because

#

docs ftw

earnest phoenix
#

nah it didnt work

#

idek

#

i dont think it likes creating categories with a set position

wheat jolt
#

Imagine GoLive become available for discord's api

dusky marsh
#

I think that'd be abused quite a bit

wide ruin
#

does anyone have a bootstrap navbar that actually works?

earnest phoenix
#

Imagine GoLive become available for discord's api
it is

wide ruin
#

none of them work on mobile

earnest phoenix
#

everything you do goes through the api

#

it's just that video streaming isn't exposed to bots

astral meteor
smoky spire
#

Because categories are a type of channel

astral meteor
#

How do I "not include" them?

smoky spire
#

filter them

heavy marsh
#
if (message.guild.id !== `611881570202025986`) return
#

is this correct

#

to ignore a guild?

slender thistle
#

Yes

heavy marsh
#

but it doesnt check

latent willow
#

you'd ignore every guild except 611881570202025986 with that if

heavy marsh
#

yep but i can run the command on both guids

#

guilds

earnest phoenix
heavy marsh
#

...

#

oknvm it works

#

forgot to reload

#

my bad sorry

earnest phoenix
#

🤦

heavy marsh
grizzled jackal
#

It happens 🤣

snow urchin
#

Why does this not work?

app.get("/upload/:id", function(req, res) {
  let url = require("url");

  var parts = url.parse(req.url, true);
  var query = parts.query;
  const request = require("request");
  const fs = require("fs");
  const download = function(uri, filename, callback) {
    request.head(uri, (err, res, body) => {
      console.log("content-type:", res.headers["content-type"]);
      console.log("content-length:", res.headers["content-length"]);
      request(uri)
        .pipe(fs.createWriteStream("/images/" + req.params.id + ".png"))
        .on("close", callback);
    });
  };

  download(`${query.url}`);
. . .
   throw new TypeError('"listener" argument must be a function');
    ^
TypeError: "listener" argument must be a function

The error happens for .on("close", callback)

amber fractal
#

show us your callback function.

blissful scaffold
#

Looks like callback doesn't exist

shy turret
#
message.guild.createChannel(`${message.author.id}`, "text");

this doesn't work...

#
at Client.client.on ([ignore me]/server.js:176:23)
    at Client.emit (events.js:189:13)
    at MessageCreateAction.handle (/rbd/pnpm-volume/0a3b8ae4-0db1-462d-ba19-27eb814e819b/node_modules/.github.com/discordjs/discord.js/16db92ede8dc164346eca8482ea008cb21032c7b/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
    at Object.module.exports [as MESSAGE_CREATE] (/rbd/pnpm-volume/0a3b8ae4-0db1-462d-ba19-27eb814e819b/node_modules/.github.com/discordjs/discord.js/16db92ede8dc164346eca8482ea008cb21032c7b/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (/rbd/pnpm-volume/0a3b8ae4-0db1-462d-ba19-27eb814e819b/node_modules/.github.com/discordjs/discord.js/16db92ede8dc164346eca8482ea008cb21032c7b/node_modules/discord.js/src/client/websocket/WebSocketManager.js:391:31)
    at WebSocketShard.onPacket (/rbd/pnpm-volume/0a3b8ae4-0db1-462d-ba19-27eb814e819b/node_modules/.github.com/discordjs/discord.js/16db92ede8dc164346eca8482ea008cb21032c7b/node_modules/discord.js/src/client/websocket/WebSocketShard.js:423:22)
    at WebSocketShard.onMessage (/rbd/pnpm-volume/0a3b8ae4-0db1-462d-ba19-27eb814e819b/node_modules/.github.com/discordjs/discord.js/16db92ede8dc164346eca8482ea008cb21032c7b/node_modules/discord.js/src/client/websocket/WebSocketShard.js:279:10)
    at WebSocket.onMessage (/rbd/pnpm-volume/0a3b8ae4-0db1-462d-ba19-27eb814e819b/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/ws/lib/event-target.js:120:16)
    at WebSocket.emit (events.js:189:13)
    at Receiver.receiverOnMessage (/rbd/pnpm-volume/0a3b8ae4-0db1-462d-ba19-27eb814e819b/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/ws/lib/websocket.js:789:20)
sudden geyser
#

What's the actual error message? You're showing us the stack trace.

earnest phoenix
#

Does anybody know a way to sort roles in the order they're in?

sudden geyser
#

Host what lang

west spoke
#

uh?

earnest phoenix
#

JavaScript

#

discord.js

west spoke
#

Node js is easy to host tbh

earnest phoenix
#

neko

ocean rampart
#

What does “Cannot find module” mean?

earnest phoenix
#

the user's name is host

west spoke
#

Ah

#

yeah you know I'm dumb cry

earnest phoenix
#

honestly mood

#

lol

west spoke
#

Maybe

earnest phoenix
#

neither of you are dumb

#

Host aka Stefano 😎

west spoke
#

Name leak!11!1!!!1

earnest phoenix
#

it was my old tag

#

I was a regular here but I took a long break

#

to answer your question

#

use the sort method

misty lagoon
#

Hey, anyone know why it doesn't install my npm packages

#

it returns an error

#

Even though i did npm i discord.js

west spoke
#

What error.

misty lagoon
#

here

earnest phoenix
#

the error is here

#

ok

west spoke
#

I dont see a error GWovoWhoDesu

#

or am I blind

earnest phoenix
#

no guys you dont get it

#

the error is here

misty lagoon
#

oh wait

west spoke
#

Oh herOku.

misty lagoon
#

i forgot to redo it i'm stupid af

earnest phoenix
#

haha thats glitch

#

free hosting 🙄

west spoke
#

Heroku, glitch same thing

earnest phoenix
#

^

west spoke
#

still a free host.

earnest phoenix
#

equally garbage

west spoke
#

Yep

misty lagoon
#

yes

west spoke
#

bruh

earnest phoenix
#

I just been looking around about the sort() method and dont know what I should exactly be putting in parameters

quartz kindle
#

the sort() method needs two items to compare, items that can be compared as bigger or smaller

#

if you want to sort by role position, you need to get the position number

#

and use that number in the parameters

#

if you want to sort alphabetically, you can use the role names, because js can do bigger/smaller comparisons on text, by using a numbered alphabet (ie: "a" is smaller than "b")

earnest phoenix
#

rip, I can't seem to suss this out, I just tried this:

message.guild.roles.sort((a, b) => { return a.position - b.position; }).map(role => role.name);

but wasnt in the order I wanted

amber fractal
#

what order do you want?

#

because that would be lowest to highest

earnest phoenix
#

thank you @/cry and @/Tim

boreal crest
#

Having trouble with this script, it is using .find to locate a channel, I am unsure of how to aquire the id instead, there will be no matching names with other channels so that is not a worry of mine
let channel1 = client.channels.find("name",msg.author.tag + 's Application') let guild = msg.guild guild.channel1.send('Test')

#

The specific error is undefined

sudden geyser
#
  1. That type of find is deprecated. Pass a function instead.
  2. If it's undefined, the channel wasn't found. If it's found, send the id.
boreal crest
#

ok

earnest phoenix
#

anyone have any cool resources on general structure of applications etc?

#

i like organization and scalable things

#

uwu

valid frigate
#

yes uber there comes a time when application structure is important

#

but there is also google

wheat jolt
tranquil drum
#

height wise?

wheat jolt
#

huh?

tranquil drum
#

probably because you're using %

#

the tallest it'll ever be is 635 + (256 * 2) + 1

wheat jolt
#

hmm you're right

#

i should use /

tranquil drum
#

i think you want to use 635 + (256 * ((shopData.featured.length / 3) + 1))

wheat jolt
#

yeah

#

and add Math.floor()

#

thanks

tranquil drum
#

oh yeah this is js haha

wheat jolt
#

:)

tranquil drum
#

btw you could use Math.max()

#

createCanvas(1632, 635 + (256 * ((Math.max(shopData.featured.length, shopData.daily.length) / 3) + 1)))

wheat jolt
#

Nah, I have to remove + 1 and use floor

#

tysm

tranquil drum
#

not for the truncation

wheat jolt
#

ah

tranquil drum
#

ternary is unnecessary here although it certainly works

wheat jolt
#

thanks

unkempt peak
#

Hey, How do i use custom emoji?

#

<:emoji:emojiid> not working

late hill
#

The bot has to be in that server

unkempt peak
#

oh, cant use emoji on other server with id?

late hill
#

No

unkempt peak
#

ok rip

near pagoda
#

And how do i use custom emoji when sharding? XD

#

cuz in other shard shows "undefined" instead of emoji

unkempt peak
#

Oh wait, so i created emoji in one server and testing in another server, so i had to invite bot to emoji server inorder to use it?

near pagoda
#

yes

#

i did that

late hill
#

sharding shouldn't effect that

near pagoda
#

wait wut

#

wait

late hill
#

You're probably attempting to grab the emoji from the guild

unkempt peak
#

thanks guys

late hill
#

which you won't be able to do if that guild isn't there

#

<:name:id> should still work

near pagoda
#

@late hill I use this

const emoji = client.emojis.get("emoji-id");

sinful lotus
#

dont do that

#

use the raw emoji string

near pagoda
#

oh, okay

sinful lotus
#

basically that <> thing

cerulean salmon
#

how to edit the the message which was sent by bot
i mean suppose i make an announcement command but i need to edit the message ,how to do that ?

drowsy sentinel
#

@cerulean salmon Gotta supply more information like what library and language

cerulean salmon
#

discord.js

drowsy sentinel
#

You can save the message object as a variable and call .edit(), you can fetch the message by its id then .edit(), or you can set a timeout and call edit() after a few seconds.

earnest phoenix
#

@cerulean salmon const msg = await message.channel.send("Message from before."); msg.edit(`to edit to`)

cerulean salmon
#

thank u Duane & xProxy

cunning goblet
#

question: what are the css frameworks you prefer and do they have dark theme

mossy vine
dark obsidian
#

Yo

#

I am stuck on discord.py with music commands, I managed to get the bot to join the voice channel but it wouldn’t play music

#

Can someone DM me if they can help

bright meadow
#

Whats the rate limit of renaming a voice channel?

green kestrel
#

im going to port my bot's discord frontend to sleepy-discord

#

i do love C++ and the speed at which it processes incoming messages is staggering

#

especially compared to my fork of discordphp

solemn harness
#

cool

cerulean salmon
grim aspen
#

what's fmn

cerulean salmon
#

fmn=message.mentions.members.first();

loud salmon
#

.members.first() already returns a user object does it not?

#

unless im being stupid because i dont know js

earnest phoenix
#

Yea that should fmn.id

cerulean salmon
#

🤦

amber fractal
#

members.first() returns a member, if there is one

#

Try logging message.mentions.members.first()

cerulean salmon
#

thanks all
solved now

cursive gale
#

hey

#

i'm a noob at fs

#

i want to make a error logger

#

so i made it

#

but now

#

it overwrites it instead of writing it in a new line can anyone help?

#

my code javascript let cerror = dateTime + ": Unable to fetch http://aws.random.cat/meow for cat commmand" console.log(cerror) sklogsc.send(cerror) fs.writeFile('./commands/logs/log.json', cerror, (err) => { if (err) { sklogsc.send(dateTime + ": Error while writing in file `logs.txt` for `cat` command") sklogsc.send("error: " + err + "") } sklogsc.send("The error was logged onto the logs.txt file.") })

sage bobcat
#

One message removed from a suspended account.

cursive gale
#

is there a way to make it write on a new line? @sage bobcat

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

cursive gale
#

ohh how?

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

cursive gale
#

\n where?

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

blissful scaffold
#

\n means adding a new line, it would still overwrite

cursive gale
#

that's what i thought too

#

that's why i'm asking here

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

sudden geyser
#

\n wouldn't help, you could use fs's appendFile fn

blissful scaffold
#

All I know is Java, so I can't really help you

cursive gale
#

keeping an eye on the console is hard discord was messing with my bot

#

how does appendfile work? @sudden geyser

sudden geyser
#

appends data to a file, so your other logs are there

cursive gale
#

so it's the same thing right ? js fs.appendFile('./commands/logs/log.json', cerror, (err) => {

#

like that^^

sudden geyser
#

try

cursive gale
#

ok

#

umm it works but not as i intended it to

grizzled frigate
#

Yo um

#

In java

#

I just wanna make like a status

#

Like just status only

#

@sage bobcat

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

grizzled frigate
#

Iena like

#

+listening @sage bobcat

sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

U said

#

Js?

#

Maybe

#

Js

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

grizzled frigate
#

Noice

#

Is javascript easy?

sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

Or no*

sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

Yeah

#

How u learn

sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

Ow many mnths

#

Years?

sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

What

sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

But

#

U get used to it

#

?

sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

Hmm

cursive gale
#

ok

grizzled frigate
#

How to loop a

#

I mean

#

Gow to make like a listening

cursive gale
#

a little bit of messing around has fixed it

grizzled frigate
#

Status

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

grizzled frigate
#

How to make status infinite?

#

Like

sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

Listening to help

#

Then its not

sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

Gonna go down

#

Js

earnest phoenix
#

how to change bot status in python

grizzled frigate
#

Where u host ur bot @earnest phoenix

earnest phoenix
#

Pc

grizzled frigate
#

Urbown pc?

#

Not

#

Heroku?

#

Smth

sudden geyser
#

smelderesonu I don't use java much, but in jda, there's a getPresence method where you can set the status there

earnest phoenix
#

i dont use vps

#

with pc

grizzled frigate
#

Really?

earnest phoenix
#

yup

#

i have laptop

#

allways turned on

grizzled frigate
#

Wth

#

Thats

#

Alot of

#

Electricity

#

And

#

Machine power

#

Or we call it

earnest phoenix
#

My laptop turned on for 4months now

#

or more

grizzled frigate
#

Tbh

#

Ima just use

#

Vps

#

How many months u using python

sudden geyser
#

vps is better tbh

grizzled frigate
#

?

earnest phoenix
#

4

#

haha

grizzled frigate
#

@sudden geyser what u use

earnest phoenix
#

😳

sudden geyser
#

a vps

grizzled frigate
#

@earnest phoenix how did u get use

earnest phoenix
#

what

grizzled frigate
#

@sudden geyser gime link

earnest phoenix
#

downloaded

grizzled frigate
#

@earnest phoenix how did u learn it

earnest phoenix
#

python is really easy to learn

#

Hmm

#

very very easy

#

old story

sudden geyser
#

There are some pinned VPS' in pinned messages

grizzled frigate
#

Oh

#

Im really new to codiggGWpingKanyeLUL

earnest phoenix
#

same

#

newer than u

grizzled frigate
#

What

#

Im just really new

#

Whats vps

#

?

earnest phoenix
#

dunno

hoary elm
#

@grizzled frigate I use Vultur for a VPS they are an alright service and offer $50 on sign up

late hill
#

virtual private server

#

👏

grizzled frigate
#

No

#

I want free

#

We playin dumb rn

earnest phoenix
#

viagra profesional studio

#

= vps

hoary elm
#

Well with the $50 credit you can get a free VPS for a few months considering their only like $5 a month

grizzled frigate
#

Why not use heroku then

earnest phoenix
#

anyone have experience using platform credits on heroku ?

hoary elm
#

Heroku is garbage

sudden geyser
#

heroku's very limited

#

don't do it

west spoke
#

Heroku isnt meant for discord bots

grizzled frigate
#

Oh

#

What then

hoary elm
#

They have data limits

earnest phoenix
#

virgin presidents state

grizzled frigate
#

Like free

west spoke
#

Paid VPS are better

grizzled frigate
unique nimbus
#

Free VPS is not good

west spoke
#

Free VPS will be limited

grizzled frigate
unique nimbus
#

Self Host

west spoke
#

^

grizzled frigate
unique nimbus
#

Do you have a spare computer?

west spoke
#

Self hosting is better than a free vps

earnest phoenix
#

heroku lets you migrate your code directly from githyb

grizzled frigate
#

So many

#

Bash

earnest phoenix
#

it's super user friendly

west spoke
#

@earnest phoenix so does http requests

hoary elm
#

Lol

#

Yup

grizzled frigate
west spoke
#

I can start on a python lib to load files from github

#

Depends

grizzled frigate
#

Itsba free real estate

west spoke
#

But like we said, very limited.

grizzled frigate
#

What limited

cursive gale
#

can anyone help me with my reload command?

west spoke
#

Glitch and heroku aren't meant for bots.

grizzled frigate
#

Like why

earnest phoenix
#

use google cloud

cursive gale
west spoke
#

bruh

earnest phoenix
#

its free

grizzled frigate
#

Whats the difference

cursive gale
#

it won't work

west spoke
#

Google cloud is paid @earnest phoenix

earnest phoenix
#

its free trial

grizzled frigate
#

Ugh

#

Free trial?

cursive gale
#

...

hoary elm
#

Yeah he wants a free option

west spoke
#

Let's say you are transferring a entire git repo every time.

hoary elm
#

Something that he can use to host for free

grizzled frigate
#

Yeah

west spoke
#

Self hosting is free if you have a spare computer

grizzled frigate
#

Nopendontbhave

earnest phoenix
#

i don't think vps are userfriendly from what i've seen

late hill
#

You just have to get used to it

west spoke
#

AWS is fairly user friendly but is hella expensive

grizzled frigate
#

Whats a free vps host

#

I mena

#

Mean

#

Anyone

#

Anyngood free

earnest phoenix
#

aws gives students free credit right ?

west spoke
#

If you really want free, just use heroku. It will be slow, and limited, but it will work.

#

@earnest phoenix no

sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

slow

late hill
#

@cursive gale require caches stuff meaning if you require it again, it'll still be the same

sudden geyser
#

sYnTaXeRorR

grizzled frigate
#

Heroku is slow?

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

hoary elm
#

@grizzled frigate Heroku is slow due to their data limits

earnest phoenix
#

just buy vps

grizzled frigate
#

@sage bobcat no not u

earnest phoenix
#

3$/month

west spoke
#

For http requests yeah

earnest phoenix
#

and good

grizzled frigate
#

Oh

#

@sage bobcat thanks btw

late hill
#

heroku isn't slow

west spoke
#

@earnest phoenix limited usage likely GWovoWhoDesu

late hill
#

it's bad for many reasons but you can easily run a shit bot on it

grizzled frigate
blissful scaffold
#

The best way is to just test your bot on your own computer and then when its ready you can put it on a vps or host it somewhere else

hoary elm
#

True but I wouldn't recommend using it as a host for something that you are expecting to be popular @late hill

earnest phoenix
#

i haven't had any issues with it besides the free credit doesn't let you run it forever

#

it's enough for about 1 month

grizzled frigate
#

Btw u guys have websites fornur bots

cursive gale
#

@late hill i didn't get it can you tell me in more detail?

sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

Im just askin

blissful scaffold
#

my bot has no website

late hill
#

require has a cache

sage bobcat
#

One message removed from a suspended account.

late hill
#

so you simply requiring something again

#

will not reload that file

cursive gale
#

so what should i do?

late hill
#

You have to delete it from cache

sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

Its alr

cursive gale
#

can i delete the whole cache?

grizzled frigate
#

Cya guys

#

I prob

cursive gale
#

or how would i do it?

grizzled frigate
#

Need

#

Cofee

cursive gale
#

bye

late hill
#

ugh

earnest phoenix
#

but you can host your bot on heroku forever if you have 2 accounts

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

and change your bot between those two once a month

#

when one of the accounts run out of free host time

late hill
#
delete require.cache[require.resolve('path here')]```
#

should work afaik

#

If you require it again after deleting it, it should be the updated version

sudden geyser
#

Zerp you could do that, but Heroku's still limited either way. Plus that's pretty cheap imo

late hill
#

heroku was epic before they enforced the limit properly

#

you could have 5 projects running the entire month

#

if they were worker dyno's

cursive gale
hoary elm
#

This is my vps I pay $5 a month for all that

#

In terms of GitHub projects it's semi user friendly but not hard to learn

late hill
#

I'm not too sure but go ahead and try it @cursive gale 😂

west spoke
#

My VPS is $1.50/mo

#

Excluding web hosting, file storage, etc.

hoary elm
#

Damn nice

late hill
cursive gale
#

i've hosted 2bots the entire month on heroku for free

hoary elm
#

@cursive gale yeah you can use it to host but once your bots hit that data limit all your bots will go offline

#

It's a account wide limit not per application

cursive gale
#

it works but goes down if you try to update it

hoary elm
#

I found with Heroku hitting that limit is hard the bot either has to be used a lot or you need to host more then one so for example I used to host my friends bots on it to so (6 or 7 bots) and that limit was hit within 2 weeks

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

I need to get a vps

sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

@sage bobcat what host u use

earnest phoenix
sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

Oh

#

Got good pc?

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

i use a raspberry pi

grizzled frigate
#

Noice

earnest phoenix
#

it gets the job done

grizzled frigate
#

@earnest phoenix wha

unique nimbus
#

Raspberry Pi is good

grizzled frigate
#

How much raspberry

sage bobcat
#

One message removed from a suspended account.

unique nimbus
#

£35

earnest phoenix
#

about 2 cups

unique nimbus
#

$35

hoary elm
#

@earnest phoenix lol that it does, my buddy uses one

grizzled frigate
#

What to get started in coding

#

Laptop?

earnest phoenix
#

I mean

#

you can use any device

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

hoary elm
#

You can code with your phone, PC you can use anything

blissful scaffold
#

i dont know how good coding works on a phone, so i would advice a laptop or pc for coding

earnest phoenix
#

^

hoary elm
#

Mhm

#

Vsc is my main go to

#

Or atom

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

cursive gale
#

yess ty it works

earnest phoenix
#

atom is a memory hog afaik

grizzled frigate
#

Phone?pogey

earnest phoenix
#

its just slow and smelly

grizzled frigate
#

Coding on phone?smirk

mossy vine
#

vim is fast and barely uses resources mmLol

grizzled frigate
sage bobcat
#

One message removed from a suspended account.

blissful scaffold
#

if you want to run it on a raspberry pi then you could also use that rpi to code on

grizzled frigate
#

Wha

earnest phoenix
#

why

grizzled frigate
#

Thatll tske

#

Too much ram

earnest phoenix
#

I don't even code on my pi

grizzled frigate
#

What u do with ur pi

earnest phoenix
#

host botum

grizzled frigate
earnest phoenix
#

ok

#

I take the bot I coded

#

and

#

use the pi

grizzled frigate
#

Ye

earnest phoenix
#

as

#

a host

grizzled frigate
#

O

earnest phoenix
#

for said botum

grizzled frigate
#

Any free vps

#

What does vps do

#

?

#

@earnest phoenix?

mossy vine
#

a vps is what it stands for. a virtual private server

blissful scaffold
#

smel, do you already have a working bot?
there is no need for a host or vps as long as you dont have a bot

earnest phoenix
#

well you kind of need a host

#

but that host could be you

#

hence self-hosting

grizzled frigate
#

I DONT AHVE A BOT

blissful scaffold
#

i host the test bot on my pc while im coding

earnest phoenix
#

^

cursive gale
#

code one @grizzled frigate

earnest phoenix
#

dont use dbm

grizzled frigate
#

Yeah

hoary elm
#

🤮🤮

grizzled frigate
#

What does

#

Vps do

#

Like

#

Another pc?

hoary elm
#

Yeah pretty much

#

It's a virtual server

blissful scaffold
#

a vps is like a server, but its virtual

earnest phoenix
#

I have used dbm once, I can code a function faster than I could make it in dbm

#

dbm is just

#

no

hoary elm
#

DBM is 🤮🤮

earnest phoenix
#

tbh its fine if you want a basic bot for your server

hoary elm
#

Idk why my phone capitalized but

earnest phoenix
#

but when you want to publish it to dbl

#

😳

hoary elm
#

Yeah I used it once made a nice simple bot but then I just started looking around reading guides ect and now I just code them myself from scratch

earnest phoenix
#

its so much easier to code

#

also more documentation then lol

hoary elm
#

Yeah it's easier I still struggle with some stuff or I'll make a simple mistake like forgetting a ; or some sh** but other then that

grizzled frigate
#

Bruh

blissful scaffold
#

everyone forgets ; all the time

hoary elm
#

😂😂

grizzled frigate
#

Does vps

blissful scaffold
#

thats why IDE's exist

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
grizzled frigate
#

Im not planning to buy because

#

I want

#

Free

#

Any

#

Vps

#

Free?

blissful scaffold
#

no advertising @sage bobcat 😛

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

grizzled frigate
#

Why

blissful scaffold
#

you wont get free quality

sage bobcat
#

One message removed from a suspended account.

hoary elm
grizzled frigate
#

Glitch is

hoary elm
#

@grizzled frigate ^^

grizzled frigate
#

Like

#

Crap

earnest phoenix
#

glitch is decent if you dont use it

hoary elm
#

They list a few host solutions

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

self hosting

#

but thats not ideal

#

you can also host on repl it

#

no

#

thats probably worse

#

yes you can ?

grizzled frigate
#

Ill not use my pc for a while it broke

hoary elm
#

@earnest phoenix not necessarily free if you think about it who pays your internet bill 🤔

#

😂😂

grizzled frigate
#

Might use heroku

earnest phoenix
#

technically free

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

say you use glitch

grizzled frigate
#

U cant use vps on androidpogey

earnest phoenix
#

thats not free then

#

glitch is free ?

grizzled frigate
#

I dont say my age

earnest phoenix
#

so is repl

blissful scaffold
#

you already pay for your internet bill, hosting a bot wont make it more expensive 😛

earnest phoenix
#

"yes"

grizzled frigate
#

I might look like act like a kid pedo

hoary elm
#

@blissful scaffold I know was just being a smart a**

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

^

sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

Me*

late hill
#

That depends on your provider and the plan you have with them?

#

Many providers still don't give you unlimited data

grizzled frigate
#

Ive decided to do the challenge, ill code on my phone then

mossy vine
#

@grizzled frigate tf? you definitely can use a vps on a phone

#

i do it every day

blissful scaffold
#

im pretty sure im older than you @grizzled frigate

grizzled frigate
#

How

mossy vine
#

terminus

grizzled frigate
#

Wja

#

Free?

earnest phoenix
#

imagine comparing edges like that

grizzled frigate
#

no

#

Ofc

earnest phoenix
#

im pretty sure im older than you yikes 😳

grizzled frigate
#

Idk

#

Prob

mossy vine
#
grizzled frigate
#

?

late hill
#

If you're new to coding you rly shouldn't be coding on mobile as it'll probably be hell to do so

grizzled frigate
#

Why

#

Might take as challenge since pc broke

earnest phoenix
#

what you learn is what you learn though

#

why are there so many vps shills here advertising their paid services and shit talking competitors smh caveman

late hill
#

Small screen, less options for good ide's if any at all

grizzled frigate
#

Yeah

blissful scaffold
#

you need a spare phone if you want to host it on a phone.
you really dont want to host anything on a phone that you use for calling and playing games

earnest phoenix
#

i use two monitors for programming

#

so

#

phone screen isnt useful after a time

hoary elm
#

Can't he just use like PM2

#

?

#

If he self hosts

#

Just a suggestion

#

Then again you need a PC so scratch that I guess

earnest phoenix
#

are there any host services that specializes in discord bots

blissful scaffold
#

every host that has an internet connection i guess?

hoary elm
#

Yeah pretty much

#

As long as it supports Java, JavaScript, Python ect

blissful scaffold
#

as long as it supports at least one of those ^

mossy vine
#

a vps supports all of those lmao

earnest phoenix
#

idunno i would say that just supports and not necessarily specializes in making discord bot hosting easier

blissful scaffold
#

yeah, i dont know if there are hosts that specialize in making it easier to host discord bots

earnest phoenix
#

like if i google "how to host discord bot" i see services such as heroku, glitch and repl having a lot of tutorials available

#

making it an easier progress

#

imo

hoary elm
#

Heroku is a hit and miss

#

Many people like it many people hate it

blissful scaffold
#

you can always use Heroku while you are learning about discord bots

hoary elm
#

Mhm

#

I did

blissful scaffold
#

after that you can always switch to something better

grizzled frigate
#

Can heroku run 24/7?

hoary elm
#

Yes

#

Well as long as your under your limits

grizzled frigate
#

Wdym

hoary elm
#

They have data limits

#

I think free plan is 1000mb

#

Or 500 I can't remember

grizzled frigate
#

WHAT

earnest phoenix
#

it can run 24/7 for a little under half a month

hoary elm
earnest phoenix
#

it's limited by live hours

hoary elm
#

@grizzled frigate ^^

earnest phoenix
#

to my knowledge

hoary elm
#

@earnest phoenix I believe so they call it "rows"

#

Like the dev plans limit is 10,000 rows

earnest phoenix
#

but i think if you have 2 accounts

#

and switch between those two once a month, you can run it 24/7 forever

hoary elm
#

True

grizzled frigate
#

Nvm

earnest phoenix
#

repl and glitch are free too, but your bot goes offline after 5 min of inactivity

#

but there are tutorials to make code that pings your bot every 5 min, which supposedly lets your bot run forever, haven't tried it though

mossy vine
#

they work

earnest phoenix
#

so that solution is actually better than heroku ?

sage bobcat
#

One message removed from a suspended account.

unique nimbus
#

thonk

#

why

sage bobcat
#

One message removed from a suspended account.

grizzled frigate
#

@sage bobcat 0

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

grizzled frigate
#

Kkk sure christmasthink

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

lol what

cursive gale
#

hey does anyone know how to get the current date and time?

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

look at a clock

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

cursive gale
#

like 12/10/2019 @ 07:34:34

#

in js

earnest phoenix
#

windows 10 has that info

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

^

cursive gale
#

hmm ok

slender thistle
#

Current date and time 02think

smoky spire
#

Date.now()

late hill
#

new Date() or that^^

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

late hill
#

javascript basic functions still exist

sage bobcat
#

One message removed from a suspended account.

late hill
#

he didn't specify any use case

smoky spire
#

message.createdAt is the date the message was sent not the current date

late hill
#

maybe it's not even inside a message listener

sage bobcat
#

One message removed from a suspended account.

cursive gale
#

...

vapid palm
#

guys i am a beginner and i am programing a discord bot that creates a discord server and all was working fine until i did something i cant remember and that error poped up
if someone can help it will be appriciated
i think the problem in that part

glacial mango
#

Does anyone know how to make this?
00:00:10▬▬○▬▬▬▬00:10:00

#

Ping me please

earnest phoenix
#

@vapid palm Can I see Line 207?

unique nimbus
#

Well I would make it into a percentage from the current time and the end time and with the percentage make the go as far as the percentage goes, so if it is 50% the o would be half way @glacial mango

hoary elm
#

@earnest phoenix he posted it below the terminal pic

vapid palm
#

@earnest phoenix

#

its a bot that creates channels and categories and joins them togther

#

and custom permissions for every cat and voice limit for the voice channels

amber fractal
#

Sounds like api abuse

cursive gale
#

message.createdAt works fine for me except that...

#

i don't what the extra timezone at the end

#

anyway to remove it?

vapid palm
#

@amber fractal its not legal to create a bot like this?

amber fractal
#

@cursive gale createdTimestamp

cursive gale
#

??

amber fractal
#

That will return an actual timestamp

earnest phoenix
#

@vapid palm Just limit how fast you're creating the channels and it should be fine.

cursive gale
#

ok

vapid palm
#

@earnest phoenix i already did that time for everything

#

if u can come private i can share screen

amber fractal
#

But the time is in miliseconds, you can format it yourself as createdAt returns a date object iirc

cursive gale
#

uhm

#

i.. will stick to created at then

glacial mango
#

How do I get the time of the song which is current playing

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

How do I get the time of the song which is current playing
yes i can read your mind and tell everything that you're using