Skip to content

Commit

Permalink
✅ v1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenScreen410 committed Jul 22, 2022
1 parent 4231a32 commit 75087fb
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 20 deletions.
21 changes: 21 additions & 0 deletions commands/베타/이미지.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const { EmbedBuilder, SlashCommandBuilder } = require("discord.js");
const ERROR = require("../ERROR");

module.exports = {
...new SlashCommandBuilder()
.setName("이미지")
.setDescription("명령어에 이미지를 넣을 수 있는지 테스트하는 명령어입니다.")
.addAttachmentOption(option => option.setName("이미지").setDescription("원하시는 이미지를 넣어주세요.").setRequired(true)),

run: async (client, interaction) => {
const image = interaction.options.getAttachment("이미지");

const embed = new EmbedBuilder()
.setColor("Random")
.setImage(`${image.url}`)
.setTitle("첨부하신 이미지, 이거 맞죠?")
.setTimestamp()
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
interaction.followUp({ embeds: [embed] });
}
}
1 change: 1 addition & 0 deletions commands/정보/건의사항.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
const descriptionInput = new TextInputBuilder()
.setCustomId("descriptionInput")
.setLabel("작성된 의견은 개발자 서버로 전송되며, 모두 읽고 있습니다.")
.setMaxLength(1000)
.setStyle(TextInputStyle.Paragraph);

/*
Expand Down
2 changes: 2 additions & 0 deletions commands/정보/도움말.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = {
음악: "🎵",
유저: "👤",
활동: "🎮",
베타: "⚠️",
};

const descriptions = {
Expand All @@ -21,6 +22,7 @@ module.exports = {
음악: "음악 재생, 가사 등의 기능을 제공합니다.",
유저: "유저(사용자) 관련 정보를 얻을 수 있습니다.",
활동: "채팅으로 즐길 수 있는 것들이 있습니다.",
베타: "테스트중인 명령어들이 있습니다. (불안정)"
};

const directories = [...new Set(client.slashCommands.map((cmd) => cmd.directory))];
Expand Down
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "greenbot-discord",
"version": "1.7.0",
"version": "1.7.1",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -18,13 +18,13 @@
"cheerio": "^1.0.0-rc.12",
"discord-api-types": "^0.36.2",
"discord-player": "^6.0.0-dev.0",
"discord.js": "^14.0.1",
"discord.js": "^14.0.2",
"dotenv": "^16.0.1",
"ffmpeg-static": "^5.0.2",
"glob": "^7.2.0",
"koreanbots": "^3.2.1",
"moment": "^2.29.4",
"mongoose": "^6.4.4",
"mongoose": "^6.4.5",
"nodemon": "^2.0.19",
"opusscript": "^0.0.8",
"ytdl-core": "^4.11.0"
Expand Down

0 comments on commit 75087fb

Please sign in to comment.