Creating a processor

Create a static method that returns a string and mark it as a processor using the [Processor] attribute. This example removes exclamation marks from the input. In case you want to prevent aggressive commands.

[Processor]
public static string RemoveExclamationProcessor(string input)
{
    return input.Replace("!", string.Empty);
}

Last updated

Was this helpful?