tangled
alpha
login
or
join now
vielle.dev
/
discord-donger
0
fork
atom
Discord bot to open dong files
0
fork
atom
overview
issues
pulls
pipelines
Tidy up commands
Vielle.dev
1 year ago
d1090f6e
5536eb90
+2
-6
2 changed files
expand all
collapse all
unified
split
src
commands
dong
create.ts
open.ts
-2
src/commands/dong/create.ts
···
51
51
image: await download(image),
52
52
audio: await download(audio),
53
53
};
54
54
-
console.log(downloaded);
55
54
56
55
const dong = new File(
57
56
[await createDong(downloaded.image, downloaded.audio)],
58
57
filename,
59
58
{ type: "application/prs.vielle.dong" }
60
59
);
61
61
-
console.log(dong);
62
60
63
61
await interaction.editReply({
64
62
files: [
+2
-4
src/commands/dong/open.ts
···
1
1
import {
2
2
AttachmentBuilder,
3
3
ChatInputCommandInteraction,
4
4
+
MessageFlags,
4
5
SlashCommandBuilder,
5
6
} from "discord.js";
6
7
import type { customClient } from "../..";
···
23
24
interaction: ChatInputCommandInteraction & { client: customClient }
24
25
) => {
25
26
const dong = interaction.options.getAttachment("dong", true);
26
26
-
await interaction.deferReply();
27
27
+
await interaction.deferReply({flags: MessageFlags.Ephemeral});
27
28
28
29
const downloadedDong = await download(dong);
29
29
-
console.log(downloadedDong);
30
30
31
31
const output = await readDong(downloadedDong);
32
32
if (typeof output === "string") {
···
34
34
return;
35
35
}
36
36
const { image, audio } = output;
37
37
-
38
38
-
console.log(image, audio);
39
37
40
38
await interaction.editReply({
41
39
files: [