/
mod.js
43 lines (37 loc) · 1.05 KB
/
mod.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// ________________________________________________________________________
// / \
// | This AA was created by @kawarimidoll. Thanks! |
// | LINK: https://github.com/kawarimidoll/deno-cli-tools/tree/main/denosay |
// \ /
// ------------------------------------------------------------------------
// \
// \ _
// ( ・ヽ
// \ \
// ⎞ \
// | `ヽ
// ⎩ ト、
// u¯u︶u
const head = `
_
( ・ヽ
`;
const neck = " \\ \\";
const body = String.raw`
$I ⎞ \
$I | `ヽ
$I ⎩ ト、
$I u¯u︶u
`;
/**
* Denoくんを生成
* @param {number} length 首の長さ
* @returns looooooong deno
*/
export function longdeno(length) {
const necks = [];
for (let i = 0; i < length; i++) {
necks.push(" ".repeat(i) + neck);
}
return head + necks.join("\n") + body.replaceAll("$I", " ".repeat(length));
}