X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/4773e2cfa2cb86d26eb42020837b1dee2b5f41dc..0d93d7b47b642e1c5705b3c75fb7f5cfcbe0fe41:/modules/foo.py diff --git a/modules/foo.py b/modules/foo.py index 0278eb1..bb56be0 100644 --- a/modules/foo.py +++ b/modules/foo.py @@ -6,9 +6,15 @@ modinfo = { 'author': 'Erebus Team', 'license': 'public domain', - 'compatible': [1], # compatible module API versions + 'compatible': [1,2], # compatible module API versions 'depends': [], # other modules required to work properly? + 'softdeps': ['help'], # modules which are preferred but not required } +# note: softdeps will be loaded before this module, IF not disabled in the configuration (autoload.module = 0) (and if it exists) +# however, if it is disabled it will be silently ignored, and if it is unloaded at runtime it won't cause this one to unload. +# +# basically, softdeps are things this module will use if available, but does not require (no errors will occur if it's not loaded) +# for example, @lib.help() will attempt to use the help module, but swallow errors if it is not loaded # preamble import modlib