Kasea лет назад: 7
Родитель
Сommit
943eee69cc
5 измененных файлов с 24 добавлено и 0 удалено
  1. 1 0
      .gitignore
  2. 1 0
      README.md
  3. 8 0
      index.js
  4. 8 0
      manifest.json
  5. 6 0
      module.json

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+createManifest.py

+ 1 - 0
README.md

@@ -0,0 +1 @@
+allows you to curse at people, it also allows you to read what people curse at you

+ 8 - 0
index.js

@@ -0,0 +1,8 @@
+module.exports = function SwearWords(dispatch) {
+	for(let msg of ['S_CHAT', 'S_WHISPER', 'S_PRIVATE_CHAT', 'C_CHAT', 'C_WHISPER']) dispatch.hook(msg, 1, {order: 100}, unfilter);
+}
+
+function unfilter(event) {
+	event.message = event.message.replace(/<FONT>(.*?)<\/FONT>/g, '<FONT></FONT>$1');
+	return true;
+}

+ 8 - 0
manifest.json

@@ -0,0 +1,8 @@
+{
+    "files": {
+        "index.js": "7c4ceb75ff0b453d2435d3a99576c41efa4c2bdfdd759e14b23600d8044dd039",
+        "LICENSE": "66d4e13177fc3f2b2dcd0596bde8763e4418ea56758a04bf2969f24ff33f914d",
+        "README.md": "1c071e943f189c56af135c4c184e1816d484053104c6c7bb218c32184f489614"
+    },
+    "defs": {}
+}

+ 6 - 0
module.json

@@ -0,0 +1,6 @@
+{
+    "servers": ["https://raw.githubusercontent.com/Kaseaa/tera-swear-words/master/"],
+    "supportUrl": "https://github.com/Kaseaa/tera-swear-words/issues",
+    "name": "Tera Swear/Curse Words",
+    "disableAutoUpdate": false
+}