#development

1 messages · Page 1379 of 1

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

take the "You're nickname has been changed"

#

only u see that

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

oh

#

ok

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

that would be a cool addition

#

yeah

sage bobcat
#

One message removed from a suspended account.

slender thistle
#

"Private notifications" like "You changed your nickname from x to y" are done client-side

earnest phoenix
#

That might change however
@sage bobcat 👀

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#
loadClientMessage(member,function(){

)}```
#

we need this

#

wdym?

#

Or, what did they mean, by natural?

slender thistle
#

Implement more features like polls and slash commands that will be connected to bots

earnest phoenix
#

slash commands, cant you already make that

#

if(msg.content.toLowerCase().startsWith("/command")) {

slender thistle
#

Yup, but they'll be more "convenient" and similar to the ones Discord client has (/nick, /giphy, etc.)

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

oh

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

looks cool

#

polls would be an interesting addition

crystal socket
#

no, @earnest phoenix

#

the point of it is that its not just polls

#

its whatever you want

agile lance
#

How do i pick something random from a array? Current code:

let toPickFrom = ["Hi", "Hello"]
let picked = Math.floor(Math.random() * toPickFrom.length) - 1 + 1
console.log(picked)
#

Prints “1” in the console

crystal socket
#

- 1 + 1
PepeCringe

#

anyway

agile lance
#

idk i just tried something

crystal socket
#

let picked is a random number

#

its a random number that corresponds to a part of the array

#

so just put that number into the array

#

and it should work

#

js do be weird

#

its just random.choice(List) in python

agile lance
#

How do I put it in place of array number? lol

crystal socket
#

learn javascript

proper bolt
#

toPickFrom[picked]

crystal socket
#

^ or that

sudden geyser
#

Does JavaScript have a specification on how Math.random should be seeded

proper bolt
#

but if you dont know how to do that..

#

no i dont think so

earnest phoenix
#

its a random number between 0 and 1

sudden geyser
#

that's not the seed

earnest phoenix
#

oh i see what u meant

sudden geyser
#

how it's generated is the seeding part

earnest phoenix
#

yeah

#

no i dont think so

#

you could easily create a function for that though

ivory seal
#

?

#

is it possible to create an announcement channel with discord.js?
i tried putting the type in guild.channels.create as news but nada

earnest phoenix
#

@vital anvil are you asking for help on a bot that raids servers

#

😐

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

lol he deleted the message

vital anvil
#

@earnest phoenix I want a hypad squad bravery tag

earnest phoenix
#

its a troll

#

great

vital anvil
#

How can I get @earnest phoenix

regal saddle
#

he already asked for a nuke command in #commands btw

vital anvil
#

And I want to make a bot

#

I don't know much things about dc

ivory seal
#

do u know js?

regal saddle
#

for inappropriate purposes

mint thicket
#

Do not ask for help with breaking tos in this server

earnest phoenix
#

^

mint thicket
#

This will be your only warning

earnest phoenix
#

he asked help for a bot that raids servers a sec ago

#

lol

ivory seal
#

is it possible to create an announcement channel with discord.js?
i tried putting the type in guild.channels.create as news but nada

#

lmao like we would help with tat

vital anvil
#

Can u. Tell me about this things @earnest phoenix

mint thicket
#

I know

#

I deleted it

vital anvil
#

Means

mint thicket
#

Do not ask for help with that thing. It’s not allowed on discord

earnest phoenix
#

what

vital anvil
#

But how will I able to know about all this things

regal saddle
#

inappropriate message.

earnest phoenix
#

what was innapropriate

#

the word blocked

regal saddle
#

Your message

mint thicket
#

@vital anvil it’s not allowed. Stop asking

earnest phoenix
#

what did i say

#

i just said i blocked him

mint thicket
#

Don’t start drama val

earnest phoenix
#

I m french

#

ok sorry

mint thicket
#

It’s not needed

earnest phoenix
#

Chutttt

#

I m french

vital anvil
#

@earnest phoenix bro u also have the tag of hypad squad bravery I also want the same

#

How can I get

opal plank
#

bruh

mint thicket
#

Dude

#

Don’t ignore me

#

When I say stop, it means stop

regal saddle
#

haha

opal plank
vital anvil
#

@opal plank it's not coming in my device

opal plank
#

open on desktop

mint thicket
#

This channel is for development support. Not discord support

opal plank
#

^^

#

also that

vital anvil
#

@opal plank this will come in pc

mint thicket
#

@vital anvil this is not the channel for that. Look at discord support for help with it

opal plank
#

did you bother reading what the mod told you?

vital anvil
#

Means for what is this channel ????

umbral zealot
#

Programming, Coding, Development.

vital anvil
#

So can I ask for bot making

mint thicket
#

We do not make bots

umbral zealot
#

You can ask for programming help, within the rules.

mint thicket
#

It’s for code help, not code giving

vital anvil
#

Do u know how to make

#

Bot

earnest phoenix
#

@umbral zealot im messing around with your enmap module and its pretty cool, nice job

umbral zealot
#

Yes, that's pretty much the entire point of 90% of members on this server.

rocky hearth
#

please consider reading the "discord guide" If you're new here! hoist

vital anvil
#

@earnest phoenix do u know how to make bot

strong tundra
#

wait how do you make discord bot

earnest phoenix
#

yes i know how to make a bot

vital anvil
#

@earnest phoenix will u plzzz tell me how to make

earnest phoenix
#

i reccomend you learn about the language you're going to use for the bot

#

Im not going to spoon feed you

umbral zealot
vital anvil
#

@mint thicket and u r having a bot developer tag also

#

i reccomend you learn about the language you're going to use for the bot
@earnest phoenix english

earnest phoenix
#

...

strong tundra
#

i have impl with comand how do i use impl to connect to discord client libary

earnest phoenix
#

i program my bots in spanish

regal saddle
#

he really said bean can make it.

mint thicket
#

Make what, exactly

earnest phoenix
#

@vital anvil I didnt mean verbal language, i meant programming language

rocky hearth
#

Bean, he's not taking u seriously. We need action!

mint thicket
#

I think I know what im doing, thanks

earnest phoenix
#

im pretty sure hes a troll yeah

slender thistle
#

Emma lmao what are you doing

strong tundra
#

big nate discord bot

regal saddle
#

he just doesn’t understand english very well i believe

strong tundra
#

but im actually doing it lmao

vital anvil
#

@earnest phoenix i am indian

#

And i can speak only 2 language

strong tundra
#

actually kinda sad

vital anvil
#

English , hindi

slender thistle
#

Oh my

umbral zealot
#

How to make a bot
Step 1) learn a programming language (javascript, python, etc)
Step 2) choose a library in that language (discord.js, discord,py)
Step 3) actually start writing the bot
Step 4) ask for specific help if you need it

slender thistle
#

What lang is that?

umbral zealot
#

impl apparently

vital anvil
#

@earnest phoenix now u tell how can I make bot

umbral zealot
#

looks like a special snowflake language lol

vital anvil
#

What lang is that?
@slender thistle which??

slender thistle
strong tundra
#

it's the only political programming language

#

rust

umbral zealot
#

"Industrial Modeling and Programming Language" ?

slender thistle
vital anvil
#

Anyone plss tell me how to make a bot

umbral zealot
strong tundra
#

no sorry i dont know how 2 code

mint thicket
#

People have been trying to help you

#

And you are ignoring them

#

If you actually want help, I suggest you listen to them

vital anvil
#

Yeah I am listening g

mint thicket
#

You aren’t

vital anvil
#

But I am not understanding

mint thicket
#

You are ignoring the help and repeating your question

vital anvil
#

😶 😶

mint thicket
#

Coding a bot involves learning how to code and reading things. No one is just going to tell you how to do it. It’s not that simple

vital anvil
#

I know that it isn't simple but I wan tto learn

mint thicket
#

Then use what people are giving you. Look at the channel pins, the links

strong tundra
#

i suggest learning how to program in general first

mint thicket
#

There are so many resources, you just need to use them

strong tundra
#

yeah lol

mint thicket
#

We aren’t here to hold your hand and show you every little step

vital anvil
#

Why my name is hoist

mint thicket
#

Because your name was hoisted

vital anvil
#

Means

mint thicket
#

Has special characters in the front

#

To put you at the top of the list

#

It’s not allowed here

queen moss
#

So. If I was to route a NAS setup from my apartment, to my dedicated server in Germany, how terrible would that be on a scale of 1-10

My speed to the dedi is sitting at 120mb/s

I'm debating how "worth it" it is to rent block storage monthly vs buying a few hdds

vital anvil
#

What's this

strong tundra
#

where in the world are you

regal saddle
#

You have a Server in Germany? How come

queen moss
#

Cheaper

strong tundra
#

if you're in the usa i dunno if i'd do that

queen moss
#

I'm in the US yeah thats why I'm like ehhh

#

It'd be a lot of hops for any sort of file transfer so

regal saddle
#

probably depends full on your site, since its an german server

queen moss
#

I'd most likely use ZeroTier as the network manager

strong tundra
#

yeah it depends what you're doing

queen moss
#

Moving files back and forth

ivory seal
#

is it possible to create an announcement channel with discord.js?
i tried putting the type in guild.channels.create as news but nada

strong tundra
#

ah interesting

regal saddle
#

But tbh, i dont know how the German Server can be the cheapest.

strong tundra
#

hetzner

#

i think contabo is really cheap as well

queen moss
#

Its 100$ a month for most block storage providers for 1tb

#

I have 16tb raid myself

#

So its like. debatable I guess

regal saddle
#

never heard of those, anyway. depends fully on your Site, i cannot tell you how it will be in the end.

queen moss
#

True yeah

regal saddle
#

moving so much data from a to b seems kinda dangerous.

blissful coral
#

yeah

queen moss
#

Yeah

regal saddle
#

because you dont know what will happend if you lose like 100gb data for example.

queen moss
#

Maybe its time to buy a rack server of my own lol

blissful coral
#

So before I buy a domain, how exactly do I hook it up to my express?

queen moss
#

What do you mean

#

Like connect it to a website using express?

blissful coral
#

Yeah

queen moss
#

Its all about DNS setup

regal saddle
#

The only problem I see here is that who will sacrifice themselves to say that it was their fault if data is lost.

blissful coral
#

Yeah just makin sure

#

The fuckin what

regal saddle
#

invest

blissful coral
#

Well

#

A .xyz is 1 dollar

#

So let's do that instead

#

LMAO

regal saddle
#

haha

blissful coral
#

That is a .gg

#

I forgot they are hella expensive

regal saddle
#

bruh

#

60$ for a .gg domain

blissful coral
#

Nah they are usually around 100

strong tundra
#

hmm

regal saddle
#

didnt knew.

strong tundra
#

id recommend doing your dns on cloudflare if possible

#

makes everything super easy imo

regal saddle
#

better if you dont rent a server around the world

strong tundra
#

but anyways point an A record to your VPS's ip address and you should be good

#

if you use nginx or apache or another proxy/server youd have to set that up as well

#

i can't help too much on that as there are a ton of stuff you can do and i barely know nginx and don't use apache

silver lintel
drifting wedge
#

With flask, how can I get the input from a text box and put it in a body tag?

#

Ping pls

clever vector
#

Hello developers

blissful coral
#

Hi

clever vector
#

How to find when the bot created code?

#

i mean How to do

blissful coral
#

a bot is just like a user

#

When searching for it

#

Other then the properties it returns

clever vector
#

${}??

blissful coral
#

so you can call .createdAt()

clever vector
#

Yeah i want that kind

#

.createdOn()

#

Like this?

blissful coral
#

iirc yes

clever vector
#

i mean the code

#

{name: 'Created at:', value: .createdAt()}??

rocky hearth
#

@clever vector client.user.createdAt

clever vector
#

i knew it

#

Thanks bro because i go to whois and find the user created at

#

Thanks 🙏

rocky hearth
#

ok np

earnest phoenix
#

Hi

blissful coral
#

Hi

earnest phoenix
#

hi

slender thistle
#

With flask, how can I get the input from a text box and put it in a body tag?
@drifting wedge blind poke into the dark: see if request.form does what you need

silver lintel
#

How do I show how many servers my bot is on on topgg?

#

I know I need the topgg apo

#

But I can't find how to do it

clever vector
#

Hey guys

#

Memory and CPU of bot = our pc cpu and meory?

summer torrent
#

@clever vector where is your bot hosted

tardy hornet
#

my friend had a problem with his code...

PS C:\Users\erezm\OneDrive\Desktop\desktop\GAMES\discord\mybot\node_modules> node .
internal/modules/cjs/loader.js:883
  throw err;
  ^

Error: Cannot find module 'C:\Users\erezm\OneDrive\Desktop\desktop\GAMES\discord\mybot\node_modules'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
PS C:\Users\erezm\OneDrive\Desktop\desktop\GAMES\discord\mybot\node_modules>

thats the error

summer torrent
#

you are executing node . in node_modules directory

tardy hornet
#

okay i will tell him

clever vector
#

@clever vector where is your bot hosted
@summer torrent Heroku

upper crescent
#

hey could anyone help me on installing docker on wsl 2 in windows

restive furnace
#

sudo apt install docker if ur on debian/ubuntu

upper crescent
#

actually i have a two options i think while installing the docker

#

or other is yours using apt command

#

i wanted to ask if there will be a difference afterwards if i install using this link

#

or they are the same

storm cliff
#

use that first one

upper crescent
#

should i install docker for windows or docker for linux !!

#

use that first one
@storm cliff i am kinda concern about what if run into some problem afterwards !!

#

cause i will be downloading on ubuntu(which is linux vm or something )

crystal wigeon
#

how do you make emojis not take any space?

vale garden
crystal wigeon
#

but there's a gap between them

vale garden
#

so does anyone know how you can make a cmd handler in py?

#

how do you make emojis not take any space?
@crystal wigeon dude just go to the left of the second emoji and hit backspace

#

lmao

crystal wigeon
#

bruh it delets the emoji

#

zz

vale garden
#

huh

#

that means your emoji is messsed up

crystal wigeon
#

i even cropped the exact shape ;-;

vale garden
#

idk then

crystal wigeon
#

without additional space

green kestrel
quartz kindle
#

Make one in scottish

warm marsh
#

Scottish is identical to English, just pronunciation of words is different.

#

Unless you mean Scottish Gaelic

crystal wigeon
#

can we pass an array to check if the bot has all the required permissions?

crystal wigeon
#

bot says it has "EMBED_LINKS" permission even when it doesn't th?

obsidian tartan
#

is there any api whose help I can take to auto backup database files in python

crystal wigeon
#

if (guild.me.hasPermission("EMBED_LINKS")) is this statement correct? it returns true even when the bot has no embed permission but then while sending the actual embed it says missing permissions

pale vessel
#

check channel overwrites too; channel.permissionsFor(guild.me).has("EMBED_LINKS")

crystal wigeon
#

ah

#

but why does it return true?

#

if i dont check the channel override thingy

pale vessel
#

since it checks for the permission globally, which is under the roles settings

#

channels can have permission overwrites which overwrites those "global" permissions specifically on that channel

crystal wigeon
#

ahh

#

got it

#

thanks

kind thicket
#

I'm trying to add an image to my embed, but for some reason it doesnt want to send the image inside of the embed

const {body} = await superagent.get("https://minecraftskinstealer.com/achievement/a.php").query({i: 1, h: "Achievement get!", t: text});
let achievementEmbed = new MessageEmbed().setColor("#eab437").attachFiles(body).setImage(`attachment://body.png`);
message.channel.send(achievementEmbed);
livid otter
#

Do you have css code to change the button colors of the bot page

earnest phoenix
#

attachFiles() takes an object as a parameter and should be used like

<MessageEmbed>.attachFiles({
attachment: <BufferResolvable>,
name: <String>
})``` @kind thicket
kind thicket
#

ah, thanks!

gusty quest
#

so i have this error
TypeError: Cannot read property 'users' of undefined

This is code.
const user = message.mention.users.first();

solemn latch
#

message.mention isnt a thing
message.mentions may be what you want

tawdry arrow
#

does anyone know about Core Java ?

pale vessel
#

don't ask to ask

#

just ask your question

tawdry arrow
#

what

supple oriole
#

how do I fix this

#

Error: input stream: Error parsing info: Unable to retrieve video metadata
at getWatchPage (/home/runner/Discord-MusicBot-19/node_modules/ytdl-core/lib/info.js:75:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async exports.getBasicInfo (/home/runner/Discord-MusicBot-19/node_modules/ytdl-core/lib/info.js:84:22)
at async Map.getOrSet (/home/runner/Discord-MusicBot-19/node_modules/ytdl-core/lib/cache.js:24:19)
at async exports.getInfo (/home/runner/Discord-MusicBot-19/node_modules/ytdl-core/lib/info.js:226:14)
at async Map.getOrSet (/home/runner/Discord-MusicBot-19/node_modules/ytdl-core/lib/cache.js:24:19)

earnest phoenix
#

Which version of ytdl-core are you using

supple oriole
#

How do I find out

earnest phoenix
#

In terminal do npm ls ytdl-core

supple oriole
#

ytdl-core@3.4.2

earnest phoenix
#

Update it

#

npm i ytdl-core@4.0.3

supple oriole
#

Done.

earnest phoenix
#

Now restart the bot and try again

supple oriole
#

ok

#

it works

#

:D

earnest phoenix
supple oriole
#

I got another issue

#

from 1 of my other music bots

#

Segmentation fault (core dumped)

#

it uses ytdl-core@4.0.3

tranquil yoke
#

I have a question about DBL vote bot. How to make it to send a message every time some1 upvotes the server

opal plank
#

@green kestrel probably putting nicknames in the Data collection is a bad example, that falls under end user data
or at least mention that keeping end user data is a VERY, VERY bad idea overall unless you got your database properly encrypted(which most dont)

earnest phoenix
#

@supple oriole Are you using ubuntu

supple oriole
#

Nope

earnest phoenix
#

Linux?

supple oriole
#

Lemme check rq

#

I can't tell, I can send u my consts tho

drifting wedge
#

@drifting wedge blind poke into the dark: see if request.form does what you need
@slender thistle it does, but not exactly, I want it to update live

supple oriole
#
const { play } = require("../include/play");
const { YOUTUBE_API_KEY, SOUNDCLOUD_CLIENT_ID } = require("../config.json");
const { MessageEmbed } = require("discord.js");
const ytdl = require("ytdl-core");
const YouTubeAPI = require("simple-youtube-api");
const youtube = new YouTubeAPI(YOUTUBE_API_KEY);
const scdl = require("soundcloud-downloader");
drifting wedge
#

Is it possible?

earnest phoenix
#

@supple oriole That doesn't help

supple oriole
#

:/

#

dependencies?

#

Idfk

earnest phoenix
#

Is a bot dev
Doesn't know if he uses linux or ubuntu or whatever

tranquil yoke
#

I have a question about DBL vote bot. How to make it to send a message every time some1 upvotes the server

supple oriole
#

Is a bot dev
Doesn't know if he uses linux or ubuntu or whatever
@earnest phoenix yes

#

pog right there

opal plank
#

@tranquil yoke webhooks, and you need to tell us which language you using

tranquil yoke
#

English

#

Okay

supple oriole
#

.

tranquil yoke
#

@opal plank what should i do

opal plank
#

im gonna pretend i didnt read that

supple oriole
#

LOL

#

IMFAO

#

@opal plank He meant how to use the bot

#

DBL Vote

tranquil yoke
#

How to

earnest phoenix
#

Wrong server then

tranquil yoke
#

?

pale vessel
#

ads

drifting wedge
#

?

pale vessel
#

go to that server for support for dbl vote 4head

drifting wedge
#

alr alr

earnest phoenix
#

heyo

#

noobs

solemn jolt
#
const entry1 = await guild .fetchAuditLogs({ type: "MEMBER_KICK" }) .then(audit => audit.entries.first()); console.log(entry1.executor.username); 
const entry = entry1.executor;
iguild.members.cache .get(entry.id) .ban()
});```
#

Why this code is don't work

earnest phoenix
#

guildKickAdd

#

what's that

solemn jolt
#

I mean like a guildBanAdd

pale vessel
#

you need guildMemberRemove lol

solemn jolt
#

I change it

#

But don't work again

pale vessel
#

let me check

solemn jolt
#

Ok

tardy hornet
#

my friend is trying to make a music command, and i dont remember how to download ffmpeg

pale vessel
#

it gives member only

#

so <Client>.on("guildMemberRemove", member => {});

solemn jolt
#

@tardy hornet
sudo apt-get install ffmpeg
npm install ffmpeg-static

earnest phoenix
#

I've got a question

So I have this fancy play/pause button thingy for my stuff where when you press it it changes from play to pause or vice-versa and the audio does what it's supposed to. The buttons are just an img element inside a blank button element.

But everytime I click it, the image has to be reloaded again from the server and it takes a significant time to load. Is there a way to "preload" media so the browser can just re-use it whenever it's needed (instead of loading it again from the server)?

solemn jolt
#

@pale vessel i use this but don't work i use

bot.on("guildMemberRemove", async member => { 
const entry1 = await member.guild .fetchAuditLogs({ type: "MEMBER_KICK" }) .then(audit => audit.entries.first()); console.log(entry1.executor.username); 
const entry = entry1.executor;
member.guild.members.cache .get(entry.id) .ban()
})
earnest phoenix
#

thanks

pale vessel
#

do you have the guild members intent?

#

you need that intent for events that involve with members

solemn jolt
umbral zealot
#

then you need to ask support for those

solemn jolt
#

@umbral zealot how i can,
i need fix it fast because my security bot in 760 guilds

umbral zealot
#

There's no fast fix

#

it'll take over 2 weeks to get those

solemn jolt
#

Ow i don't like it 😅

earnest phoenix
#

poison destroys poison
discord kills discord

umbral zealot
#

Nobody does, but then, everyone had 6 months to prepare and were given ample warning, and a chance to request them during verification.

solemn jolt
#

Bad luck ,
Thank you

#

@umbral zealot and how ask the supporter?

umbral zealot
earnest phoenix
#

if i just send a GET request to a resource on my server through JS and use it later in the HTML document the browser won't reload it right?

umbral zealot
#

wdym if you "just sent a get request"

#

Instead of... y'know... just <link rel="preload"> ?

pale vessel
#

if you keep it in a variable somewhere, it wouldn't reload, i guess that's what you mean?

#

thonk

earnest phoenix
#

like so:

<script>
axios.get("some resource");
</script>
<!-- later down in document -->
<img src="some resource">
pale vessel
earnest phoenix
#

preload works in the background but i want the page to load AFTER the preload

#

(fancy way of saying synchronous)

umbral zealot
#

why in heavens would you need that

earnest phoenix
#

¯_(ツ)_/¯

umbral zealot
#

sounds like an x/y problem

earnest phoenix
#

i wanna load the resource AFTER page load then use it later after it's done loading

umbral zealot
#

So instead of pre-loading, you want to post-load and wait for it, making your page loads longer?

#

how does that make sense?

pale vessel
#

what the fuck

earnest phoenix
#

idk

umbral zealot
#

Like, the link I sent, all you need to do is to add the <link rel and then use the image normally, you don't even need a script

pale vessel
#

doesn't it already do that? the image loads after the page is done loading

umbral zealot
#

yeah literally that's what an <img> tag does, load the resource after the page has loaded and display it once it's done 😂

earnest phoenix
#

the interactable stuff like buttons and input elements load faster than the images and audio files so if for whatever fucking reason people try to use those before the media files are loaded it just breaks

pale vessel
#

bruh

umbral zealot
#

Oh so this has literally nothing to do with images and it has to do with audio files then

earnest phoenix
#

bruh i said media earlier but used an img example

umbral zealot
#

Guess you're gonna need to learn how to check whether an audio file has finished loading and disable the button until it's done.

earnest phoenix
#

basically this ^

#

what about a progress bar

pale vessel
#

how to google (2020) by Evie Codes

umbral zealot
#

I mean honestly, that's literally what a good dev is

#

someone with higher google-fu skills

pale vessel
#

yeah, i got used to coding by googling problems that i encounter

#

works 90% of the time

#

docs help too

dense topaz
#

how i can remove 1 item from db like ["item1", "item2"] i want to remove item2
(quick.db)

dense topaz
#

thanks

arctic hare
#

any docs or guide on how to make a bot give role when a member votes for a server on top.gg ?

tribal siren
#

bruh

#

give me one second

outer perch
#

so guys, I have my bot, but the way I do it's testing is by updating the bot itself. How do I create a clone without copying the whole code just for testing before updating?

sudden geyser
#

Create a separate account for your bot and use its token in replacement of the main bot.

#

That's how I do it.

outer perch
#

seems like a good idea, ty

hasty grove
#

Hi
Can I see the user number for a guild with my bot with the API Discord.py v1.5.1 please ?

vale garden
#
@bot.event
async def on_message(message):
  if message.author != bot.user and message.content:

    global counter
    
    if counter == None:
      counter = 0

    else:
     counter += 1
     print(counter)

#

hi

#

it says counter isnt defined

#

plz help

slender thistle
#

what are you doing

pale vessel
#

global monkaS

hasty grove
#

@vale garden You count a member when he send a message ?

hard anchor
#

They help me?
Someone tell me how my bot makes it play music with a link, it works with discord.py

pale vessel
#

you're creating a global on every message

slender thistle
#

Define the variable on module level, probably right after declaring the bot object

#

then just edit it

hasty grove
#

I can see the user number for a guild when my bot join or I must wait a message from every member ?

sterile ridge
#

@hard anchor

hard anchor
#

hi

sterile ridge
#

if u choose youtube

hard anchor
#

yea

sterile ridge
#

... with youtube I dont know how to stream music with youtube api

#

and this is ilegal

hard anchor
#

Which one would you recommend?

sterile ridge
#

and if u download youtube song is ilegal to

#

xD

#

my bot...?? my doesn't have music commands

#

but

earnest phoenix
#

streaming music from youtube on any other service than youtube is illegal but youtube is relaxed about it

sterile ridge
#

but u have pytube

dusky field
#

appears

earnest phoenix
#

spotify on the other hand is willing to take you to court lol

sterile ridge
#

@hard anchor if u want to download songs u can use pytube

#

and then with

#

ffmpeg play music

#

u have to pip install pytube

#

and pip install ffmpeg

hard anchor
#

I just need code, I am using ffmpeg

sterile ridge
#

greate!

#

maybe

#

later I will send u some code

#

thats can helps u

hard anchor
#

Thanks

sterile ridge
hard anchor
#

Can you pass the code to me through discord or through github?

sterile ridge
#

discord

#

np

#

30 min

hard anchor
#

Ok

thin turret
#

Spoonfeeding

#

Not pog

normal sage
#

spotify on the other hand is willing to take you to court lol
@earnest phoenix so if you use songs in your stream, that’s illegal?

#

from Spotify

sterile ridge
#

yep

normal sage
#

bruh

hard anchor
#

How do I get my bot to send memes? I may seem very stupid but I don't know lol

lyric lynx
#

Button in my bot page is not working.

sterile ridge
#

@hard anchor ...

hard anchor
#

I am very new to python

thin turret
#

Reddit api

#

Or webhooks

sterile ridge
#

reddit

hard anchor
#

thanks

lyric lynx
thin turret
#

Show the html

rocky hearth
#

How can I create guild invite url?

vital geyser
#

does it have the <a> element?

lyric lynx
#

Show the html
@thin turret me?

thin turret
#

Yes

lyric lynx
#

ok

hard anchor
#

can i use github?

sterile ridge
#

yes

hard anchor
#

thanks x2!

lyric lynx
#
<button class="glow-on-hover" onclick=" window.open('https://discord.com/api/oauth2/authorize?client_id=756482934533259315&permissions=8&scope=bot','_blank')" type="button">ADD TO DISCORD</button>
  </div>```
vital geyser
#

ok so

#

in this

sterile ridge
#

@hard anchor u can use one api

#

on github

#

reddit api

vital geyser
#

it would be easier to put the button inside of a <a> element imo

thin turret
#

A way to simplify would be to use

<a href="http://link.com">
   <button>Btn</button>
</a>
sterile ridge
#

but if u want to have other language memes u have to use oficial Reddit api

hard anchor
#

api needed for github? I didn't know that haha

sterile ridge
#

nop

lyric lynx
#

thanks

sterile ridge
#

api is a part of code that makes ur life more easyer

#

github is a plataform where u can post ur code and more things

#

are completely different

thin turret
#

Not the best explanation for api

sterile ridge
#

@thin turret yup xD

vital geyser
#

in short github is just a place where people post open source for other people to use, or they make a private repo to host code on a cloud like heroku

sterile ridge
hard anchor
#

in short github is just a place where people post open source for other people to use, or they make a private repo to host code on a cloud like heroku
@vital geyser hummmm.

earnest phoenix
#

that's a nowhere near a correct definition

#

it's a git repository host

#

just because the code is open source does not mean you can steal it and use it

#

licenses exist

vital geyser
#

yeah basically its used for people to post code

hard anchor
#

So where can I host memes?

vital geyser
#

and github is made for open source

earnest phoenix
#

a CDN

#

get a small server to host it on or upload your memes to an image hoster

#

using a github repository as an image hoster goes against their guidelines

#

and no it isnt @vital geyser

normal sage
#

GitHub can be used for multiples things.

#

I use it to host my website lol.

earnest phoenix
#

yeah github sites, a feature they provide

thin turret
#

How much is it to host sites

normal sage
#

it’s free

thin turret
#

Pogchamp

normal sage
#

but you have to pay to make ur repo private

thin turret
#

I see

normal sage
#

but that isn’t bad since you can use .env or SQLite for database stuff

thin turret
#

Im just looking to make a simple static site so it wont be a big deal

earnest phoenix
#

yeah github sites is made for that

slender thistle
#

Private repositories are free, no?

earnest phoenix
#

up to 3 for basic accounts iirc

normal sage
#

Private repositories are free, no?
@slender thistle GitHub pages requires you to have pro to private them.

vale garden
#

hi can someone help me out im new to py

def check(m):
         return m.author.id == message.author.id

       msg = await bot.wait_for('message', check = check)

       if msg.content.lower() == pkmn_list[rand_no][0]:
         await message.channel.send(f"Congratulations {message.author}! You caught a {pkmn_list[rand_no][1]}!")

       else:
         await message.channel.send("That is the wrong pokémon!")
         check()

over here i need to execute the function again when i hit the else block but i have to also specify the value of m, so does anyone know what i can do

thin turret
#

And I assume github sites enables the use of fullstack node applications?

earnest phoenix
#

no

#

it's a static site hoster

dense topaz
#

let xx = db.get(rns_${guild.id})

if (xx === null) xx = "None"

but i got array [] and i wont to set it to "none"

like if(xx === "[]") xx = "None"
any help

thin turret
slender thistle
#

I'm sorry what

thin turret
#

You want to set an array to "none" if its empty?

dense topaz
#

yes

livid lichen
#
    SetRedditPost(msg, "meme");
  }, 5000);``` Didn't  work.
quartz kindle
#

@dense topaz if(!xx.length)

livid lichen
#

I want that function to run every 5000 seconds, but it didn't work.

thin turret
#

5 seconds or 5000 seconds

livid lichen
#

Interval is not a function

#

5 seconds oops

quartz kindle
#

Interval is not a function

livid lichen
#

Yeah.

quartz kindle
#

Are you trying to do Interval() anywhere?

livid lichen
#

Yes.

quartz kindle
#

Well dont

livid lichen
#

Oh?

#

Then how would I call the function?

thin turret
#

You would have to wrap it in a function

quartz kindle
#

setInterval returns a number, corresponding to the interval id, in case you want to stop it some time

dense topaz
#

thanks Tim

quartz kindle
#

Otherwise the moment you create a setInterval, it already starts running

livid lichen
#

Oh. I was trying to get it to run every 5 seconds.

quartz kindle
#

Its alrwady running every 5 seconds

vale garden
#

hi can someone help me out im new to py

def check(m):
         return m.author.id == message.author.id

       msg = await bot.wait_for('message', check = check)

       if msg.content.lower() == pkmn_list[rand_no][0]:
         await message.channel.send(f"Congratulations {message.author}! You caught a {pkmn_list[rand_no][1]}!")

       else:
         await message.channel.send("That is the wrong pokémon!")
         check()

over here i need to recurse the check function when i hit the else block but i have to also specify the value of m, so does anyone know what i can do

^^ posting this again coz no one answered

quartz kindle
#

You dont need to do anything

livid lichen
#

Oh

#

So I just leave it like so?

quartz kindle
#

Ye

livid lichen
#
  var Interval = setInterval(function() {
    SetRedditPost(msg, "meme");
  }, 5000);
} ```
#

So just like that?

quartz kindle
#

You dont even need the Interval variable if you plan to make it run forever

livid lichen
#

ah

blissful coral
#

^ lol

vale garden
#

ahhh can someone help me

#

plz

livid lichen
#

So I should delete the var?

blissful coral
#

Ask your question

quartz kindle
#

Ye

blissful coral
#

Don’t ask if you can get help just ask

vale garden
#

i already did

#

hi can someone help me out im new to py

def check(m):
         return m.author.id == message.author.id

       msg = await bot.wait_for('message', check = check)

       if msg.content.lower() == pkmn_list[rand_no][0]:
         await message.channel.send(f"Congratulations {message.author}! You caught a {pkmn_list[rand_no][1]}!")

       else:
         await message.channel.send("That is the wrong pokémon!")
         check()

over here i need to recurse the check function when i hit the else block but i have to also specify the value of m, so does anyone know what i can do

^^ posting this again coz no one answered
@vale garden

blissful coral
#

Oh

livid lichen
#

Thanks.

blissful coral
#

It’s py

#

:/

vale garden
#

lol ye

#

im learning py

blissful coral
#

I don’t do py with discord bots I do it with other stuff so can’t really help lol

vale garden
#

kk

pale vessel
#

you want to say the value of m?

normal sage
#

m

vale garden
#

yea

#

and

#

how do i do that

pale vessel
#

m should be the context object

#

do you want the message content?

vale garden
#

yes i do

normal sage
#

Is that rewrite python?

pale vessel
#

should be m.content then

normal sage
vale garden
#

ok thnx

normal sage
#

rewrite or old one

vale garden
#

uhh idk

pale vessel
#

rewrite

vale garden
#

@pale vessel it says m is not defined

#

the same error i had before

pale vessel
#

wait where are you putting it?

vale garden
#

inside the function call

#

check(m.content)

#

at the bottom

pale vessel
#

should it be in the else block?

#

you should reduce the indentation

vale garden
#

yea in the else block

pale vessel
#

wouldn't that be a loop?

vale garden
#

wdym

#

yea it loops back to the starting

pale vessel
#

you need to provide the same context, otherwise m in the next function would not be defined

#

check(m)

vale garden
#

can i even do that outside its function

earnest phoenix
#

is there a way to see all server names & ids with an eval command?

#

(for support & research purposes)

quartz kindle
#

Yes, but it will likely exceed the character limit

earnest phoenix
#

Yes

scarlet pollen
#

U

vale garden
#

huh

pale vessel
#

can i even do that outside its function
@vale garden not outside, inside

#

just provide m to the function so that it won't be undefined

ionic dawn
vale garden
#

@vale garden not outside, inside
@pale vessel but when i put the entire thing inside the check function the messages arent sent for some reason

pale vessel
#

can you show the code?

vale garden
#
def check(m):
         return m.author.id == message.author.id

         msg = await bot.wait_for('message', check = check)

         if msg.content.lower() == pkmn_list[rand_no][0]:
          await message.channel.send(f"Congratulations {message.author}! You caught a {pkmn_list[rand_no][1]}!")

         else:
          await message.channel.send("That is the wrong pokémon!")
          check(m)
#

this is how it would look if everything was inside

pale vessel
#

i'm not sure why you need to repeat the function anyway

#

if it's the wrong pokemon then it's wrong...?

vale garden
#

yea but

#

it only checks for one message

pale vessel
#

ah, isee, you're using wait_for

vale garden
#

yea

#

so is there anything else i can use or what

pale vessel
#

you should separate all code after return inside a command

#

check is only for checking whether the author is the same as message author

vale garden
#

kk thnx

#

yeah tbh i should have done that lol

pale vessel
#

and remove that check(m) inside that else block

vale garden
#

yeah ik

#

so i just need the if else

#

right

#

@pale vessel

#
def check(m):
         return m.author.id == message.author.id

bot.command()
async def catch(ctx, arg):

 global rand_no
 global pkmn_list

 if arg.lower() == pkmn_list[rand_no][0]:
  await ctx.send(f"Congratulations {ctx.author}! You caught a {pkmn_list[rand_no][1]}!")

 else:
  await ctx.send("That is the wrong pokémon!")
#

i did this

#

and now for some reason

#

it doesnt send anything

pale vessel
#

why are you using your args?

#

i thought you wanted to wait for new messages

#

also, it's @bot.command()

vale garden
#

oh shit

#

lmao how did i not realize

#

tq

#

now i had to type the name of the pokemon

#

which is now an arg

#

it was supposed to be like this by the end anyways

pale vessel
#

why don't you use wait_for inside the command?

vale garden
#

no cuz the command is p!catch <pokemon> so i dont need a collector

#

btw i fixed it but it still doesnt work

pale vessel
#

you can still use a collector

vale garden
#

no error as well

#

yea ik but i dont want to

pale vessel
#

ic

vale garden
#

lol

#

its still not working

#

for some reason

pale vessel
#

why is there py global rand_no global pkmn_list

vale garden
#

cuz i defined them at the top of the file

#

outside the on_message function

pale vessel
#

wouldn't the random number be the same on every message then?

vale garden
#

no the pkmn_list is outside

#

rand_no is inside

#

but still outside the command

pale vessel
#

whats the new code

vale garden
#
import discord
import os
import random
from discord.ext import commands

bot = commands.Bot(command_prefix = "p!")
counter = 0
pkmn_list = [["pidgey", "Pidgey", "https://bit.ly/3mnlSnt"], ["pidgeotto", "Pidgeotto", "https://bit.ly/2TpN9t5"], ["pidgeot", "Pidgeot", "https://bit.ly/3jswCPO"]]

@bot.event
async def on_ready():
  print("Hi!")
  await bot.change_presence(activity = discord.Activity(type = discord.ActivityType.playing, name = f'p!help on {str(len(bot.guilds))} servers'))  


@bot.event
async def on_message(message):
  global counter
  global pkmn_list

  rand_no = random.randint(0, len(pkmn_list) - 1)

  if message.author != bot.user:
     counter += 1

     if counter % 3 == 0:

       embed = discord.Embed(
         title = "A wild pokémon has appeared!",
         description = "Guess the pokémon and type `p!catch <pokémon>` to catch it!",
         color = 0x00ff00
       )

       embed.set_image(url = pkmn_list[rand_no][2])

       await message.channel.send(embed = embed)

       def check(m):
         return m.author.id == message.author.id

@bot.command()
async def catch(ctx, arg):

 global rand_no
 global pkmn_list

 if arg.lower() == pkmn_list[rand_no][0]:
  await ctx.send(f"Congratulations {ctx.author}! You caught a {pkmn_list[rand_no][1]}!")

 else:
  await ctx.send("That is the wrong pokémon!")
#

this is the full code

#

without the token part

vale garden
#

ok thx

mental tulip
#

Hey uh

#

Whenever I am clicking on embed links to join a vc

#

Bot doesn't make me join vc

gusty quest
#

help pls

ReferenceError: member is not defined
client.commands.get('kick').execute(member, message, args);

#

execute(member, message, args){

prisma oriole
#

whats member defined as

gusty quest
#

what

#

how to define that

prisma oriole
#

replace member with message.member

quartz kindle
#

Learn js

prisma oriole
#

and learn js

midnight blaze
#

how to define a variable?

#

(kidding)

#

Is there like a way to use readline in discord? I know I can use awaitMessages and message collectors, but is it possible? Just wondering

ivory seal
#

hey is it possible to create a announcement channel in discord.js? i tried doing let announcement= await message.guild.channels.create('announcement',{ type:"news" }); but nada

umbral zealot
#

readline can only view local interfaces - discord isn't a local interface, @midnight blaze

midnight blaze
#

I see

umbral zealot
#

messages come in through the message event, or collectors as you already know.

earnest phoenix
#

So I'm making an auto responder for my bot. I have an array of objects each object contains trigger and a response. If i add a auto response with trigger test and then add another trigger called test123 it will still respond to me with response of test trigger.

Here is my code for finding the triggers

const foundRes = data.autoRes.find(x => message.content.includes(x.trigger));
#

anyway i can fix that?

#

the code I'm using returns me an first object that the app found in responses array

snow urchin
#

regexp

#
  • message.content.match
#

or

wide lynx
#

I need i bot cazino ?

snow urchin
#

message.content.split(" ").map(y => y.includes(x.trigger)).includes(true)

earnest phoenix
#

Callum will it return a boolean or the object it found in the array

snow urchin
#

const foundRes = data.autoRes.find(x => message.content.split(" ").map(y => y == x.trigger).includes(true));

wide lynx
#

??

pale vessel
#

message.content.split(" ").map(y => y.includes(x.trigger)).includes(true)
@snow urchin wtf

snow urchin
#

I mean, it would work 🤷‍♂️

earnest phoenix
#

it doesn't

#

work

#

same results as before

pale vessel
#

well yes because test includes test

#

or test was found before test123

snow urchin
#

Try my one above, I updated the message, had a typo

earnest phoenix
#

ok

pale vessel
#

i don't think that's what they want

earnest phoenix
#

ok now that works

snow urchin
#

shock horror

#

@pale vessel 😉

earnest phoenix
#

ty Callum

pale vessel
#

what then just use data.autoRes.find(x => message.content == x.trigger);

earnest phoenix
#

oh wait nvm

pale vessel
#

split the spaces if you need to

earnest phoenix
#

split the spaces if you need to
need to what

#

it doesn't work if its somewhere in the message now

pale vessel
#

it wont work if its in- yea

earnest phoenix
#

hmm

pale vessel
#

so data.autoRes.find(x => message.content.split(" ").includes(x.trigger));

earnest phoenix
#

ill try using regex and see what i can do

proven cliff
pale vessel
#

yes you are

quartz kindle
#

You are not allowed to ask if you are allowed

proven cliff
#

oh

robust tiger
#

$m

proven cliff
#

I mean I have a bit of a problem. So I've been trying to add a ''changeprefix'' command to my bot, how it works is that it puts the individual prefixes for each server/guild in a separate json file. I've imported json, but it still cannot find the file. Its in the same directory. I'm on Windows 10 and have Python 3.8.1 if that helps

quartz kindle
#

How are you loading it? Can you show the code?

proven cliff
#

okay

blissful coral
#

Yeah show how your calling the file

proven cliff
#

import discord
import json
import datetime
import random

from discord.ext import commands
from discord import Intents

def get_prefix(client, message):
    if not message.guild:
        return commands.when_mentioned_or(">")(client, message)
    with open('prefixes.json', 'r') as f:
        prefixes = json.load(f)
    if str(message.guild.id) not in prefixes:
        return commands.when_mentioned_or(">")(client, message)
    
    prefix = prefixes[str(message.guild.id)]
    return commands.when_mentioned_or(prefix)(client, message)


client = commands.Bot(command_prefix = get_prefix, case_insensitive=True, intents=Intents.all())
client.remove_command('help')
#

and then uh

#
@client.event
async def on_guild_join(guild):
    with open('prefixes.json', 'r') as f:
        prefixes = json.load(f)
    
    prefixes[str(guild.id)] = '.'

    with open('prefixes.json', 'w') as f:
        json.dump(prefixes, f)
#

oh

#

I left the imports at the top on purpose just so you guys could see that I've imported json

#

I've been trying to fix this issue for almost two hours now

#

And I knew there were some pretty talented coders in this discord, so I just came here for help :(

quartz kindle
#

Can you show the full error?

#

Is it file not found?

proven cliff
#

yeah

#

The script loads up and connects to discord

#

then when I try to use a command

#

starts the FileNotFound error

#

Probably should have mentioned that first, apologies

quartz kindle
#

Can you show the full error?

proven cliff
#

Oh my god

#

I am so sorry

#
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38-32\lib\site-packages\discord\utils.py", line 331, in maybe_coroutine
    value = f(*args, **kwargs)
  File "c:/Users/XXX/Documents/XXX Data/XXX/XXX Dev/XXX.py", line 15, in get_prefix
    with open('prefixes.json', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'prefixes.json'
arctic hare
#

any docs or guide on how to make a bot give role when a member votes for a server on top.gg , or log the vote in a channel?

earnest phoenix
#

hi, im getting "NameError: name 'ctx' is not defined" in my kick command. anyone know why? heres the code:

@commands.has_permissions(kick_members = True)
async def kick(ctx, member: discord.Member , *, reason = f"Kicked by {ctx.author.name}"):
    await ctx.send(f"{member.mention} has been kicked from {ctx.guild.name}. ")

    await member.send(f"You Have Been Kicked from {ctx.guild.name} . Reason = {reason}")

    #if no reason is provided then the reason will be kicked by <name of the person who kicked>
    await member.kick(reason = reason)```
pure lion
#

is there a way to do app.use() for multiple endpoints at once (express)

#

@earnest phoenix does it say what line

earnest phoenix
#

await member.send(f"You Have Been Kicked from {ctx.guild.name} . Reason = {reason}") this one

#

wait wrong one

pure lion
#

s

earnest phoenix
#

async def kick(ctx, member: discord.Member , *, reason = f"Kicked by {ctx.author.name}"): this one

#

dont know why

pure lion
#

ah

#

i have no idea

#

:)

pale vessel
sudden geyser
#

What are some good sites to practice programming skills (similar to Leetcode)?

earnest phoenix
#

wait

pale vessel
#

you have to set the default reason inside the function

earnest phoenix
#

uh

#

huh

proven cliff
#

There's some good websites like W3 schools, but there's also a few good small coding youtube channels like o2 Coding or Lukas

#

What are some good sites to practice programming skills (similar to Leetcode)?

earnest phoenix
#

idk what the hell that means

pale vessel
#

bruh

pure lion
#

@proven cliff he is a pogrammer not learning

earnest phoenix
#

i know im a idiot

pale vessel
#

nah you're not

pure lion
#

kanye you use py

earnest phoenix
#

yes

pale vessel
#

i'm an idiot for not explaining

pure lion
#

use brain too

sudden geyser
#

Minoteur I'm talking about websites where you basically solve a problem they give you.

#

For example, if they ask you to reverse a string, you write a program and they test it

proven cliff
#

Ah yeah I get what you mean

pure lion
#

reverse a string eh

proven cliff
#

w3 schools used to have that

pure lion
#

that cant be too hard

proven cliff
#

No idea if they still offer it

pure lion
#

ask voltrex i think he knows

sudden geyser
#

Dice yeah that's easy (I just came up with that one on the spot). the actual questions are quite difficult for me

pure lion
#

is there a way to do app.use() for multiple endpoints at once (express)
also if anyone could nyAAAAAAA that would be nice

#

example

#

app.use("/", [array of routes])

earnest phoenix
#

yay i fixed it

pure lion
#

also git stage doesnt seem to work for me, ive tried git stage filename and git stage . (and then pushing) but it workn't

pale vessel
#

yay i fixed it
@earnest phoenix can i see what you did, just curious

earnest phoenix
#

yea hold on

pure lion
#

fLaZePe PePeMoN

split siren
#

can you put gifs into embeds? I can't remember if this was possible

pure lion
#

help me

earnest phoenix
#

async def kick(ctx, member: discord.Member , *, reason=None):

pale vessel
#

idk git

#

ah, yes

pure lion
#

can you put gifs into embeds? I can't remember if this was possible
i believe so, with the image arg

sudden geyser
#

can you put gifs into embeds? I can't remember if this was possible
@split siren yes

earnest phoenix
#

also i made my first embed its very cool

solemn latch
#

fun stuff

pale vessel
#

and did you have something like this or whatpy if reason is None: reason = f"Kicked by {ctx.author.name}"

#

idek if that would work tbh

earnest phoenix
#

oh tru

#

ill prolly check it later

pure lion
#

How do I un-delete files from github

#

This is really urgent

#

@pale vessel HeLp

pale vessel
#

revert commit

pure lion
#

How

#

Where

#

Ajfjaidj

pale vessel
#

get the desktop client

pure lion
#

S h i t

solemn latch
#

git, saving the day

pure lion
#

Wait the client?

#

Feck

pale vessel
#

yes

#

desktop client, not git

#

i mean you can use git but i'm used to gui

sudden geyser
#

the stupid content tracker

earnest phoenix
#

One hours dev

#

Spotify activies detection and progress Bar xD thx @earnest phoenix ur inspir me

#

xD

pure lion
#

I don't know how to revert send help

earnest phoenix
pale vessel
#

@pure lion wdym

pure lion
#

I mean

#

When I try to commit it says that everything is up to date

#

But the files on my vps don't match those on the repo

pale vessel
#

pull from origin

pure lion
#

Why

pale vessel
#

wdym

#

you said it doesn't match the repo

#

pull the repo again and it'll detect changes on your vps

pure lion
#

Ah

upper elm
#

is there any way for me to tell how much time has elapsed since the start of a js program?

pale vessel
#

yes

pure lion
#

It says already up to date

pale vessel
#

process.uptime()

upper elm
#

ok thx

pale vessel
#

it's in seconds

upper elm
#

is that in node.js?

pale vessel
#

yes

#

@pure lion did you fetch it first

#

dont think you need to though

#

git pull already does that

upper elm
#

thanks

pure lion
#

@pale vessel its nOt WORKiNg

pale vessel
#

give me access to your vps and repo so that i can delete everything /s

pure lion
#

e

#

the repo is on my acc

#

so feel free to laugh at my fuckup

pale vessel
#

have you tried looking at your files in filezilla

#

@pure lion cant find the repo

#

is it public

pure lion
#

Yeah it is pub

#

Gdnps

pale vessel
#

its like one file

pure lion
#

Exactly

pale vessel
#

dude

pure lion
#

:)

pale vessel
#

i thought you already reverted them like i said

pure lion
#

:_)

#

I don't know how from cli

pale vessel
#

why

#

what machine are you using right now

pure lion
#

My vps

pale vessel
#

are you using ubuntu server or something to use discord

#

wtf

pure lion
#

No I'm on my phone

pale vessel
#

oh

#

do you not have a pc

pure lion
#

I do

pale vessel
#

but?

pure lion
#

It's currently ssh

pale vessel
#

what

pure lion
#

Yes

pale vessel
#

is it running windows

pure lion
#

I'll sharex the output and stuff

#

Yes

pale vessel
#

wtf

#

then install github desktop

pure lion
#

sex

#

also no i like pain

pale vessel
#

so git revert

pure lion
#

Ok hold on

pale vessel
#

wait no

pure lion
#

s

pale vessel
#

the files are there?

pure lion
#

not on the repo

pale vessel
#

no you mean it's not updated on github

pure lion
#

yes that

#

push did exactly nothing

pale vessel
#

what command did you use

#

also did you commit before pushing lol

pure lion
#

u h

#

welp

#

im leaving

#

bye dbl

shy turret
#

is it possible to check a user is in a guild using discordjs without using cache (due to privileged gateway intents)

pure lion
#

guild.member(ID)

pale vessel
#

that uses the cache lol

earnest phoenix
#

that's cache

pure lion
#

ah

#

then

#

um

#

:)

sudden geyser
#

guild.members.fetch

pure lion
#

wait you can do that?

pale vessel
#

yes

pure lion
#

WATHWSROIHYGOSF

#

WHY DID NOBODY TELL ME THIS

pale vessel
#

you just can't fetch all members at once

pure lion
#

cries

earnest phoenix
#

im not sure if that does REST or WS though, im guessing WS if options are defined

pale vessel
#

yeah if you have withPresences on then it will use WS

pure lion
#

i am officially the dumbest human alive