# import all the packages we will need from highrise import BaseBot from highrise.models import SessionMetadata, User from highrise import __main__ from asyncio import run as arun # Bot is our version of highrise-bot-sdks BaseBot # where we override functions like on_chat to give them more interesting functionality class Bot(BaseBot): async def on_start(self, session_metadata: SessionMetadata): print("hi im alive?") # this should output in the terminal # this function is called every time a user sends a message in the room with the bot async def on_chat(self, user: User, message: str): # we log this message to the terminal on your machine with print print(f"{user.username} said: {message}") async def run(self, room_id, token): await __main__.main(self, room_id, token) if __name__ == "__main__": room_id = "ROOM_ID" token = "TOKEN" arun(Bot().run(room_id, token))
I can run the code, the bot comes to the room in the game, but as soon as I move, it leaves the room, and I get an error in the CMD as 'UserMovedEvent can you help?
Hello, you did an amazing and beautiful job. I saw that the topic requires high accuracy and focus. Thank you for your effort, but we need the other part, which is the emotions and we will be thankful for you❤
When I type python --version in the CMD prompt I am hit with "Python was not found" even though I JUST installed it and can open it. Any one have any ideas?
Hey I encountered the same issue. So when it says that, it also says “run without arguments to install from the Microsoft store” and that literally means don’t put “python -version” just type python and then it will automatically take you to the Microsoft store where you can download a version of python that is actually compatible with your laptop/PC or whatever you’re using.
Okay so I have a question. My code doesn’t say am I alive which is what I put it brings up this stuff but at the end it says “TypeError: main() takes 1 positional argument but 3 were given” what do I do?
hi mate . i have a problem , iam in the step two , i gone to my profile setting on the highrise website and in the setting there is no option for bot or adding a bot . i also adding the Authentication method because i think highrise donot give permission to accounts that dont have 2FA . can u please help me with it 👍👍💖💖
I think it’s the highrise_bot_sdk file itself because I’ve had a read through the CMD window after getting the same fault and it says that PIP is not the issue
HI, thank you so much for the video. It's much better than the Highrise quide. I have a few things I need help with. 1. How do I change the bots position in my room. 2. How can I change the bots outfit. 3. My bot isn't greeting anyone when they join my room. If anyone could help me that would be amazing
Thanks for watching! They’ve added a lot of new features since I made this video and I’m a little behind. Maybe I need to make a part two with some new updated options for bots.
Hello my friend, thank you for the video. I have programmed the bot, but when I close cmd or close the game, it exits with me. Is there a solution to the problem?
Alot of users facing same problem there's no create bot options Till now Team Didn't mentioned any proper requirements for a bot. I Don't think there's any solution for this u aren't getting create/Generate bot options
An error when i try to install highrise-bot-sdk==23.1.0b5 ERROR: Could not find a version that satisfies the requirement highrise-bot-sdk==23.1.0b5 (from versions: none) ERROR: No matching distribution found for highrise-bot-sdk==23.1.0b5
@@luciasachun8898 no i wasnt able to figure it out sorry :( i’m not too amazing with python so i dropped the project but i might open it and try again soon i will let you know if i get it
Hello. I am new to programming stuff and wanted to try this out. But in the Step 3, I tried running it in cmd and it says cannot import Basebot and says its most likely due to circular import. May I know what I can do here? I tried searching for the file in my computer but it really did not show up. Is it possible for it to be a different file name other than Basebot? Thank you.
Guys, I want to fix my account that was banned due to illegal age, and I know that I have to take a photo of the national ID and send it, and I went to the game support, but I still don't know what to do. Can someone help to me?
good morning i wanna ask, my laptop windows is 7, so is there any version of python can work in it?, or is there any other program like python can work in it?
The trouble I'm running into is on cmd, i enter the file name like you did but it comes up saying "The system cannot find the path specified." How can I correct this?
"C:\Users\livvy\Downloads\HR BOT>python bot.py C:\Users\livvy\AppData\Local\Programs\Python\Python311\python.exe: can't find '__main__' module in 'C:\\Users\\livvy\\Downloads\\HR BOT\\bot.py'" yeah no idea what to do here, i got 2 underscores?
Hello Sir, for one thanks for this tuto. And now, i need your help, i trying to run my bot and all it's good, except the "user joined the room" in the chat, have you a solution please ?
Hi ty for this tutorial. I manage to run the bot in my room but i have a problem. It says in cmd "Warning: The Highrise Python Bot SDK version (23.1.0b10) does not match the recommended version for the API (23.3.4)." What is that API 23.3.4? Where can i install another cersion?
hello sir i am doing every file but some problem facing in vs code missing import how do resolve my problem and i ask python path and vs code path same it is mandatory.
I will need to look back at this video, they are constantly making changes to the bots so sometimes the code has to change to make them work again. I highly recommend joining the HighRise Discord and joining the bot making channel!
That means you something went wrong when you tried to install it, I would try those steps again. There’s a channel in the discord server for help on these issues as well, if you are in it.
Hi. when I login to the site and want to mske a bot .Its telling me that bot is available only for trusted and some special users.and u cant use bot.What I should do ? to be special... :"
My friend, you and I are game content creators Highrise I am interested in explaining it to Arabs You are someone who knows the English language I hope that we will cooperate with a company and talk to them about setting us up with them For our effort and trying to help others
so are creatures getting pets for sure or not? because I want a creature and a pet and creatures r 350+ dollars now, land is up in the 400s. The land deeds u talked about a year ago no longer exist so I am starting to be skeptic of highrise altogether. it is not fair that they make something convenient and then take it away.
The land deeds were always meant to be a short term thing. They were trying to provide a way for everyone to get in on Land. But land always was a limited time sale. As far as I know, creatures are still planned to receive pets in the future, I think that perk is on hold until HighRise 4.0 comes out. My recommendation stays the same, start with a creature and then potentially look at buying land. At this current moment there are just more perks when it comes to Creatures.
Traceback (most recent call last): File "C:\Users\Username\OneDrive\Escritorio\my_bot\mybot.py", line 3, in from highrise import _main_ ImportError: cannot import name '_main_' from 'highrise' (C:\Users\Username\AppData\Local\Programs\Python\Python311\Lib\site-packages\highrise\__init__.py) Que deberia hacer en ese caso?
Make sure you have it downloaded within Visual Studios, if you do a google search I am sure smarter people than me have created a guide on how to do it.
File "c:\Users\usern\OneDrive\Desktop\BaseBot.py\BaseBot.py", line 1, in from highrise import BaseBot ModuleNotFoundError: No module named 'highrise' im getting this error, ive tried changing the file name and the name of the script. i followed the whole step. :/
@drewniverseHR I planned on it when they released mini games or actual stuff to do rather than spend money. Have they added any games yet ? Not the mazes and user made games but dev made mini games ? Or anything interactive ?
That is a good question. I am not 100% sure, I know it will be a whole lot easier on a computer, but I bet you could find a way, like hosing the code on a web-service?
hey do you have discord or a way i can contact for some help? just any where i could send screenshots etc. because im stuck but need some assistance if youre still active..thanks
#import all the packages we will need from highrise import Basebot from highrise.models import SessionMetadata, User from highrise import _main_ from Asyncio import run as arun # Bot is our version of highrise-bot-sdks Basebot #where we override functions like on chat to give them more interesting class Bot (Basebot) async def on_start (self,session_metadata: Session _Metadata) Print("hi im aliev?")#this should output in the terminal #this function is called every time a user sends a message in the room with the bot async def on_chat(self,user:User message: str): #we log this message to the terminal on your machine with Print Print (f"{user.username} said:{message}") async def run(self,room_id,token): await__main__.main(self,room_id,token) if_name_=="__main__":room id = "" token= "" arun(Bot().run(room id taken
You have to have your computer running and awake at all times to keep the bot running. You could potentially host your code. There are a few options for doing that, I could maybe make a video on it.