weg mit die Viecher
This commit is contained in:
parent
bb98bccf9a
commit
807cdcd6ff
@ -1,13 +1,4 @@
|
||||
const dict = {
|
||||
upper: [..."𝔸𝔹ℂ𝔻𝔼𝔽𝔾ℍ𝕀𝕁𝕂𝕃𝕄ℕ𝕆ℙℚℝ𝕊𝕋𝕌𝕍𝕎𝕏𝕐ℤ"],
|
||||
lower: [..."𝕒𝕓𝕔𝕕𝕖𝕗𝕘𝕙𝕚𝕛𝕜𝕝𝕞𝕟𝕠𝕡𝕢𝕣𝕤𝕥𝕦𝕧𝕨𝕩𝕪𝕫"],
|
||||
digit: [..."𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡"]
|
||||
};
|
||||
const range = {
|
||||
upper: [ 56, 90 ],
|
||||
lower: [ 97, 122],
|
||||
digit: [ 48, 57 ]
|
||||
};
|
||||
const dict = [...`${" ".repeat(48)}𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡${" ".repeat(7)}𝔸𝔹ℂ𝔻𝔼𝔽𝔾ℍ𝕀𝕁𝕂𝕃𝕄ℕ𝕆ℙℚℝ𝕊𝕋𝕌𝕍𝕎𝕏𝕐ℤ${" ".repeat(6)}𝕒𝕓𝕔𝕕𝕖𝕗𝕘𝕙𝕚𝕛𝕜𝕝𝕞𝕟𝕠𝕡𝕢𝕣𝕤𝕥𝕦𝕧𝕨𝕩𝕪𝕫`];
|
||||
|
||||
export default async bot => {
|
||||
|
||||
@ -15,18 +6,7 @@ export default async bot => {
|
||||
name: "fancytext",
|
||||
call: /^(\.|\/)ft/i,
|
||||
f: async e => {
|
||||
e.reply(
|
||||
[...e.args.join(" ")].map(b => {
|
||||
const char = b.charCodeAt(0);
|
||||
if(char >= range.upper[0] && char <= range.upper[1])
|
||||
return dict.upper[char - range.upper[0] - 9];
|
||||
else if(char >= range.lower[0] && char <= range.lower[1])
|
||||
return dict.lower[char - range.lower[0]];
|
||||
else if(char >= range.digit[0] && char <= range.digit[1])
|
||||
return dict.digit[char - range.digit[0]];
|
||||
else return b;
|
||||
}).join``
|
||||
);
|
||||
e.reply([...e.args.join(" ")].map(e => dict[e.charCodeAt(0)] !== " " ? dict[e.charCodeAt(0)] : e).join``);
|
||||
}
|
||||
}, {
|
||||
name: "blah",
|
||||
@ -34,16 +14,15 @@ export default async bot => {
|
||||
set: "uwe",
|
||||
clients: ["irc"],
|
||||
f: e => {
|
||||
let args = e.message.trim();
|
||||
if (args.toUpperCase() === args) e.reply(args.substring(2).split(" ").join("\n"));
|
||||
const args = e.message.trim();
|
||||
if (args.toUpperCase() === args) e.reply(args.substring(2).split(" "));
|
||||
}
|
||||
}, {
|
||||
name: "fw",
|
||||
call: /^(\.|\/)fw .*/i,
|
||||
set: "nxy",
|
||||
f: e => {
|
||||
const args = e.message.substring(4).trim();
|
||||
e.reply([...args.toUpperCase()].map(c => c === ' ' ? ' ' : String.fromCharCode(65248 + c.charCodeAt(0))).join``);
|
||||
e.reply([...e.args.join(" ").toUpperCase()].map(c => c === ' ' ? ' ' : String.fromCharCode(65248 + c.charCodeAt(0))).join``);
|
||||
}
|
||||
}, {
|
||||
name: "mock",
|
||||
@ -53,4 +32,4 @@ export default async bot => {
|
||||
e.reply([...e.args.join(" ")].map(l => (l === " ") ? " " : (Math.round(Math.random()) === 0) ? l.toUpperCase() : l.toLowerCase()).join``);
|
||||
}
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user