From 3a04cb197f152f171fba679663a91a9bb61d710e Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 21 Jan 2022 14:39:46 +0100 Subject: Add config management --- modules/removesm.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 modules/removesm.js (limited to 'modules/removesm.js') diff --git a/modules/removesm.js b/modules/removesm.js new file mode 100644 index 0000000..1f83c02 --- /dev/null +++ b/modules/removesm.js @@ -0,0 +1,9 @@ +module.exports = (id) => { + lines = sitemap.split("\n"); + for (let index in lines) { + if (lines[index].includes(id)) { + delete lines[index]; + } + } + global.sitemap = lines.filter(i => i).join("\n"); +} \ No newline at end of file -- cgit