Jump to content

Clickmeharder

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Clickmeharder

  1. #Chatfilter function.
    function chatFilter(message: string) :: string:
        #"bad word|good word" = format (add more onto the list with commas).
        set {_filter::*} to "@everyone", "trump|trent", "shTT|spit", "nigeria|fellah" and "fan|fun"
        loop {_filter::*}:
            set {_split::*} to split loop-value at "|"
            replace all {_split::1} in {_message} with {_split::2}
        return {_message}

×
×
  • Create New...