Closed hailiang-wang closed 7 years ago
Because the plugin function creates a copy of the message
object, modifying the message.props
object won't persist once it leaves the function.
Instead, you'll want to do as described here. Essentially we pass back props in the callback which will then be merged into the "real" message object!
Guessing this is OK - closing!
Write a custom plugin, call plugin from script. Use this.message.props['key'] = value which is described in wiki.
Expected Behavior
With the bot.reply method, get the key-values in callback.
Current Behavior
Get an error.
Possible Solution
After check the keys in this.message, it does not contain props object.
Steps to Reproduce (for bugs)
1. 2. 3. 4.
Context
Your Environment