Just to chat and have fun

<@643945113122373672>

# import the necessary modules
from highrise import BaseBot
from highrise.models import SessionMetadata, User, Position
from highrise import __main__
from asyncio import run as arun

# define your bot class
class Bot(BaseBot):

    async def on_user_move(self, user: User, pos: Position) -> None:
      if (user.username == 'YOUR USERNAME'):
        await self.highrise.walk_to(pos)
      

    async def run(self, room_id, token):
      await __main__.main(self, room_id, token)
        

#instatiate your bot and start the loop event
if __name__ == "__main__":
  room_id = ""
  bot_secret = ""
  
  arun(Bot().run(room_id, bot_secret))
1 Like