Put objects on a scene. Will eventually be a mastodon bot?
- Python 99.9%
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
Sceneto a file on disk - reading from or posting to Mastodon (early exploration work in branch
mastodon-module)
Overview
- A
Sceneis a tree ofnode Director: In charge of managing the SceneBouncer: Manages players and rate-limitCommander: Receives commands, parse them, validates them with theBouncerand sends them to theDirector
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.)
- Install miniconda
- Create the environment from the file:
conda env create -f environment.yml - Open the environment:
conda activate scene-mastodon - Install Spyder
- Create an environment for spyder:
conda create -c conda-forge -n spyder-env spyder(this will also installs Spyder in the environment) - Go to the environment:
conda activate spyder-env - Recommended for more reliable updates:
conda config --env --add channels conda-forge && conda config --env --set channel_priority stric - Launch spyder:
spyder
- Create an environment for spyder:
- Setup Spyder
- Tools > Preferences > Python interpreter
- Check "Use the following Python interpreter"
- Select the one with
scene-mastodonin its path - 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.