Commit Graph

235 Commits

Author SHA1 Message Date
nerix a86df7087d feat: add snapshot tests for eventsub messages (#5965) 2025-02-21 21:33:29 +01:00
nerix 9afd60534a refactor(eventsub): more references, less const (#5953) 2025-02-13 13:46:52 +01:00
nerix 9c96dd53c7 feat(eventsub): add basic parse tests and benchmark (#5952) 2025-02-12 22:45:13 +01:00
dependabot[bot] d0cf6c4717 chore(deps): bump lib/WinToast from 637229e to 79756c6 (#5951) 2025-02-12 01:07:09 +00:00
pajlada b01f50856d feat(eventsub): Add support for channel.moderate Warn (#5932)
* fix(eventsub): Be less strict with strings & vectors

String foo from `{"foo":null}` is now accepted, and returns an empty string
std::vector<String> foo from `{"foo":null}` is now accepted, and returns an empty array
2025-02-09 11:21:16 +00:00
nerix 88341517dc deps: bump googletest to v1.16.0 (#5942) 2025-02-09 10:50:49 +00:00
nerix f4bfee98b4 fix(cmake): generate resources in build directory (#5940) 2025-02-08 21:05:52 +00:00
nerix 579d5c0bdc fix(eventsub): don't require pip if venv works (#5935) 2025-02-08 19:39:10 +00:00
nerix 992f9195a7 refactor(eventsub): use variants for sum types (#5930) 2025-02-08 14:33:29 +01:00
pajlada 0d02a6344b chore(eventsub): run pytest in ci (#5920) 2025-02-07 22:01:05 +00:00
pajlada 02405b935a refactor(eventsub): use snake_case transform by default (#5916) 2025-02-07 20:57:07 +01:00
nerix 9092f246fc fix: address clang-tidy warnings (#5915) 2025-02-07 18:22:10 +00:00
nerix f37676fe1c refactor(eventsub): enforce static error categories (#5903) 2025-02-07 15:37:53 +00:00
pajlada 9260e72a0b refactor(eventsub): remove empty line start of implementation (#5910) 2025-02-06 21:17:57 +00:00
pajlada 634842d2f5 refactor(eventsub): Allow for skipping generation of json implementations (#5904)
This can be done using the `SKIP_JSON_GENERATION` flag (off by default)

The FreeBSD builder uses this flag since its python stuff is slow
2025-02-06 08:21:21 +00:00
nerix 449aefc6bc refactor(eventsub): generate entire files (#5897) 2025-02-05 16:53:25 +01:00
pajlada da0a247f16 nit: fix some eventsub mini things (#5895) 2025-02-02 16:51:46 +00:00
pajlada 0f8a29fdb9 feat: add initial experimental Twitch Eventsub support (#5837)
Co-authored-by: nerix <nerixdev@outlook.de>
2025-02-02 16:03:24 +00:00
nerix f9f7d47b43 deps: update libcommuni (#5883) 2025-02-02 10:45:49 +00:00
dependabot[bot] af32613fa4 chore(deps): bump lib/WinToast from f693b8e to 637229e (#5876)
Bumps [lib/WinToast](https://github.com/mohabouje/WinToast) from `f693b8e` to `637229e`.
- [Release notes](https://github.com/mohabouje/WinToast/releases)
- [Commits](https://github.com/mohabouje/WinToast/compare/f693b8e031f49edf0b38b55b067819839b5f5448...637229e3ab9004af5f811482a7b18ea62fe9a6cd)

---
updated-dependencies:
- dependency-name: lib/WinToast
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 10:07:06 +01:00
dependabot[bot] 71179ed6fa chore(deps): bump lib/expected-lite from 6ea9ca0 to 54ca18b (#5866)
Bumps [lib/expected-lite](https://github.com/martinmoene/expected-lite) from `6ea9ca0` to `54ca18b`.
- [Release notes](https://github.com/martinmoene/expected-lite/releases)
- [Commits](https://github.com/martinmoene/expected-lite/compare/6ea9ca0741c5ca0279798e7c39b4a3debbed450b...54ca18bcea8e39c41650d82268077d559c695aa5)

---
updated-dependencies:
- dependency-name: lib/expected-lite
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-30 20:28:25 +01:00
dependabot[bot] 6d638fe72d chore(deps): bump lib/WinToast from a78ce46 to f693b8e (#5823)
* chore(deps): bump lib/WinToast from `a78ce46` to `f693b8e`

Bumps [lib/WinToast](https://github.com/mohabouje/WinToast) from `a78ce46` to `f693b8e`.
- [Release notes](https://github.com/mohabouje/WinToast/releases)
- [Commits](https://github.com/mohabouje/WinToast/compare/a78ce469b456c06103b3b30d4bd37e7bb80da30c...f693b8e031f49edf0b38b55b067819839b5f5448)

---
updated-dependencies:
- dependency-name: lib/WinToast
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
Co-authored-by: Nerixyz <nerixdev@outlook.de>
2025-01-30 19:18:17 +00:00
nerix 2dd25cc043 fix: use upstream qtkeychain (for real this time) (#5871) 2025-01-29 21:02:51 +01:00
dependabot[bot] 93344c9488 chore(deps): bump lib/settings from 6f0328b to d1a2e48 (#5859) 2025-01-26 22:23:10 -05:00
dependabot[bot] 785b27dd2c chore(deps): bump lib/settings from 6c95e5d to 6f0328b (#5851) 2025-01-24 00:38:31 +00:00
dependabot[bot] 169daf8f2c chore(deps): bump lib/expected-lite from 5b5caad to 6ea9ca0 (#5829) 2025-01-19 17:01:46 +00:00
dependabot[bot] b91985e4df chore(deps): bump lib/settings from 9e9c2f6 to 6c95e5d (#5779)
Bumps [lib/settings](https://github.com/pajlada/settings) from `9e9c2f6` to `6c95e5d`.
- [Commits](https://github.com/pajlada/settings/compare/9e9c2f65f4ae195a96329a90fd6ae24c24fb8f2f...6c95e5d6f602d762f25b1778a111db693e1f53d4)

---
updated-dependencies:
- dependency-name: lib/settings
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2025-01-19 14:38:43 +00:00
pajlada e92067b5de fix: support boost 1.87 (#5832)
Co-authored-by: Nerixyz <nerixdev@outlook.de>
2025-01-19 11:11:21 +01:00
dependabot[bot] a0324f212f chore(deps): bump lib/settings from 8cdc44e to 9e9c2f6 (#5749) 2024-12-01 20:25:42 -05:00
dependabot[bot] e69581cb4a chore(deps): bump lib/settings from 46eb250 to 8cdc44e (#5735) 2024-11-24 22:27:34 -05:00
dependabot[bot] 0ed8311c1a chore(deps): bump lib/settings from 4a0a1e5 to 46eb250 (#5718) 2024-11-19 04:22:29 +00:00
nerix f3a5f81fa0 deps: use upstream qtkeychain (#5697) 2024-11-05 22:11:14 +01:00
dependabot[bot] 9e8281b75b chore(deps): bump lib/expected-lite from 88ee08e to 5b5caad (#5667) 2024-10-22 22:30:25 +00:00
dependabot[bot] b46a893127 chore(deps): bump lib/settings from c58874c to 4a0a1e5 (#5646) 2024-10-22 21:49:58 +00:00
Mm2PL 352a4ec132 Move plugins to Sol (#5622)
Co-authored-by: Nerixyz <nerixdev@outlook.de>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2024-10-20 11:57:05 +02:00
dependabot[bot] 43bea0f042 chore(deps): bump lib/expected-lite from f339d2f to 88ee08e (#5653) 2024-10-19 11:32:52 +00:00
dependabot[bot] 1f0816d29f chore(deps): bump lib/settings from 7011003 to c58874c (#5613) 2024-10-02 00:37:32 +00:00
dependabot[bot] daff83dde8 chore(deps): bump lib/expected-lite from 5d3c8d3 to f339d2f (#5534)
Bumps [lib/expected-lite](https://github.com/martinmoene/expected-lite) from `5d3c8d3` to `f339d2f`.
- [Release notes](https://github.com/martinmoene/expected-lite/releases)
- [Commits](https://github.com/martinmoene/expected-lite/compare/5d3c8d38fb2bc0ccfc410f9d20033701057c400b...f339d2f73730f8fee4412f5e4938717866ecef48)

---
updated-dependencies:
- dependency-name: lib/expected-lite
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2024-08-09 12:29:04 +02:00
dependabot[bot] a0b70b8c5e chore(deps): bump lib/WinToast from 821c481 to a78ce46 (#5331)
Bumps [lib/WinToast](https://github.com/mohabouje/WinToast) from `821c481` to `a78ce46`.
- [Release notes](https://github.com/mohabouje/WinToast/releases)
- [Commits](https://github.com/mohabouje/WinToast/compare/821c4818ade1aa4da56ac753285c159ce26fd597...a78ce469b456c06103b3b30d4bd37e7bb80da30c)

---
updated-dependencies:
- dependency-name: lib/WinToast
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2024-07-21 15:39:59 +00:00
dependabot[bot] 3133293700 chore(deps): bump lib/expected-lite from 182165b to 5d3c8d3 (#5484)
Bumps [lib/expected-lite](https://github.com/martinmoene/expected-lite) from `182165b` to `5d3c8d3`.
- [Release notes](https://github.com/martinmoene/expected-lite/releases)
- [Commits](https://github.com/martinmoene/expected-lite/compare/182165b584dad130afaf4bcd25b8629799baea38...5d3c8d38fb2bc0ccfc410f9d20033701057c400b)

---
updated-dependencies:
- dependency-name: lib/expected-lite
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2024-07-21 14:31:35 +00:00
pajlada 2d11e79f4d chore: Update settings library to v0.2.0 (#5496)
Most notably, this aims to improve the saving experience on windows with https://github.com/pajlada/settings/pull/87
2024-07-07 10:10:08 +00:00
dependabot[bot] c1e4d17e46 chore(deps): bump lib/settings from 80b8cb6 to f3e9161 (#5468) 2024-06-22 12:49:51 +00:00
dependabot[bot] 83b4edef4e chore(deps): bump lib/expected-lite from 3634b0a to 182165b (#5469) 2024-06-22 12:06:00 +00:00
pajlada 9b31246502 feat: allow timeout-related commands to be used in multiple channels (#5402)
This changes the behaviour of the following commands:
 - `/ban`
 - `/timeout`
 - `/untimeout`
 - `/unban`

All of those commands now accept one or more `--channel` parameters to override which channel the action should take place in.
The `--channel` parameter accepts a channel ID or channel name with the same syntax as the other "user targets" do (e.g. `id:11148817` or `pajlada`)

examples
Ban user in the chat you're typing in:  
`/ban weeb123`

Ban user in the chat you're typing in, with a reason specified:  
`/ban weeb123 the ban reason`

Ban user in a separate chat, with a reason specified:  
`/ban --channel pajlada weeb123 the ban reason`

Ban user in two separate chats, with a reason specified:  
`/ban --channel pajlada --channel id:117166826 weeb123 the ban reason`


Timeout user in the chat you're typing in:  
`/timeout weeb123`

Timeout user in the chat you're typing in, with a reason specified:  
`/timeout weeb123 10m the timeout reason`

Timeout user in a separate chat, with a reason specified:  
`/timeout --channel pajlada weeb123 10m the timeout reason`

Timeout user in two separate chats, with a reason specified:  
`/timeout --channel pajlada --channel id:117166826 weeb123 10m the timeout reason`


Unban user in the chat you're typing in:  
`/unban weeb123`

Unban user in a separate chat:  
`/unban --channel pajlada weeb123`

Unban user in two separate chats:  
`/unban --channel pajlada --channel id:117166826 weeb123`
2024-06-16 12:22:51 +02:00
dependabot[bot] 9ec1022405 chore(deps): bump lib/settings from 03e8af1 to 80b8cb6 (#5427) 2024-05-27 01:37:05 +00:00
dependabot[bot] a43c4f371b chore(deps): bump lib/settings from 70fbc72 to 03e8af1 (#5382) 2024-05-05 21:13:02 -04:00
dependabot[bot] 48cbb7f8d1 chore(deps): bump lib/lua/src from e288c5a to 0897c0a (#5316) 2024-04-20 09:40:35 +00:00
dependabot[bot] c391ff9740 chore(deps): bump lib/settings from ceac9c7 to 70fbc72 (#5325) 2024-04-14 23:05:11 -04:00
pajlada 3563ecb3a5 fix: Compile Lua as a C library (#5251) 2024-03-16 14:15:05 +00:00
pajlada 2361d30e4b fix: compare settings before updating them (#5240) 2024-03-09 15:03:26 +00:00