1
0
Fork
You've already forked Scene-mastodon
0
Put objects on a scene. Will eventually be a mastodon bot?
  • Python 99.9%
2024年05月23日 05:15:22 +00:00
Commands Bug fix: Leave command always gives incorrect name "None" 2024年01月22日 23:54:37 -05:00
old move old files 2022年10月19日 08:49:53 -04:00
tests Bug fix: Leave command always gives incorrect name "None" 2024年01月22日 23:54:37 -05:00
.gitignore add saved_players.json to .gitignore 2023年11月04日 22:39:00 -04:00
Body.py Body: drawChildren(): only display the last 4 digits of id() 2024年01月21日 01:49:38 -05:00
bouncer.py use Player.body instead of Player.who 2024年01月21日 02:01:41 -05:00
CLI.py Fix commands Take, Drop, Create, Become following big refacto 2024年01月21日 23:42:11 -05:00
commander.py use Player.body instead of Player.who 2024年01月21日 02:01:41 -05:00
director.py Bug fix: Leave command always gives incorrect name "None" 2024年01月22日 23:54:37 -05:00
environment.yml Graph: Commence à utiliser pytest 2023年12月19日 17:02:45 -05:00
launch spyder.fish add "launch spyder.fish" 2023年10月27日 15:33:32 -04:00
LICENSE Mise à jour de 'LICENSE' 2022年10月17日 19:24:06 +02:00
node.py Node: fix removeChild which didn't delete all children correctly 2024年01月15日 23:21:37 -05:00
parser.py use Player.body instead of Player.who 2024年01月21日 02:01:41 -05:00
player.py use Player.body instead of Player.who 2024年01月21日 02:01:41 -05:00
README.md Actualiser README.md 2024年05月23日 05:15:22 +00:00
saver.py WIP saver module 2023年11月04日 22:36:34 -04:00
settings_example.py update settings_example.py 2023年10月31日 00:05:56 -04:00
tree.py rename Director to director, rename Graph to Tree and split Node into its own file 2024年01月06日 14:59:32 -05:00

Scene-mastodon

Mastodon bot that put objects on a scene

Very WIP!!

What currently work

  • The CLI module
  • The commands to create, destroy, take, drop, become, enter, leave, describe

What currently doesn't work

  • Persistance: saving and loading a Scene to a file on disk
  • reading from or posting to Mastodon (early exploration work in branch mastodon-module)

Overview

  • A Scene is a tree of node
  • Director: In charge of managing the Scene
  • Bouncer: Manages players and rate-limit
  • Commander: Receives commands, parse them, validates them with the Bouncer and sends them to the Director

Setup dev environment

(You certainly don't need all this. But that's how I like to work. Dependancies are listed in environment.yml. You can install them using your method of choice.)

  1. Install miniconda
  2. Create the environment from the file: conda env create -f environment.yml
  3. Open the environment: conda activate scene-mastodon
  4. Install Spyder
    1. Create an environment for spyder: conda create -c conda-forge -n spyder-env spyder (this will also installs Spyder in the environment)
    2. Go to the environment: conda activate spyder-env
    3. Recommended for more reliable updates: conda config --env --add channels conda-forge && conda config --env --set channel_priority stric
    4. Launch spyder: spyder
  5. Setup Spyder
    1. Tools > Preferences > Python interpreter
    2. Check "Use the following Python interpreter"
    3. Select the one with scene-mastodon in its path
    4. Relaunch the kernel

Contribution

I generally don't know what I'm doing, and I certainly don't know when I do something wrong! 😅 If you're a real programmer who actually know how to code, feel free to suggest improvement if you see that something is messy.