madmax3365 / node-red-node-discord

Discord nodes for node-red
6 stars 9 forks source link

discord-get-message node question #10

Closed Nagamakii closed 4 years ago

Nagamakii commented 4 years ago

I am trying to make a discord bot that turns on lights on a raspberry pi, so I was curious if it was possible to make the node process the specific commands such as !red, !green, etc. since (correct me if im wrong) all the node does by default is pass the msg.payload. I have little to no experience with JS so bare with me in the that aspect. Thanks!

madmax3365 commented 4 years ago

Hey @Nagamakii. If I understood you correctly, you want to turn lights based on the received message? If so, you must process message and related logic in another node, for example in function node. I don't think that this has anything to do with the discord node itself.

Nagamakii commented 4 years ago

Hey @Nagamakii. If I understood you correctly, you want to turn lights based on the received message? If so, you must process message and related logic in another node, for example in function node. I don't think that this has anything to do with the discord node itself.

ok I see, thank you!