diff --git a/js/rules.py b/js/rules.py index a1c4c3c8b45852091502526a97481d64e3415227..410ad81d9b302826ba78ff15059c600dd75dc2b2 100644 --- a/js/rules.py +++ b/js/rules.py @@ -176,5 +176,10 @@ def gen_cache(path='txt/js/tg'): if __name__ == '__main__': print(getRuleLists()) - print(gen_cache()) - print(gen_cache('txt/js/18')) \ No newline at end of file + # print(gen_cache()) + # print(gen_cache('txt/js/18')) + + custom_file = gen_cache() + '\n'+gen_cache('txt/js/18') + print(custom_file) + with open('custom.conf','w+',encoding='utf-8') as f: + f.write(custom_file) \ No newline at end of file