GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - glaretechnologies/substrata-example-bot-python: An example script for updating an object on the Substata server

BranchesTags
Open more actions menu

Latest commit

 

History

28 Commits
28 Commits

Folders and files

NameName
Last commit message
Last commit date
lib
lib
 
 
LICENCE
LICENCE
 
 
README.md
README.md
 
 
substrata_bot_demo.py
substrata_bot_demo.py
 
 
substrata_chatbot_demo.py
substrata_chatbot_demo.py
 
 

Repository files navigation

These python scripts are examples of connecting to a Substrata server and doing some things:

substrata_chatbot_demo.py

Creates a user avatar, logs in, walks in circles, and says "Beep Boop" every 5 seconds.

You could extend this example to make the bot chat to a user, follow a user around or whatever.

See https://www.youtube.com/watch?v=j-ja0_GcB4s for a video of it.

substrata_bot_demo.py

This script is an example of updating an object on a Substrata server.

It updates an existing text object on the server with the current Eth price, fetched from api.coinbase.com.

Note that you will need to update an object in a parcel you own for this script to have any effect. You will also need to set OB_TO_CHANGE_UID to the UID of the existing text object to update.

See https://youtu.be/YSB8cmtEpSQ for a video of it.

Running

You will need to put a file called config.txt with contents like this in the script directory, before running the script:

[connection]
server_hostname = localhost

[credentials]
Username = MyUserName
Password = MyPassword

Where the credentials are for a user account on the substrata server you are connecting to.

You can test on your own substrata server (see https://substrata.info/running_your_own_server) with

server_hostname = localhost

or on the main substrata server with

server_hostname = substrata.info

Please be careful though! Don't spam messages or create too many objects on the main server.

About

An example script for updating an object on the Substata server

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

3 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.