#development

1 messages · Page 1033 of 1

kind sedge
#

yup

glad charm
#

Also there's nothing wrong with people using tutorials or copying code as long as one learns from it.

#

Programmers are so elitist smh.

autumn aspen
#

Exactly

#

I have a simple question can I use this in a normal respond command, ```
Hello

pure lion
#

Wdym

autumn aspen
#

Oh thx

#

Right after or under?

pure lion
#

Do you mean like message collectors

autumn aspen
#

I think

pure lion
#

Am I being wooshed

autumn aspen
#

Wait lemme see

digital ibex
#

i want to make a npm library, anyone got any ideas what It should be?

pure lion
#

Haha you're so funny ||this fucking community||

#

@digital ibex an easy to work with ascii generator?

autumn aspen
#

@earnest phoenix yup it worked

digital ibex
#

that would be easy though, i want to do something which would be a bit more challenging

autumn aspen
#

thx

pure lion
#

Oh alright

#

Maybe a musical application?

#

Like a virtual drum sequencer?

digital ibex
#

because if u think about it, all it is just replace catshrug not tryna act smart or anything lmao

#

virtual drum sequence?

pure lion
#

you're literally a God to me say what you want

autumn aspen
#

Thx guys! U have been to a big help!

#

Brb

pure lion
#

Yeah, like it stores a 4x16 grid (jajaj) and it loops through the slots (jajajajajaj) to check a Boolean maybe, and it plays something??? Bruh idk

#

@digital ibex no fucking clue if that's remotely possible

earnest phoenix
#

is there anyway to open a folder then a file?

def get_accounts_from_file():
        with open('accounts.txt') as file:
            text = file.read()```
#

instead of that i want it to open the folder then the accounts.txt file

pure lion
#

I'm assuming that's py

earnest phoenix
#

yes

#

sorry didnt specify

digital ibex
#

to play something lol, idk

pure lion
#

Person loads soundwaves or something ://////

#

i sound like an idiot no doubt

proven lantern
#

where will this video show up in my bot's profile? Is there a recommended resolution to use for the video?

digital ibex
#

whats that?

proven lantern
digital ibex
#

oh catshrug

opaque seal
#

discord.js isn't obligated to cache literally every object
if you change a property on an object who knows when it's gonna get dropped

Is this true?

proven lantern
#

@opaque seal can we get more context?

solemn latch
#

ive never seen someone use that tbh

proven lantern
#

@solemn latch i was looking for an example bot with a video, but couldn't find one either

summer torrent
#

@proven lantern next to vote button

proven lantern
#

thanks @summer torrent

hazy girder
#

hoe can i get user badges in discord.js v11

sudden geyser
#

You can't I believe.

#

Nor should you be using Discord.js v11, as it'll stop working in October.

near ether
#

how can i avoid being rate limited?

solemn latch
#

dont go above the rate limit

blazing portal
weak charm
#

No elo suki jebane

#

I pa

earnest phoenix
#

any api suggestions

sudden geyser
#

Can you be more specific please.

earnest phoenix
#

like some api

#

trending api ?

spare mirage
#

hmm

#

cheerio

#

is good fun

#

canvas

digital ibex
#

what type of api u looking for?

earnest phoenix
#

Can any experienced nodejs dev dm me

#

I have some ideas I'd like help implementing

hoary elm
#

There will be people in the Chat here willing to help you with setting it up we just aren’t gonna provide you the code to do it as all that does is teach you how to copy and paste someone else’s work.

earnest phoenix
#

I'm not asking for copy paste code

hoary elm
#

Then yes there is tons of people here who can help if you prefer private support that’s your choice all I’m saying is feel free to ask it here

earnest phoenix
#

What's the best way to do this

I'm paying servers to advertise the bot, whenever someone votes I want to give them a certain role, and I want to be able to change the guildid & roleid that the roles is given in easily, so I'd have to remove the onvote event and add it with the new variables.```
sudden geyser
#

are you even allowed to do that

earnest phoenix
#

Vote rewards are allowed yes

fast glen
#

As I know it isnt allowed

earnest phoenix
#

How's it not allowed..?

wicked pivot
#

hi, i wanted to separate some of my problem code is that it doesn't work

var config = require('./config/index')
config.initialize```
```js
var Cfonts = require('cfonts')
var config = {
initialize: async() => {
await Cfonts.say('Utter|Tools');
}
}
module.exports = config;```
lime stream
#

@🔥 Frazzen 🔥#7360 dlaczego przeklinasz. Why do you curse?

earnest phoenix
#

Reward users of your bot for voting.
Try to limit voting required commands to 2-3```
see
hoary elm
earnest phoenix
#

It's allowed

#

Now my post is buried :/

fast glen
#

Oh sorry

earnest phoenix
#

Reposting for exposure

What's the best way to do this

I'm paying servers to advertise the bot, whenever someone votes I want to give them a certain role, and I want to be able to change the guildid & roleid that the roles is given in easily, so I'd have to remove the onvote event and add it with the new variables.```
hoary elm
#

I don’t want to point you in the wrong direction but this might be API related support ^^

earnest phoenix
#

It's not

#

Its bot related

hoary elm
#

Right but it’s regarding the DBL API

earnest phoenix
#

My question is how I can add and remove events easily and reliably

#

100% not api question

hoary elm
#

fair enough

solemn latch
#

you want to add remove events? like javascript events?

earnest phoenix
#

Yes

autumn aspen
#

Guys how do I fix a cooldown for my bot commands and stuff

#

like 3 seconds slowmode on a channel

solemn latch
earnest phoenix
#

Nodejs

solemn latch
#

events work in nodejs

earnest phoenix
#

ik

solemn latch
#

iirc, this is how discord creates events

#

discordjs*

autumn aspen
earnest phoenix
#

kk

autumn aspen
#

Also guys how can I split a message like this in vsc in a respond command

#

Hello!

Wassup

#

@solemn latch

spare mirage
#

@autumn aspen get patiente lol

autumn aspen
#

Ok

#

Also

#

Why not work?

#

ALso what the hell is the command for this lmao

#

need to fix this

spare mirage
#

copy paste 🤦‍♂️

autumn aspen
#

Welp

spare mirage
#

bruh

autumn aspen
#

copy paste 🤦‍♂️
@spare mirage Can u help

spare mirage
#

nah

autumn aspen
#

Alright if I delete the command then?

sudden geyser
#

Is there anything else above in the screenshot which may cause the command to not proceed further

#

or is the kick command just not doing anything

earnest phoenix
#

dang it discord api is down

#

my bot wont connect

sudden geyser
#

you sure it's down

earnest phoenix
#

I think so

spare mirage
#

@earnest phoenix

earnest phoenix
#

my bot wont connect

spare mirage
#

its nobt

autumn aspen
#

rip

spare mirage
#

refresh token

#

try again

sudden geyser
#

Have you checked it's not an issue with your bot / host

spare mirage
#

idk

earnest phoenix
#

Its my vps, no issue im sure

autumn aspen
#

@sudden geyser

spare mirage
#

bruh

slender thistle
#

alright two message events

#

I don't like where this is going

autumn aspen
#

I deleted one thing

spare mirage
#

why do u log everything?

slender thistle
#

^^^^

sudden geyser
#

yes two message events and for some reason you're exporting a run function in your index file

misty sigil
#
const Canvas = require("canvas")
async function welcome(name){
const canvas = Canvas.createCanvas(700, 250);
    const ctx = canvas.getContext('2d');

    const background = await Canvas.loadImage('./wallpaper.png');
    ctx.drawImage(background, 0, 0, canvas.width, canvas.height);

    ctx.strokeStyle = '#74037b';
    ctx.strokeRect(0, 0, canvas.width, canvas.height);

    // Slightly smaller text placed above the member's display name
    ctx.font = '28px sans-serif';
    ctx.fillStyle = '#ffffff';
    ctx.fillText('Welcome to the server,', canvas.width / 2.5, canvas.height / 3.5);

    // Add an exclamation point here and below
    ctx.font = applyText(canvas, `${name}!`);
    ctx.fillStyle = '#ffffff';
    ctx.fillText(`${name}!`, canvas.width / 2.5, canvas.height / 1.8);

    ctx.beginPath();
    ctx.arc(125, 125, 100, 0, Math.PI * 2, true);
    ctx.closePath();
    ctx.clip();

    const avatar = await Canvas.loadImage(message.member.user.displayAvatarURL({ format: 'jpg' }));
    ctx.drawImage(avatar, 25, 25, 200, 200);

    const attachment = new Discord.MessageAttachment(canvas.toBuffer(), 'welcome-image.png');

    message.channel.send(`Welcome to the server, ${name}!`, attachment);
}
welcome("jeremy clarkson") ``` so im testing my canvas stuff and this doesn't send anything, can anyone tell me what the issue is?
autumn aspen
#

Welp

earnest phoenix
#

I regenerated token still dead

autumn aspen
#

@sudden geyser

#

Also why do I have 3 other files

sudden geyser
#

yeah don't delete them

autumn aspen
#

Ok

sudden geyser
#

do you have a good understanding of JavaScript and Node.js

autumn aspen
#

Kinda

spare mirage
#

no

misty sigil
#

kinda

autumn aspen
#

lol

spare mirage
#

"kinda" - HoldFiZzT
🤦‍♂️

sudden geyser
#

Anyway you can't use that module.exports stuff decently if you want to store it in one file. You're better off using one single message listener with each command.

As for your kick command not doing anything, can you tell me your Discord.js version and can you upload your kick command (only that section of your code) to a site like hastebin

pure lion
#

Poob

autumn aspen
#

Anyway you can't use that module.exports stuff decently if you want to store it in one file. You're better off using one single message listener with each command.

As for your kick command not doing anything, can you tell me your Discord.js version and can you upload your kick command (only that section of your code) to a site like hastebin
@sudden geyser oh ok

spare mirage
#

194 ms is very low for an bot api xD

autumn aspen
#

xD

#

WHat is the max

#

194 ms is very low for an bot api xD
@spare mirage

misty sigil
#

1 preferably

#

but there is no limit

#

(until you get a memory leak)

autumn aspen
#

Ok

spare mirage
#

I normally get 1600 ms

autumn aspen
#

Okno

spare mirage
#

lol

#

wanna see

autumn aspen
#

@sudden geyser can I create a kick.js file and put it there

#

wanna see
@spare mirage SURE

sudden geyser
#

You probably want to create a command handler.

autumn aspen
#

The kick command

#

You probably want to create a command handler.
@sudden geyser But can I put in botfile or what

#

How do I do that?

sudden geyser
#

what

autumn aspen
#

The command handler

#

@sudden geyser

spare mirage
#
    let botping = message.createdAt - new Date()
    let apiping = bot.ws.ping
``` why does my bot ping break
sudden geyser
#

You'd need to use the fs module to read a directory of files and load them together along with managing a collection of commands. There's a guide for it but if you don't know how Node.js's fs and module.exports works along with how it would dynamically work, it's like jumping into a big world with no context.

spare mirage
#

it goes into negatives

sudden geyser
#

Well you're trying to minus a message's createdAt date instance by the current date (which would logically be ahead of the createdAt date).

spare mirage
#

always worked :/

autumn aspen
#

Well you're trying to minus a message's createdAt date instance by the current date (which would logically be ahead of the createdAt date).
@sudden geyser Can u help me with the kick command now pls

#
  1. If you know something, and someone asks a question about that thing, don't shit on them for asking. Either help them or stay quiet. If you don't have anything nice or helpful to say, keep quiet.
  2. This channel exists to help people. If you're not feeling helpful, your not wanted in this channel.
  3. Keep in mind that we started as beginners once, so be nice. Helping people helps us all. The more knowledgeable the development community as a whole is, the more we all benefit.
  4. Don't say random, un-helpful, unrelated jargon to try to make yourself sound smart, if anything it makes you look dumber.
  5. If you can't answer someone's question, don't try to extrapolate your knowledge from something else, you'll most likely confuse everyone involved.
  6. Don't ask to ask (eg. "can I ask a question"), this channel exists for questions, you don't need permission to ask one.
  7. Keep inside jokes in responses to a minimum, they're likely to confuse the person asking for help.
  8. No language/library wars, it makes everyone involved look like a dick.
    Do not assume people haven't already Googled their problem. If they're asking here, they've likely already Googled their problem. Telling someone "google it" is run and unhelpful. This happend me earlier today. But some helped me
slender thistle
#

Lite explained the logic

autumn aspen
#

Yeah

#

@sudden geyser can u help me with the kick command pls

slender thistle
#

You don't need to constantly mention someone when asking for help

autumn aspen
#

Sorry

#

Im to exited

#

ecxited

#

Broken english

#

ALso Im gonna nitro boost this server

wicked pivot
#
var config = {
    menu = {
        title = ' Choix'
    }

}

module.exports = config;```in an export how can I recover the string?
earnest phoenix
#

Wat

sudden geyser
#

are you using JavaScript, because that menu = { syntax does not look correct.

#

and @autumn aspen I explained the logic, but didn't give any actual code because making a command handler isn't something that takes 5-10 seconds. There are guides to this (such as discordjs.guide) if you need an example.

amber jetty
#

How exactly can I setup webhooks inside of my python bot?
I created a channel webhook for my support server and gave that link, but I am not sure what is the right way to do it

opal plank
#

you are defining config as a obj {}
objects are property sets, 'key':'value'
@wicked pivot

#

var is bad also, dont use it

#
const config = { /*this {} is an object*/
  menu: { /*this is property 'menu' inside config obj*/
                title: ' Choix' /* this is property title inside menu, inside config*/ 
               }

}
kind sedge
#

Spoon feeding???

#

Jk

opal plank
#

that example of his is too basic to be spoonfeeding

wicked pivot
#

thx thx

#

I have another problem x)

#

I call a function in another function, how to make so that the continuation of the code is executed once the function call is done

#
async function call(){
  await wait(1000)
  await console.log("call ok")
}

async function this(){
  await call()
  await console.log('this ok')
}``` example
vernal basin
#

my heroku app says my bot has successfully deployed - however, the bot is not online

#

any reasons this could be happening?

earnest phoenix
#

Heya bros

#

Can I somehow make my Bot leave a server based on server ID?

slender thistle
#

What library

vernal basin
#

running the bot locally doesn't result in any errors

(discord.js)

zenith terrace
#

Yes u can but it be hard to get a server ID unless ur in it or ur bot logs joins

slender thistle
#

client.guilds

pure lion
#

How do you make your bot log joins

#

Just curious

zenith terrace
#

Or that

#

guildCreate

slender thistle
#

the guildCreate/join event for your library

pure lion
#

Oh ok ty

opal plank
#

@wicked pivot it should be fine to call functions inside other functions, though dont defined them inside eachother

#

another thing, for grammar syntax use Pascal for functions

slender thistle
#

JS uses camel case

opal plank
#

camel, my bad

#

pascal is for constructors

quartz kindle
#

its just personal preference anyway lol

slender thistle
#

true

opal plank
#

its good to have standardized norms, specially when you ask for help outside

#

cant hurt to know, either

slender thistle
#

but really if you use some built-in functions that follow a certain case, it's kind of easier on eyes to follow it

quartz kindle
#

nah just name all your functions and vars and classes some random incremental value

#

lmao

opal plank
#

indeed

#

lol

slender thistle
opal plank
#

name them based on first letter

#

a {}
aa{}
ab{}
ac{}

#

makes debugging a hell lot easier(not)

slender thistle
#

You are muted for promoting violence because I'm getting triggered

quartz kindle
#

sometimes i name my vars x1 x2 x3

opal plank
#

lmao

#

funny enough im pretty sure discord uses that syntax for most of the stuff

#

lemme see if i can force a crash rq to produce a stack error

quartz kindle
#

on a discord library or discord itself?

opal plank
#

discord itself

#

im not sure if i can electron force close it with process exit

quartz kindle
#

does it actually produce public stack traces?

#

ah in the client

opal plank
#

this

quartz kindle
#

thats most likely because of babel + webpack

opal plank
#

indeed

#

didnt dig thru too much

#

but still the though of naming stuff with double letters is insanely triggering

quartz kindle
#

blame js compilers/transpilers

opal plank
#

might add that on my todo list to the ultimate trigger code

#

functional yet absurdly bad code

vernal basin
#

according to Heroku, my bot has been succesfully deployed, yet it is still offline. what step am I missing?

#

(nodejs)

opal plank
#

you are missing the step where you dont use heroku

#

cuz its not suppose to be used for bots

vernal basin
#

got an alternative?

#

looking for something that can run it not locally

opal plank
#

cheap vps or run on a device you have laying around

#

mobile, old wii, anything works

#

there are vps's for $3

#

my bot for example is running on my old wii

#

installed linux on it and its good to go after some configs

vernal basin
#

looking for something that doesn't cost money because I'm just doing something casual but I still need it to be online consistently

opal plank
#

if you dont want to pay you either can do what i said and repurpose an old device to run it or ask someone to do it

#

apart from that, cheap vps are the way to go

#

heroku and glitch are agressively removing bots from their platforms

vernal basin
#

why

opal plank
#

neither of them are platforms to host bots on, its mainly websites

vernal basin
#

anything more intuitive to use that wouldn't be too complicated?

opal plank
#

running on your old phone or pc. Unless its a massive bot, it shouldnt use more than 500mb of ram for a good 100-200 guilds

autumn aspen
#

Why did I got a ping?

vernal basin
#

I don't want something that relies on my internet though, as it's really unstable

autumn aspen
#

lol

#

Guys my server is gonna grow af

opal plank
#

then either convince someone to host it for you, or spend $3 a month

autumn aspen
#

with my custom bot

vernal basin
#

unless I'm completely misunderstanding and Heroku requires my internet?

autumn aspen
#

thats gonna do everything

restive willow
#

running on your old phone or pc. Unless its a massive bot, it shouldnt use more than 500mb of ram for a good 100-200 guilds
@opal plank I use 600mb at 3000 guilds, it's really not too bad

opal plank
#

^^

autumn aspen
#

I alrdy made kick ban purge slowmode cooldown things

vernal basin
quartz kindle
#

600mb jesus

autumn aspen
#

@autumn aspen #general
@vernal basin tf lmao

opal plank
#

support here @autumn aspen, brag elsewhere

autumn aspen
#

Oh

vernal basin
#

^

#

ffs

autumn aspen
#

srry

vernal basin
#

maybe think before you "tf lmao" someone

autumn aspen
#

Yeaaaah..

#

Sorry

earnest phoenix
#

imagine bragging about making generic bot features omegalul

opal plank
#

@vernal basin heroku host it on itself, though your bot will likely go down on it, as they are removing bots from their platform

spare mirage
#

I alrdy made kick ban purge slowmode cooldown things
@autumn aspen did u make them?

vernal basin
#

okay I'd still like to get it running, even if it iwll get taken down, as like a training thing?

autumn aspen
#

No lol I put them in the vsc

vernal basin
#

to like learn how to do this in the future

restive willow
#

id say heroku is fine to host on at least temporarily, I've never had a bot removed

earnest phoenix
#

heroku host it on itself, though your bot will likely go down on it, as they are removing bots from their platform
this, both heroku and glitch have made statements that they're removing / banning projects that use uptimer bots

autumn aspen
#

So good that my is online and 100% working

earnest phoenix
#

the statement was made recently

slender thistle
#

Heroku just restarts every like 24 hours

vernal basin
#

that's fine honestly

spare mirage
#

Whats the best vps for discord bot hosting?

slender thistle
#

you don't need an uptimer bot for it

opal plank
#

@vernal basin heroku ISNT meant for bot hosting, its for websites. They go on stasis when there arent cnnections/traffic incoming, meaning your bot stops working after a while. Some people use uptime bots to keep constantly pinging the bot to keep it alive

spare mirage
#

and cheap

Whats the best vps for discord bot hosting?

vernal basin
#

oh i see hm

solemn latch
#

i like galaxygate @spare mirage

vernal basin
#

so it won't be better than my internet

opal plank
#

you should NOT use glitch NOR heroku for bot hosting

spare mirage
#

hmm

solemn latch
#

$3 a month for 1gb of ram and 1vcpu

autumn aspen
opal plank
#

there are free f1 google cloud things too iirc

#

i dont remember who told me about it tho

#

maybe it was Woo

autumn aspen
#

lol

#

Woo is good

solemn latch
#

we never tested it erwin

quartz kindle
#

google compute engine and amazon aws have free trials for 1 year each

spare mirage
#

shii 8permonth

quartz kindle
#

plus google has the free forever f1-micro yes

earnest phoenix
#

Guys this is a command right?
@autumn aspen no

opal plank
#

there you have it

autumn aspen
#

@autumn aspen no
@earnest phoenix What is wrong then?

restive willow
#

aws threw an absolute fit for me when trying to get my bot on there

slender thistle
#

it's an event

earnest phoenix
#

@autumn aspen you're using ' and ${member} :D?

#

i was fine with them, my bot grew to 1.5k on the aws free trial

autumn aspen
#

oh

opal plank
#

usually commands are based of message event

autumn aspen
#

i was fine with them, my bot grew to 1.5k on the aws free trial
@earnest phoenix WHat should I change then?

earnest phoenix
#

what

slender thistle
#

Did you quote the wrong message

autumn aspen
#

bc its not error

#

U can see

#

w8

restive willow
#

I'll be honest I'm stil l using heroku at 3k

opal plank
#

im confused

autumn aspen
#

I'll be honest I'm stil l using heroku at 3k
@restive willow lol

quartz kindle
#

i was using google's f1-micro until like 1k

vernal basin
#

okay I'm going to backtrack this then, is there a way to launch my bot even if my computer can't connect to discord? (i.e. is there a way for me to launch my bot while on internet connections that block discord?)

spare mirage
#

how much ram do u want for a discord bot to not lag on?

autumn aspen
opal plank
#

problem with me doing that is the IPC tim, otherwise i would

spare mirage
#

not*

restive willow
#

like formula 1 racing, just smaller

vernal basin
#

@autumn aspen use ` not '

opal plank
#

i cant open ports to get a server listening to outside events

spare mirage
#

no

#

thats not all

opal plank
#

stuck with local only

earnest phoenix
#

okay I'm going to backtrack this then, is there a way to launch my bot even if my computer can't connect to discord? (i.e. is there a way for me to launch my bot while on internet connections that block discord?)
@vernal basin your best bet is to use a VPN or a proxy

vernal basin
#

okay

autumn aspen
#

@autumn aspen use ` not '
@vernal basin where

vernal basin
#

any recommendations for free proxies?

restive willow
#

okay I'm going to backtrack this then, is there a way to launch my bot even if my computer can't connect to discord? (i.e. is there a way for me to launch my bot while on internet connections that block discord?)
@vernal basin I mean yeah, hosting

earnest phoenix
#

you probably don't want to use free proxies

vernal basin
#

yeah I tried hosting but apparently heroku doesn't like that

earnest phoenix
#

they sniff your data

sudden geyser
#

How could I combine multiple float-point precisions in one string? By it, I mean stuff like %.2f and %g

autumn aspen
#

yeah I tried hosting but apparently heroku doesn't like that
@vernal basin where am I gonna replace it?

vernal basin
#

stop spampinging me

quartz kindle
#

a discord bot's memory usage varies tremendously by which libraries you use, how much you optimize it and what your bot actually needs to work, besides how many guilds it has of course

vernal basin
#

I'm not going to spoonfeed you code

#

i told you what to replace, you have to figure out how to replace it

quartz kindle
#

a bot in a couple thousand of guilds can use 100mb or 2gb lol

autumn aspen
#

Yes but there in the command the ${member} one?

opal plank
#

20 mil users in 8gb, thats best ive seen so far

earnest phoenix
#

play with your code

vernal basin
#

there's literally only 1 spot you could replace it

restive willow
#

holy shit galaxygate is cheap

vernal basin
#

just edit something

earnest phoenix
#

why are you afraid to experiment and try and see the result

autumn aspen
#

Ok

earnest phoenix
#

programming is all about resolving logical problems in whichever way you want

#

just try and see

vernal basin
#

if it's wrong, and you don't edit it, it will still be wrong

your code is not a subatomic particle

quartz kindle
#

20 million users in 8mb is not possible, unless you mean 20 million total count and 0 users cached

autumn aspen
#

oh ok

opal plank
#

8gb*

restive willow
#

personally my code actually is a subatomic particle

opal plank
#

sharon accomplished that with deno lib

autumn aspen
#

but I cant see where I need to replace it?

#

look

spare mirage
vernal basin
#

oml

spare mirage
#

for the broke duds

#

not

opal plank
#

cached 20m users in 8gb of ram

vernal basin
#

okay search up how to use ` in javascript

restive willow
#

$3 for a 1gb vps

#

cheap

quartz kindle
#

8gb makes more sense

slender thistle
#

You need to change the string where you use ${member} to a template string

autumn aspen
#

okay search up how to use ` in javascript
@vernal basin Dude I can I have a JavaScripted bot

#

oh

earnest phoenix
autumn aspen
#

thx

vernal basin
#

ffs

opal plank
#

8gb for 20 million users cached is still a big as accomplishment

vernal basin
#

use brain pls

earnest phoenix
#

help vampirism is discouraged here

solemn latch
#

@spare mirage thats 4gb of ram
you can have them for $3 a month

vernal basin
#

okay, so I'm currently using protonVPN - it works running locally, the issue is that the bot will just stop operating randomly

#

like the proccess won't even stop

#

it will just not respond to anything

#

and after a few minutes the bot will go offline

earnest phoenix
#

deadlock?

vernal basin
#

what's that

earnest phoenix
#

google it

autumn aspen
vernal basin
#

erm no I don't have anything that awaits anything else

earnest phoenix
vernal basin
#

@autumn aspen literally just use ` instead of '

opal plank
vernal basin
#

you replaced { not '

opal plank
autumn aspen
#

I did

#

oh

slender thistle
#

aw I was late

opal plank
#

jokes aside, check the last link @autumn aspen

vernal basin
#

is it an internet problem, if my bot loses connection for a second, will it just terminate?

#

well not terminate, just die, rather?

opal plank
#

you should really at least skim thru the js docs before doing a bot

#

both js docs and lib docs

autumn aspen
#

thx

vernal basin
#

._.

autumn aspen
#

Bro Im literally dumb

#

Finally I got it

vernal basin
#

congrats

opal plank
sudden geyser
#

javascript

autumn aspen
#

yeah my bot is javascripted

#

@sudden geyser can I put the kick commands in index.js as I did?

opal plank
#

can? yes

#

should? no

#

command handling

#

dynamically, if possible

autumn aspen
#

yeah

opal plank
autumn aspen
#

command handling
@opal plank can I create one?

opal plank
#

read guide above

autumn aspen
#

I did

#

but sure

coral flume
#

Why this server have 56 boosts 😒😒
Any use? 😂😂

sudden geyser
#

Hold you should learn more JavaScript before attempting to make a command hanndler.

opal plank
#

that too ^^

autumn aspen
#

yeah

opal plank
#

otherwise you'd be copying over what the guide shows

#

the guide assumes you know js beforehand

autumn aspen
#

But look I dont get it shall I make a command handler or is it alrdy there?

#

Just pls help at least with that

opal plank
slender thistle
#

There's probably one on the Internet laying around

#

but in order to easily apply it to YOUR bot, you should get hang of JS first

autumn aspen
#

There's probably one on the Internet laying around
@slender thistle Is the command handler alrdy in VSC or what?

slender thistle
#

VSC is a code editor

strange trout
#

What

opal plank
#

its not a plugin/module

#

you gotta write it

slender thistle
#

You edit files with it

autumn aspen
#

oh

opal plank
#

commando might be your best bet, though i recommend the guide

quartz kindle
#

a command handler is a simple piece of code that does the following:

  1. read all files in a folder
  2. require each file found and put it somewhere
  3. when you receive a message, check if command exists somewhere
  4. if it does, execute the command
sudden geyser
#

commando cringe

opal plank
#

i dislike commando

#

i did the handling myself

autumn aspen
#

Guys but where can I find the command handler or where do I write it??

opal plank
#

though for starters it might be a good solution

quartz kindle
#

pretty much everyone writes their own handlers

autumn aspen
#

Pls dont be hard

strange trout
#

I use a custom version of discord-akairo

opal plank
#

you dont 'get it', you make one

quartz kindle
#

just follow the steps i showed above, one by one

autumn aspen
#

Thx

quartz kindle
#

and try to write code that does that

autumn aspen
#

what the name for it

#

just it

#

"comman handler"

autumn aspen
#

@opal plank

opal plank
#

i event send you a link

#

even*

autumn aspen
#

ok

slender thistle
#

out of all the messages you only saw the ones that said "it's on the internet"

opal plank
#

^^

#

shivaco

#

what do you think of this?

quartz kindle
#

^

strange trout
#

^^

earnest phoenix
#

^^^^

pure lion
#

^^^^^^^^

slender thistle
#

not a rule but rather to add it to list of advised things

quartz kindle
#

put it in the faq

opal plank
#

^

slender thistle
#

rules

#

two channels no one ever reads

strange trout
#

Post it here and pin it

pure lion
#

Can we pin the dontasktoask link

opal plank
#

having it on rules or somewhere at least let us mini mod our way thru it to prevent people from coming here with 0 knowledge

#

the only thing rule says is spoon feeding

#

problem isnt that they dont know, is that they refuse to learn. Its a constant cycle of coming back and fourth between 'okay, how do i do this now?'
'it no work'
'here error, fix'

slender thistle
#

which will be punished accordingly if it keeps on going

opal plank
#

we usually point out the guides but it gets on the same vicious cycle where we are stuck with ignoring it

#
           Everyone starts somewhere and asking questions is smart. Do not attack people for not knowing how to code. Point them to great learning sources and help them with problems.
           However, you shouldn’t just give them finished code because then they only learn to copy more.
      b. If you are a beginner, have a will to learn and do not expect to be spoon-fed.```
stuff like this is rather strict on when it can be applied
```Show effort: We really like to see that you are trying to achieve your goals on your own first.
Be ready to be wrong: Often we suggest you take a new approach.
Don't ask for help before doing the research yourself: If my google search returns your answer in the first three links, you are doing it wrong.
When given resources to learn, use them. We do not like repeating ourselves.
Do not beg for help: If you have asked once and we ignore you then move on.
Contribute to the community: We like to help people who also like to help people, it's pretty simple.
Don't ask for code: Pseudo code is more than helpful and will set you on your way.
Ask for help finding the answer, do not ask for the answer: we are not here to do your work.

stuff like this at least added ontop should help a bit

#

of course, thats just me copying the rules over, but it gives a general sense of what im trying to say

proven lantern
#

im trying to get the initial creation time of my bot. im using fetchApplication to try to get the app's data, but i get an error

Request to use token, but token was unavailable to the client.

https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=fetchApplication

https://discord.js.org/#/docs/main/stable/class/ClientApplication?scrollTo=createdTimestamp

spare mirage
#

refrsh token

#

Why dont we have an message pinged with link that "teach" u how to learn a coding language

autumn aspen
#

Guys Im better then thos that made Windows

spare mirage
autumn aspen
#

oops'

spare mirage
#

thats a political argument lmao

proven lantern
#

@spare mirage my token is valid

spare mirage
#

hmm

#

code

proven lantern
#
console.log(app.createdTimestamp)```
spare mirage
#

hmm

proven lantern
#

does that fetchApplication function work for you?

spare mirage
#

I can try

proven lantern
#

if you dont have support for the await keyword you can use this instead client.fetchApplication().then(app=>console.log(app.createdTimestamp));

#

client is new Discord.Client()

quartz kindle
#

is the client logged in?

proven lantern
#

oh, i might be doing that before the login finishes

torn ravine
#

does anyone know a good module to get stats?

proven lantern
#

yeah

pure lion
#

@torn ravine stats of...?

torn ravine
#

like memory, cpu usage, etc

pure lion
#

Oh

spare mirage
#

1593248817455 this is what my console logs

pure lion
#

.toLocaleTimeString

spare mirage
#

@proven lantern

pure lion
#

I can't remember spelling

spare mirage
#

was dat @pure lion

pure lion
#

Uh

opal plank
#

works fine

spare mirage
#

what does that number mean

opal plank
#

the timestamp

spare mirage
#

how do I convert it into a date xD

pure lion
#

.toLocaleTimeString()

summer torrent
#

@torn ravine os-utils

proven lantern
#

@quartz kindle that did the trick. thanks

earnest phoenix
pure lion
#

There's free hosting for any bot

proven lantern
#

@spare mirage thanks for checking. i was trying to call that function before my bot finished logging in

earnest phoenix
#

There's free hosting for any bot
@pure lion Don't tell me heroku

#

It's ||bad||

spare mirage
#

heroku

pure lion
#

GliTch (pay)

proven lantern
#

@earnest phoenix you can host the bot on your computer

opal plank
#

dont use glitch either

earnest phoenix
#

Heroku can't run code of 5 mb

spare mirage
#

eww

#

glitch

pure lion
#

Buy a server boi

opal plank
#

host it on an old device you have laying around

spare mirage
#

makes me wanna throw up

pure lion
#

Host on a server boi

earnest phoenix
#

@earnest phoenix you can host the bot on your computer
@proven lantern I don't have turned on pc 24/7

opal plank
#

old phone, wii, old pc, whatever you got

quartz kindle
#

heroku cant run code of 5mb? wtf

opal plank
#

Jake even hosted a bot on a fridge

earnest phoenix
#

Host on a server boi
@pure lion What server?

opal plank
#

smart fridge bot hosting

pure lion
#

old phone, wii, old pc, whatever you got
Teach me the ways of the wii

strange trout
#

You shouldn't use Heroku or Glitch to host bots

spare mirage
#

ye spls

earnest phoenix
#

But heroku don't work

spare mirage
#

imma use my wii

opal plank
spare mirage
#

and run it on COW

pure lion
#

Ty

spare mirage
#

wait what

earnest phoenix
#

It just work if code is ```print("hello")

opal plank
#

i installed linux on my wii to run the bot

#

¯_(ツ)_/¯

earnest phoenix
#

What is wii

opal plank
#

Wii

#

Nintento Wii

spare mirage
#

no u didnt

opal plank
#

that old white thinng you have getting dust

earnest phoenix
#

I don't have

spare mirage
#

@earnest phoenix wow imagine not knnowing what a wii is

strange trout
#

I'd recommend using a Raspberry Pi if you can't afford monthly fees

opal plank
#

anything you have laying around?

quartz kindle
#

anyways @earnest phoenix
free trial: google compute engine (1 year), amazon aws (1 year)
free forever: google f1-micro, heroku/glitch/repl.it
paid: a billion vps hosting providers starting from as little as $2.5 per month

opal plank
#

yeah rapsberry is an option too

#

actually, im gonna make that a tag rq

spare mirage
#

@strange trout raspberries suck for music

earnest phoenix
#

Ok tim ty

pure lion
#

I have a raspberry

spare mirage
#

I have 3

#

weird flex but ok

strange trout
#

Get an Intel NUC then

spare mirage
#

Maybe my dad has something great

earnest phoenix
#

I just need hosting (not require credit card, pay.., ...)

spare mirage
#

idk

strange trout
#

Or a Dell OptiPlex

stark abyss
spare mirage
#

eww

#

no

earnest phoenix
#

glitch

#

repl.it
@stark abyss can't run code more then 30 minutes

stark abyss
#

use pingign service

earnest phoenix
#

glitch
@earnest phoenix can't run python i think

stark abyss
#

like freshworks

spare mirage
#

heroku glitch repl.it
these 3 words should be filtered and deleted

stark abyss
#

pinging service - freshworks, uptimerobot, statuscake

#

they are free

#

it basically pings your vps so it stays alive

#

glitch doesn't allow it anymore

earnest phoenix
#

uptimerobot just watch if script running

#

btw

stark abyss
#

idk about that

quartz kindle
#

all three of them can run python, but all three of them auto-sleep after inactivity, so you will need one of those pinger workarounds anyway

earnest phoenix
#

statuscake and freshworks don't know what is

strange trout
#

If you're a college student or have a school ID sign up for GitHub Student Dev pack. You get $50 credit to Digital Ocean as a perk

stark abyss
#

pinging service

#

freshworks is really good

earnest phoenix
#

If you're a college student or have a school ID student sign up for GitHub Student Dev pack. You get $50 credit to Digital Ocean as a perk
@strange trout i am not

spare mirage
#

@quartz kindle why would u use them though? because youtube tutorials do

#

lol

earnest phoenix
#

freshworks is really good
@stark abyss i will try wait

opal plank
#

@earnest phoenix

stark abyss
#

hm?

quartz kindle
#

because people want something 100% free that doesnt ask for credit card on account creation

#

afaik those 3 are the only options

spare mirage
#

hmm

#

something free

#

lemme think

#

VSC

earnest phoenix
#

because people want something 100% free that doesnt ask for credit card on account creation
@quartz kindle ok

strange trout
#

VSC is a text editor

tough bay
#

I have a raspberry
@pure lion same

spare mirage
#

Just run it on ur main pc then

earnest phoenix
#
spare mirage
#

I bet glitch repl.it will get dang laggy

earnest phoenix
#

How can i make repl.it run script 24/7?

strange trout
#

They run pretty good for small bots

tulip ledge
#

I'm experimenting with awaitMessage but it's not working

    const filter = response => {
        return message.author.id === response.author.id;
    };
    message.channel.awaitMessages(filter, { max: 1, time: 30000, errors: ['time'] })
    .then(collected => {
        if(collected.first() === "diamond") message.channel.send("true")
    })
    .catch(collected => {
        message.channel.send('Looks like nobody got the answer this time.');
    });

Any idea why?

earnest phoenix
#

.content

spare mirage
#

trivia command?

earnest phoenix
#

How can i make repl.it run script 24/7?
?

tulip ledge
#

.content where? collected.first?

earnest phoenix
#

collected.first().content

tulip ledge
#

Jup

#

Works ty

earnest phoenix
#

np

#

How can i make repl.it run script 24/7?
Help me now pls

strange trout
#

That's because collected.first() returns the entire message by the way

spare mirage
#

hmm

strange trout
#

@earnest phoenix google it

spare mirage
#

im thinking... Do people sit here in this channel

#

and

#

not saying anything

#

to get free code

#

?

strange trout
#

Half of the code shared here isn't great

#

Doubt it

earnest phoenix
#

Should I try with uptimerobot?

#

no

spare mirage
#

@earnest phoenix nothing wrong with trying

opal plank
#

dont

earnest phoenix
#

what then?

#

use freshworks

spare mirage
#

whats uptimerobot

opal plank
#

usually those limits are in place to limit abuse of their api uncessarily

earnest phoenix
#

i hate how ppl ignore me

opal plank
#

it keeps pinging your bot so it has incoming traffic and doesnt go idle

earnest phoenix
#

i mean

#

i love it

strange trout
#

Don't use any of those services to host your bot

earnest phoenix
#

why

strange trout
#

Host it at home or get a cheap VPS

earnest phoenix
#

I want something free

#

just go to DanBot hosting

opal plank
#

the fact that you need an uptimer means the platform isnt meant for bots

earnest phoenix
#

and without credit card

#

they host for free

#

danbot hosting is free

spare mirage
#

@earnest phoenix I bet there is some device nobt being used in ur house

#

use that

opal plank
#

Google cloud f1 micro
aws trial(1 year)
@earnest phoenix

earnest phoenix
#

or use danbot

#

Google cloud f1 micro require credit card?

#

or use danbot
@earnest phoenix what?

#

ok then dont use danbot hosting

strange trout
#

DanBot sounds sketchy

earnest phoenix
#

your loss

#

ok then dont use it

quartz kindle
#

i googled "danbot hosting" and didnt find anything lol

strange trout
#

Same

sudden geyser
#

what is danbot

spare mirage
#

"hosting"

#

maybe a hosting platform

#

lol

earnest phoenix
#

free?

sudden geyser
#

yikes

spare mirage
#

that looks like something stealing ur account or token tbh

earnest phoenix
opal plank
#

sounds sketchy af

earnest phoenix
#

¯_(ツ)_/¯

strange trout
#

Cool effects on their website but still sketch

earnest phoenix
#

im not forcing yall to do anything

spare mirage
#

Cool effects on their website but still sketch
@strange trout lmao

earnest phoenix
#

its pterodactyl panel lmao

quartz kindle
#

i cant find any information on danbot hosting, the link you posted is for the admin panel login

tulip ledge
#
        switch (collected.first().content.toLowerCase()) {
            case "rocks":
                chosen = "rocks"
                break;
            case "iron":
                chosen = "iron"
                break;
            case "diamond":
                chosen = "diamond"
                break;
            default:
                return message.channel.send(`This isn't a viable option.`)

Why is this returning to the default?

quartz kindle
#

where do you find hosting plans, prices, resources, etc?

tulip ledge
#

When I log collected.first().content.toLowerCase() it equals rocks

earnest phoenix
#

i have 3 servers
@earnest phoenix free?

spare mirage
#

@quartz kindle danbot is "free"

earnest phoenix
#

yes

#

free

#

100%

spare mirage
#

anyone wanna make an alt and try

earnest phoenix
#

u dont need to log into ur discord at all

#

lol

opal plank
#

only 22 clients/users?

earnest phoenix
#

online

opal plank
#

either really new project or really sketchy

earnest phoenix
tulip ledge
#

anyone knows my issue?

earnest phoenix
#

you sign up in the discord

quartz kindle
#

i dont wanna join their discord just to see prices/plans lol

strange trout
#

It's ultra sketch lol

quartz kindle
#

how much ram is the free one?

tulip ledge
#

anyone knows my issue?

strange trout
#

Sec Dev

earnest phoenix
#

lol im just saying

spare mirage
#

still sketchy

honest perch
#

Just buy a vps

earnest phoenix
#

i will try

opal plank
#

looks too good to be fake, though i still have my doubts

spare mirage
#

I bet they use ur information/code

earnest phoenix
#

lol im only trying to help

#

lol

opal plank
#

no, im aware

#

not blaming it on you or saying you're sketchy

#

its the fact that no one here knew about it before hand

earnest phoenix
opal plank
#

so its likely knew or something

strange trout
#

Nah, there's other services exactly like that

spare mirage
#

@earnest phoenix read it

#

and learn

earnest phoenix
#

if you are trying to run a website there, he will even set up a reverse proxy

#

did u read #getting-started?

spare mirage
#

this is about to become advertising lol

earnest phoenix
#

its just like saying

#

use glitch

#

or

spare mirage
#

NO

earnest phoenix
#

or

#

use a vps

#

yes it is

#

thats like saying

#

size matters

tulip ledge
#

Ok I'll go do if else stacking if no one knows my issue then

#

I try to be fancy for once lol

strange trout
#

Can you share more code?

quartz kindle
#

i just want to know how much ram it gives you lol

strange trout
#

Can't really tell from what you shared, Chicken

earnest phoenix
#

5gb

quartz kindle
#

your code looks correct chicken

spare mirage
#

thats obviously lied

quartz kindle
#

@earnest phoenix thats not ram

tulip ledge
#

Well

#

It doesnt work for some reason

earnest phoenix
#

no its not

chilly bison
#

glitch is good

spare mirage
#

eww

#

no

#

glitch poop

earnest phoenix
#

yes storage is 5gb but so is ram

spare mirage
#

thats imposibble

earnest phoenix
#

it only uses as much as it needs to until it hits 6gb

quartz kindle
#

pretty sure its not

chilly bison
#

Glitch boosted projects is good

strange trout
#

You can also use object literals Chicken

chilly bison
#

I already bought 5 subscriptions

#

across 5 different accounts

earnest phoenix
#

DanBot hosting is ||shiiiiiiiiiiiiiiiiiiit||!!!

warm marsh
#

It's cheaper to buy a VPS instead of buying "Glitch boosts"

earnest phoenix
#

lol

#

ok

chilly bison
#

yes

#

but glitch is easier

#

npm ez

#

auto-restart

earnest phoenix
#

glitch is down most of the time

warm marsh
#

You can do the exact same on Linux VPS

quartz kindle
#

6gb ram is a lot, noway anyone would offer that for free

warm marsh
#

Just requires more setup.

earnest phoenix
#

@earnest phoenix u can host py

#

soo glitch is enemy for python

chilly bison
#

@earnest phoenix you can run python on glitch

earnest phoenix
#

there

strange trout
#

Okay I think it's sketchy but calling it sh*t because you don't know how to sign up is kind of dumb bloblul

earnest phoenix
#

really

#

he is a human too ya know

#

Okay I think it's sketchy but calling it sh*t because you don't know how to sign up is kind of dumb bloblul
@strange trout This ||sht|| work?

#

u have to make a ticket and wait for him to create you a server

strange trout
#

6gb of ram is an insane amount to give out for free

earnest phoenix
#

theres not to many people using it

quartz kindle
#

im pretty sure its shared ram

earnest phoenix
#

^

#

there multiple nodes

chilly bison
#

cheap

quartz kindle
#

so what happens if one bot starts using too much ram? does he remove it?

chilly bison
#

and it's great

earnest phoenix
#

no

chilly bison
#

just buy something

#

if you pay

warm marsh
#

A VPS can be bought for ~3 dollars

earnest phoenix
#

i use about 200-400

chilly bison
#

then they are obligated not to sell your info

earnest phoenix
#

im perfectly fine

chilly bison
#

and dig through your code

#

with free ones

tulip ledge
#
        let pembed = new Discord.MessageEmbed()
        .setTitle(`Item`)
        .addField(`You picked ${chosen.toUpperCase()}`)
        msg.edit(pembed)

Where did the undefined come from?

chilly bison
#

they do stuff with your code

tulip ledge
#

Oh nvm

#

I just noticed myself

#

I'm stupid lol

strange trout
#

No value

tulip ledge
#

It's late ok

opal plank
#

@tulip ledge chosen

#

where is chosen defined?

tulip ledge
#

no fixed already

opal plank
#

¯_(ツ)_/¯

#

aight

earnest phoenix
#

i dont think my bot will even begin the process of getting added to the list

quartz kindle
#

why lol

rotund belfry
#

Hello (:

strange trout
#

hi

opal plank
#

list in top.gg or that danbot thing?

#

cuz if its here, you'd be surprised how many copy pasted bots are here

chilly bison
#

@opal plank have you seen the amount of bad bots in the new section?

opal plank
#

i stopped looking, it gave me a headache just looking at the bots with 4 basic commands as their whole content getting added

strange trout
#

They're all the same

opal plank
#

+say +ping +hi
those are the only commands on some bots in sum

#

and +help

strange trout
#

ping, say, mute, ban, kick, help

opal plank
#

nothing wrong with that, its just scary to see how easily it can get added

quartz kindle
#

people like to add unfinished bots to top.gg

strange trout
#

oop double ping

quartz kindle
#

they often add to top.gg immediately after creating an application in discord lmao

opal plank
#

the only reason i see why you'd use it here is to get a decent idea of ram usage and networking, since it has 100k users and its a good sample to check your stability

strange trout
#

I've been working on my bot for a year and I still think I should have waited to add it

opal plank
#

i asked DAPI and a couple other big servers to see if i could stress out my bot by doing some very intensive loop commands between all users and see how well my network config and bot would handle

quartz kindle
#

most people have no idea what this server alone does to their bots

opal plank
#

100% agree

#

WanKill wasnt doing the trick

#

but discord api did

quartz kindle
#

lmao

opal plank
#

im still amazed WanKill didnt manage to provide an accurate enough traffic to stree my gigabit network

#

but Discord api managed to get me a fuck ton of stress

quartz kindle
#

looping through members/users is something that should be avoided at all costs, since there no way to do it without caching all of them and skyrocketing your ram

opal plank
#

all the real time updates and presences did a number

#

that was the whole point of it

#

stress testing if the config was stable enough to be run on bigger servers

#

was using redis/postgres to cache every user obj in a call for each column, then fetching more from the api for public flags with a ratelimit in place

#

couldnt figure out a way to cause more stress than that locally

#

im open to suggestions

quartz kindle
#

500 seconds to finish

#

wtf are you testing

opal plank
#

180k users with multiple db calls and api calls

#

then dropping the data tables

#

not interested in keeping all that data, its just for stress test

quartz kindle
#

interesting

#

did you measure the different stages separately? ie time for download, time for insert, etc

opal plank
#

that i did not, but could be interesting to check

#

see where the biggest hopld is, though im sure it was the queries to check duplicates

quartz kindle
#

it takes about 15 seconds to download 100k members on my vps

opal plank
#

to download, yes, but parsing all that data took a lot of time time

#

specially cuz i purposefully inserted each member with 8 different database calls

#

one for each column

quartz kindle
#

lmao

#

makes sense then

#

but doesnt that make it more of a database stress test than a network test?

opal plank
#

both local and network

#

some of those calls required public flags and such which im doing with axios for requests

#

so there was a lot of traffic going in and out

quartz kindle
#

like fetching flags for each separate member?

opal plank
#

yup

#

im unsure if there are other better options to stress test the whole bot environment other than that

#

network/memory/database all at once

pseudo garnet
#

If i wanted to hire someone to code a discord bot to run a league through crowd funding for a e-sports video game... the idea would be people would !join a ranked match and the bot would have matchmaking capabilities and basically run an MMR system through a chat bot is this a good place to talk about that?

quartz kindle
#

lucky discord doesnt seem to have rate limits on GET requests to users/members lmao

opal plank
#

yeah this wouldnt be possible without it

#

well, would, but take a lot more time

quartz kindle
#

@pseudo garnet i dont think this is the right place, but i could be wrong

opal plank
#

i dont think chunk works for public user info

pseudo garnet
#

Hey no worries I am just probing around I am not sure if this type of thing exists already for other games

#

but basically i know a community that would easily crowd fund that sort of thing

opal plank
#

This is for development, there are some servers which are purposefully for that. Though #bids might help you

quartz kindle
#

i've seen a few tournament/matchmaking bots, but never used one

opal plank
#

im unsure how bids work here

pseudo garnet
#

any idea where tim?

#

but those terms might help my query xD

#

its an obscure topic

quartz kindle
pseudo garnet
#

thanks for the info!

opal plank
#

there might be some pre made bots that do exactly what you wish

pseudo garnet
#

yea thats what im wondering

#

it seems bots have evolved a ton recently

#

so i think i can complete my quest somehow 🙂

quartz kindle
#

maybe too much

#

lmao

opal plank
#

agreed

pseudo garnet
#

we realize we are all bots

quartz kindle
#

beep boop

opal plank
#

pong!

pseudo garnet
#

🙂

quartz kindle
#

btw erwin, which lib did you use for your test?

opal plank
#

d.js

quartz kindle
#

rip

#

lmao

opal plank
#

unmodified, though i should do some upgrades

quartz kindle
#

im running some benchmarks on some js libs

opal plank
#

i should be moving to detrius soon enough tho

#

though deno stuff sounds cool too

quartz kindle
#

the only reason im not moving to it is that i already spent way too much time on djs-light

#

not gonna give up on it now

strange trout
#

You developed discord.js-light right?

opal plank
#

the problem with my bot is that its multi purpose, so its a project that doesnt end

quartz kindle
#

ye

strange trout
#

Is it easy to move from d.js?

quartz kindle
#

depends what your bot does

strange trout
#

It does what's on my status

pure lion
#

Fuck it I'm gonna make a package that automatically adds 100 commands so nobody has to waste their time making the functions of literally every other bot

quartz kindle
#

shouldnt be hard then

pure lion
#

I mean how would it work

#

How do I package

quartz kindle
#

lmao

strange trout
#

login in to npm and then npm publish

#

Basically amariLul

pure lion
#

Oh I know I'll make a discord.js wrapper bloblul

quartz kindle
#

i use np to publish

pure lion
#

np npm p

#

Why does this make sense

quartz kindle
#

lmao

opal plank
#

im usually against the idea of that pre-made commands

quartz kindle
#

there are always two sides

pure lion
#

Fine I'll just dumb down the API even more than light

opal plank
#

with the amount of bots out there, its simply wasteful to keep making repetitive stuff without any uniqueness

quartz kindle
#

its simultaneously a good thing and a bad thing about the whole npm ecosystem

opal plank
#

only reason i'd see is when customization isnt an option nor hosting

quartz kindle
#

there are countless copies of the same thing out there, nobody knows anymore whats good and what isnt

opal plank
#

^^

pure lion
#

Okay but for real

quartz kindle
#

so nobody trusts anything anymore, and everyone just makes their own copy, which further increases the problem lmao

pure lion
#

What does a package have to achieve, and how would it do so?

strange trout
#

First write the commands lol

opal plank
#

writing modules is annoying

pure lion
#

Say I wanted to add features to djs, make it simpler

#

Simpler-er

#

You know what I mean

opal plank
#

Tim might give you a better insight, im not at libdev level yet of proficiency

quartz kindle
#

step 1: run npm init in some folder and fill it up with your package info
step 2: install required modules
step 3: write your code in one or multiple files, and export something from your main file
step 4: require your package in some other project/folder

pure lion
#

Alright

#

So pacc is written in js, but do I need to have deeper knowledge? What would I need to learn about?

quartz kindle
#

pacc?

opal plank
#

if you are going to modify, you should have a really good understanding of general js. Though for a lib dev, you prob need to be very proficient

strange trout
#

Look at the source code of packages so you can see how they structure everything

pure lion
#

@quartz kindle pack

#

Also alrighttt