Command line tool for generating code for Mrucznik Role Play gamemode
Simply run:
$ pip install --editable .
To use it:
$ mrucznikctl --help
- Generate code
$ mrucznikctl build
- Create module
$ mrucznikctl create module
- Create command
$ mrucznikctl create command
- Create command & build
$ mrucznikctl create command --build
- Create commands in
[module name]/commands
directory - Create modules in
modules
directory
If you use Python 3.10 and you have error like:
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
Go to venv/lib/python3.10/site-packages/prompt_toolkit/styles/from_dict.py and replace
from collections import Mapping
with
try:
from collections.abc import Mapping
except ImportError:
from collections import Mapping