49 Commits

Author SHA1 Message Date
Joel
418ff134a9 clean up example into its own directory 2023-09-23 19:35:04 -03:00
Max Kross
bd1b80c954
Merge pull request #26 from jynus/cache_invalid_index
Fix race condition exception by checking badge key exists
2023-09-08 09:36:29 +02:00
Jaime Crespo
554e32495e Fix race condition exception by checking badge key exists
Enabling disk_cache can lead to an exception (invalid_index)
when changing channel:

Invalid get index 'badge_sets' (on base 'Dictionary').
(gift_node.gd:525)

We short-circuit the get_badge_mapping (and also, as a side
effect, we lower the ciclomatic complexity of the method) so
that when there is a missing key the right thing happens.

This way we "return early" in the three cases: if it is cached
on memory, if it is cached on disk, or if we have to retrieve
it from Twitch/HTTPS.

Fixes #25
2023-08-19 13:31:19 +02:00
Max Kross
7751bbf853
Merge pull request #23 from Yagich/fix/no-multiline-string
don't use multiline string for browser auth
2023-06-23 06:01:57 +02:00
Lera Elvoé
881e29d7bb
don't use multiline string for browser auth 2023-06-22 21:40:03 +03:00
35eb4d7020 old badge mapping api shut down, migrated to new one 2023-06-09 09:59:22 +02:00
ae816df6f6 bump version 2023-05-11 13:40:49 +02:00
a9a4f34c84 updated eventsub url 2023-05-11 13:39:49 +02:00
420d897635 bump version 2023-04-24 19:07:40 +02:00
107e6aa68b fixed some browsers not showing the reply, attempted to fix another error 2023-04-24 19:04:29 +02:00
170400cdba remove accidental quotes 2023-04-14 17:48:15 +02:00
ba480b967e forgot to specify the login name when retrieving users data 2023-04-12 18:44:12 +02:00
8b37c907e5 removed whisper testing remains 2023-04-11 19:25:06 +02:00
1d454fcb26 adjusted whispering because /w no longer works, forgot freeing the HTTPRequest in 2 places 2023-04-11 19:22:31 +02:00
2fef47aeef Merge branch 'master' of https://github.com/issork/gift 2023-03-03 16:36:48 +01:00
18450d661d fixed #20 2023-03-03 16:35:57 +01:00
Max Kross
e6a1f724a3
Update README.md
The redirect URL has to be http:// not https://. Corrected that in the README.
2023-03-02 16:09:12 +01:00
Max Kross
e77a341d7e
Update README.md
clarified that the redirect URL has to be localhost:18297
2023-02-21 21:19:30 +01:00
1f1ad16e6f fixed token being checked every second instead of every hour 2023-02-18 23:31:55 +01:00
5f13ecae34 updated README 2023-02-15 17:10:43 +01:00
bee9d7ae55 fixed #18 2023-02-12 11:47:34 +01:00
0c00132c4c added authorization code grant & first events, closes #17 and #16 2023-02-12 01:04:44 +01:00
e556e95841 fixed crash in the chat example when bot sent emotes/badges 2023-02-05 01:10:23 +01:00
dc070e8cb1 updated README and LICENSE 2023-02-05 00:29:11 +01:00
a615a60909 Merge branch 'master' of https://github.com/issork/gift 2023-02-05 00:03:25 +01:00
0b33947be3 ported to 4.x 2023-02-04 23:58:53 +01:00
8cb8d60f67 ported to 4.x 2023-02-04 23:50:59 +01:00
issork
6f6373bba8
Merge pull request #12 from issork/revert-11-patch-1
Revert "permissions logic fix"
2022-07-06 00:12:52 +02:00
issork
7ecb413b11
Revert "permissions logic fix" 2022-07-06 00:12:19 +02:00
issork
c0c2fc4613
Merge pull request #11 from nogre/patch-1
Thanks, merged.
2022-07-06 00:08:34 +02:00
nogre
e629589ac0
permissions logic fix
the previous logic was for exact matches, but that failed on MOD_STREAMER when you are the streamer and not a mod. just need overlap, not exact match.
2022-06-25 21:38:19 -04:00
mennomax
bbafcd5ec9 update version 2021-06-02 22:39:37 +02:00
mennomax
4ecb633152 fixed handling commands 2021-06-02 18:08:23 +02:00
MennoMax
f323b08daa
Merge pull request #7 from aaronfranke/things
Re-add things that were accidentally removed
2021-05-21 15:51:44 +02:00
Aaron Franke
25c2bbc80a
Re-add things that were accidentally removed 2021-05-21 08:44:54 -04:00
MennoMax
65aacbcf2a Update README.md, missing changes 2021-05-21 13:55:27 +02:00
mennomax
b107c4901a fixed badge cache, added missing file 2021-05-20 23:34:41 +02:00
mennomax
a3740fab4d improved image cache, new example 2021-05-20 23:17:32 +02:00
mennomax
cbec745704 closes #5 and #6 2021-05-03 19:47:32 +02:00
MennoMax
b2230fc8e2 Merge branch 'master' of https://github.com/MennoMax/gift 2020-03-29 19:53:43 +02:00
MennoMax
2ac21a4ca3 implemented image cache, fixes #1 2020-03-29 19:52:55 +02:00
MennoMax
ede2b351d8
Update README.md 2019-10-29 19:15:11 +01:00
MennoMax
9cc6180845 version changed to 0.1.0, added chat queue, handling of twitch restarts, changed tag-value mappings, minor improvements, added documentation in README.md 2019-10-29 19:13:22 +01:00
MennoMax
b34ae1b5ee replaced arg passed to command functions with CommandInfo 2019-10-27 01:37:19 +02:00
MennoMax
70f363bfe7 bugfix, classes now replace the cmd_data and sender_data with classes 2019-10-27 01:22:21 +02:00
MennoMax
b0ac64182f forgot to remove prints in last commit 2019-10-25 21:55:51 +02:00
MennoMax
f5a77ec4c4 removed prints, asserts 2019-10-25 21:51:51 +02:00
MennoMax
0cfa057241 added license 2019-10-25 21:15:38 +02:00
MennoMax
ef9418f8fe initial commit 2019-10-25 21:09:38 +02:00