Dmitry S лет назад: 4
Родитель
Сommit
5985af2515
4 измененных файлов с 34 добавлено и 29 удалено
  1. 3 1
      .gitignore
  2. 16 16
      index.js
  3. 7 7
      manifest.json
  4. 8 5
      module.json

+ 3 - 1
.gitignore

@@ -1 +1,3 @@
-createManifest.py
+.eslintrc.json
+manifest-generator.bat
+manifest-generator.js

+ 16 - 16
index.js

@@ -1,16 +1,16 @@
-module.exports = function SwearWords(mod) {
-  const unfilter = (e) => {
-    e.message = e.message.replace(/<FONT>(.*?)<\/FONT>/g, "<FONT></FONT>$1");
-    return true;
-  };
-
-  for (const data of [
-    ["S_CHAT", 4],
-    ["S_WHISPER", 4],
-    ["S_PRIVATE_CHAT", 1],
-    ["C_CHAT", 1],
-    ["C_WHISPER", 2],
-  ]) {
-    mod.hook(...data, { order: 100 }, unfilter);
-  }
-};
+module.exports = function SwearWords(mod) {
+	const unfilter = (e) => {
+		e.message = e.message.replace(/<FONT>(.*?)<\/FONT>/g, "<FONT></FONT>$1");
+		return true;
+	};
+
+	for (const data of [
+		["S_CHAT", 3],
+		["S_WHISPER", 3],
+		["S_PRIVATE_CHAT", 1],
+		["C_CHAT", 1],
+		["C_WHISPER", 1],
+	]) {
+		mod.hook(...data, { order: 100 }, unfilter);
+	}
+};

+ 7 - 7
manifest.json

@@ -1,8 +1,8 @@
-{
-    "files": {
-        "index.js": "70dd4e435df428d4679f219c142a1fd82526f5601af40074314990ca99a26341",
-        "LICENSE": "66d4e13177fc3f2b2dcd0596bde8763e4418ea56758a04bf2969f24ff33f914d",
-        "README.md": "1c071e943f189c56af135c4c184e1816d484053104c6c7bb218c32184f489614"
-    },
-    "defs": {}
+{
+    "files": {
+        "LICENSE": "66d4e13177fc3f2b2dcd0596bde8763e4418ea56758a04bf2969f24ff33f914d",
+        "README.md": "1c071e943f189c56af135c4c184e1816d484053104c6c7bb218c32184f489614",
+        "index.js": "7277beacc2b4b97a2fd844097cf77e506556642642e51f2de5baffe182dd9d88",
+        "module.json": "4833a25f641ddaf80ac8a7a73465e1f70df2b28a1eef6dfc97794a1754f21f17"
+    }
 }

+ 8 - 5
module.json

@@ -1,6 +1,9 @@
 {
-    "servers": ["https://raw.githubusercontent.com/Kasea/tera-swear-words/master/"],
-    "supportUrl": "https://github.com/Kasea/tera-swear-words/issues",
-    "name": "Tera Swear/Curse Words",
-    "disableAutoUpdate": false
-}
+    "name": "tera-swear-words",
+    "options": {
+        "niceName": "Tera Swear/Curse Words"
+    },
+    "servers": ["https://raw.githubusercontent.com/tera-private-mods/auto-target/master/"],
+    "disableAutoUpdate": false,
+    "description": "Description goes here."
+}