瀏覽代碼

update known wiki projects and dependencies

Markus-Rost 3 年之前
父節點
當前提交
52d5ba5b9a
共有 6 個文件被更改,包括 191 次插入101 次删除
  1. 4 4
      bot.js
  2. 10 3
      cmds/say.js
  3. 100 89
      package-lock.json
  4. 4 4
      package.json
  5. 72 0
      util/default.json
  6. 1 1
      util/edit_diff.js

+ 4 - 4
bot.js

@@ -205,10 +205,10 @@ function slash_command(interaction) {
 	if ( interaction.channel?.isThread() ) sqlargs.push(interaction.channel.parentId, '#' + interaction.channel.parent?.parentId);
 	else sqlargs.push(interaction.channelId, '#' + interaction.channel?.parentId);
 	db.query( 'SELECT wiki, lang FROM discord WHERE guild = $1 AND (channel = $2 OR channel = $3 OR channel IS NULL) ORDER BY channel DESC NULLS LAST LIMIT 1', sqlargs ).then( ({rows:[row]}) => {
-		return slash[interaction.commandName](interaction, new Lang(( row?.lang || interaction.guild?.preferredLocale )), new Wiki(row?.wiki));
+		return slash[interaction.commandName](interaction, new Lang(( row?.lang || interaction.guildLocale )), new Wiki(row?.wiki));
 	}, dberror => {
 		console.log( '- Slash: Error while getting the wiki: ' + dberror );
-		return interaction.reply( {content: new Lang(interaction.guild?.preferredLocale, 'general').get('database') + '\n' + process.env.invite, ephemeral: true} ).catch(log_error);
+		return interaction.reply( {content: new Lang(( interaction.locale || interaction.guildLocale ), 'general').get('database') + '\n' + process.env.invite, ephemeral: true} ).catch(log_error);
 	} );
 }
 
@@ -227,10 +227,10 @@ function message_button(interaction) {
 	if ( interaction.channel?.isThread() ) sqlargs.push(interaction.channel.parentId, '#' + interaction.channel.parent?.parentId);
 	else sqlargs.push(interaction.channelId, '#' + interaction.channel?.parentId);
 	db.query( 'SELECT wiki, lang FROM discord WHERE guild = $1 AND (channel = $2 OR channel = $3 OR channel IS NULL) ORDER BY channel DESC NULLS LAST LIMIT 1', sqlargs ).then( ({rows:[row]}) => {
-		return buttons[cmd](interaction, new Lang(( row?.lang || interaction.guild?.preferredLocale )), new Wiki(row?.wiki));
+		return buttons[cmd](interaction, new Lang(( row?.lang || interaction.guildLocale )), new Wiki(row?.wiki));
 	}, dberror => {
 		console.log( '- Button: Error while getting the wiki: ' + dberror );
-		return interaction.reply( {content: new Lang(interaction.guild?.preferredLocale, 'general').get('database') + '\n' + process.env.invite, ephemeral: true} ).catch(log_error);
+		return interaction.reply( {content: new Lang(( interaction.locale || interaction.guildLocale ), 'general').get('database') + '\n' + process.env.invite, ephemeral: true} ).catch(log_error);
 	} );
 }
 

+ 10 - 3
cmds/say.js

@@ -22,10 +22,17 @@ function cmd_say(lang, msg, args, line, wiki) {
 		}
 	}
 	if ( text.trim() || imgs.length ) {
-		var allowedMentions = {parse:['users']};
+		let allowedMentions = {parse:['users']};
 		if ( msg.member.permissions.has(Permissions.FLAGS.MENTION_EVERYONE) ) allowedMentions.parse = ['users','roles','everyone'];
-		else allowedMentions.roles = msg.guild.roles.cache.filter( role => role.mentionable ).map( role => role.id ).slice(0,100)
-		msg.channel.send( {content: text, allowedMentions, files: imgs} ).then( () => msg.delete().catch(log_error), error => {
+		else allowedMentions.roles = msg.guild.roles.cache.filter( role => role.mentionable ).map( role => role.id ).slice(0, 100);
+		msg.channel.send( {
+			content: text,
+			files: imgs,
+			allowedMentions,
+			reply: {
+				messageReference: msg.reference?.messageId
+			}
+		} ).then( () => msg.delete().catch(log_error), error => {
 			log_error(error);
 			msg.reactEmoji('error', true);
 		} );

+ 100 - 89
package-lock.json

@@ -12,12 +12,12 @@
         "cheerio": "^1.0.0-rc.10",
         "datetime-difference": "^1.0.2",
         "discord-oauth2": "^2.9.0",
-        "discord.js": "^13.5.1",
-        "dotenv": "^10.0.0",
+        "discord.js": "^13.6.0",
+        "dotenv": "^14.2.0",
         "full-icu": "^1.4.0",
-        "got": "^12.0.0",
+        "got": "^12.0.1",
         "htmlparser2": "^7.2.0",
-        "npm": "^8.3.0",
+        "npm": "^8.3.2",
         "pg": "^8.7.1"
       },
       "engines": {
@@ -343,9 +343,9 @@
       "integrity": "sha512-2DtocOmsXw5KjhW4eUMpr6RAih+juON0DOzSWr6F8qZePzuOJWznHbqDJmU70YB4Wv2Psyc6Shr3SEvRQ2Gk4Q=="
     },
     "node_modules/discord.js": {
-      "version": "13.5.1",
-      "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-13.5.1.tgz",
-      "integrity": "sha512-ejEG5MXzB0eda9Nt+VzqgdvDWVO5U/GynGzq6DRPLaCH1yyn2YRU9J+vCMl77pWA1rzYGX+b/9RI31x0wt3qXA==",
+      "version": "13.6.0",
+      "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-13.6.0.tgz",
+      "integrity": "sha512-tXNR8zgsEPxPBvGk3AQjJ9ljIIC6/LOPjzKwpwz8Y1Q2X66Vi3ZqFgRHYwnHKC0jC0F+l4LzxlhmOJsBZDNg9g==",
       "dependencies": {
         "@discordjs/builders": "^0.11.0",
         "@discordjs/collection": "^0.4.0",
@@ -427,11 +427,11 @@
       }
     },
     "node_modules/dotenv": {
-      "version": "10.0.0",
-      "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz",
-      "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==",
+      "version": "14.2.0",
+      "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-14.2.0.tgz",
+      "integrity": "sha512-05POuPJyPpO6jqzTNweQFfAyMSD4qa4lvsMOWyTRTdpHKy6nnnN+IYWaXF+lHivhBH/ufDKlR4IWCAN3oPnHuw==",
       "engines": {
-        "node": ">=10"
+        "node": ">=12"
       }
     },
     "node_modules/end-of-stream": {
@@ -504,9 +504,9 @@
       }
     },
     "node_modules/got": {
-      "version": "12.0.0",
-      "resolved": "https://registry.npmjs.org/got/-/got-12.0.0.tgz",
-      "integrity": "sha512-gNNNghQ1yw0hyzie1FLK6gY90BQlXU9zSByyRygnbomHPruKQ6hAKKbpO1RfNZp8b+qNzNipGeRG3tUelKcVsA==",
+      "version": "12.0.1",
+      "resolved": "https://registry.npmjs.org/got/-/got-12.0.1.tgz",
+      "integrity": "sha512-1Zhoh+lDej3t7Ks1BP/Jufn+rNqdiHQgUOcTxHzg2Dao1LQfp5S4Iq0T3iBxN4Zdo7QqCJL+WJUNzDX6rCP2Ew==",
       "dependencies": {
         "@sindresorhus/is": "^4.2.0",
         "@szmarczak/http-timer": "^5.0.1",
@@ -673,9 +673,9 @@
       }
     },
     "node_modules/npm": {
-      "version": "8.3.0",
-      "resolved": "https://registry.npmjs.org/npm/-/npm-8.3.0.tgz",
-      "integrity": "sha512-ug4xToae4Dh3yZh8Fp6MOnAPSS3fqCTANpJx1fXP2C4LTUzoZf7rEantHQR/ANPVYDBe5qQT4tGVsoPqqiYZMw==",
+      "version": "8.3.2",
+      "resolved": "https://registry.npmjs.org/npm/-/npm-8.3.2.tgz",
+      "integrity": "sha512-xZAC9GpWNOyiS1TtBqBy0HJpjIVI8zsVXEOEwcmgqYFtqOy7sXUL0ByOrkhfcGmf+akSXz3uOxLYB8aLlYivQQ==",
       "bundleDependencies": [
         "@isaacs/string-locale-compare",
         "@npmcli/arborist",
@@ -841,7 +841,7 @@
       "license": "ISC"
     },
     "node_modules/npm/node_modules/@npmcli/arborist": {
-      "version": "4.1.1",
+      "version": "4.2.1",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
@@ -854,7 +854,7 @@
         "@npmcli/node-gyp": "^1.0.3",
         "@npmcli/package-json": "^1.0.1",
         "@npmcli/run-script": "^2.0.0",
-        "bin-links": "^2.3.0",
+        "bin-links": "^3.0.0",
         "cacache": "^15.0.3",
         "common-ancestor-path": "^1.0.1",
         "json-parse-even-better-errors": "^2.3.1",
@@ -891,7 +891,7 @@
       "license": "ISC"
     },
     "node_modules/npm/node_modules/@npmcli/config": {
-      "version": "2.3.2",
+      "version": "2.4.0",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
@@ -1057,7 +1057,7 @@
       }
     },
     "node_modules/npm/node_modules/agentkeepalive": {
-      "version": "4.1.4",
+      "version": "4.2.0",
       "inBundle": true,
       "license": "MIT",
       "dependencies": {
@@ -1146,7 +1146,7 @@
       "license": "MIT"
     },
     "node_modules/npm/node_modules/bin-links": {
-      "version": "2.3.0",
+      "version": "3.0.0",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
@@ -1155,10 +1155,10 @@
         "npm-normalize-package-bin": "^1.0.0",
         "read-cmd-shim": "^2.0.0",
         "rimraf": "^3.0.0",
-        "write-file-atomic": "^3.0.3"
+        "write-file-atomic": "^4.0.0"
       },
       "engines": {
-        "node": ">=10"
+        "node": "^12.13.0 || ^14.15.0 || >=16"
       }
     },
     "node_modules/npm/node_modules/binary-extensions": {
@@ -1664,7 +1664,7 @@
       "license": "ISC"
     },
     "node_modules/npm/node_modules/hosted-git-info": {
-      "version": "4.0.2",
+      "version": "4.1.0",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
@@ -1820,7 +1820,7 @@
       }
     },
     "node_modules/npm/node_modules/is-core-module": {
-      "version": "2.7.0",
+      "version": "2.8.0",
       "inBundle": true,
       "license": "MIT",
       "dependencies": {
@@ -1885,7 +1885,7 @@
       "license": "MIT"
     },
     "node_modules/npm/node_modules/libnpmaccess": {
-      "version": "4.0.3",
+      "version": "5.0.0",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
@@ -1895,11 +1895,11 @@
         "npm-registry-fetch": "^11.0.0"
       },
       "engines": {
-        "node": ">=10"
+        "node": "^12.13.0 || ^14.15.0 || >=16"
       }
     },
     "node_modules/npm/node_modules/libnpmdiff": {
-      "version": "2.0.4",
+      "version": "3.0.0",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
@@ -1913,11 +1913,11 @@
         "tar": "^6.1.0"
       },
       "engines": {
-        "node": ">=10"
+        "node": "^12.13.0 || ^14.15.0 || >=16"
       }
     },
     "node_modules/npm/node_modules/libnpmexec": {
-      "version": "3.0.1",
+      "version": "3.0.2",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
@@ -1938,7 +1938,7 @@
       }
     },
     "node_modules/npm/node_modules/libnpmfund": {
-      "version": "2.0.1",
+      "version": "2.0.2",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
@@ -1949,7 +1949,7 @@
       }
     },
     "node_modules/npm/node_modules/libnpmhook": {
-      "version": "6.0.3",
+      "version": "7.0.0",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
@@ -1957,11 +1957,11 @@
         "npm-registry-fetch": "^11.0.0"
       },
       "engines": {
-        "node": ">=10"
+        "node": "^12.13.0 || ^14.15.0 || >=16"
       }
     },
     "node_modules/npm/node_modules/libnpmorg": {
-      "version": "2.0.3",
+      "version": "3.0.0",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
@@ -1969,11 +1969,11 @@
         "npm-registry-fetch": "^11.0.0"
       },
       "engines": {
-        "node": ">=10"
+        "node": "^12.13.0 || ^14.15.0 || >=16"
       }
     },
     "node_modules/npm/node_modules/libnpmpack": {
-      "version": "3.0.0",
+      "version": "3.0.1",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
@@ -1986,7 +1986,7 @@
       }
     },
     "node_modules/npm/node_modules/libnpmpublish": {
-      "version": "4.0.2",
+      "version": "5.0.0",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
@@ -1997,22 +1997,22 @@
         "ssri": "^8.0.1"
       },
       "engines": {
-        "node": ">=10"
+        "node": "^12.13.0 || ^14.15.0 || >=16"
       }
     },
     "node_modules/npm/node_modules/libnpmsearch": {
-      "version": "3.1.2",
+      "version": "4.0.0",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
         "npm-registry-fetch": "^11.0.0"
       },
       "engines": {
-        "node": ">=10"
+        "node": "^12.13.0 || ^14.15.0 || >=16"
       }
     },
     "node_modules/npm/node_modules/libnpmteam": {
-      "version": "2.0.4",
+      "version": "3.0.0",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
@@ -2020,11 +2020,11 @@
         "npm-registry-fetch": "^11.0.0"
       },
       "engines": {
-        "node": ">=10"
+        "node": "^12.13.0 || ^14.15.0 || >=16"
       }
     },
     "node_modules/npm/node_modules/libnpmversion": {
-      "version": "2.0.1",
+      "version": "2.0.2",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
@@ -2846,12 +2846,23 @@
       "license": "ISC"
     },
     "node_modules/npm/node_modules/typedarray-to-buffer": {
-      "version": "3.1.5",
+      "version": "4.0.0",
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/feross"
+        },
+        {
+          "type": "patreon",
+          "url": "https://www.patreon.com/feross"
+        },
+        {
+          "type": "consulting",
+          "url": "https://feross.org/support"
+        }
+      ],
       "inBundle": true,
-      "license": "MIT",
-      "dependencies": {
-        "is-typedarray": "^1.0.0"
-      }
+      "license": "MIT"
     },
     "node_modules/npm/node_modules/unique-filename": {
       "version": "1.1.1",
@@ -2932,14 +2943,17 @@
       "license": "ISC"
     },
     "node_modules/npm/node_modules/write-file-atomic": {
-      "version": "3.0.3",
+      "version": "4.0.0",
       "inBundle": true,
       "license": "ISC",
       "dependencies": {
         "imurmurhash": "^0.1.4",
         "is-typedarray": "^1.0.0",
         "signal-exit": "^3.0.2",
-        "typedarray-to-buffer": "^3.1.5"
+        "typedarray-to-buffer": "^4.0.0"
+      },
+      "engines": {
+        "node": "^12.13.0 || ^14.15.0 || >=16"
       }
     },
     "node_modules/npm/node_modules/yallist": {
@@ -3514,9 +3528,9 @@
       "integrity": "sha512-2DtocOmsXw5KjhW4eUMpr6RAih+juON0DOzSWr6F8qZePzuOJWznHbqDJmU70YB4Wv2Psyc6Shr3SEvRQ2Gk4Q=="
     },
     "discord.js": {
-      "version": "13.5.1",
-      "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-13.5.1.tgz",
-      "integrity": "sha512-ejEG5MXzB0eda9Nt+VzqgdvDWVO5U/GynGzq6DRPLaCH1yyn2YRU9J+vCMl77pWA1rzYGX+b/9RI31x0wt3qXA==",
+      "version": "13.6.0",
+      "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-13.6.0.tgz",
+      "integrity": "sha512-tXNR8zgsEPxPBvGk3AQjJ9ljIIC6/LOPjzKwpwz8Y1Q2X66Vi3ZqFgRHYwnHKC0jC0F+l4LzxlhmOJsBZDNg9g==",
       "requires": {
         "@discordjs/builders": "^0.11.0",
         "@discordjs/collection": "^0.4.0",
@@ -3575,9 +3589,9 @@
       }
     },
     "dotenv": {
-      "version": "10.0.0",
-      "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz",
-      "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q=="
+      "version": "14.2.0",
+      "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-14.2.0.tgz",
+      "integrity": "sha512-05POuPJyPpO6jqzTNweQFfAyMSD4qa4lvsMOWyTRTdpHKy6nnnN+IYWaXF+lHivhBH/ufDKlR4IWCAN3oPnHuw=="
     },
     "end-of-stream": {
       "version": "1.4.4",
@@ -3632,9 +3646,9 @@
       }
     },
     "got": {
-      "version": "12.0.0",
-      "resolved": "https://registry.npmjs.org/got/-/got-12.0.0.tgz",
-      "integrity": "sha512-gNNNghQ1yw0hyzie1FLK6gY90BQlXU9zSByyRygnbomHPruKQ6hAKKbpO1RfNZp8b+qNzNipGeRG3tUelKcVsA==",
+      "version": "12.0.1",
+      "resolved": "https://registry.npmjs.org/got/-/got-12.0.1.tgz",
+      "integrity": "sha512-1Zhoh+lDej3t7Ks1BP/Jufn+rNqdiHQgUOcTxHzg2Dao1LQfp5S4Iq0T3iBxN4Zdo7QqCJL+WJUNzDX6rCP2Ew==",
       "requires": {
         "@sindresorhus/is": "^4.2.0",
         "@szmarczak/http-timer": "^5.0.1",
@@ -3750,9 +3764,9 @@
       "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A=="
     },
     "npm": {
-      "version": "8.3.0",
-      "resolved": "https://registry.npmjs.org/npm/-/npm-8.3.0.tgz",
-      "integrity": "sha512-ug4xToae4Dh3yZh8Fp6MOnAPSS3fqCTANpJx1fXP2C4LTUzoZf7rEantHQR/ANPVYDBe5qQT4tGVsoPqqiYZMw==",
+      "version": "8.3.2",
+      "resolved": "https://registry.npmjs.org/npm/-/npm-8.3.2.tgz",
+      "integrity": "sha512-xZAC9GpWNOyiS1TtBqBy0HJpjIVI8zsVXEOEwcmgqYFtqOy7sXUL0ByOrkhfcGmf+akSXz3uOxLYB8aLlYivQQ==",
       "requires": {
         "@isaacs/string-locale-compare": "*",
         "@npmcli/arborist": "*",
@@ -3836,7 +3850,7 @@
           "bundled": true
         },
         "@npmcli/arborist": {
-          "version": "4.1.1",
+          "version": "4.2.1",
           "bundled": true,
           "requires": {
             "@isaacs/string-locale-compare": "^1.1.0",
@@ -3848,7 +3862,7 @@
             "@npmcli/node-gyp": "^1.0.3",
             "@npmcli/package-json": "^1.0.1",
             "@npmcli/run-script": "^2.0.0",
-            "bin-links": "^2.3.0",
+            "bin-links": "^3.0.0",
             "cacache": "^15.0.3",
             "common-ancestor-path": "^1.0.1",
             "json-parse-even-better-errors": "^2.3.1",
@@ -3878,7 +3892,7 @@
           "bundled": true
         },
         "@npmcli/config": {
-          "version": "2.3.2",
+          "version": "2.4.0",
           "bundled": true,
           "requires": {
             "ini": "^2.0.0",
@@ -4001,7 +4015,7 @@
           }
         },
         "agentkeepalive": {
-          "version": "4.1.4",
+          "version": "4.2.0",
           "bundled": true,
           "requires": {
             "debug": "^4.1.0",
@@ -4061,7 +4075,7 @@
           "bundled": true
         },
         "bin-links": {
-          "version": "2.3.0",
+          "version": "3.0.0",
           "bundled": true,
           "requires": {
             "cmd-shim": "^4.0.1",
@@ -4069,7 +4083,7 @@
             "npm-normalize-package-bin": "^1.0.0",
             "read-cmd-shim": "^2.0.0",
             "rimraf": "^3.0.0",
-            "write-file-atomic": "^3.0.3"
+            "write-file-atomic": "^4.0.0"
           }
         },
         "binary-extensions": {
@@ -4411,7 +4425,7 @@
           "bundled": true
         },
         "hosted-git-info": {
-          "version": "4.0.2",
+          "version": "4.1.0",
           "bundled": true,
           "requires": {
             "lru-cache": "^6.0.0"
@@ -4517,7 +4531,7 @@
           }
         },
         "is-core-module": {
-          "version": "2.7.0",
+          "version": "2.8.0",
           "bundled": true,
           "requires": {
             "has": "^1.0.3"
@@ -4560,7 +4574,7 @@
           "bundled": true
         },
         "libnpmaccess": {
-          "version": "4.0.3",
+          "version": "5.0.0",
           "bundled": true,
           "requires": {
             "aproba": "^2.0.0",
@@ -4570,7 +4584,7 @@
           }
         },
         "libnpmdiff": {
-          "version": "2.0.4",
+          "version": "3.0.0",
           "bundled": true,
           "requires": {
             "@npmcli/disparity-colors": "^1.0.1",
@@ -4584,7 +4598,7 @@
           }
         },
         "libnpmexec": {
-          "version": "3.0.1",
+          "version": "3.0.2",
           "bundled": true,
           "requires": {
             "@npmcli/arborist": "^4.0.0",
@@ -4601,14 +4615,14 @@
           }
         },
         "libnpmfund": {
-          "version": "2.0.1",
+          "version": "2.0.2",
           "bundled": true,
           "requires": {
             "@npmcli/arborist": "^4.0.0"
           }
         },
         "libnpmhook": {
-          "version": "6.0.3",
+          "version": "7.0.0",
           "bundled": true,
           "requires": {
             "aproba": "^2.0.0",
@@ -4616,7 +4630,7 @@
           }
         },
         "libnpmorg": {
-          "version": "2.0.3",
+          "version": "3.0.0",
           "bundled": true,
           "requires": {
             "aproba": "^2.0.0",
@@ -4624,7 +4638,7 @@
           }
         },
         "libnpmpack": {
-          "version": "3.0.0",
+          "version": "3.0.1",
           "bundled": true,
           "requires": {
             "@npmcli/run-script": "^2.0.0",
@@ -4633,7 +4647,7 @@
           }
         },
         "libnpmpublish": {
-          "version": "4.0.2",
+          "version": "5.0.0",
           "bundled": true,
           "requires": {
             "normalize-package-data": "^3.0.2",
@@ -4644,14 +4658,14 @@
           }
         },
         "libnpmsearch": {
-          "version": "3.1.2",
+          "version": "4.0.0",
           "bundled": true,
           "requires": {
             "npm-registry-fetch": "^11.0.0"
           }
         },
         "libnpmteam": {
-          "version": "2.0.4",
+          "version": "3.0.0",
           "bundled": true,
           "requires": {
             "aproba": "^2.0.0",
@@ -4659,7 +4673,7 @@
           }
         },
         "libnpmversion": {
-          "version": "2.0.1",
+          "version": "2.0.2",
           "bundled": true,
           "requires": {
             "@npmcli/git": "^2.0.7",
@@ -5212,11 +5226,8 @@
           "bundled": true
         },
         "typedarray-to-buffer": {
-          "version": "3.1.5",
-          "bundled": true,
-          "requires": {
-            "is-typedarray": "^1.0.0"
-          }
+          "version": "4.0.0",
+          "bundled": true
         },
         "unique-filename": {
           "version": "1.1.1",
@@ -5281,13 +5292,13 @@
           "bundled": true
         },
         "write-file-atomic": {
-          "version": "3.0.3",
+          "version": "4.0.0",
           "bundled": true,
           "requires": {
             "imurmurhash": "^0.1.4",
             "is-typedarray": "^1.0.0",
             "signal-exit": "^3.0.2",
-            "typedarray-to-buffer": "^3.1.5"
+            "typedarray-to-buffer": "^4.0.0"
           }
         },
         "yallist": {

+ 4 - 4
package.json

@@ -19,12 +19,12 @@
     "cheerio": "^1.0.0-rc.10",
     "datetime-difference": "^1.0.2",
     "discord-oauth2": "^2.9.0",
-    "discord.js": "^13.5.1",
-    "dotenv": "^10.0.0",
+    "discord.js": "^13.6.0",
+    "dotenv": "^14.2.0",
     "full-icu": "^1.4.0",
-    "got": "^12.0.0",
+    "got": "^12.0.1",
     "htmlparser2": "^7.2.0",
-    "npm": "^8.3.0",
+    "npm": "^8.3.2",
     "pg": "^8.7.1"
   },
   "repository": {

+ 72 - 0
util/default.json

@@ -568,6 +568,78 @@
 			"articlePath": "/wiki/",
 			"scriptPath": "/w/"
 		},
+		{
+			"name": "banjokazooiewiki.com",
+			"regex": "((?:www\\.)?banjokazooiewiki\\.com)",
+			"articlePath": "/wiki/",
+			"scriptPath": "/w/"
+		},
+		{
+			"name": "conkerwiki.com",
+			"regex": "((?:www\\.)?conkerwiki\\.com)",
+			"articlePath": "/wiki/",
+			"scriptPath": "/w/"
+		},
+		{
+			"name": "crashbandicootwiki.com",
+			"regex": "((?:www\\.)?crashbandicootwiki\\.com)",
+			"articlePath": "/wiki/",
+			"scriptPath": "/w/"
+		},
+		{
+			"name": "spyrowiki.com",
+			"regex": "((?:www\\.)?spyrowiki\\.com)",
+			"articlePath": "/wiki/",
+			"scriptPath": "/w/"
+		},
+		{
+			"name": "triforcewiki.com",
+			"regex": "((?:www\\.)?triforcewiki\\.com)",
+			"articlePath": "/wiki/",
+			"scriptPath": "/w/"
+		},
+		{
+			"name": "wikiofmana.com",
+			"regex": "((?:www\\.)?wikiofmana\\.com)",
+			"articlePath": "/wiki/",
+			"scriptPath": "/w/"
+		},
+		{
+			"name": "rarewiki.com",
+			"regex": "((?:www\\.)?rarewiki\\.com)",
+			"articlePath": "/wiki/",
+			"scriptPath": "/w/"
+		},
+		{
+			"name": "arthurwiki\\.com",
+			"regex": "((?:www\\.)?arthurwiki\\.com)",
+			"articlePath": "/wiki/",
+			"scriptPath": "/w/"
+		},
+		{
+			"name": "sanriowiki.com",
+			"regex": "((?:www\\.)?sanriowiki\\.com)",
+			"articlePath": "/wiki/",
+			"scriptPath": "/w/"
+		},
+		{
+			"name": "spongebobwiki.org",
+			"regex": "((?:www\\.)?spongebobwiki\\.org)",
+			"articlePath": "/wiki/",
+			"scriptPath": "/w/"
+		},
+		{
+			"name": "wimpykidwiki\\.com",
+			"regex": "((?:www\\.)?wimpykidwiki\\.com)",
+			"articlePath": "/wiki/",
+			"scriptPath": "/w/"
+		},
+		{
+			"name": "zeldadungeon.net",
+			"regex": "((?:www\\.)?zeldadungeon\\.net)",
+			"articlePath": "/wiki/",
+			"scriptPath": "/wiki/"
+		},
 		{
 			"name": "wikihow.com",
 			"regex": "((?:www\\.)?wikihow\\.com)",

+ 1 - 1
util/edit_diff.js

@@ -6,7 +6,7 @@ import { escapeFormatting } from './functions.js';
  * @param {String} html - The edit diff in HTML.
  * @param {String} more - The localized string for more content.
  * @param {String} whitespace - The localized string for only whitespace.
- * @returns {String[]}
+ * @returns {[String, String]}
  */
 export default function diffParser(html, more, whitespace) {
 	var current_tag = '';