more fancytext

This commit is contained in:
Flummi 2019-08-23 13:43:16 +00:00
parent eaea34f929
commit e91e4b3624

View File

@ -1,12 +1,38 @@
const dict = [...`${" ".repeat(48)}𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡${" ".repeat(7)}𝔸𝔹𝔻𝔼𝔽𝔾𝕀𝕁𝕂𝕃𝕄𝕆𝕊𝕋𝕌𝕍𝕎𝕏𝕐${" ".repeat(6)}𝕒𝕓𝕔𝕕𝕖𝕗𝕘𝕙𝕚𝕛𝕜𝕝𝕞𝕟𝕠𝕡𝕢𝕣𝕤𝕥𝕦𝕧𝕨𝕩𝕪𝕫`];
const dict = {
ft1: [...
" ".repeat(48) + "𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡" +
" ".repeat(7) + "𝔸𝔹𝔻𝔼𝔽𝔾𝕀𝕁𝕂𝕃𝕄𝕆𝕊𝕋𝕌𝕍𝕎𝕏𝕐" +
" ".repeat(6) + "𝕒𝕓𝕔𝕕𝕖𝕗𝕘𝕙𝕚𝕛𝕜𝕝𝕞𝕟𝕠𝕡𝕢𝕣𝕤𝕥𝕦𝕧𝕨𝕩𝕪𝕫"
],
ft2: [...
" ".repeat(48) + "𝟢𝟣𝟤𝟥𝟦𝟧𝟨𝟩𝟪𝟫" +
" ".repeat(7) + "𝒜𝐵𝒞𝒟𝐸𝐹𝒢𝐻𝐼𝒥𝒦𝐿𝑀𝒩𝒪𝒫𝒬𝑅𝒮𝒯𝒰𝒱𝒲𝒳𝒴𝒵" +
" ".repeat(6) + "𝒶𝒷𝒸𝒹𝑒𝒻𝑔𝒽𝒾𝒿𝓀𝓁𝓂𝓃𝑜𝓅𝓆𝓇𝓈𝓉𝓊𝓋𝓌𝓍𝓎𝓏"
],
ft3: [...
" ".repeat(48) + "0123456789" +
" ".repeat(7) + "𝔄𝔅𝔇𝔈𝔉𝔊𝔍𝔎𝔏𝔐𝔑𝔒𝔓𝔔𝔖𝔗𝔘𝔙𝔚𝔛𝔜" +
" ".repeat(6) + "𝔞𝔟𝔠𝔡𝔢𝔣𝔤𝔥𝔦𝔧𝔨𝔩𝔪𝔫𝔬𝔭𝔮𝔯𝔰𝔱𝔲𝔳𝔴𝔵𝔶𝔷"
],
ft4: [...
" ".repeat(48) + "⓪①②③④⑤⑥⑦⑧⑨" +
" ".repeat(7) + "ⒶⒷⒸⒹⒺⒻⒼⒽⒾⒿⓀⓁⓂⓃⓄⓅⓆⓇⓈⓉⓊⓋⓌⓍⓎⓏ" +
" ".repeat(6) + "ⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ"
]
};
export default async bot => {
return [{
name: "fancytext",
call: /^(\.|\/)ft/i,
f: async e => {
e.reply([...e.args.join(" ")].map(e => dict[e.charCodeAt(0)] !== " " ? dict[e.charCodeAt(0)] : e).join``);
const mode = +e.cmd.substring(2) || 1;
if(!dict[`ft${mode}`])
return;
e.reply(
[...e.args.join(" ")].map(e =>
dict[`ft${mode}`][e.charCodeAt(0)] !== " " ? dict[`ft${mode}`][e.charCodeAt(0)] : e).join``
);
}
}, {
name: "blah",