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