Commit Graph

15 Commits

Author SHA1 Message Date
Your New SJW Waifu
17ad535b3c I'm a tard 2021-08-18 12:04:52 -05:00
Your New SJW Waifu
85538e5957 Ugh I accidentally the jpg 2021-08-17 19:38:21 -05:00
Your New SJW Waifu
92be1e9307 add support for jpg and svg emotes 2021-08-17 19:25:04 -05:00
Zorglube
6b7e6cd083 Fixed the Emotes feature 2020-10-20 20:57:05 +02:00
Zorglube
7c33ba91d1 Factorize runPath() 2020-10-20 00:45:18 +02:00
Bertrand Moreau
5fe3036e03 Very little factorize around "func runPath()" 2020-10-20 00:45:18 +02:00
Bertrand Moreau
b71db84b69 Run from anywhere
Get the runpath at runtime, in order to run MovieNight from whatever
position into the filesystem.
2020-10-20 00:45:18 +02:00
Alex Dunn
391db3f0bf emotes: send OAuth secret token to Twitch when fetching emotes
As of last month, requests made to the Twitch Helix API require an OAuth token
as well as the Client ID: https://discuss.dev.twitch.tv/t/requiring-oauth-for-helix-twitch-api-endpoints/23916
2020-06-04 00:32:01 -07:00
Zorchenhimer
6347065dd4 Fix duplicating emotes with /reloademotes
Don't reload emotes directly into the global common.Emotes variable.
Instead, load them into a new variable and write that to common.Emotes
after the search for new emotes completes.  Emotes should no longer
duplicate for each run of `/reloademotes`.

Also tweaked `/addemotes` to automatically reload emotes if nothing went
wrong downloading a new set.
2019-09-22 16:51:13 -04:00
Zorchenhimer
a73375f152 Fix emotes
This reworks how emotes are cached in relation to their physical
location on disk.  Functionally, they should be the same from the user
perspective but it sets up some stuff that will make it easier to add
emotes from various sources.
2019-06-18 22:13:53 -04:00
joeyak
7962fad02e commiting so zorch can do my work 2019-06-01 19:41:28 -04:00
Zorchenhimer
ec0c6752bc Fix some imports
Whoops.
2019-03-30 16:20:56 -04:00
Zorchenhimer
a0a5e4be7d Replace some fmt.Printf()'s that were missed 2019-03-30 16:18:36 -04:00
Zorchenhimer
fb2c25dc99 Add the /addemotes command
This command launches a goroutine that does the actual downloading of
the emotes so the client doesn't hang until the process is finished.

subscribers.json needs to be manually downloaded and added next to the
main executable for now.  Eventually, it will download and cache this
file (for 24 hours, at a minimum).

Issue #10 should not be considered finished yet.  This needs to be
tested a bit more with multiple channels.  Ideally, some that exist and
some that don't to verify that it fails gracefully (ie, adds the emotes
it was able to download).
2019-03-28 16:50:24 -04:00
Zorchenhimer
6f865b7a53 Start adding support to download twitch emotes
The code has been transferred over from the utility, and should work,
but it hasn't been tested nor has it been linked to the command.
2019-03-28 16:22:08 -04:00