Created
January 19, 2021 17:48
-
-
Save dixtel/736cd1462078b1ceee9557c0a8b506c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as HaxballScout from "haxballscout"; | |
new HaxballScout.Host( | |
{ | |
roomName: "My room", | |
maxPlayers: 16, | |
noPlayer: true | |
}, | |
main | |
); | |
function main(room: HaxballScout.Host) { | |
room.onPlayerJoin((player) => { | |
room.sendAnnouncement(\`Hello \${player.name}!\`) | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment