Skip to content

Commit 42747b0

Browse files
committed
Update docs/help for new command
1 parent 831c7ed commit 42747b0

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
| Delete | (Embed) | Delete the embed with this name. |
4848
| Duplicate | Embed Name, (Embed) | Create a new embed from an existing embed. |
4949
| Export | (Embed) | Export the currently loaded embed to JSON. |
50-
| Import | Embed Name, JSON | Import a JSON String as an embed. |
51-
| ImportFile | Embed Name, JSON | |
50+
| Import | Embed Name, JSON String | Import a JSON String as an embed. |
51+
| ImportFile | Embed Name, JSON File | Import a JSON File as an embed. |
5252
| Load | Embed | Load the embed with this name into memory. |
5353
| Send | (Channel), (shouldTrack) | Send the currently loaded embed. |
5454

src/main/kotlin/me/jakejmattson/embedbot/commands/CoreCommands.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ fun coreCommands(embedService: EmbedService) = commands {
8989

9090
command("Import") {
9191
description = messages.descriptions.IMPORT
92-
execute(WordArg("Embed Name"), SentenceArg("JSON")) {
92+
execute(WordArg("Embed Name"), SentenceArg("JSON String")) {
9393
val (name, json) = it.args
9494
it.importJson(name, json, embedService)
9595
}
9696
}
9797

9898
command("ImportFile") {
99-
description = ""
100-
execute(WordArg("Embed Name"), FileArg("JSON")) {
99+
description = messages.descriptions.IMPORT_FILE
100+
execute(WordArg("Embed Name"), FileArg("JSON File")) {
101101
val (name, jsonFile) = it.args
102102
val json = jsonFile.readText()
103103

src/main/kotlin/me/jakejmattson/embedbot/locale/Messages.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class Descriptions(
3131
val DUPLICATE: String = "Create a new embed from an existing embed.",
3232
val EXPORT: String = "Export the currently loaded embed to JSON.",
3333
val IMPORT: String = "Import a JSON String as an embed.",
34+
val IMPORT_FILE: String = "Import a JSON File as an embed.",
3435
val LOAD: String = "Load the embed with this name into memory.",
3536
val SEND: String = "Send the currently loaded embed.",
3637

0 commit comments

Comments
 (0)