diff --git a/account.py b/account.py index 9b8b2ea..bd7e663 100644 --- a/account.py +++ b/account.py @@ -345,8 +345,7 @@ def setDNS(account,domain,records): newRecords.append({ 'type': 'TXT', 'txt': TXTRecords - }) - + }) data = '{"records":'+str(newRecords).replace("'","\"")+'}' response = hsw.sendUPDATE(account_name,password,domain,data) return response diff --git a/assets/plugin_page.png b/assets/plugin_page.png new file mode 100644 index 0000000..e875a36 Binary files /dev/null and b/assets/plugin_page.png differ diff --git a/assets/plugins.png b/assets/plugins.png new file mode 100644 index 0000000..eea6288 Binary files /dev/null and b/assets/plugins.png differ diff --git a/plugin.py b/plugin.py index b7bb4cf..659c43e 100644 --- a/plugin.py +++ b/plugin.py @@ -12,6 +12,8 @@ def listPlugins(): if file.endswith(".py"): if file != "main.py": plugin = importlib.import_module("plugins."+file[:-3]) + if "info" not in dir(plugin): + continue details = plugin.info details["link"] = file[:-3] plugins.append(details) diff --git a/plugins/template.py b/plugins/template.py new file mode 100644 index 0000000..2a5cf1c --- /dev/null +++ b/plugins/template.py @@ -0,0 +1,32 @@ +import json +import account +import requests + +# Plugin Data +info = { + "name": "Plugin Template", + "description": "Plugin Description", + "version": "1.0", + "author": "Nathan.Woodburn/" +} + +# Functions +functions = { + "main":{ + "name": "Function name", + "type": "dashboard", + "description": "Description", + "params": {}, + "returns": { + "status": + { + "name": "Status of the function", + "type": "text" + } + } + } +} + +def main(params, authentication): + return {"status": "Success"} + \ No newline at end of file