Block Inputs

For security reasons or to avoid harmful or threatening messages, you can block inputs based on the exclusion rules:

blockInputs: [
{
match: [/ugly/, /bastard/],
message: 'We cannot tolerate these kind of words.',
},
]
Example

Once the specified inputs are matched:

  • The user input is not displayed in the message history.
  • The configured message is displayed.
  • The bot does not receive the blocked message.
Was this article useful?