ProgrammerIn-wonderland / talk-with-me

2 stars 0 forks source link

discord down again #5

Open ProgrammerIn-wonderland opened 3 years ago

ProgrammerIn-wonderland commented 3 years ago

you probably could

NyleCohen commented 3 years ago

i might write that now

ProgrammerIn-wonderland commented 3 years ago

wait let me look at github api endpoints

ProgrammerIn-wonderland commented 3 years ago

image omg

NyleCohen commented 3 years ago

no way what if you could pull discord statuses and update it to your github profile

ProgrammerIn-wonderland commented 3 years ago

why is this unironically better than discord api https://docs.github.com/en/rest

NyleCohen commented 3 years ago

ive never used gh api before tbf let me see if theres any libs with the user data endpoint implemented

ProgrammerIn-wonderland commented 3 years ago

it looks simple as hell

NyleCohen commented 3 years ago

fuck this npm init

ProgrammerIn-wonderland commented 3 years ago

using this lib (official) Octokit the code is

await octokit.request('PATCH /user', {
  bio: 'new status'
})
NyleCohen commented 3 years ago

they call it octokit thats so sick

ProgrammerIn-wonderland commented 3 years ago

image

NyleCohen commented 3 years ago

using this lib (official) Octokit the code is

await octokit.request('PATCH /user', {
  bio: 'new status'
})

thats dead fucking simple

ProgrammerIn-wonderland commented 3 years ago

why aren't all libs like this

ProgrammerIn-wonderland commented 3 years ago

(and APIs)

NyleCohen commented 3 years ago

because developers are dumb bear with me if i take a while to reply im multitasking with like 4 other things

ProgrammerIn-wonderland commented 3 years ago

I understand lol

ProgrammerIn-wonderland commented 3 years ago

no way what if you could pull discord statuses and update it to your github profile

either requires self bot or for you to be in a discord server with a bot checking for status updates (priviledged intent)

NyleCohen commented 3 years ago

no way what if you could pull discord statuses and update it to your github profile

either requires self bot or for you to be in a discord server with a bot checking for status updates (priviledged intent)

yeah i feel like thats probably overkill, spotify integration could be cool tho, i would totally just leave it in a container

ProgrammerIn-wonderland commented 3 years ago

yeah it would be

NyleCohen commented 3 years ago

although last time i used spotifyapi i wanted to throw my keyboard against a wall, hopefully its a little easier this time

ProgrammerIn-wonderland commented 3 years ago

I'm kinda surprised how good the github api is tho

ProgrammerIn-wonderland commented 3 years ago

everything is exposed

NyleCohen commented 3 years ago

i kinda want to fuck with it now, ive never used it before

ProgrammerIn-wonderland commented 3 years ago

same

NyleCohen commented 3 years ago

image is it me or is this new

ProgrammerIn-wonderland commented 3 years ago

I think thats new

ProgrammerIn-wonderland commented 3 years ago

image

ProgrammerIn-wonderland commented 3 years ago

image

ProgrammerIn-wonderland commented 3 years ago

seems like bio and whatever the fuck status is, are different

NyleCohen commented 3 years ago

nice, gonna try it once i get this done can i see your status?

NyleCohen commented 3 years ago

image i can

ProgrammerIn-wonderland commented 3 years ago

nice, gonna try it once i get this done can i see your status?

here is shell code (curl)

curl \
  -X PATCH \
  -H "Accept: application/vnd.github.v3+json" \
  https://api.github.com/user \
  -d '{"bio":"test"}' \
 -u "NyleCohen"

when it asks for password dont put your github password go here https://github.com/settings/tokens/new select this image and use the token

NyleCohen commented 3 years ago

agh ik personal access tokens are a 1000x more secure but i just cant use them well

ProgrammerIn-wonderland commented 3 years ago

same

ProgrammerIn-wonderland commented 3 years ago

kinda sad about the password deprecation, so what if I hate security?

ProgrammerIn-wonderland commented 3 years ago

if I'm insecure in real life let me be insecure online too god damn it

NyleCohen commented 3 years ago

hahaha true to be fair im probably the most insecure person online which is super ironic considering i preach internet security all the time literally 2 days ago my vrchat account got a login from the united states, i had to change my password

ProgrammerIn-wonderland commented 3 years ago

aww its not real time on phone

NyleCohen commented 3 years ago

fuck come on github you were on to something here

ProgrammerIn-wonderland commented 3 years ago

test

NyleCohen commented 3 years ago

test passed

ProgrammerIn-wonderland commented 3 years ago

Ok the mobile website is real time

ProgrammerIn-wonderland commented 3 years ago

The mobile app isnt

NyleCohen commented 3 years ago

ok cool wait i wonder if fasthub is realtime let me check

ProgrammerIn-wonderland commented 3 years ago

Hey at least they have a mobile website unlike discord

NyleCohen commented 3 years ago

lmaooo true then again most of the user base doesnt use web discord so ig there isnt a reason

NyleCohen commented 3 years ago

Test

ProgrammerIn-wonderland commented 3 years ago

Here is the discord "mobile website" Screenshot_20211024-171404_Kiwi_Browser

ProgrammerIn-wonderland commented 3 years ago

I think the reason the mobile app isnt real time is because the github app uses the actual github api (thats also probably why the api is so good) and the api doesn't have realtime issues