#developers

1 messages · Page 10 of 1

paper token
#

FORCE
DISCORD
TO
SUPPORT
SOMETHING OTHER THAN GIFS ALREADY

rotund pivot
paper token
#

I see this as a feature

#

discord living in the 80s

zinc aspen
#

submitted to website bugs

#

can confirm it happens with other emotes too

#

something about how its formatted makes discord think its a png when uploaded as an emote

#

which means other things might break

rotund pivot
#

That’s not a website issue

paper token
#

image processor issue

zinc aspen
#

well where the hell else do i submit a bug like that

paper token
#

also it's not really 7tv's job to provide discord emotes

zinc aspen
#

my point is

paper token
#

the gifs are ONLY used for discord embeds

zinc aspen
#

if it breaks in one place

paper token
#

and even those aren't needed anymore tbh

zinc aspen
#

it can break elsewhere

rotund pivot
#

and they work

paper token
#

discord supports animated webps everywhere except iphone

#

and emotes

rotund pivot
#

there is nothing wrong with the gifs

#

on discord

paper token
#

have you tested real quick with a known-good gif?

zinc aspen
#

yes

#

tested with like

#

3 emotes from 7tv

#

and 3 gifs from my machine

#

all the 7tv ones uploaded as a static emote and the 3 from my machine uploaded as animated

#

and my point with this bug is that if the resulting gif from 7tv can break in one place, it's entirely liable to break in another place unexpectedly

rotund pivot
#

Try uploading 3x

#

Or 2x

zinc aspen
#

kk

#

all uploads as static

#

works fine here but as an emote it breaks

rotund pivot
#

Maybe

#

It’s still animated

#

But the first frame covers everything

zinc aspen
#

no

#

it would be in the animated emotes category then

#

there's two categories of emote in the emote upload menu

#

"Emoji" and "Animated Emoji"

#

you can check for yourself

paper token
zinc aspen
#

you can look at the menu for it

rotund pivot
#

Too lazy

#

I’m on my phone

zinc aspen
#

fair

paper token
#

SCHIZO if the downloaded gif breaks in one place it's liable to break in other places.

zinc aspen
#

literally yes

#

if it has fucked up metadata who's to say it won't fuck up elsewhere

paper token
#

I'd almost guarantee it's gif specific

zinc aspen
#

even then

#

its something that should be fixed in my opinion

paper token
#

dev time

#

for a format that likely won't even be used soon

zinc aspen
#

if i download a gif i expect it to work anywhere that other gifs work

rotund pivot
#

Try uploading a very old emote

zinc aspen
#

literally is an old emote

rotund pivot
#

well maybe it’s fucked up

#

And fixed by now

zinc aspen
#

okay grabbing a newer emote then

paper token
#

have they been reprocessed?

#

they used to work fine

rotund pivot
#

I don’t think old emotes got reprocessed since at least 2 years

paper token
#

does it show in activity?

#

this one shows up as static too

#

it could EASILY be a discord issue rather than a 7tv issue @zinc aspen

zinc aspen
paper token
#

or at least a discord change

zinc aspen
#

its ONLY gifs from 7tv

paper token
#

well compare metadata

zinc aspen
#

mf idk shit abt hex PEPW

paper token
#

the gif format is fairly simple, being from the 80s

zinc aspen
#

here's a gif that works and a gif that doesn't

#

you check

rotund pivot
#

Automatic brainrot detection

zinc aspen
paper token
#

true

#

also KDE plasma has at least one regression right now and it's throwing off my groove

zinc aspen
#

?

rotund pivot
#

And by putting it into ezgif I meant try putting it through the optimizer

#

or splitting into frames and making a gif again

paper token
#

the headers are different

paper token
zinc aspen
#

knew it

#

knew something had to be fucked

paper token
zinc aspen
#

oh

paper token
#

bounce was made with gifski too it looks like

zinc aspen
#

optimizing doesn't fix it

#

somehow

#

so thats crazy

#

what the fuck

#

splitting and reforming with ezgif also still broken

#

what the fuck

paper token
#

yeah it's 100% a discord change

#

not a 7tv change

zinc aspen
#

cursed frames

rotund pivot
paper token
#

my own gifski export also doesn't work

zinc aspen
#

hold on

#

lemme grab a fresh gif

#

downloaded as mp4 becuase discord is stupid, stuck into ezgif, converted, shrunk, uploaded

#

so its not like any new gif made with ezgif is breaking

#

its literally just the thing from 7tv

#

this makes no sense

rotund pivot
#

Don’t make me get out of bed

zinc aspen
paper token
manic torrent
#

So question

#

if someone has WHAT as WHAT and I have WHAT in my personal emotes as

#

they are supposed to see my personal emote right? or no

paper token
#

does it not?

cinder solar
#

@paper token

manic torrent
#

it goes to whatever they have in the chat

#

Idk why I thought my personal one would override

paper token
#

it's up to the extension itself to decide which emote to display

manic torrent
#

oh

#

I just use either twitch or chatterino

paper token
#

twitch is not an extension

#

Chatterino decides what to display on its own

#

but FFZ or BTTV or 7TV also decide what to display

manic torrent
#

Ohh

#

I got you

paper token
#

Ideally all their behavior would be the same but there's nothing stopping them from doing it differently

manic torrent
#

@fiery turtle you didnt get it yet right?

#

fuck wrong chat

cinder solar
#

my bad ❤️

rancid tulip
#

[GraphQL] LOAD_ERROR badge not found

#

logged in on a new pc

#

everytime I refresh page get that error

#

but fixed when I changed badge

pulsar iris
rancid tulip
#

2023 NNYS

pulsar iris
#

Holy

supple basalt
#

how to get x-max badge
??

rotund pivot
#

it literally says on the website

manic torrent
tired arch
tame sparrow
#

чапаапспа

vagrant lion
plush kayak
#

@sudden gust is there a reason the lock files (like package lock and pnpm lock) files aren't included in the gitignore

#

the package lock file isn't even committed so it just shows up as untracked whenever it gets generated

#

just wondering if there's a reason that it's like that

#

also whenever I run it locally I can't open the emotes page why is that

sudden gust
#

The lock files are there, we use pnpm, so it's pnpm-lock.yaml

zinc aspen
#

@plush kayak you shouldn't gitignore the lock files anyway afaik

plush kayak
#

I know it can cause some issues

#

but it's pretty rare I think

#

the versions are stored in the package file

zinc aspen
#

still not worth the risk

plush kayak
#

so I think it only breaks if the registry is changed manually

zinc aspen
#

rare != never

plush kayak
#

yes

zinc aspen
#

better to avoid potential issues altogether instead of saving like 2kb PEPW

plush kayak
#

they can get pretty big

zinc aspen
#

still, its better to keep it imo

#

the only reason i could ever justify ignoring and removing from repo is if you have like 90 trillion packages and its so big that you're forced to use git-lfs

plush kayak
#

can't even interact with devtools

zinc aspen
#

that sounds like its either processing too much data or somehow getting stuck in an endless loop or something

plush kayak
#

yes it is infinitely looping

#

idk why tho

zinc aspen
#

attach a debugger?

plush kayak
#

hang on brah

sudden gust
#

how does the networking tab look?

plush kayak
#

hang on I'll test it again

#

there's no errors

#

it gets the scripts and stuff for the page so it loads fine

#

so it's gotta be something with the data

#

it warns ```
Throttling navigation to prevent the browser from hanging. See <URL>. Command line switch --disable-ipc-flooding-protection can be used to bypass the protection

#

oh I found the issue

sudden gust
plush kayak
#

it was redirecting every frame

sudden gust
#

But that should work, I'm confused

plush kayak
#

yeah

#

me too

#

I tried preview and it didn't work either

#

so it's not a dev environment issue

sudden gust
#

Do you use pnpm now?

#

maybe some packages have the wrong version

plush kayak
#

yes

#

I can try reinstalling maybe

sudden gust
#

Hmm weird

plush kayak
#

:Waiting: resolving packages

#

NAUR MY NITRO

#

gr

plush kayak
#

yeah a reinstall did fix it

#

weird

#

no way taht shit took 30 minutes omE

#

ok I open pr and sleep

real pulsar
#

open source is anyone may volunteer even me, no?

#

also hello

zinc aspen
#

also how the fuck am i supposed to run 7tv locally if i don't have mongodb FeelsDankMan

#

because i aint payin for that shit

patent wing
#

what is there to pay for

zinc aspen
#

yeah my bad i didnt realize there was a community edition

#

oh you have got to be shitting me

#

cargo build fails kms

#

im not debugging the entire fucking project just to try implement the one thing i wanted to do when i barely know rust as-is

#

oh

#

out of date rust

zinc aspen
#

okay i miiiiiiiight need some help implementing the 7tv backend changes guywait

#

i have no idea what im doing, i've done some things but idk if it's actually what i should be doing and im sorta just mimicking the things around it

#

all i want is for a user's subscription status to be retrievable from the rest api, and an event to be sent when:

  • subscribing (send subscription status and linked discord id)
  • unsubscribing (send subscription status and linked discord id)
  • logging in and the discord oauth is invalid (send as if unsubscribed)
  • disconnecting discord from 7tv website (send as if unsubscribed)
#

but it is proving ludicrously difficult to figure any of this shit out myself

#

unironically programming language invented by aliens this shit makes no sense to me

#

i gave it an honest try but this is just a brick wall for me

topaz crown
#

you can already retrieve a user's subscription status from both rest and gql api

zinc aspen
#

unless i am just

#

immensly blind

zinc aspen
#

oh god fucking dammit

topaz crown
zinc aspen
#

still need an event tho

#

so bot knows when to check status

topaz crown
#

you could have it check status when they type in discord, and then have a cooldown of like a day before trying again

zinc aspen
#

would rather just hook into the event api

pulsar iris
#

I think that's what the old one did

zinc aspen
swift bough
#

poll every single user id at all times shesRight

pulsar iris
#

It only gave role after you typed

pulsar iris
#

100k requests

topaz crown
swift bough
#

hundreds of free tier aws and oracle cloud instances, using both ipv4 and ipv6 shesRight

#

or just learn rust XD

zinc aspen
#

no shit

#

takes more than a day to learn rust

pulsar iris
#

Most developers would do the 1st option

zinc aspen
#

yeah well i want my bot to be responsive Shrugeg

#

and not slow as fuck

swift bough
pulsar iris
#

Yeah I'm jokin

patent wing
#

would be better to just implement a discord bot in the repo, wouldn't need to expose it to events api

sudden gust
#

Yes, it doesn't have to be Rust. You can consume our raw nats event stream. That's what the event API is built on.

#

There are no events emitted when someone subscribes though. That has to be added to the API code.

patent wing
#

just gotta deserialize the messagepack serialization

zinc aspen
#

yeah thats

zinc aspen
#

im saying the api doesnt have what i need to make it work

#

i need to know when someone subscribes/unsubscribes and when someone links/unlinks their discord account

uncut terrace
wide frigate
#

'

paper token
#

Vic and I have been working on it

#

I think discord raised the file size limit for static emotes

#

But not animated

#

It seems that being under 256 kb is all it takes for an emote to be animated

#

Discord used to refuse uploads completely if they were over 256 kb

#

But then they started using webp

#

So I assume static emotes can be larger because discord trusts that they’ll be small enough once converted to webp

zinc aspen
#

the requirement for being animated isnt being <256kb, thats just the emote upload limit period

#

same for static

#

its stupid

paper token
#

Well Vic was testing it with gifski encodes for me

#

Different quality values

#

He was able to upload file sizes larger than 256 kb

#

But those are the only ones that became static

zinc aspen
#

guh

#

what

paper token
#

-Q 92 vs -Q 91 was the limit

zinc aspen
#

when i uploaded the emotes i tried they were all under 256kb tho

paper token
#

Well that might still be a different problem

zinc aspen
#

and ANY time i have ever tried uploading something over 256kb it failed

#

animated or not

main steeple
#

misspleed compressed w/e

#

misspelled misspelled w/e

rotund pivot
zinc aspen
#

misspleed Happs

plush kayak
#

@sudden gust why is the active emote set in uploaded emotes?

fluid crane
#

the new system of enabling/disable an emote set on a channel is so confusing to me

#

i feel like it's the opposite way of simplifying stuff. it used to be obvious but somehow it's too complicated now

plush kayak
rotund pivot
#

its literally a button

#

so it can be accessed quickly everywhere on your profile

plush kayak
#

oh

#

well seems confusing given the information listed on that page

#

ngl

fluid crane
plush kayak
#

yea

rotund pivot
#

it cant be on the navbar

#

silly

plush kayak
#

should just not be there at all on that page

#

imo

rotund pivot
#

how else do you expect to change the active set for someone else

fluid crane
rotund pivot
#

as an editor

#

its literally there for a reason

plush kayak
#

yeah I know it's there for a reason but

#

it should only show on active emotes page

#

because that makes sense

#

it shows the active emotes with the corresponding active set

rotund pivot
#

it should be on the emote sets page and on the active page

#

so leaving it on the uploaded page as well doesnt hurt

plush kayak
#

it does hurt because it's confusing and seems out of place

#

I get what you mean tho

#

like what else should you add there

#

maybe another upload emote button?

#

that could be the right move tbh

rotund pivot
#

i guess

#

its all just cosmetic

fluid crane
plush kayak
#

because it's not a separate tab

#

it's there to show what the current set is

#

not to change it

#

that's how I interpret it

fluid crane
#

(i took the screenshot in active emotes but i should have gone to emote sets instead, but yea)

plush kayak
#

this looks better imo

#

just added it quickly

fluid crane
#

hell yea

plush kayak
fluid crane
#

another confusing thing with this new system is that now it lets you disable the active set, which makes no sense because the set is still active anyway

plush kayak
#

does this look better

fluid crane
plush kayak
fluid crane
#

you shouldn't be able to disable the only active set, the "disable" button is literally useless

plush kayak
#

what if you want no emotes in your chat

fluid crane
plush kayak
#

what's the point of NOT having a disable button

fluid crane
#

ig hmm

#

then it's just not working yea, a bug mhm

rotund pivot
#

you could disable it on the old website

#

thats not new

fluid crane
rotund pivot
fluid crane
#

yea i'd love that

#

also

#

how do you change your default set now?

#

since the button got removed? eeeh

plush kayak
#

the separated sections looked kinda weird to me I feel like this is more consistent

rotund pivot
#

but i wanted it on the navbar or the old way in the set selector when adding an emote

fluid crane
rotund pivot
fluid crane
rotund pivot
#

read

fluid crane
#

yea going all the way to that page to change it doesn't really make sense

main steeple
#

@paper token when I just dropped the files they were both animated DonkLeave

main steeple
paper token
main steeple
#

drag and drop @paper token

paper token
#

gifs onto discord?

main steeple
#

yep

paper token
#

as emotes or normal messages?

main steeple
#

messages

#

in this chatbox

paper token
#

Yeah

#

that's always worked

#

it's only emotes that behave weirdly

main steeple
plush kayak
#

brah

#

I hate git sm

#

I had this same issue this morning and then I did all my changes again now and it still won't push 😢

#

I checked out my fork but apparently that made it so I wasn't on a branch

#

so I don't know where all my changes went

fleet garden
#

@plush kayak use git reflog & after you finind the commit hash do git checkout -b name <hash>

plush kayak
#

already discarded local commits lol

#

idrc

#

I didn't change that much

fleet garden
#

erm Okay

plush kayak
#

but thank you

zinc aspen
#

i guess i could probably set up the system for listening to the event api and querying the rest api while i wait for someone to implement the events i need FeelsDankMan

#

could maybe get the activity feed back up and running

patent wing
#

it's not that hard to subscribe to a nats stream

zinc aspen
#

i mean

zinc aspen
sudden gust
zinc aspen
patent wing
#

many computer together strong

zinc aspen
#

i mean im on one of the hetzner servers but i dont think its necessarily connected to any other of the 7tv stuff

sudden gust
#

Which consists of 27 hardware servers

zinc aspen
#

never heard of this kubernetes thing monkaHmm

sudden gust
#

Alright idk then

zinc aspen
#

i mean im willing to learn obviously, im looking at it on google and it seems useful to know just in general

fleet garden
#

he doesnt know...

#

k8s is cool when you pass the steeping learning curve

sudden gust
#

yeah it's quite useful but I guess it's fine when you host it yourself. You will have to use the event api then tho

zinc aspen
#

oh yeah no this looks steep as fuck PEPW

fleet garden
#

but learning it without prior container experience should be painful af

zinc aspen
#

i barely learned how to use docker compose for this because i thought (stupidly) that i would be sharing a server with another 7tv process

#

not that i'd be given my own hetzner instance

fleet garden
#

that's fine, just dont be intimidated with the complexity and go with the flow

sudden gust
#

We don't use docker compose for a lot of reasons, think of kubernetes like a more advanced docker compose replacement

zinc aspen
#

hmm

sudden gust
#

but yeah it's very complex and I don't fully get how it works either LULE

sudden gust
#

Like I know how to use it but Troy set it all up

zinc aspen
#

i assume its just one of those things where once you get at least a general understanding of how to set it up, its generally easier to work with than docker-compose?

#

or like

#

more flexible or something

fleet garden
#

k8s gets easier when you pass the steeping curve thing and with A LOT OF DEDICATION

#

like A LOT

sudden gust
#

It's more complicated than docker compose but you need it when dealing with a lot of load on your servers. You can run docker compose on only one server at a time. Kubernetes works with clusters. That means you can join your servers into one cluster and then run your containers on the cluster.

fleet garden
#

I mean if you dont have understanding of TLS/SSL, PKI stuff and so on there's probably no talking about k8s for now

zinc aspen
#

so its basically just compose but for cases where the work load is so huge that one machine wouldn't be enough, or where you need like multiple data center locations like with the cdn servers

fleet garden
#

k8s if fireship videos where 100 seconds exactly

sudden gust
#

if your docker compose server dies your whole thing would be down, not with kubernetes. It would just spin up the container on another server.

fleet garden
#

DAMN IT HERE'S THAT AI GUY AGAIN

zinc aspen
#

interesting weestNOTED

#

yeah this is defintely something i need to learn if i ever work on my own large scale project
that or somehow actually fucking learn enough rust to understand how to work with 7tv

fleet garden
zinc aspen
#

i mean

#

7tv is in rust

#

i can marginally understand whats happening sometimes by inferring things here and there

#

but as for getting a full understanding of what something actually does in low level terms or writing extra things into it

#

currently i'd be a lost cause on that front

fleet garden
#

ahh, e.g. you can subscribe to nats stream using any language of your choice, there are dedicated libs everywhere

zinc aspen
#

oh

#

wait so it isnt just a websocket?

#

thought i'd be able to just

#

connect to websocket and parse messages sent through it

fleet garden
#

nah, it's if we're talking about nats it's not websocket

zinc aspen
#

i mean as long as its well documented on how to interact with it i should be fine

sudden gust
#

Ok let me explain

fleet garden
#

it's like ws is persistent and two-way, while nats is primarily publish/send, can be request/reply

zinc aspen
#

that and assuming there's a good js framework for it because i don't want to spend god knows how long doing it from scratch PEPW

#

i mean i will if i have to but still

fleet garden
#

i've never dug that deep in the infra so lennart and troy would def know more

#

catWait

patent wing
#

data fast through that tcp pipe

sudden gust
#

Our infrastructure consists of different applications. Two of those are the api and the event-api. They are different applications which means they somehow have to exchange data. So internally we use nats (not ws) to send the events from api (where they are happening) to our event api (where they are emitted to the ws clients from outside).
That means you can either run your thing outside of our cluster and connect to the event api via websocket or you can run it inside our cluster and subscribe to our raw nats stream.

zinc aspen
#

ah thats what you meant

#

i mean ideally someone does just add like the 4 events i need and i can use websocket
as for the nats stream i assume that would in fact have the relevant info i need? or would i need to add it there anyway

sudden gust
#

No the events you need are not emitted anywhere right now

zinc aspen
#

hm

sudden gust
#

Unfortunately I have more important stuff to do right now which means I won't be able to add that before I leave

zinc aspen
#

damn :/

patent wing
#

Tomfoolery oxidize discord bot

zinc aspen
#

hopefully whoever it is that takes over the main development is able to then

#

because i tried looking at the code for the events n stuff and i was just confused as fuck PEPW

fleet garden
#

ApuSad hope I will sleep and give lennart peace with my new-website-issues activity kekw

fleet garden
#

but it's like not hard to work with

plush kayak
#

I added daily trending emotes for the default search thing

zinc aspen
#

so its infinitely harder for me to understand whats going on than someone who does

rotund pivot
zinc aspen
#

lol

plush kayak
rotund pivot
#

added

#

there is no usage tracking

plush kayak
fleet garden
#

I believe at least primeagen did one

zinc aspen
#

hmm

plush kayak
#

@sudden gust btw I was thinking about adding the personal emote set as a separate section in the active emotes page, but I am bad at gql so it failed and kept spamming requests idk why

#

maybe that's a good feature

fleet garden
rotund pivot
#

wot

plush kayak
#

I did iit

rotund pivot
fleet garden
# rotund pivot wot

when openning the search either by mouse or with a keybiding the search on desktop will be like this with the bg dimmed to highlight this as the primary search

rotund pivot
#

i havent seen any websites that do this

fleet garden
#

reasonable, me 2 LULE

plush kayak
#

@rotund pivot any other features that I can add

#

I went through the thread but it's mostly like stuff that I wouldn't know how to fix

#

actually the things you posted are doable

rotund pivot
#

for cosmetic changes i wanted to round the emotes and emote sets ayyybuWhar

#

like to 0.75rem

#

or 0.5

#

they really stick out

plush kayak
#

yea

#

right now it's .25

#

for sets

rotund pivot
#

i think the emotes could be 0.5 and the sets 0.75 nymnMhm

plush kayak
#

I will fix editors page layout first

rotund pivot
#

what exactly

plush kayak
#

wat da shart is that

rotund pivot
fleet garden
#

you can also add malito links for tos and privacy policy pages

plush kayak
#

ok I am done for the day

#

made the sigma pr

rotund pivot
#

i dont think the page titles are necessary

#

theyre kinda distracting

plush kayak
#

I don't think so either, but the top of the layouts were padded down a lot and it looked pretty empty

#

I'm kinda neutral on it

#

'cause there's not really a CLEAR clear indicator for what you're actually looking at

#

on those pages

#

also I love that font

#

should be used in more places imo

#

and this is a good opportunity

rotund pivot
#

that font wont be there soon

plush kayak
#

whai

rotund pivot
#

cause there is a new landing page design

plush kayak
#

wade where is that

rotund pivot
#

nowhere

#

its only in the figma

plush kayak
#

where is the figma

#

has:link figma 🔍

rotund pivot
#

soon

#

can you remove the titles from the pr for now ayyybuWha

plush kayak
#

idk how

#

also I sleep -> Sleeper

rotund pivot
#

also wont the search result get extremely long

#

for people with a lot of editors

plush kayak
#

I think so

rotund pivot
#

like youre adding even more to it

plush kayak
#

is it scrollable?

#

also I was thinking

#

maybe the users should be above emotes

rotund pivot
#

its literally how it was before

#

and people complained

plush kayak
#

oh

rotund pivot
#

its not

#

wonder why nobody complained about it yet

plush kayak
#

that's silly

#

I will fix it if lennart hasn't fixed it tmr

#

(maybe)

#

(I have exams soon)

rotund pivot
#

gl

#

i just dont think having trending emotes here is useful enough

plush kayak
#

what else should it be

#

nothing looks silly

rotund pivot
#

the default results are mainly here to access your editor channels

#

and adding more clutter to it will be just annoying

#

why would someone care about 5 random emotes

#

especially when atm theyre just the top ones on 7tv

#

also i looked at random websites and the user dropdown isnt really aligned with the navbar

#

well maybe on reddit

plush kayak
#

feel free to reject whatever you don't like of course

#

that's why it's a pr

rotund pivot
#

ill leave a comment of things i like yabbeMiss

plush kayak
#

thank u sigma

sudden gust
rotund pivot
#

nothing

#

i just duplicated the elements to test the limits

sudden gust
#

I made sure it doesn't happen

rotund pivot
#

the search results however

#

for emotes

#

are duplicated ayyybuWhar

sudden gust
#

that's a known bug, isn't it? I can't reproduce it tho

rotund pivot
rotund pivot
fluid crane
rotund pivot
#

yeah it does

#

at anything under 175% monitor scaling on windows i get the duplicate emotes even on 100% website scale

#

i actually have to make it more than 100% for it to go away

hidden canyon
rotund pivot
#

that was related to the viewport width

zinc aspen
#

how does viewport width cause that of all things

rotund pivot
#

it did on the old website

#

this one is different

zinc aspen
#

either way still stupid

rotund pivot
#

well it still does

zinc aspen
#

the fact that ANYTHING is duplicating based off viewport width or scale or whatever is horrendous

#

like why should it matter to whatever js is running

rotund pivot
# rotund pivot

this one just doesnt load the emotes, doesnt duplicate them

#

only the new website has the duplication bug

zinc aspen
#

and the new website bug is still based off viewport shit right

rotund pivot
#

also i have the same issue on both chrome and firefox

zinc aspen
#

why the fuck does the viewport size changing break the scripts omA

rotund pivot
#

it has something to do with the infinite scroll

#

i assume

#

ayyybuWhar or idk maybe im making shit up

rotund pivot
zinc aspen
#

how do i connect to the event websocket again? FeelsDankMan

#

is it just wss://events.7tv.io

#

or

sudden gust
zinc aspen
#

monkaHmm hm

sudden gust
#

It looks at the scroll of the page which is affected by the zoom I think

zinc aspen
#

yeah but why the hell would that generate extra emotes on the page

sudden gust
sudden gust
zinc aspen
#

ok lemme monitor this thing for a bit and see what it actually spits out

#
{"d":{"count":18},"op":2,"t":1734994586285,"s":19}

how the fuck do i interpret this

#

count starts at 0 and goes up by 1 every message i get, s starts at 1 and goes up by 1 every message i get, no idea what they mean i just know they increment

topaz crown
zinc aspen
#

ahh wire

zinc aspen
#

trying to test with just sending an opcode for getting anything related to emotes

#

but its telling me invalid condition when i didn't pass one

#

and unless im like uber blind i don't see a list of conditions

patent wing
#

condition relates to the thing you're subscribing to

zinc aspen
#

all i know is im trying to get basically every event, at least every event relevant to #activity-feed

topaz crown
#

either { type: 'emote_set.*', condition: { object_id: '01GNRGBX9G000EM7Q5KTKE4R0D' } }for individual things like updates for a single emote set emote_set.*

or { type: 'entitlement.*', condition: { platform: 'TWITCH', ctx: 'channel', id: '186352304' } } for channel specific events

zinc aspen
patent wing
#

not through event api

plush kayak
#

why don't you just use discord webhook and add it to the backend

topaz crown
#

yeah thats not eventapi

plush kayak
#

like

zinc aspen
#

god dammit i dont wanna modify 7tv source code

plush kayak
#

why not

zinc aspen
#

i literally don't know enough rust to confidently do so

#

i go in there and i barely understand what the fuck is happening

plush kayak
#

well great opportunity to learn

patent wing
#

i can do it

zinc aspen
#

i mean go for it, not gonna say no to some help on this

patent wing
#

Tomfoolery all in rust

topaz crown
#

Scared rust!

zinc aspen
#

i would love to learn rust, im in the process of it but it's been really slow

plush kayak
#

then why not do it

#

😭

zinc aspen
#

motherfucker let me do some basic shit in the language before jumping head first into a full stack rust application with shit i barely understand

plush kayak
#

yeah well

#

make like

zinc aspen
#

god damn

plush kayak
#

a new project

#

and then make it send a message to a webhook

#

boom that's 1 part

#

and then when u got that down

#

then u read 7tv's code

#

and then you find the final stage of where it registers the emote

#

and then u copy paste the thing you wrote to there

#

and BOOOOOOM

#

friggin' done

#

I would consider sending a message to a webhook to be basic stuff

zinc aspen
#

okay i also need like 4 new events implemented and i tried looking at those and my brain melted trying to figure out how the fuck to just add a subscribe/unsubscribe event FeelsDankMan

#

i dont even know if i was doing the right thing i was just blindly trying to mimic what looked like event related shit

plush kayak
#

I think honestly you would benefit more from writing the bot in rust and using ipc to do the sub role and emote activity

zinc aspen
#

i am not rewriting the whole ass bot in rust

plush kayak
#

what does it do right now

#

send log messages?

#

'cause there's probably an example for that in the discord crate or whatever you wanna use

#

again, pretty basic project to learn rust

#

unless you just don't have time of course

#

then I understand

zinc aspen
#

i like the flexibility of js for discord bots specifically

plush kayak
#

I assume you were trying to add events for whenever someone subscribes

zinc aspen
#

a lot of the way this thing is written would need to be redone entirely and made even longer just to work in rust

zinc aspen
plush kayak
#

I just don't think that's like a thing that should be accessed publicly I ain't gone lie to ya

zinc aspen
#

i mean you can already get this info publicly anyways with rest

#

subscription status and connected discord

plush kayak
#

I know

zinc aspen
#

if they weren't exposed in the rest api you'd have a point

plush kayak
#

am probably being silly

#

feels like pocketwatching maybe

main steeple
#

have u discussed the compression/ filesize issue for animated emotes on dc yesterday?

sudden gust
#

Just not on the event API

zinc aspen
#

ooh

swift bough
#

AlrightAsk would it be feasible to maybe add feature gates to the shared crate on the monorepo to let people use it without pulling a brazillion deps

plush kayak
#

@south flare

south flare
#

We should setup a workspace hack and that will improve the incremental compile times

#

The compile times are basically all from async-stripe

#

It’s an awful library

#

But there is no alternative:(

#

I think if u use nightly (1.85) the compile times get halved and link time is 2x too

#

It’s currently a bug related to some regression code that made it to stable on 1.82

#

Making compile times much slower

south flare
plush kayak
swift bough
#

im on nightly and async-stripe takes like 5 minutes to compile sdd

plush kayak
#

what the sigma

swift bough
#

not even joking doid

frosty bronze
#

how often does it need to re-compile?

plush kayak
#

like every minute

patent wing
#

what changes are you making that requires you to build so often

plush kayak
#

u trying to roasting me?

#

woahw.

#

didn't expected it from you..

patent wing
#

I mean i don't even build until I have basically written everything

plush kayak
#

(I'm just doing a jokes ,so)

sudden gust
#

It doesn't change

frosty bronze
#

I don’t see the big hullabaloo then

swift bough
#

well i wanted to make an eventapi client library and i didnt want everyone who uses it to pull 570 deps elisElis

#

so i think it'd be cool if like public API types were exposed in a smol crate in the repo instead of this big ass crate with all this other stuff in it

#

what i can do is just copy paste the types from the repo and credit it in a comment with a link to the license ig Shrug

#

not that big of a deal, just would be nice Shrug

patent wing
#

the types are gonna be the same either way, if you wrote them yourself

swift bough
patent wing
#

oh yeah I guess

#

not sure if there would be any new types for the usecase to even matter though

#

but yeah would be nice for it to be split into workspaces

trim tulip
#

is there a quickstart doc or readme somewhere for compiling and deploying the web extension only? I've been going through the github and I'm only finding info for setting up the whole website

rotund aspen
inner vale
#

I'm not sure thats right place for ask, but is there some kind of bot tokens for 7tv automation for 3rd party apps? I'm interested on manage emote sets as editor of channel.

rotund aspen
inner vale
rotund aspen
#

that's what I'm saying, if you want the one for 1 year then ask a dev

inner vale
#

Ok, where?

rotund aspen
#

in dms

#

lennart was the one that gave it to me, so I guess you can message him

hidden geode
#

is there any quickstart or guide for implementing 7tv into my app? i want to make an app with twitch chat, and i want 7tv emotes to show up on the chat happ

rotund aspen
# hidden geode is there any quickstart or guide for implementing 7tv into my app? i want to mak...

If you want live emote updates then implement https://github.com/seventv/eventapi (recommended).
If not, 7tv.io/v3/:

  • users/PLATFORM/id (for example users/TWITCH/198740595)
  • emote-sets/id or emote-sets/global for global one
GitHub

A service which provides live updates for various resources implementing the Server-Sent Events and WebSocket specs - SevenTV/EventAPI

plush kayak
#

can always look at chatis

hidden geode
plush kayak
#

well then do that

#

replace the text with an emote

zinc aspen
#

issue with extension

#

im literally subbed

rotund pivot
#

just subscribe again

zinc aspen
#

cant for like 9 days lel

#

because im literally subbed

rigid narwhal
#

try restarting browser

zinc aspen
#

eats

ashen fern
stuck oasis
#

do not

#

you have to repay

#

well on old site maybe its different now

quiet mason
#

yo hello

quaint apex
paper token
lilac igloo
#

So I found a bug when uploading emotes in .mp4 format

When uploading an .mp4 to make it an emote everything goes well until you see the emote after it finishes processing, the result is an animation that gets stuck on the first frame for a long period of time before continuing to do the proper animation.

On the picture you can see how the first frame shows up for a full second (values are 1 = 1/100 of a second) and the rest are significantly shorter.

It has happened with 2 emotes so far that I have uploaded in the past month and before that I have uploaded +40 emotes in .mp4 format and they all have processed perfectly.

#

Maybe a dev that works with the image processing will notice that here Hmmge

manic torrent
#

@paper token

#

I’m sure anson knows the answer

paper token
#

mp4s seem to be the worst

#

avif suffers too

#

webp seems clean

#

but I haven’t had a chance to do extensive testing lately

#

This is why I mentioned webp is the best format to use right now

manic torrent
#

Oh ggs

#

If anson doesn’t know then no one will know

paper token
#

But thanks

short sand
inland totem
#

was this intentional or is it bugged just for me? it's like this on 2 of my pcs

patent wing
#

what do you think Hmm

fierce idol
#

LGTM

mortal matrix
#

would it be useful to move the cosmetics section for useres to change their paints from being under the user dropdown to instead be to the right of the store button? it would have to have a sign-in button if people aren't signed in, but it might be a little more intuitive for users to be able to change their cosmetics right next to the store button

#

also im thinking of changing some padding for the store to be more center aligned since right now i feel like there's a bit of eye strain going from the banners to the main information on each page on large monitors (1440p+), but i dont want to start working on stuff until im sure that it's actually a useful change, so please give me any thoughts on this! tyia!

signal dock
#

hello where to report bugs?

rigid narwhal
signal dock
#

thanks i made a post in help, im not sure if its related to the new ui or they changed some policies

distant vigil
#

@lethal jackal why did u leave all the servers man

main steeple
#

did u guys fix the problem with the 4x emotes being too big for DC?

paper token
#

not even in the slightest

#

7tv isn't going to arbitrarily try to make their 4x emotes 256 kb just so people can steal them and upload them to discord OMEGALUL

waxen sleet
#

Hello, I read the Contributing.md and it says I need to sign a CLA but the link does not work

patent wing
#

theres no dev to merge them yet

#

at least until the new dev learns, apparently the dev just signed up for github like a week ago. hope the guy is a gitlab guy or git something.

#

Clueless surely they will be able to handle everything

prisma temple
#

Is the autocomplete not working out of nowhere a known issue?

#

I'd love to help figure out why

strange owl
#

Yes, it's mainly because of the way the workers are set up. Simply using /refresh should fix it.

prisma temple
#

Ty!

gaunt magnet
#

hello there, chatterino dev here. i'm loading 7tv badges through eventapi but some fail to load (e.g. 2 month subscriber). it seems they might be missing a static_name field. I haven't super debugged yet but I will look into it a bit further

#

turns out the static_name exists. Badge I'm loading is 01GAF95ZTG000E8VNG1S1RMTBB. static_name is 1x_static.webp, yet url at https://cdn.7tv.app/badge/01GAF95ZTG000E8VNG1S1RMTBB/1x_static.webp is not a valid image

patent wing
#

someone trolled, badges that are not animated do not have a static variant, same with emotes.

#

should just be 1x.webp

gaunt magnet
#

would be nice if the 1x.webp can be copied to 1x_static.webp in this case

patent wing
#

yeah that needs to be fixed

gaunt magnet
#

that'd be most backwards compatible (for us)

patent wing
gaunt magnet
#

tyvm

ebon lichen
#

.

rancid tulip
vagrant lion
waxen sleet
#

@rotund pivot
I found what caused [this](#developers message)
It's not because of the viewport and it's related to [this](#1318191472553623624 message)

Also I would love some feedback on my PR just so I can tweak it, even if there is no one to merge it yet

GitHub

Proposed changes

Pressing enter in the global search opens the full page emote search (see this suggestion)
Made email references into clickable links (see this suggestion)
Closing the upload emot...

rotund pivot
#

ayyybuWhar i cant tell you anything about the quality of the code

#

but the changes look good feature wise

#

not really sure about the hover to open profile dropdown

#

but will see how it feels in action

waxen sleet
waxen sleet
#

You just won't be able to sign in so you have to manually set your localStorage auth

tired arch
vale smelt
#

MODS fake url

waxen sleet
vale smelt
#

someone posted a fake url of steam

#

mods got him tho

#

didnt mean you 👍

waxen sleet
#

ohh I see lol

#

Classic Discord scams

vale smelt
#

yeahh

waxen sleet
#

Is there any documentation on how to setup the image-processor in a local environment ? I wanted to investigate [this](#developers message) issue but I don't know how I can test it locally. There seem to be a lot of dependencies and extra stuff.

waxen sleet
sudden gust
#

then you can send new processing jobs via the grpc api

#

or you can use the http api

swift bough
waxen sleet
swift bough
#

oh

waxen sleet
#

Maybe it could be related to this

swift bough
waxen sleet
#

Like where do I put this config ?

swift bough
#

real zuh

topaz crown
mortal fossilBOT
#

ryanpotat feels rested: billions must gooning 💤 (7h, 48m ago)

rotund pivot
#

wtf

topaz crown
rotund pivot
#

why wont discord autodelete tehm

topaz crown
#

$rafk

mortal fossilBOT
#

ryanpotat, Your AFK status has been resumed.

ionic yarrow
swift bough
waxen sleet
swift bough
#

i didn't

#

i just made a new main function, made some stuff in there pub and tested stuff

#

then i just searched for every instance of duration_ts in the code and found the issue xddWalk

waxen sleet
#

Are there still issues with mp4's even with that fix ?

swift bough
#

yea

waxen sleet
#

Would you mind sharing your main function I'd like to test some things too

swift bough
#

but that would require some big changes to how they handle timestamps in the entire code

swift bough
#

sure its scuffed af tho

#
fn main() -> Result<(), anyhow::Error>{
    let args: Vec<String> = std::env::args().collect();

    let data = std::fs::read(&args[1])?;
    let mut decoder = FfmpegDecoder::new(
        &Task {
            ..Default::default()
        },
        Cow::Borrowed(&data)
    )?;

    let task_info = Task {
        output: Output {
            formats: vec![
                OutputFormatOptions {
                    format: OutputFormat::WebpAnim as i32,
                    quality: 90,
                    ..Default::default()
                },
                OutputFormatOptions {
                    format: OutputFormat::PngStatic as i32,
                    quality: 100,
                    ..Default::default()
                }
            ],
            resize: Resize::Heights(IntegerList{ values: vec![64, 96] }).into(),
            upscale: true,
            disable_two_pass_decoding: true,
            disable_resize_chaining: true,

            ..Default::default()
        }.into(),
        ..Default::default()
    };

    let mut task = worker::process::blocking::BlockingTask::new(
        &task_info,
        &data
    )?;

    dbg!(decoder.info().timescale);
    while let Some(frame) = decoder.decode()? {
        dbg!(frame.duration_ts);
    }
    while task.drive().unwrap_or(false) { }
    let output = task.finish()?;

    let encoded = &output.output.iter().find(|i| i.format == OutputFormat::WebpAnim).unwrap().data;

    std::fs::write("out.webp", encoded)?;

    let mut decoder = WebpDecoder::new(
        &Task {
            ..Default::default()
        },
        Cow::Borrowed(encoded)
    )?;
    dbg!(decoder.info().timescale);
    while let Some(frame) = decoder.decode()? {
        dbg!(frame.duration_ts);
    }

    Ok(())
}```
waxen sleet
#

lol I wouldn't do better

swift bough
#

tbh just using doubles for timestamps would've been a lot easier to use and less skitzo to read xddWalk

#

precisioncels dni really

fluid osprey
#

is it possible to add 7tv to kick ?

waxen sleet
#

There are less features tho

swift bough
#

wot isnt it already on kick

#

but like bugged af

fluid osprey
#

I tried but it says its disabled

manic torrent
#

When it comes to linking your account to kick it is disabled

#

until kick gives api over yesCat

waxen sleet
fluid osprey
#

oh alr ty

worldly cliff
#

@fast bear There’s the same message and link in a few channels

stuck oasis
#

LULE mods afk

fluid osprey
#

does anyone know why paints and badges are not showing in kick . I added 7tv but still

rotund pivot
#

cause you need to have a kick linked to your 7tv profile

#

if you dont have it there is no way to do it atm

fluid osprey
#

oh

grizzled glen
#

yo

#

is it fine if i unlink 7tv from my main acccount and link it to my bot account? just once

#

not permanently

#

I would like to like to switch it back to main acocunt later today

rotund pivot
#

you risk bricking your account

#

either you will make a new 7tv account trying to link

#

or you wont be able to unlink since it will be your only connection

grizzled glen
#

aight fuck it whatever I'll just make a new 7tv account

#

-4$

plush kayak
#

making an account is free

grizzled glen
#

maybe not obvious

stuck oasis
#

BatChest paints

mortal fossilBOT
#

Hey mzntori, - I just private messaged you 1 private reminder(s) - make sure to check them out!

sudden gust
rotund pivot
#

ayyybuWhar oh

#

kinda sus we still get merge requests tho

#

maybe theyre just old

lofty ice
#

Im sorry if this is not the channel to ask, but is there a link where I can fetch the global emotes ?

#

Nevermind I just found it!

stuck oasis
#

its the right channel ApuApproved

lofty ice
#

I have a question, why does WineTime and glorp don't show as emote but the rest does ? (I'm making a chat widget)

#

Is very weird because the renderText is just literally "WineTime" or "glorp" not the img source

#

It only happens with those 2 emotes wich are global

rotund pivot
#

or maybe you have some conflict with channel emotes

lofty ice
#

not really im using the renderText

#

from the listener message

#

wich works for everything but besides those two lol

#

Instead of this

#

im getting this

#

it also happens with the default chat widget of streamelements

rotund pivot
#

ayyybuWhar since when does it support 7tv

lofty ice
#

no idea lol, but i have another problem now

#

im trying to get tags to check if the emote is zerowidth, global emote PETPET doesn't have that tag

#

or is there any way to get that the emote is zerowidth ?

#

becuase I see some emotes don't have that tag wich is annoying and I see no difference between regular emotes

#

and zerowidth ones on the api

rotund pivot
lofty ice
#

Ohhh the flag 256 means is zerowidth ?

#

Amazing!

rotund pivot
#

ayyybuWhar i assume the zero width tags are the ones users put there manually

lofty ice
#

yeah! they are the ones that ppl put manually thats why it was kinda scuffed

#

thats amazing, thank you!

#

now I gotta figure out how to put the emote in the middle when the zero width emote is wide Hehe

rancid tulip
#

firefox just turned off my 7tv extension cuz it violates its guidelines ULLE

#

Shrugeg I just remove it for now idk

rigid narwhal
sterile ginkgo
#

uh this is probably a dumb question but is there any 7tv api docs out there? cant seem to find it and idk what the endpoints are

manic torrent
#

is this it?

sterile ginkgo
#

currently looking through this lol

#

i think i found smth

#

i'm new to all this lol sorry

#

ty for the help

manic torrent
#

You're good! if you have any questions just ask, we dont care to answer

sterile ginkgo
#

will do catNODDING

rotund pivot
#

ayyybuWhar scroll up