Get Started - Learn How To Make Your Bot!

Guides

Code Snippets

Get methods

Post methods

Web API

Useful links

List of all currently Free Items

List of Emotes

Highrise Bot SDK Changelog


Template

<aside> 💡 If you’re a Replit user also check: 🔄 Always running - Replit

</aside>

This is a template that can be used to run your bot, you just need to replace the Bot Settings variable with your room_id, room_id, bot_file, and bot_class.

You will need to create a file and name it as you wish, I suggest to use run.py.

MAKE SURE TO HAVE YOUR BOT FILE CODDED AND WORKING BEFORE TRYING TO CREATE A “RUN” FILE.

from highrise.__main__ import *
import time

"""Bot Settings"""
room_id = "room id here"
bot_token = "bot token here"
bot_file = "bot file name here"
bot_class = "bot class name here"

if __name__ == "__main__":
  definitions = [
	  BotDefinition(
	    getattr(import_module(bot_file), bot_class)(),
      room_id, 
			bot_token)]  # More BotDefinition classes can be added to the definitions list
  while True:
    try:
      arun(main(definitions))
    except Exception as e:
      # Print the full traceback for the exception
      import traceback
      print("Caught an exception:")
      traceback.print_exc()  # This will print the full traceback       
      time.sleep(1)       
      continue

Command line to run the script for each OS: