Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit ead1755

Browse files
committed
prettier ✨ + 1.2.0 release
1 parent 115c9e8 commit ead1755

19 files changed

Lines changed: 278 additions & 293 deletions

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ Baqua has a lot fun and useful command and keep increasing!
2929
## Invite BaquaBot ➕
3030

3131
> You must invite this bot to your **LINE GROUP** in order to use it
32-
<a href="https://line.me/ti/p/~@tmu7203x">
32+
> <a href="https://line.me/ti/p/~@tmu7203x">
33+
3334
<img src="https://media.discordapp.net/attachments/861574871754342410/866663803100725248/download.png" alt="BaquaBot" />
35+
3436
</a>
3537

3638
## Bot Setup 🔧
@@ -69,8 +71,10 @@ Public/video // !ytmp4 command file storage
6971
## Bot Support 🤖
7072

7173
> Don't worry i got you, feel free to add me
72-
<a href="https://line.me/ti/p/~Aldi0905">
74+
> <a href="https://line.me/ti/p/~Aldi0905">
75+
7376
<img src="https://media.discordapp.net/attachments/861574871754342410/866674650222428180/download_1.png" alt="Tama-chan" />
77+
7478
</a>
7579

7680
## License

commands/anime/nh-search.js

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
const nhentai = require("nana-api");
2+
const nana = new nhentai();
3+
4+
module.exports = {
5+
name: "nhsr",
6+
description: "Cari doujin di nhentai dengan input keyword",
7+
aliases: ["nhentai-search"],
8+
category: "Anime",
9+
example: "{prefix}nhsr [keyword]",
10+
async execute(client, message, args) {
11+
let keywords = args.join(" ");
12+
if (!keywords) return message.reply("Input tidak terdeteksi");
13+
const nanabook = await nana.search(keywords).catch(() => null);
14+
//console.log(nanabook)
15+
16+
let content = [];
17+
18+
nanabook.results.map((x, i) => {
19+
if (i >= 10) return;
20+
url = nanabook.results[i].thumbnail.s;
21+
axios({
22+
url,
23+
responseType: "stream",
24+
}).then((response) => {
25+
response.data.pipe(
26+
fs.createWriteStream(
27+
`./public/doujins/cover_${nanabook.results[i].id}.jpg`
28+
)
29+
);
30+
});
31+
x = {
32+
type: "bubble",
33+
size: "kilo",
34+
hero: {
35+
type: "image",
36+
url: `https://tamaline.tama0612.repl.co/img/doujins/cover_${nanabook.results[i].id}.jpg`,
37+
size: "full",
38+
aspectMode: "cover",
39+
aspectRatio: "320:213",
40+
},
41+
body: {
42+
type: "box",
43+
layout: "vertical",
44+
contents: [
45+
{
46+
type: "text",
47+
text: nanabook.results[i].title,
48+
weight: "bold",
49+
size: "sm",
50+
},
51+
{
52+
type: "box",
53+
layout: "baseline",
54+
contents: [
55+
{
56+
type: "text",
57+
text: nanabook.results[i].language,
58+
size: "sm",
59+
color: "#8c8c8c",
60+
margin: "sm",
61+
flex: 0,
62+
},
63+
],
64+
},
65+
{
66+
type: "box",
67+
layout: "baseline",
68+
contents: [
69+
{
70+
type: "text",
71+
text: "Hasil berdasarkan page 1 ",
72+
margin: "sm",
73+
size: "sm",
74+
color: "#f54263",
75+
style: "italic",
76+
},
77+
],
78+
},
79+
],
80+
spacing: "sm",
81+
paddingAll: "13px",
82+
},
83+
footer: {
84+
type: "box",
85+
layout: "vertical",
86+
contents: [
87+
{
88+
type: "button",
89+
action: {
90+
type: "message",
91+
label: "Lihat detail",
92+
text: `!nh ${nanabook.results[i].id}`,
93+
},
94+
position: "relative",
95+
height: "sm",
96+
style: "primary",
97+
adjustMode: "shrink-to-fit",
98+
gravity: "center",
99+
},
100+
{
101+
type: "button",
102+
action: {
103+
type: "uri",
104+
label: "Baca online",
105+
uri: `https://nhentai.net/g/${nanabook.results[i].id}/`,
106+
},
107+
},
108+
],
109+
},
110+
};
111+
content.push(x);
112+
//console.log(nanabook.results[i].thumbnail.s)
113+
});
114+
115+
message.reply({
116+
type: "flex",
117+
altText: "Nhentai results",
118+
contents: {
119+
type: "carousel",
120+
contents: content,
121+
},
122+
});
123+
},
124+
};

commands/anime/nhentai.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
async execute(client, message, args) {
1414
if (!args[0]) return message.reply("Input tidak terdeteksi");
1515
const id = args[0];
16-
// console.log(id)
16+
// console.log(id)
1717
if (isNaN(id)) return message.reply("Input nhentai ID saja 👀");
1818

1919
const book = await api.getBook(id).catch(() => null);
@@ -123,6 +123,6 @@ Link : https://nhentai.net/g/${id}`,
123123
},
124124
},
125125
]);
126-
console.log(book);
126+
// console.log(book);
127127
},
128128
};

commands/anime/nhrandom.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ module.exports = {
1414
example: "{prefix}nhentai [id]",
1515
async execute(client, message, args) {
1616
// cursed unfriendly, dont do it, just use one package, dont be lazy like me
17-
const nanabook = await nana.random().catch(() => null);
17+
const nanabook = await nana.random().catch(() => null);
1818
const id = nanabook.id;
19-
// console.log(id)
20-
19+
// console.log(id)
2120

2221
const book = await api.getBook(id).catch(() => null);
2322
const {
@@ -126,6 +125,6 @@ Link : https://nhentai.net/g/${id}`,
126125
},
127126
},
128127
]);
129-
// console.log(book);
128+
// console.log(book);
130129
},
131130
};

commands/genshin/gchar.js

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
const genshin = require("genshin-db")
1+
const genshin = require("genshin-db");
22
module.exports = {
3-
name: 'gichar',
4-
description: 'Genshin Impact character data',
5-
aliases : [],
6-
category: 'Genshin',
7-
example: '{prefix}gichar [name]',
8-
async execute(client, message, args){
9-
let query = args.join(" ");
10-
let result = genshin.characters(query)
11-
message.reply([
12-
{
13-
type:'text',
14-
text: `Name : ${result.name}
3+
name: "gichar",
4+
description: "Genshin Impact character data",
5+
aliases: [],
6+
category: "Genshin",
7+
example: "{prefix}gichar [name]",
8+
async execute(client, message, args) {
9+
let query = args.join(" ");
10+
let result = genshin.characters(query);
11+
message.reply([
12+
{
13+
type: "text",
14+
text: `Name : ${result.name}
1515
Title : ${result.title}
1616
Description : ${result.description}
1717
Rarity : ${result.rarity}
@@ -30,17 +30,14 @@ Voice Actors
3030
English : ${result.cv.english}
3131
Chinese : ${result.cv.chinese}
3232
Japanese : ${result.cv.japanese}
33-
Korean : ${result.cv.korean}`
34-
},
35-
{
36-
type: "image",
37-
originalContentUrl: result.images.card || result.images.cover1,
38-
previewImageUrl: result.images.card || result.images.cover1,
39-
}
40-
41-
])
42-
//console.log(genshin.characters(query).costs)
43-
44-
45-
}
46-
}
33+
Korean : ${result.cv.korean}`,
34+
},
35+
{
36+
type: "image",
37+
originalContentUrl: result.images.card || result.images.cover1,
38+
previewImageUrl: result.images.card || result.images.cover1,
39+
},
40+
]);
41+
//console.log(genshin.characters(query).costs)
42+
},
43+
};

commands/neko/bonk.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ module.exports = {
1010
await axios
1111
.get("https://api.waifu.pics/sfw/bonk")
1212
.then((res) => {
13-
1413
message.reply({
1514
type: "image",
1615
originalContentUrl: res.data.url,

commands/neko/cringe.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
await axios
1111
.get("https://api.waifu.pics/sfw/cringe")
1212
.then((res) => {
13-
console.log(res)
13+
console.log(res);
1414
message.reply({
1515
type: "image",
1616
originalContentUrl: res.data.url,
@@ -21,4 +21,4 @@ module.exports = {
2121
message.reply("Telah terjadi error\n\n" + err);
2222
});
2323
},
24-
};
24+
};

0 commit comments

Comments
 (0)