πŸ‘£ On_user_move

πŸ‘£ On_user_move

Added on version 23.1.0b8
on_user_move(self, user: User, pos: Position) -> None:
Called whenever an user moves in the room

βš™οΈUse cases

This method returns an User and a Position class everytime an User move in the room.
async def on_user_move(self, user: User, pos: Position) -> None: print (f"{user.username} moved to {pos}")
This code will simply print in your terminal the username and new position of every user that moves in the room.

Β 
Built with Potion.so