-
Notifications
You must be signed in to change notification settings - Fork 0
Developer API
Palm edited this page Oct 17, 2024
·
3 revisions
EasyAsCommands has its own API that developers can include in their plugins to integrate their plugin with EAC.
- Download
eac_api.py
latest release. - Drop it into your plugin at the same level as your entry point script.
- Add the following import to the top of your script:
from .eac_api import CommandManager
- Now set up your
CommandManager
class similarly to your plugin class.
from .eac_api import CommandManager class EAC(CommandManager): def __init__(self): super().__init__() # Registry methods should be initialized. # Everything else can go wherever.
- And you're done!
For usage and documentation, see API Documentation.