Explanation of how we can use the message feature to receive comments.
|1.5.4a||Any string||Messages emitted (vci.message.Emit) from a VCI script|
|1.5.6a||comment||Comment messages sent from the system|
function onMessage(sender, name, message) -- User name and comment print(sender["name"].."「"..message.."」") end vci.message.On('comment', onMessage)
|sender[“name”]||Name of the sender|
|sender[“type”]||Type of the sender (In case of a comment, its “comment”)|
|sender[“commentSource”]|| In case of comment, the name of the comment source
a string such as Nicolive, Twitter, Showroom, etc.
|name||(In case of a comment, its “comment”)|
|message||Body of the message|
To communicate between VCIs, you need to define three functions: Emit(), On() and a receiving function.
For comments, the Emit() is taken care of by Virtual Cast system, you only have to define On() and a receiving function.