Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박건희
/
emon_bot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박건희
2022-06-09 13:32:48 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
bb2af25ed1e0b49977fe424c67b41be82fffd863
bb2af25e
2 parents
32db7b4d
a9239008
Merge branch 'translator' into 'master'
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletions
Commands/Translate/button.js
Commands/Translate/translate.js
Commands/Translate/button.js
View file @
bb2af25
...
...
@@ -80,6 +80,29 @@ exports.run = async (client, msg, args, prefix) => {
global
.
trans_var
=
'en'
;
trans_disabled_var
(
'en'
);
}
interaction
.
update
({
components
:
[
new
MessageActionRow
()
.
addComponents
(
new
MessageButton
()
.
setCustomId
(
'korean'
)
.
setLabel
(
label_var
.
ko
)
.
setStyle
(
'PRIMARY'
)
.
setDisabled
(
disabled_var
.
ko
),
new
MessageButton
()
.
setCustomId
(
'japanese'
)
.
setLabel
(
label_var
.
jp
)
.
setStyle
(
'PRIMARY'
)
.
setDisabled
(
disabled_var
.
jp
),
new
MessageButton
()
.
setCustomId
(
'english'
)
.
setLabel
(
label_var
.
en
)
.
setStyle
(
'PRIMARY'
)
.
setDisabled
(
disabled_var
.
en
),
)
]
})
});
};
...
...
Commands/Translate/translate.js
View file @
bb2af25
...
...
@@ -63,4 +63,4 @@ exports.config = {
category
:
[
'Translate'
],
des
:
[
'채팅 내용에 대한 검색결과를 보여줍니다.'
],
use
:
[
'!번역 <채팅>'
]
};
\ No newline at end of file
};
...
...
Please
register
or
login
to post a comment