mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 19:04:42 +02:00
Update version, remove xml2js
This commit is contained in:
+1
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "79.0.0",
|
||||
"version": "79.0.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
@@ -45,7 +45,6 @@
|
||||
"sequelize": "^4.37.10",
|
||||
"superagent": "^3.8.3",
|
||||
"uws": "^10.148.0",
|
||||
"xml2js": "^0.4.19",
|
||||
"zlib-sync": "^0.1.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -83,20 +83,6 @@ class Util {
|
||||
return today;
|
||||
}
|
||||
|
||||
static cleanXML(text) {
|
||||
return text
|
||||
.replace(/<br \/>/g, '')
|
||||
.replace(/'|�?39;/g, '\'')
|
||||
.replace(/—/g, '—')
|
||||
.replace(/–/g, '–')
|
||||
.replace(/"|�?34;/g, '"')
|
||||
.replace(/<|�?60;/g, '<')
|
||||
.replace(/>|�?62;/g, '>')
|
||||
.replace(/&|�?38;/g, '&')
|
||||
.replace(/é/g, 'é')
|
||||
.replace(/\[i\]|\[\/i\]/g, '*');
|
||||
}
|
||||
|
||||
static async awaitPlayers(msg, max, min, { text = 'join game', time = 30000 } = {}) {
|
||||
const joined = [];
|
||||
joined.push(msg.author.id);
|
||||
|
||||
Reference in New Issue
Block a user