Skip to content

Instantly share code, notes, and snippets.

@dixtel
Created January 19, 2021 17:48
Show Gist options
  • Save dixtel/736cd1462078b1ceee9557c0a8b506c1 to your computer and use it in GitHub Desktop.
Save dixtel/736cd1462078b1ceee9557c0a8b506c1 to your computer and use it in GitHub Desktop.
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