def del_macro(folder: str, name: str): database = SnakyData("data") load_macros(folder, "") database.get_ref(folder).del_data(name, "macros.json")
def set_macro(folder: str, name: str, macro: dict): database = SnakyData("data") load_macros(folder, "") database.get_ref(folder).set_data(name, macro, "macros.json")