#development

1 messages · Page 1185 of 1

real nacelle
#

i-?

snow urchin
#

show the code...

real nacelle
#

1 second

snow urchin
#

im just gonna.. let someone else help with this.. its 7am and i have no slept and that is just.. a mess poggers

real nacelle
#

hmm

#

k

#

@lime pumice can ya help meh?

worthy glacier
#

SPAGHETTI mmLol

restive furnace
#

message listener in embed

#

huh

real nacelle
#

ehh

solemn leaf
#

what is a good place host

restive furnace
#

check pinnnsss

solemn leaf
#

thank

real nacelle
#

Can we create more than 1 bot?

#

is it legal?

pale vessel
#

yes

real nacelle
#

oh thx

#

i dont know javascript

#

so I will make a python bot

#

I know almost full python

#

just the problem of embeds

#

I will face later

#

But it will be easy

solemn leaf
#

@real nacelle you hsould learn a bit of lua then go to js

real nacelle
#

lua?

solemn leaf
real nacelle
#

i know python

#

it will be easy for me to code

restive furnace
#

@real nacelle you hsould learn a bit of lua then go to js
@solemn leaf nah

#

you can start whatever you want

solemn leaf
#

yeah but lua is simple

#

and isnt far from being js

restive furnace
#

but dont ask here idiotic questions, if you don't know the language (talking to UchihaAaryan)

lime pumice
#

@lime pumice can ya help meh?
@real nacelle yea?

#

Whats the problem

real nacelle
#

its solved

#

hehe

lime pumice
#

Hehe

#

Nice

hazy sparrow
#

guys imma try to make a meme command wish me luck

misty sigil
#

@misty sigil sorry man but the code above is from my json db private npm package
😩

umbral pollen
#

Pls dm me If Anyone Can Help Me With My Error (Disocrd.js) I guess It Is Very Simple One
Pls

earnest phoenix
#

whinch one is Best dashboard npm ?

misty sigil
#

@umbral pollen just ask here

#

@earnest phoenix dashboards arent done via a package

#

you need a web server, some oauth knowledge

earnest phoenix
#

ye i know that

#

im using express

cinder patio
#

then what are you asking?

earnest phoenix
#

is it possible to type a command and say what you want in dms

#

like a selection

#

for example: .ban

#

and it sends you a message saying "who do you want to ban"

dull fern
#

@earnest phoenix sure

#

It’s possible

#

A bit complicated but possible

earnest phoenix
#

how would it work

misty sigil
#

@earnest phoenix You do know, I can literally yoink your entire database in like a few minutes

dull fern
#

You would need to note the guild the command was used in

#

Then dm the user and they would reply with the person

#

Then get the user id from the guild you noted earlier and ban it

earnest phoenix
#

thats literally

#

explaining what i want

#

but better

#

🤣

thick gull
#

@misty sigil what did he do

misty sigil
#

he's on repl

#

and he's using quick.db

thick gull
#

ahahaha

#

nice

misty sigil
#

i can just yoink the json.sqlite

thick gull
#

but like

#

what will you do

#

with it

misty sigil
#

im just gonna report it to him

#

like a good person

#

i can and have yoinked it

thick gull
#

what’s the worst someone can do with a copy of your DB though

#

look at server ids?

misty sigil
#

and by that i mean read through the ??????? of the repl.it editor

thick gull
#

ok

wanton anvil
#

how are banner making bots made??

misty sigil
#

with canvas

wanton anvil
#

ok

#

can i too make like that

solemn leaf
pale vessel
#

that docs is old

#

hm wait

bright coral
#

how do i do the equivalent of an else statement after a while loop in js

earnest phoenix
#

Wdym

bright coral
#

so in python u can run a condition while true and then when it is false it will run the else once

earnest phoenix
#

while (condition) {

}

#

it not hard

bright coral
#

uh i think i have a better question, how do u wait till one statement is true before executing another statement

#

im trying to make hangman and i need to wait for the user to choose a word before doing anything else

cinder patio
#

If you are using discord.js, you should use awaitMessages to wait for the user to send a message with the letter/word

#

Or you could use a message collector, that actually sounds better in your case

solid marsh
#

@pale vessel

pale vessel
#

i said ANIME session

#

sorry

#

ahem ask someone else

solid marsh
#

@pale vessel ooh when you will be free

pale vessel
#

in like 5 hours after i watch two movies

bright coral
#

im using .fetch should i change it to a message collector

fiery trellis
#

!help

solid marsh
#

@pale vessel ok I have set alarm of 5hr

cinder patio
#

how exactly are you using fetch? Fetch is used to get already sent messages from a channel

#

yeah, you should definitely use a message collector here

bright coral
#

after getting the message how do i use that in a different channel

cinder patio
#

what do you mean?

bright coral
#

so someone calls the command in a main channel and then i dm them and get a word using a collector now i want to use the word back in the main channel

earnest phoenix
#

How to hosting on vps help me

#

@earnest phoenix sftp and ssh

#

Ook

pure lion
#

Wrong channel*

hazy sparrow
#
const { MessageEmbed } = require('discord.js');
const randomPuppy = require ('random-puppy');

module.exports = {
    name: 'meme',
    description: "this is a meme command!",
    
    async execute(message){
   
       const subReddits = ["meme", "me_irl"]
       
       const meme = subReddits[Math.floor(Math.random() * subReddits.length)];
       const image = async(randomPuppy(meme));
       const embed = new MessageEmbed();
       embed.setImage(image)

console.log(image)   }
}

no image in console aswell

earnest phoenix
#

Nice

feral aspen
#

Hello

#

npm i quick.db does not work

#

and creates error

#

why.. 😦

earnest phoenix
#

Same

hazy bolt
#

tell us the error

feral aspen
#

No specific error

#

It justs says

#

ERROR npm

#

ERROR npm

#

v

#

ERROR npm

#

Like that

#

50 times

hazy bolt
#

use another db i guess

feral aspen
#

Im trying to make a welcome channel...

#

a set welcome channel

#

and quick.db doesnt work, so how am I supposed to make it with normal json database

tight plinth
#

npm i quick.db does not work
@feral aspen whats your host

feral aspen
#

What do you mean?:

tight plinth
#

bruh

feral aspen
#

I use node.js v12

hazy bolt
#

@feral aspen then variables are your only solution if you cant use database

tight plinth
#

how do you host your bot

earnest phoenix
feral aspen
#

I host my bot online?

tight plinth
#

i mean

hazy bolt
#

hosting place

tight plinth
#

heroku, vps, self host...

earnest phoenix
#

He use vsc

hazy bolt
#

local

#

then

feral aspen
#

Discord bot Hosting

tight plinth
#

b r u h

feral aspen
#

BRO

tight plinth
#

use a real vps plz

#

5$ a month

feral aspen
tight plinth
#

or less

feral aspen
#

This is what I use

tight plinth
#

do you have sudo access

#

if yes, try installing i with sudo

#

even if its not recommended

feral aspen
#

What do you mean, with sudo.

#

Ahhhhhhh

tight plinth
hazy bolt
#

sudo npm install quick.db i think

earnest phoenix
#

Help me hosting on vps :( @tight plinth pls

tight plinth
#

what

#

i mean

#

no

earnest phoenix
#

:(

tight plinth
#

try doing it urself

earnest phoenix
#

O k

hazy bolt
#

@feral aspen which plan do u use

feral aspen
#

The medium plan

hazy bolt
#

hmm

feral aspen
#

I dont need more than that

hazy bolt
#

idk then

tight plinth
#

do you have sudo access

#

if yes, try installing things like make, cmake, gcc...

earnest phoenix
#

@misty sigil well that json.sqlite is old now I'm updating to mongoose in a few days

#

or

#

I'll just

#

use a JSON db

#

🧠

#

hey @slender thistle are we allowed to do literally anything here (development related obviously)

slender thistle
#

Define anything

earnest phoenix
#

trivia games but with bot development questions

slender thistle
#

ehh

#

Not really

earnest phoenix
#

well

#

can i do that in off topic

slender thistle
#

sure ig

earnest phoenix
#

what's the difference between a method and a function

#

i don't see any difference

#

besides methods only being defined inside classes

#

google fixed it

hazy sparrow
#

guys imma try to make a meme command wish me luck
update: I sucessfully made a meme command

earnest phoenix
#

/r/

forest drift
#

Hello,
I'm trying to make a system where a bot will edit a specific embed it has sent in a specific channel, im wondering if anyone knows how to:
1 : get the embeds id automatically
2 : edit that specific embed multiple times every 5 seconds

Ive searched for 2 days now on google and have found nothing

dull badger
#

@hazy sparrow

#

I got searcher duh

earnest phoenix
#

Hello,
I'm trying to make a system where a bot will edit a specific embed it has sent in a specific channel, im wondering if anyone knows how to:
1 : get the embeds id automatically
2 : edit that specific embed multiple times every 5 seconds

Ive searched for 2 days now on google and have found nothing
@forest drift make it yourself bruh

#

super easy

forest drift
#

Im not asking for someone to make it, im asking how would i make it?

earnest phoenix
#

fetch the channel from cache/discord

#

send the embed

#

when yoi send a message discord.js returns a promise

dull badger
#

What can i add

earnest phoenix
#

you can use .then and the first argument is the message

forest drift
#

mkay... would i be able to use a .then multiple times in for example a setinterval?

dull badger
#

Guys

#

I need ur idda

#

Idea*

earnest phoenix
#

mkay... would i be able to use a .then multiple times in for example a setinterval?
@forest drift yep

forest drift
#

k thanks

earnest phoenix
#

but it will bbe better to save once

dull badger
#

@earnest phoenix bro

#

I need ur oppinion

earnest phoenix
#

and save it in a file

forest drift
#

so an embeded object?

earnest phoenix
#

@slender thistle isn't @dull badger advertising

#

and pinging random people

#

so an embeded object?
@forest drift no discord.js returns the message object

dull badger
#

Owh sorry

#

Im new here

earnest phoenix
#

that doesn't mena you don't read the rules

slender thistle
#

-ideas

gilded plankBOT
#

Find something that you would like in a bot, and has also not been done before. Try and come up with a list of things you are interested in, and think up ways you could make the task easier with a discord bot. Eg. I like fishing -> I'm in a fishing discord group -> I'll make a bot that has fishing data and gives fishing advice. or I like a certain cartoon/anime/tv show. -> Why not make a bot that reminds me when new episodes are released and their watch dates? Once you have a fair amount of concepts down, try and look for those bots on bot listing sites like this one. If you cant find a bot that does what you laid out before as a bot concept, then feel free to write it! Who knows? Maybe a lot of people would like what you create...

earnest phoenix
#

you can stringify that object and save it in json then parse it every five minutes and edit the message

forest drift
#

@forest drift no discord.js returns the message object
@earnest phoenix ok.... so i just need to setup a system that sends the message once, then gets the catched data from it, then edits it, but then how would i reedit it with a .then?

earnest phoenix
#

example:

solemn leaf
#
const Discord = require("discord.js");
const fs = require("fs");

module.exports.run = async (bot, message, args) => {
    let color = '#' + ("000000" + Math.random().toString(16).slice(2, 8).toUpperCase()).slice(-6)
    if (!args[0] || args[0 == "help"]) {
        return;
    }

    let prefixes = JSON.parse(fs.readFileSync("./prefixes.json", "utf-8"));

    prefixes[message.guild.id] = {
        prefixes: args[0]
    };

    fs.writeFile(".prefixes.json", JSON.stringify(prefixes), (err) => {
        if (err) {
            console.log(err)
        }
    });

    const Embed = new Discord.MessageEmbed()
        .setColor(color)
        .setTitle('Prefix:')
        .setAuthor('Moderation Command')
        .setDescription(`Is now ${args[0]}`)

    message.channel.send(Embed);
}

module.exports.help = {
    name: "prefix"
}

can someone help me with my prefix chnage command

    let prefixes = JSON.parse(fs.readFileSync("./prefixes.json", "utf-8"))
    if (!prefixes[message.guild.id]) {
        prefixes[message.guild.id] = {
            prefixes: config.prefix
        };
    }

    let prefix = prefixes[message.guild.id].prefixes;

the prefix works but it doesnt change if I run the command

earnest phoenix
#

C:\Users\User\Desktop\V4Viktory Modmail>node .
Missing required configuration value: token

#

What does this error means?

#

I have added my token

solemn leaf
#

idk

#

your code is errored

#

in a way that it cant get token

#

like maybe a missing ,

earnest phoenix
#

Required settings

-----------------

token = MY TOKEN
mainGuildId = 703974750682218508
mailGuildId = 703974750682218508
logChannelId = 747746637476003921
categoryAutomation.newThread = 747746546543755264

Add new options below this line:

----------------------------------

responseMessage = Thanks for contacting V4Viktory Modmail! Our Staff Team will be with you shotrly
closeMessage = Your ticket was closed! If you want an help again dont hesitate to DM us again
mentionRole = 747747125378678854

#

I am making a modmail bot

pale vessel
#

ye

solid marsh
#

@pale vessel tell me now

pale vessel
#

what's the problem?

solid marsh
#

@pale vessel code for styling

pale vessel
#

like <style>css</style>?

dull badger
midnight blaze
#

<css>script.js</css>

tight plinth
#

@dull badger dont use glitch please

dull badger
#

i download atom but id deleted byself and i cant download

#

it*

tight plinth
#

b r u h

#

dont use glitch to host your bot plz

lofty linden
#

Yeah don't use glitch

tight plinth
#

a year ago, glitch was "cool" to create discord bots bc you could use ping services, but now its as useless as a flower in your bedroom

dull badger
#

just help me -_-

tight plinth
#

give error first

dull badger
#

at down.

midnight blaze
#

I see his error, it is very simple

dull badger
#

@midnight blaze can help

midnight blaze
#

just check out why help.name is not defined.. it says it very clearly. console.log(props.help) and then look how you can access name

dull badger
#

i dont understand u bro

midnight blaze
#

Well, I can not speak turkish. Sry

dull badger
#

so i will do rewind

#

duh

tight plinth
#

@dull badger did you created this code

#

probably not

restive furnace
#

why ppl start making a bot without even knowing what is variable and how to declare one

tight plinth
#

why ppl start making a bot without knowing how to program

eternal osprey
#

hey guys

#

i do have a problem

#

with pushing my python telegram bot to heroku

#

it is giving me the error: failed to push to heroku master

#

pre-receive hook declined

tight plinth
#

dont use heroku

#

dont use free hosts in general

#

you can get real vps for less than 5$ a month

eternal osprey
#

well i want to tbh

#

it is just a sample app

tight plinth
#

self host it then

eternal osprey
#

thank you for your concerns and your advicee

#

but my question was why my heroku push failed

hazy sparrow
#

I got searcher duh
@dull badger nicee

marsh surge
#

Help me

split hazel
#

you haven't showed the full error

marsh surge
#

Ok sory

#

Wait

split hazel
#

also your project is private no need to hide the project name

marsh surge
#

Okey

split hazel
#

can you try run enable-pnpm in the console?

#

And show me your package.json

marsh surge
#

I will try now

solemn leaf
#

can someone help me with my prefix command

marsh surge
cobalt spruce
#

@tight plinth what do u use to host ur bot

tight plinth
#

a vps

#

contabo

cobalt spruce
#

i use RDP

marsh surge
#

@split hazel

solemn leaf
#
const Discord = require("discord.js");
const fs = require("fs");

module.exports.run = async (bot, message, args) => {
    let color = '#' + ("000000" + Math.random().toString(16).slice(2, 8).toUpperCase()).slice(-6)
    if (!args[0] || args[0 == "help"]) {
        return;
    }

    let prefixes = JSON.parse(fs.readFileSync("./prefixes.json", "utf-8"));

    prefixes[message.guild.id] = {
        prefixes: args[0]
    };
    if(!prefixes[message.guild.id].prefixes == "ch-") {
        fs.
    }
    fs.appendFile("./prefixes.json", JSON.stringify(prefixes), (err) => {
        if (err) {
            console.log(err)
        }
    });

    const Embed = new Discord.MessageEmbed()
        .setColor(color)
        .setTitle('Prefix:')
        .setAuthor('Moderation Command')
        .setDescription(`Is now ${prefixes[message.guild.id].prefixes}`)

    message.channel.send(Embed);
}

module.exports.help = {
    name: "prefix"
}

It makes dupes of the prefix for the same server and formats in a way that it tries to end the json script every prefix

split hazel
#

@marsh surge did you run the command in the console?

marsh surge
#

ı have'nt done yet

split hazel
#

glitch is a bit broken so on that error I saw running that fixes package problems

solemn leaf
#

can soemone help me

carmine summit
#

How do i disable a specific feature on a specific server?

marsh surge
#

it happened! thank you so much @split hazel

solemn leaf
#

can someone hep eee

#

eee

#

e

earnest phoenix
#

Hi, for some reason my second item won't store in my inv after running my buy command.

finite bough
#

when i try to change the channel details of a webhook it gives me this error

dull badger
#

Can help about this error

#

a slowmode command

tight plinth
#

when i try to change the channel details of a webhook it gives me this error
@finite bough your bot doesn't have perms

finite bough
#

admin

#
  • it does
#

checked the bot details in the server int

tight plinth
#

does the we hook exists

finite bough
#

yes

tight plinth
#

hm

#

show code

finite bough
#

it works just fine without the channel

split hazel
#

can someone hep eee
@solemn leaf you shouldnt use appendFile for this, try using writeFile

solid marsh
#

@split hazel gimme some command ideas

sudden geyser
#

@finite bough does your bot have the MANAGE_WEBHOOKS permission?

finite bough
#

admin

sudden geyser
#

Typically 401 means you aren't authenticated while a 403 would mean you don't have permission to do something

fickle dune
#

how to do ping ms command

faint prism
eternal osprey
#

could someone please help me with pushing my telegram bot to heroku

#

i am trying to do it but it keeps giving me errors all the time

faint prism
#

Doesn't it use ssh or sftp?

eternal osprey
#

uhhm

#

not sure

#

it is just a python telegram bot

rancid bramble
#

I am currently making my bot multi language, should I do it or not?

opal plank
#

if you mean human language, go right ahead
if its programming language, i'll go to your funeral

midnight blaze
#

thanks for the mentionable name

#

to the admin/mod xD

#

I still can not ping him tho

opal plank
#

<@id>

#

¯_(ツ)_/¯

midnight blaze
#

@Nükleer

opal plank
#

or find them in list and right click

midnight blaze
#

idk, but two people come here with a screenshot of their bot on glitch and both are from turkey. It seems like gltich has a hype now in turkey

opal plank
#

you did see what i posted right?

#

clearly not

#

@midnight blaze bonkcat

earnest elm
#

hi

#

i am trying to change the background of my bots page

#

do i just

<style>
body {
    background-image: url('image.png');
}
</style>
midnight blaze
#

@opal plank yes, I did 👀

earnest elm
#

or is there anything else

earnest elm
#

i never used css before

scenic grotto
#

what's different in glitch?
when i take my project to host it in my windows vps and do node server i get

 internal/modules/cjs/loader.js:968
  throw err;
  ^

Error: Cannot find module 'discord.js'
Require stack:
- C:\Users\Administrator\Desktop\saysoon\New folder\app\server.js
?[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965
:15)?[39m
?[90m    at Function.Module._load (internal/modules/cjs/loader.js:841:27)?[39m
?[90m    at Module.require (internal/modules/cjs/loader.js:1025:19)?[39m
?[90m    at require (internal/modules/cjs/helpers.js:72:18)?[39m
    at Object.<anonymous> (C:\Users\Administrator\Desktop\saysoon\New folder\app
\server.js:1:31)
?[90m    at Module._compile (internal/modules/cjs/loader.js:1137:30)?[39m
?[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:1
0)?[39m
?[90m    at Module.load (internal/modules/cjs/loader.js:985:32)?[39m
?[90m    at Function.Module._load (internal/modules/cjs/loader.js:878:14)?[39m
?[90m    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_ma
in.js:71:12)?[39m {
  code: ?[32m'MODULE_NOT_FOUND'?[39m,
  requireStack: [
    ?[32m'C:\\Users\\Administrator\\Desktop\\saysoon\\New folder\\app\\server.js
'?[39m
  ]
}
earnest elm
#

do you have discordjs installed

#

on the vps

scenic grotto
#

no

faint prism
#

i never used css before
@earnest elm look up "css w3schools" and you'll learn everything you need to know

forest drift
#

how would i test to see if a given channel id is working? and same thing with a role?

scenic grotto
#

@earnest elm I download discord.js then do node server?

eternal osprey
#

could anyone please help me with pushing my telegram bot to heroku

faint prism
#

could anyone please help me with pushing my telegram bot to heroku
@eternal osprey use sftp

eternal osprey
#

this is killing meee

scenic grotto
forest drift
#


@eternal osprey did u add the ignore files? ect?

eternal osprey
#

yaeh git init

#

git add .

#

etc

forest drift
#

did u add the ignore file?

eternal osprey
#

the error begins here:

scenic grotto
#

what should i do the make the bot work?

forest drift
#

like an actual file called .gitignore?

eternal osprey
#

no

#

just a git fgile

#

i am not pushing it using github

forest drift
#

hmmmm lemme send u a video link, i used the same video to leanr how to use heroku

eternal osprey
#

this is a python telegram bot

#

but it ishonestly killing me

forest drift
#

yeah... i remember when i first tried lol

#

thats the one

#

he expalins a method for each upload option type

slender thistle
#

what package is that, Awsome

forest drift
#

i just used the Heroku Git upload method

eternal osprey
#

hey i am here

#

the problems occurs when it is trying to download numphy

#

for some reason

slender thistle
#

Send full output

forest drift
#

yeah im useless here lol, i use fedora software

eternal osprey
#

okay hold on

#

i am going to push it again

forest drift
#

i find sometimes ive messed up a step when uploading and then the push doesnt work

#

i normally just then go to the files, click show hidden files, and delete the .git folder and restart the upload process

#

Shivaco where can i find a list or doc on the basic requirements for a bot to be accepted?

slender thistle
#

"Just one working feature that will be helpful to servers" is the requirement

forest drift
#

ah ok

slender thistle
#

Well, not necessarily helpful, but it can't be a bot that leaves servers for sure

forest drift
#

And if a bot is purposely meant to be able to react to other bots sending messages?

slender thistle
#

It will probably be muted in this server but I don't think it will be declined for that

forest drift
#

k... cause one of my friends challenged me to make a disboard bump reminder bot, so it only responds to the disboard bot and normal players

slender thistle
#

approved a bot like that recently

#

so

forest drift
#

ah ok

eternal osprey
#

bro now i really give up

forest drift
#

read the command errors

#

u need a buildpack

eternal osprey
#

fucking heroku makes me wanna eat my own fucking dog

forest drift
#

geez

eternal osprey
#

if i add python as buildpack

faint prism
#

Interesting

eternal osprey
#

it wont detect

forest drift
#

have u got ur package? ur requirements setup? ect?

faint prism
#

Why not use a vps instead, Awsome?

eternal osprey
#

wait i will try one more think

forest drift
#

its always extremely annoying the first and sometimes second time, after that it becomes kinda relaxing to upload to heroku...

eternal osprey
#

i have uploaded like 3-4 apps to heroku

#

just my first time uploading python to heroku

forest drift
#

especially if ur like me and are extremely impatient, stuborn and dont understand 90% of the errors the terminal gives

eternal osprey
#

look at this error please

forest drift
#

just my first time uploading python to heroku
@eternal osprey ah... yeah after hearing that imma stick to discord.js...

eternal osprey
#

why does it error out when installing numphy

#

like

#

i already installed it

#

it is in the requirements

slender thistle
#

"no module named 'six'"

eternal osprey
#

should i delete it from the requirements.txt

forest drift
#

there seems to be a reacurence of the error with some sort of python file/system

slender thistle
#

Why are you installing numphy

eternal osprey
#

i already have done pip install six

forest drift
#

does heroku python need numphy? huh

opaque seal
#

Just don't use heroku

eternal osprey
#

should i remove numphy from the requirements.txt?

forest drift
#

I mean heroku is better than glitch sooooooooo

#

should i remove numphy from the requirements.txt?
@eternal osprey give it a shot?

eternal osprey
faint prism
#

and a VPS is better than these weird project platforms every discord bot dev seems to love using

forest drift
#

yeah... definately sticking to discord.js

eternal osprey
#

i want to smash my fucking pc

#

i have been at this for fucking 3 hours

forest drift
#

and a VPS is better than these weird project platforms every discord bot dev seems to love using
@faint prism i just stick to the classic Geany... never had an issue with it...

opaque seal
#

and a VPS is better than these weird project platforms every discord bot dev seems to love using
^

sudden geyser
#

and a VPS is better than these weird project platforms every discord bot dev seems to love using
@faint prism it's loved because it's easy

forest drift
#

i want to smash my fucking pc
@eternal osprey 8yr fortnite xbox rager... minecraft 4 life

faint prism
#

@faint prism i just stick to the classic Geany... never had an issue with it...
@forest drift That's just an IDE?

forest drift
#

i have zero clue what an IDE is but Geany used to be the top coding client.... 79+ languages..

faint prism
#

@faint prism it's loved because it's easy
@sudden geyser "Easy"
I see so many questions on how to use it and errors related to it

#

IDE - Integrated Development Environment

#

ie, a "coding client" like you just said

forest drift
#

still dont know...

eternal osprey
#

fingers crossed

slender thistle
#

Eh, I'd debate on Heroku being "easy" compared to VPS for beginners

eternal osprey
#

removed that fucking numphy lets see what happens

faint prism
#

Shiv gets me ❤️

eternal osprey
#

i gve up

forest drift
#
Geany is a small and lightweight Integrated Development Environment. It was developed to provide a small and fast IDE. Another goal was to be as independent as possible from a KDE or GNOME - Geany only requires the GTK3 runtime libraries.

yeah i think its an IDE

eternal osprey
faint prism
#

It is an IDE lmao

eternal osprey
#

numphy is removed from my requiremets

hazy sparrow
#

anyone knows a free vps that can be hosted on a 32bit computer?

faint prism
#

err

eternal osprey
#

why is it still installin numphy

#

ffs

faint prism
#

anyone knows a free vps that can be hosted on a 32bit computer?
@hazy sparrow do you mean OS?

forest drift
#

lol, Geany has a higher rating than VPS XD

hazy sparrow
#

a vps that can host discord bots

faint prism
#

lol, Geany has a higher rating than VPS XD
@forest drift Apples to Oranges. You can't compare those two things

hazy sparrow
#

wait im using the wrong term

faint prism
#

You are lol

eternal osprey
#

how do i delete numphy

#

like at all

hazy sparrow
#

a thing that can host discord bots and can be activated on 32bit computers unlike github

slender thistle
#

Is it in your requirements.txt

forest drift
#

@forest drift Apples to Oranges. You can't compare those two things
@faint prism very fair point.... VPS is better if u need more help... more error messages... more tools to help, while Geany is old, robust, and simple while being powerful

eternal osprey
#

it is deleted in my requirements

faint prism
#

@faint prism very fair point.... VPS is better if u need more help... more error messages... more tools to help, while Geany is old, robust, and simple while being powerful
@forest drift I feel like you're misunderstanding the definition

forest drift
#

i can only think of .gitignore lol

#

probs

#

im just pointing my experience with them so far

faint prism
#

Geany is basically a fancy notepad that can compile code. That's what an IDE is essentially. Notepad with features including compiling a language

eternal osprey
#

heroku makes everything look so easy

#

but in reality it gives 1k errors every commitment

floral creek
#

d!weather

faint prism
#

A VPS is a Virtual Private Server. ie a sandboxed instance of a virtual desktop

forest drift
#

Geany is basically a fancy notepad that can compile code. That's what an IDE is essentially. Notepad with features including compiling a language
@faint prism ah... learn smt new every day... still love it tho

floral creek
#

a!weather

#

!weather

#

ups...

eternal osprey
#

bro what are you doing

forest drift
#

;-; my friends are lying scumbags.... they cant even tell me the right definition for vps...

hazy sparrow
#

so anyone ans my question? ;-;

eternal osprey
faint prism
#

!weather
@floral creek wrong channel #commands

eternal osprey
#

i dont have any numphy or six in my fucking dfucking requirements

floral creek
#

@faint prism I know

faint prism
#

Well stop then

forest drift
#

so anyone ans my question? ;-;
@hazy sparrow just use smt designed for Rasberry PI 3? idk

hazy sparrow
#

free?

dusty tulip
#

what i'm figuring out now is how to define my bot token

@faint prism u understand something about this?

hazy sparrow
#

idc if it is limited time

eternal osprey
#

i am crying right now

faint prism
#

@faint prism u understand something about this?
@dusty tulip Look on google how to use variables in your language (probably JS)

eternal osprey
#

not even kidding

dusty tulip
#

Ok

#

@dusty tulip Look on google how to use variables in your language (probably JS)
@faint prism and its not me, im helping my friends ._.

hazy sparrow
#

imagine not knowing simple aljebruh terms

lusty spade
#

anyone knows how to get the first 15 roles of a user?

eternal osprey
#

okay cool kiddo

#

anyone knows how to get the first 15 roles of a user?
@lusty spade hmm not sure

#

you can search up the docs of discord.js

lusty spade
#

i know how to get roles just need to figure how to find the first 15

faint prism
#

anyone knows how to get the first 15 roles of a user?
@lusty spade The roles will be in an array. Just attempt to grab the index from [0-14]

lusty spade
#

oh ok ty

faint prism
#

Be careful you don't go past the maximum item in the array, or it'll error probably

#

if roles.count = 8 for instance, and you try to get roles[14] it'll error

#

So be wary of that

lusty spade
#

ok 👍

forest drift
#

anyone knows how to get the first 15 roles of a user?
@lusty spade id suggest with most questions, just type in google discord.js(or other depend on ur language) (question) and then just look for the Stack Overflow answer, also if ur gonna do this make sure u read and try uderstand whats being said on Stack Overflow...

opal plank
#

UBUNTU
is there a select all in Nano?

slender thistle
#

Does the usual Ctrl+A happen to not work?

opal plank
#

nope

#

ctrl K deletes a line so thats something

#

but we talking about an index with 12k lines

#

could delete and remake it

slender thistle
opal plank
#

yeah ctrl k

#

fuck imagine not having a ctrl a keybind

#

i'll just rm it and create a new one

#

fuck that

slender thistle
opal plank
#

ty shiv

eternal osprey
#

boys

#

my heroku app is deplyoed

#

deployed

#

but lets have a look if it gets the wrker

opal plank
#

what if there were girls here too?

eternal osprey
#

i haven't seen many girls as discord developers

#

but my sincere apologies

forest drift
#

sexist

pale vessel
#

cringe

forest drift
#

ah nvm appologised so ok

opal plank
#

you are forgiven

#

bruh

#

ts

#

its magical and a nightmare

exotic condor
#

And how can someone determine that the person is actually a boy or girl?

opal plank
#

by asking them

eternal osprey
faint prism
#

ok 👍
@lusty spade So for instance in another language how I might attempt to get a specific index is by doing something like this:

int safeIndex = collection.Count >= 15 ? 15 : collection.Count;
midnight blaze
#

@opal plank not possible

hazy sparrow
midnight blaze
#

@forest drift wait, how is that sexist xD

cinder sandal
#

hey

eternal osprey
#

how do you guys/girls think about people identifying as attack helicopters etc.

cinder sandal
#

the server just shutdowned for a bit

midnight blaze
#

@opal plank btw, we have a gg girl dev here :p

cinder sandal
#

what happened

midnight blaze
#

@solid marsh O:

opal plank
#

i swear this shit is insanity inducing

#

Interfaces and types NotLikeMiya

hazy sparrow
#

yup it got shutdown for like 2 secs

cinder sandal
#

i got even kicked

eternal osprey
cinder sandal
#

i rejoined

pale vessel
#

that's web?

#

that will sleep

cinder sandal
#

turn on worker

eternal osprey
#

wut

faint prism
#

Interfaces and types :NotLikeMiya:
@opal plank I use interfaces and factories in my source 🙂

eternal osprey
#

so i gotta change that

#

omg i

opal plank
#

bruh dynamic shit is giving me a nightmare

faint prism
#

bruh dynamic shit is giving me a nightmare
@opal plank What are you talking about? Are you trying to implement a design pattern like DI?

forest drift
#

i need to find a tutorial on putting commands in different files with variables that link to the index.js file... imma have a mental breakdown scrolling through the code and then losing my place in it...

opal plank
#

2 very good examples right next to eachother

#

take a look

eternal osprey
#

if there are errors now

opal plank
#

deconstructing and dyanmic keys

eternal osprey
#

no joke

opal plank
#

those 2 alone is giving me a nightmare

#

cuz a lib used it and now im struggling to get since it doesnt know its types

eternal osprey
#

have you guys noticed that most of the people here have any weeb profile pics

faint prism
#

console.log(typeof(obj)) ? idk if that works in your lang

opal plank
#

its not even that

#

i get compiler errors if type is undefined

#

or if its not declared

faint prism
#

deconstructing and dyanmic keys
@opal plank Let me tell you about INTERFACES lmao

opal plank
#

thats what i use lol

faint prism
#

Ayy

opal plank
#

this is fuck all

faint prism
#

Do you use a factory to supply it's implementation though?

opal plank
#

wdym?

faint prism
opal plank
#

assuming no cuz i have no idea what tha means

faint prism
#

Using the factory or another form of DI, you can literally swap out logic and not rewrite everything. It'll just werk

opal plank
#

hmmm

faint prism
eternal osprey
#

uhhm

#

does this mean it is working?

opal plank
#

linter error

#

aight

faint prism
#

It's an example

opal plank
#

okay

slender thistle
#

yes that means your Flask script is working, Awsome

eternal osprey
#

okay

#

so now the telegram bot is only?

#

thankssss

#

ffs that took long

slender thistle
#

no idea, try it

eternal osprey
#

literally

faint prism
#

@opal plank I don't have a sqlite class, but if I did that is where I would change it and my code would use it.
Wouldn't have to rewrite anything else since the dependencies are inverted

eternal osprey
#

i love you guys so fucking much

wheat jolt
#

would guild.members.cache.get(User) work on v12? I can't test it rn

hazy sparrow
#
module.exports = {
    name: 'reload',
    description: 'Reloads a command',
    execute(message) {
        const prefix = "bow"
        if (!message.content.startsWith(prefix) || message.author.bot) return;

        const args = message.content.slice(prefix.length).trim().split(/ +/);
        
        if (message.author.id === '542278740537769985'){
        if (!args.length) return message.channel.send(`You didn't pass any command to reload, ${message.author}!`);
const commandName = args[1].toLowerCase();
const command = message.client.commands.get(commandName)
    || message.client.commands.find(cmd => cmd.aliases && cmd.aliases.includes(commandName));
    delete require.cache[require.resolve(`./${command.name}.js`)];
    try {
        const newCommand = require(`./${command.name}.js`);
        message.client.commands.set(newCommand.name, newCommand);
    } catch (error) {
        console.log(error);
        message.channel.send(`There was an error while reloading a command \`${commandName}\`:\n\`${error.message}\``);
    }
    message.channel.send(`Command \`${command.name}\` was reloaded!`);
    if (!command) return message.channel.send(`There is no command with name or alias \`${commandName}\`, ${message.author}!`);
    }
 else return;
},
};

it doesesnt send the message when the file doesesnt exists, it just errors the console

eternal osprey
#

i would hug you guys for the fucking support i received (no homo tho)

opal plank
#

the whole reason you'd write this is so you can dynamically import it

#

[key] just indicates the property

wheat jolt
#

@hazy sparrow you misspelled the file's name

opal plank
#

basically :any but not quite

wheat jolt
#

I saw your message on discord api server too

grand finch
#

What in the API discord.js gives you your bots ID?

hazy sparrow
#

it doesesnt send the message when the file doesesnt exists, it just errors the console
i found it after 2 months of using his command

opal plank
#

any key/property in this interface => some value

grand finch
#

(assuming ready was emitted)

wheat jolt
#

@hazy sparrow what's the error

faint prism
#

basically :any but not quite
@opal plank I understand the datatype any but not the syntax around it.
Why wouldn't you use a dictionary if you want to persist an index or key with it?

wheat jolt
#

@grand finch ClientUser#id

opal plank
#

heres a good example and why im using it myself

#

imagine a config.json

wheat jolt
#

@grand finch ClientUser#id
@wheat jolt ClientUser is from Client#user

opal plank
#

if i were to add a new item inside, it'd have to delcare it

#

in the interface

hazy sparrow
#

Error: Cannot find module ./<insert non existent file here> i have another error sort of related to this

wheat jolt
#

Is that the error?

hazy sparrow
#

yup

opal plank
#

interface config {
a string
b string

}

#

with that it imports any keys inside

#

its basically a dynamic import

grand finch
#

@rare mist yea, well in jsdoc syntax: {ClientUser} Client.user

opal plank
#

but the problem arises when i try a property from that, it doesnt know if it exists sometimes

#

its a pain

faint prism
#

Hm

opal plank
#

using :any is quite a hassle too

hazy sparrow
#

Is that the error?
@wheat jolt yup

wheat jolt
#

uhm can you show me the code where you require that file?

grand finch
#

And also, where can I expose the constructor for DiscordjsError from?

faint prism
#

Well for C# at least, interfaces act like a contract that any class implementing the interface can be used since it will guarantee it has those properties/functions.

hazy sparrow
#

thats the whole reload.js code

opal plank
#

well yeah, but then i require config somewhere and ts be like , erm, idk what i need Huh Duh

#

this way i dynamically import it

#

without ts screeching at my eardrums

wheat jolt
#

thats the whole reload.js code
@hazy sparrow no, i need the code where you require reload.js

hazy sparrow
#

uhh sorry require reload.js?

wheat jolt
#

do you know js?

hazy sparrow
#

yup

wheat jolt
#

no

hazy sparrow
#

but i never made it to require reload.js

wheat jolt
#

if you don't know what requiring a file is you don't know js

hazy sparrow
#

i knoww that, i havent made any code that requires reload.js

opal plank
#

assuming you using a command handler, you did

#

you probably copied the handler without understanding it though

#

likely your handler is requiring each file that ends with 'js'

#

im willing to bet on this one

wheat jolt
#

^^

hazy sparrow
#

yup it does

opal plank
#

then you are requiring it

#

just dynamically

hazy sparrow
#

it searches for files ending with .js

opal plank
#

then just like i said, copied code without understanding it

#

bad

faint prism
#

Frankenstein's code

wheat jolt
#

@hazy sparrow please show the code where you require reload.js (asking for the last time, i hope)

grand finch
#

Eck, this probably isn't the place to say this but in discord.js, ./src/errors/index.js requires ./src/errors/DJSError.js which exposes DiscordjsError which is a Function which returns a class DiscordjsError extends Base which is a yikes from me 🤢

wheat jolt
#

huh?

hazy sparrow
#

ill just pastebin my whole index.js hold on

opal plank
#

remember

#

no tokens

wheat jolt
#

remove your token

#

yeah

faint prism
#

I sure hope it isn't in the index.js lol

hazy sparrow
#

yup ik

opal plank
#

last 4 times i said that exact sentence the following code had a token in it

hazy sparrow
#
const Discord = require("discord.js");

const client = new Discord.Client();

const fs = require('fs');

const prefix = ("bow ");


client.commands = new Discord.Collection();

const commandFiles = fs.readdirSync(`./Commands/`)
for(const file of commandFiles){
    const command = require(`./Commands/${file}`);

    const name = file.split('.')[0];
    client.commands.set(name, command);
  }
 
  const cooldowns = new Discord.Collection();
  client.on("ready", () => {
  console.log("bow bot is online!!");
  client.user.setActivity(`${client.guilds.cache.size} servers!`, { type: 'WATCHING' });
});




client.on("message", (message) => {
  
  if (!message.content.startsWith(prefix) || message.author.bot) return;
  const args = message.content.slice(prefix.length).split(/ +/);
const command = args.shift().toLowerCase();
 
 if(client.commands.has(command)) {
   client.commands.get(command).execute(message)
 
  }
} 
)
client.login('')
#

seems like i didnt need any pastebin

opal plank
#

client.login('')

#

you

#

mofo

#

you hardcoded ur token didnt u

faint prism
#

Imagine hardcoding the token

#

use .env at least

opal plank
hazy sparrow
#

i deleted it from the message i sended -_-

wheat jolt
#

lol

opal plank
#

still hardcoded token

#

bad

hazy sparrow
#

oh you mean that

opal plank
#

put it in an env, json, txt, daabase

#

somewhere

hazy sparrow
#

im too lazy to create another file

opal plank
#

just dont put it

#

in

hazy sparrow
#

¯_(ツ)_/¯

opal plank
#

ur

wheat jolt
#

index.js

opal plank
#

fu*king index

#

you'll 100% forget this one time and paste ur index here next time you look for help

#

or post it on github

hazy sparrow
#

i dont use github

faint prism
#

Use github

hazy sparrow
#

and i regenerate my token every 3 days or so

#

Use github
@faint prism ...

wheat jolt
#

and i regenerate my token every 3 days or so
@hazy sparrow lmao

opal plank
#

👀

hazy sparrow
#

you'll 100% forget this one time and paste ur index here next time you look for help
@opal plank i can just regenerate then :/

opal plank
#

you arent filtering ur files?

hazy sparrow
#

theres no need

opal plank
wheat jolt
#

it searches for files ending with .js
@hazy sparrow

#

ofc

opal plank
#

put a pp.json there

#

see what happens

hazy sparrow
#

.

opal plank
faint prism
#

dotpost?

opal plank
#

you making ur life harder dude

#

stop being stubbron

wheat jolt
opal plank
#

the moment a different file somehow ends in there you'll get errors

#

its part of development

hazy sparrow
#

@hazy sparrow
@wheat jolt i open my index for the first time in a month ;-;

opal plank
#

bug proof ur stuff

hazy sparrow
#

but what about my problem reeeee

opal plank
#

that IS a problem

#

that you didnt knew existed

#

fix it

wheat jolt
#

send your error code again

#

but don't modify anything

hazy sparrow
#

but i didnt ask to solve that problem

#

error code?

faint prism
#

lol

opal plank
#

then why u asking for help?

#

just ignore the error

hazy sparrow
#

srsly

wheat jolt
#

srsly

opal plank
#

yes srsly

hazy sparrow
#

then i would have to ignore my command

wheat jolt
#

send your error code again
but don't modify anything

opal plank
#

welcome to bug proofing your code

hazy sparrow
#

k wait lemme send the error

wheat jolt
#

:/

hazy sparrow
#

its supposed to send in the channel that

opal plank
hazy sparrow
#

"this file doesesnt exist"

faint prism
#

does it?

hazy sparrow
#

it doesesnt

#

do

wheat jolt
#

AHHAHAHAHAHAA

hazy sparrow
#

that

faint prism
#

then exist-ify it

wheat jolt
#

IM DEAD 💀

opal plank
#

likely path relative path

#

fix relative path and then fix ur filter extensions

ebon kelp
#

Reading errors in plain text is sometimes really difficult

faint prism
#

Do you mean stacktraces?

opal plank
#

reading is difficult, indeed

hazy sparrow
#

then exist-ify it
@faint prism wot

wheat jolt
#

💀

opal plank
#

this is it

ebon kelp
#

Do you mean stacktraces?
@faint prism No the error itself, like "File not found"

opal plank
#

where it originated

ebon kelp
#

And it was sarcastic if your didn't catch that

opal plank
#

mybot.js

#

where the file was required

#

reload.js

#

that iot

faint prism
#

It says: './huser-inf.js' is missing
./ means current directory

opal plank
#

wanna see magic?

hazy sparrow
#

oh thats what's called requiring a file i see\

wheat jolt
#

gm

opal plank
#

try '../'

hazy sparrow
#

try '../'
@opal plank i had just done huser-inf.js

wheat jolt
#

:/

faint prism
#

@hazy sparrow what OS are you

wheat jolt
#

windows obv

faint prism
#

You might as well print out the directory tree

opal plank
#

is it on the same folder?

hazy sparrow
#

It says: './huser-inf.js' is missing
./ means current directory
@faint prism yup its supposed to search in the current directory

#

is it on the same folder?
@opal plank yes

faint prism
#

open cmd in the project folder. and type tree and send output

opal plank
#

in WICH folder you requiring it?

#

on index or reload?

hazy sparrow
#

reload

wheat jolt
#

bruh

hazy sparrow
#

open cmd in the project folder. and type tree and send output
@faint prism ???

opal plank
#

ls, tree anything that shows current directory files

#

i mean fuck it, just screenshot the folder

wheat jolt
#

you're literally misspelling the name of the command you want to reload

opal plank
#

we were about to check that lol

hazy sparrow
#

you're literally misspelling the name of the command you want to reload
@wheat jolt thats the POINT

opal plank
#

what

wheat jolt
#

no

hazy sparrow
#

its supposed to send a message that that file doeseent exist

wheat jolt
#

💀

#

try {} catch(e) {}

hazy sparrow
#

i mean fuck it, just screenshot the folder
@opal plank this is the command folder which is in MyBot folder

wheat jolt
opal plank
#

you fucking donkey

wheat jolt
#

its supposed to send a message that that file doeseent exist

opal plank
#

ifo NOT infop

#

info NOT ifo

wheat jolt
#

use try-catch or fs.existsSync

faint prism
#

^

wheat jolt
opal plank
#

why?

hazy sparrow
#

info NOT ifo
@opal plank i purposefully typed the wrong one to check if this works

opal plank
#

filter your 'js'

wheat jolt
#

use try-catch or fs.existsSync
@hazy sparrow ffs

opal plank
#

thats the whole point of what i was saying before

faint prism
#

yeah try/catch is what you want

opal plank
#

why you trying commands that dont work?

faint prism
#

especially if you're intentionally writing code that will error

opal plank
#

i know whats it suppose to do

#

but WHY do it in the first place?

wheat jolt
#

I think because he doesn't want any errors

opal plank
#

thats why i was saying to use 'js' file extension

#

map it and check it

hazy sparrow
#

I think because he doesn't want any errors
@wheat jolt exactly

wheat jolt
opal plank
#

client.commands is alreayd mapped

#

just checked if has()

#

dont read file every time

wheat jolt
#

that works too

hazy sparrow
#

and because when i try to reload huser-info it tries to reload huser-ifo which is non-existent for god knows why

opal plank
#

just re-require cache

wheat jolt
#

if(!client.commands.has(/* cmd name?? */)) return;

#

ez pz

opal plank
#

delete cache and require it again

hazy sparrow
#

hmm ok lemme try that

opal plank
#

alexander, i understood early on what he was trying to do

#

my whole point was, why do it to begin with

#

he already had his command mapped

wheat jolt
#

ah

opal plank
#

and he was reading the file dir every time he called that command

wheat jolt
#

I get you now

eternal osprey
#

i have been widely appraising you guys

#

but my fk bot doesn;twork

golden condor
#

Ok?

wheat jolt
#

sure

golden condor
#

What is your problem?

eternal osprey
#

hmm yeah

hazy sparrow
#

if(!client.commands.has(/* cmd name?? */)) return;
@wheat jolt same error and theres another error when i tried that which popped out of no where

eternal osprey
#

i am trying to push my python telegram app

#

to heroku

earnest phoenix
#

what does / / mean

golden condor
#

It's a comment

eternal osprey
#

it doesn't seem to be working at all

golden condor
#

Because it has the *

wheat jolt
#

you have to add that line before the require line bud

golden condor
#

But if you didn't mean that

#

Then it's a regex

#

/ /

#
/*
This is a multiline comment
*/
/ / //This is a regex
earnest phoenix
#

what is the difference between

// this
String.split("/ /");

and

// this
String.split(" ");
thin tapir
#

anyone know how to use json deserializeation in c#

earnest phoenix
golden condor
#

Did you just stringify a regex

#

Also auger is your man

faint prism
#

anyone know how to use json deserializeation in c#
@thin tapir with newtonsoft.json

wheat jolt
#

^

thin tapir
#

@thin tapir with newtonsoft.json
@faint prism well yea that

earnest phoenix
#

added reaction removed reaction

#

¯\_(ツ)_/¯

thin tapir
#

im still struggleing with my stocks command

faint prism
#

Make a class with the attribute [JsonProperty] above the property that matches the json object

golden condor
#

what is the difference between

// this
String.split("/ /");

and

// this
String.split(" ");

@earnest phoenix that splits it at / / not a space

#

Because you put the regex in a string

hazy sparrow
#

just fuck it,i'll try not to misspelling stuff when i try to reload my command

golden condor
#

lol

#

just fuck it,i'll try not to misspelling stuff when i try to reload my command
@hazy sparrow off to a great start from that sentence

earnest phoenix
#

is it safe to store discord OAuth tokens in a public file since I still need my client secret to use them

#

or

golden condor
#

Not at all

earnest phoenix
#

i can use fs to write to my env

eternal osprey
#

telegram bot

golden condor
#

That would be stupid

earnest phoenix
wheat jolt
#

^^^

earnest phoenix
#

accidental message send

wheat jolt
#

np

earnest phoenix
#

^^^
@wheat jolt dude 🔼 exists

wheat jolt
#

i like ^^^ more

golden condor
#

is it safe to store discord OAuth tokens in a public file since I still need my client secret to use them
That's an awful idea, do not do this

earnest phoenix
#

That would be stupid
@golden condor so should I just go nuts with fs and my env file so I am safe

#

That's an awful idea, do not do this
@golden condor just curious

opal plank
#

erm

earnest phoenix
#

i don't even know how to use discord oauth

golden condor
#

I think you should use a database for it

#

Possibly

opal plank
#

'safe' is hard word for it

wheat jolt
#

i don't even know how to use discord oauth
@earnest phoenix oauth2.0?

golden condor
#

Why are you storing them anyway?

earnest phoenix
#

I think you should use a database for it
@golden condor that's exactly what i asked should i store in a databade

faint prism
#

If you want to store tokens, you'd better do so with a database or something locked down bro

earnest phoenix
#

Why are you storing them anyway?
@golden condor bruh

#

don't you need tokens to do stuff

golden condor
#

Yes

faint prism
#

With APIs

golden condor
#

But you can cache the info?

eternal osprey
#

yooow dafuq

golden condor
#

For like 7 days

#

And then ask for a new login

opal plank
#

everyone concerned about tokens but i 100$ bet you all have your bot tokens in a config json or env file

earnest phoenix
#

and caching it on the user's pc is ... why the fuck don't i just see a tutorial for caching

opal plank
golden condor
#

everyone concerned about tokens but i 100$ bet you all have your bot tokens in a config json or env file
@opal plank he uses repl.it so......

opal plank
#

like that makes it any more secure

earnest phoenix
#

you kniw

golden condor
#

Like his only option is .env

earnest phoenix
#

i found a way to hide files from users on repl.it

eternal osprey
#

i was watching top 10 worst olympic fails and saw a pole-vaulter getting his pole in his ass

#

dang

opal plank
#

or await your database

golden condor
#

lemme guess .gitignore

opal plank
#

add encryption

earnest phoenix
#

cd into the parent directory and use fs there

golden condor
#

hey guys wanna see all my user data from oauth2? yeah sure here you go!

opal plank
#

just connect to your database with a ssh tunnel

#

¯_(ツ)_/¯

golden condor
#

quick.db KEKW

opal plank
#

jsonDb

golden condor
earnest phoenix
#

lol

opal plank
#

you know you're at the end of the food chain when you make those kinds of jokes

golden condor
#

Hey guys I write my file like 100 times an hour and now all the data is messed up please help?

earnest phoenix
#

i made like 100 polls about mongo vs. quick.db and people said "we want to be able to just boot up chrome and search through the json.sqlite file" KEKW

opal plank
#

100 times?

#

PPPPFFF

#

plebs

#

watch this

golden condor
#

!prefix

#

Lmao