Giter VIP home page Giter VIP logo

tf2-regex-filter's Introduction

TF2-Regex-Filter

A plugin created by Keith Warren [Sky Guardian], modified and maintained by myself.
Serves as a filter for names, chat, and commands.

I have included the regex config file which I use for my servers. It gets updated regularly.
FYI: The "blank" section at the top of the config is intended. There is some weird bug occuring when it is removed, more than likely due to the funky characters used.

If you are unfamilair with regex, check out these websites:
http://www.rexegg.com/regex-quickstart.html
https://www.regular-expressions.info/
https://regex101.com

See this plugin for reference, since they are similar: https://forums.alliedmods.net/showthread.php?t=71867

This plugin has included features which integrate the use of SourceIRC when connecting multiple servers. https://github.com/Azelphur/SourceIRC (Original)
https://github.com/JoinedSenses/SourceIRC (Modified)

Included IRC Features:

  • Method to relay 'connect' messages to a main IRC channel
  • Method to relay filtered names and chat messages to a seperate channel for debugging/analysis.
  • IRC relayed messages are formatted specifically with Discord in mind if it is used (Servers -> IRC -> Discord)

ConVars

sm_regex_status "1"  // Enable/Disable plugin  
sm_regex_config_path "configs/regexfilters/" // Don't touch. Config path of filters  
sm_regex_check_chat "1" // Enable chat checking  
sm_regex_check_commands "1" // Enable command checking  
sm_regex_check_names "1" // Enable name checking  
sm_regex_prefix "" // Prefix to add to randomly generated names if a players name is unnamed  
sm_regex_irc_enabled "0" // Enable use of IRC relay  
sm_regex_irc_main "" // Public server 'connect' messages are relayed to. Dont include the #  
sm_regex_irc_messages "" // Channel for filtered messages. Don't include the #  
sm_regex_irc_names "" // Channel for filtered names. Don't include the #   

Installation

  • Install regexfiltering.smx into your plugins folder.
  • Either install the included config to addons/sourcemod/configs/regexfilters/
    or create your own at that location.
  • Once the plugin has been loaded, it can be configured at cfg/sourcemod/plugin.regexfilters.txt

Discord formatting of filtered channel:
alt text

tf2-regex-filter's People

Contributors

joinedsenses avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.