Adding the ability to register a single script using the "script" attribute at the map property level.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
console.log('SCRIPT LAUNCHED');
|
||||
WA.sendChatMessage('Hi, my name is Poly and I repeat what you say!', 'Poly Parrot');
|
||||
|
||||
|
||||
WA.onChatMessage((message => {
|
||||
console.log('CHAT MESSAGE RECEIVED BY SCRIPT');
|
||||
WA.sendChatMessage('Poly Parrot says: "'+message+'"', 'Poly Parrot');
|
||||
}));
|
||||
Reference in New Issue
Block a user