You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
Is there a built-in way to strip the user (<@userid>) from the message.text that is passed to the middleware receive function? Currently it comes baked into the string, so I'd have to manually parse it out in the middleware with regex.
The message.text value passed to the middleware.receive function contains the username mentioned, which means it gets set to wit.ai. For example, a "direct_mention" shows up in wit.ai as:
@U0ZA78R19 testing pt 2. This may be an issue with how https://github.com/howdyai/botkit works, but is there any way to strip out the user prior to passing it to wit.captureTextIntent in the case of "direct_mention" and "direct_message"?
The text was updated successfully, but these errors were encountered:
@airlikidh2 can you give an example of how I would use your cleanID function? I'm still seeing this same problem with both the witai and apiai middlewares when used with Slack.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is there a built-in way to strip the user (
<@userid>
) from the message.text that is passed to the middleware receive function? Currently it comes baked into the string, so I'd have to manually parse it out in the middleware with regex.Crosspost from the botkit-middelware-witai: howdyai/botkit-middleware-witai#2
The text was updated successfully, but these errors were encountered: