Commit Graph

44 Commits

Author SHA1 Message Date
pajlada 327dc0ebcb feat: add filter for external badges (#6709)
Co-authored-by: Ava Chow <github@achow101.com>
Reviewed-by: Nerixyz <nerixdev@outlook.de>
2026-01-05 16:20:21 +01:00
pajlada 18e3d7c72b refactor: rename Badge to TwitchBadge (#6706)
this change is made to clarify that the previously-called Badge object
is actually specialized for Twitch badges
2026-01-04 12:52:02 +01:00
nerix 85ae913413 chore: require clang-format 19 (#6236) 2025-05-25 13:46:28 +00:00
apa420 f914e0406e feat(filters): filter by author user ID (#5862) 2025-01-30 21:05:12 +00:00
Mm2PL 06d0160b35 Add flags.similar filter variable (#5747) 2024-12-01 15:22:35 +01:00
iProdigy 06d9a37709 feat: improve handling of shared chat messages (#5606)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2024-10-05 10:31:52 +00:00
nerix 3d06f8612f chore: ensure statics are only present once in the final app (#5588) 2024-09-14 12:13:12 +00:00
nerix 3257da1855 chore: silence some deprecation warnings in Qt 6.8 (#5529) 2024-08-04 11:23:29 +02:00
pajlada 5deec1f02f chore: remove Singleton & replace getIApp with getApp (#5514) 2024-07-21 13:09:59 +00:00
Mm2PL 614a1c469f Added flags.action filter variable (#5397)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2024-05-18 09:56:36 +00:00
pajlada 694d53ad20 Fix some documentations & comments (#5286)
* add comments for the new reward filters

* slightly improve documentation of r9k values
2024-03-31 11:07:43 +00:00
Mm2PL 69bdac9936 Add reward.cost reward.id, reward.title filter variables (#5275) 2024-03-30 11:28:49 +00:00
pajlada 5b6675abb4 refactor: fix clang-tidy auto*, const&, and curly braces (#5083) 2024-01-14 17:54:52 +01:00
iProdigy 693d4f401d feat: add badges, emotes, and filters for suspicious messages (#5060)
* feat: show chat badges on suspicious user messages

* feat: display emotes in suspicious user messages

* feat: add search filters for suspicious messages

* chore: update changelog

* refactor: resolve initial nits

* fix: finish adding new filter identifier

* Comment the new message flags

* Add a list of known issues to low trust update messages

* fix: Keep shared-pointerness of the channel

Without this change, we would have the possibility of using the
TwitchChannel after the Channel itself has gone out of scope, albeit not
realistically since we just post this to a thread and parse it - there's
no networking or big delays involved. but this shows the intent better

---------

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2024-01-06 13:22:00 +00:00
pajlada 25c776cfff refactor: FilterParser (#4925)
* Make explainIllType anonymous/static
* Comment constructor
2023-10-29 20:14:49 +00:00
pajlada 5c0219c245 refactor: Use override instead of virtual where possible (#4917) 2023-10-25 18:13:48 +02:00
pajlada ab3b2d8515 Add some more filter tests (#4897)
This changes the `make coverage` function to use `gcovr` instead of `lcov`, and to have it generate an html file directly at `coverage/index.html` under the build directory

The only thing this changes, other than adding tests, is making the `Expression` class pure virtual. Every derived class should implement each of the functions
2023-10-14 10:41:10 +02:00
pajlada 9f23c8562a Test filters context map & message builder (#4886) 2023-10-13 15:41:23 +00:00
pajlada 7cb04bf58b Remove BaseSettings & merge ConcurrentSettings (#4775) 2023-08-28 17:51:28 +02:00
Felanbird 381d5c4276 Change Elevated Messages to Hype Chats (#4766) 2023-08-14 17:19:20 +00:00
nerix 44cc1e256e Fix partially broken filters on Qt 6 (#4702) 2023-06-24 22:03:54 +02:00
Daniel Sage 34db692895 Implement type checking/validation for filters (#4364)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2023-04-09 23:35:06 +02:00
nerix 1043f9f803 Remove Unnecessary Includes in Headers (#4275)
* refactor: remove unnecessary includes in headers

* fix: formatting

* chore: changelog

* fix: scrollbar

* fix: suggestions and old appbase remains

* fix: suggestion

* fix: missing Qt forward declarations

* fix: another qt include

* fix: includes for precompiled-headers=off

* Add missing `<memory>` includes

* Add missing `#pragma once`

* Fix tests

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2022-12-31 14:41:01 +00:00
pajlada 032f290767 Sort and force grouping of includes (#4172)
This change enforces strict include grouping using IncludeCategories

In addition to adding this to the .clang-format file and applying it in the tests/src and src directories, I also did the following small changes:

    In ChatterSet.hpp, I changed lrucache to a <>include
    In Irc2.hpp, I change common/SignalVector.hpp to a "project-include"
    In AttachedWindow.cpp, NativeMessaging.cpp, WindowsHelper.hpp, BaseWindow.cpp, and StreamerMode.cpp, I disabled clang-format for the windows-includes
    In WindowDescriptors.hpp, I added the missing vector include. It was previously not needed because the include was handled by another file that was previously included first.
    clang-format minimum version has been bumped, so Ubuntu version used in the check-formatting job has been bumped to 22.04 (which is the latest LTS)
2022-11-27 19:32:53 +01:00
Felanbird dd6cb80ab9 Add searching & filtering for bits (#4069) 2022-10-18 20:26:12 +02:00
Kasia b232d16b55 Prevent copying in a couple places (#4066) 2022-10-16 14:25:24 +00:00
Felanbird 9e722d05e9 Add flags.elevated_message filter variable (#4017) 2022-10-01 12:27:25 +02:00
pajlada dcd42cb28b Add AutoMod message flag filter (#3938) 2022-08-28 13:31:53 +02:00
Daniel Sage 20c974fdab Added support for Twitch's Chat Replies (#3722)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2022-07-31 10:45:25 +00:00
James Upjohn 67c10fafc7 chore: replace usages of obsolete twitch struct with backing field (#3614)
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
2022-03-19 11:02:29 +00:00
Rasmus Karlsson 2075e88990 Tokenizer.cpp: Rename local variable in regex matching 2021-11-28 13:02:07 +01:00
sando e033f8e43e Add flags.first_message filter variable (#3292)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-10-23 10:37:17 +00:00
sando c0f4a410fa Add flags.reward_message filter variable (#3231)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-09-11 10:43:30 +00:00
pajlada 95044efeed Fix filter crash introduced in #3092 (#3110) 2021-08-03 07:39:27 +00:00
Mm2PL d7e8f4eabd Add channel.live filter variable (#3092)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-08-01 12:08:03 +00:00
Paweł 8a0ed79eca Respect founder badge in author.subbed filter (#2971) 2021-07-06 15:14:05 +00:00
dependabot[bot] 277289db55 Bump lib/serialize from 130ffc3 to 7d37cbf (#2418)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2021-02-17 23:57:37 +01:00
pajlada 8cd923b8fb Fix test compilation (#2426) 2021-01-31 13:35:01 +01:00
Daniel 5a29198367 Add regular expression support to filters (#2225) 2021-01-31 12:45:15 +01:00
pajlada 0e66b17ff0 Add Network tests (#2304)
Also changes the way timeouts happen, since right now if a timeout was met (which it mostly wasn't), it would run the error callback twice causing potentially undefined behaviour
2020-12-26 12:42:39 +01:00
Steve Wills df722a72c1 Switch to QT Category logging (#2206)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2020-11-21 16:20:10 +01:00
Leon Richardt 0eed45ae67 Chore: Proper Lambda Formatting (#2167)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2020-11-08 12:02:19 +01:00
Daniel a9590ae292 Add list literals to filters (#2103) 2020-11-01 13:33:46 +01:00
dnsge 4199a01b96 Advanced channel filters (#1748)
Adds custom channel filters complete with their own mini-language. Filters can be created in settings, and applied by clicking the three dots to open the Split menu and selecting "Set filters".
2020-10-18 15:18:20 +02:00