Skip to content

Commit

Permalink
Update example message handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed May 31, 2024
1 parent 4ad1f82 commit 54f1256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ game = Game(
# Simple message handler
@game.events.register(ServerPackets.SEND_MESSAGE)
def on_message(sender: Player, message: str, target: Player):
if message.startswith('!ping'):
if message.startswith('?ping'):
sender.send_message('pong!')

# Run the game
Expand Down

0 comments on commit 54f1256

Please sign in to comment.