/haxball.js-example

🎉Example bot for haxball.js package!

Primary LanguageJavaScript

Haxball.JS Example Bot

An example starter project for haxball.js module.


Commands

  • !ping - A command responds with Pong.
  • !admin - A command with args for take admin.
  • !eval - A command with args for evaluate JavaScript and responds the output.

Events

  • onPlayerChat - Executing when a player sends message.
  • onPlayerJoin - Executing when a player joins.
  • onRoomLink - Executing when the room is ready.

Notes

  • Don't forget to update config.json file before running the room.
  • You can code your room in structures/GameHandler.js file.