Quick update, probably user error.
I misunderstood "Restart NodeBB" to mean restart the process. When using the Restart button on the Dashboard and uninstall/reinstall the plugin works as expected in the simple case.
Sorry to bother y'all. Thanks.
This NodeBB plugin allows users to do /em emotes in the real-time chat window.
npm install nodebb-plugin-chat-emote
Note: you need to be fully up to date for this to work, at least this commit: 45a5b888248de651f7cebd96882a9ce81f6039f8
Nice! I want to put this into shoutbox eventually, but I'll have to majorly refactor the parsing first... I'll steal your code then (nah I'll give you creds)
haha its like, one line of code go for it
Looked at your code for a bit, adding your own hook into core first eh
Hahaha, that's one of the advantages of being a core dev... I suppose that's why our plugins only count on weekends
Been thinking and I suppose it's best if I just use
filter:messaging.parse as well for the shoutbox. That way it's also easily expandable by plugin
On closer inspection might not be such a good idea as I originally thought Will be tricky with the uids, seeing as with shouts you only have 1...
Got it working