Commit Graph

30 Commits

Author SHA1 Message Date
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