mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 14:18:36 +02:00
Update version, remove xml2js
This commit is contained in:
@@ -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