FULLWIDTH

This commit is contained in:
Flummi 2017-11-22 20:27:00 +01:00
parent ef947060d2
commit 343d3dedad
4 changed files with 1 additions and 4756 deletions

5
package-lock.json generated
View File

@ -2115,11 +2115,6 @@
"hashish": "0.0.4" "hashish": "0.0.4"
} }
}, },
"string-form-utils": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/string-form-utils/-/string-form-utils-0.1.0.tgz",
"integrity": "sha1-z/J9cobJCf7G8LicngouXl+mSNk="
},
"string_decoder": { "string_decoder": {
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz",

View File

@ -15,7 +15,6 @@
"node-telegram-bot-api": "^0.29.0", "node-telegram-bot-api": "^0.29.0",
"nodejs-mysql": "^0.1.3", "nodejs-mysql": "^0.1.3",
"request": "^2.83.0", "request": "^2.83.0",
"string-form-utils": "^0.1.0",
"winston": "^2.4.0", "winston": "^2.4.0",
"xml2js": "^0.4.19", "xml2js": "^0.4.19",
"youtube-dl": "^1.12.2" "youtube-dl": "^1.12.2"

View File

@ -1,7 +1,5 @@
import sql from "../sql.js"; import sql from "../sql.js";
const sfu = require("string-form-utils");
const data = { const data = {
yiff: [], yiff: [],
kill_templates: [], kill_templates: [],
@ -240,7 +238,7 @@ module.exports = bot => {
clients: ["irc", "tg"], clients: ["irc", "tg"],
f: e => { f: e => {
const args = e.message.substring(4).trim(); const args = e.message.substring(4).trim();
e.reply(sfu.transformToFullwidth(args.toUpperCase())); e.reply(args.toUpperCase().split``.map(c => String.fromCharCode(65312 + (c.charCodeAt(0) - 64))).join``);
} }
}); });
}; };

File diff suppressed because it is too large Load Diff