fix all core script syntax issues

This commit is contained in:
2026-02-17 11:23:12 -06:00
parent 2d054fcf21
commit 12b6c3544e
30 changed files with 910 additions and 897 deletions

View File

@@ -8,15 +8,17 @@ $contact((actor, reason) => {
log.console(reason)
}
}, {
address: "108.210.60.32", // NAT server's public IP
address: "108.210.60.32",
port: 4000,
actor: $self
})
$receiver(e => {
switch(e.type) {
case 'greet':
log.console(`hello!`)
break
var handlers = {
greet: function() {
log.console(`hello!`)
}
}
$receiver(e => {
if (handlers[e.type]) handlers[e.type]()
})