Raised This Month: $32 Target: $400
 8% 

[Any] Regex Trigger (v2.5.2)


Post New Thread Reply   
 
Thread Tools Display Modes
JoinedSenses
Senior Member
Join Date: Sep 2013
Old 05-05-2019 , 01:24   Re: [Any] Regex Trigger (redux)
Reply With Quote #11

Updated to v2.5.0. - Now requires SM 1.10.

Essentially rewrote the entire plugin. Redid the logic, fixed some misc bugs, added better discord relay support, added enum struct usage in the logic flow.

Changed name from Regex Filter to Regex Trigger to better reflect that this plugin is not just a filter, but can be used in more flexible/creative ways.
__________________

Last edited by JoinedSenses; 05-05-2019 at 01:24.
JoinedSenses is offline
JoinedSenses
Senior Member
Join Date: Sep 2013
Old 05-06-2019 , 00:03   Re: [Any] Regex Trigger (v2.5.1)
Reply With Quote #12

Updated to 2.5.1

Added replacement support for capture groups greater than 0, which can be utilized with \# (\1, \2, \3, etc)

Example: This will reverse the text if anyone says "batman", instead displaying "manbat"
Code:
	"Batman"
	{
		"chatpattern"           "(bat)(man)"
		"replace"               "\2\1"
		"relay"                 "1"
	}
__________________

Last edited by JoinedSenses; 05-06-2019 at 00:03.
JoinedSenses is offline
Dragonisser
AlliedModders Donor
Join Date: Jan 2014
Location: Germany
Old 09-08-2023 , 15:53   Re: [Any] Regex Trigger (v2.5.2)
Reply With Quote #13

The plugin really needs a cvar to disable sending to discord. Don't really want to be spammed with those message but neither do i want to add a webhook because without it, the discord dependency constantly errors.

I already fixed the latter, but now it just sends an information that a plugin sends no webhook/message.

Edit:

The "relay" key is nice, but a quick cvar toggle would be good.

Last edited by Dragonisser; 09-08-2023 at 16:22.
Dragonisser is offline
JoinedSenses
Senior Member
Join Date: Sep 2013
Old 09-08-2023 , 16:25   Re: [Any] Regex Trigger (v2.5.2)
Reply With Quote #14

yeah... just don't add "relay" or set it to "0"
__________________
JoinedSenses is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode