Skip to content

Commit

Permalink
Update docs/help for new command
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeJMattson committed Mar 23, 2020
1 parent 831c7ed commit 42747b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
| Delete | (Embed) | Delete the embed with this name. |
| Duplicate | Embed Name, (Embed) | Create a new embed from an existing embed. |
| Export | (Embed) | Export the currently loaded embed to JSON. |
| Import | Embed Name, JSON | Import a JSON String as an embed. |
| ImportFile | Embed Name, JSON | |
| Import | Embed Name, JSON String | Import a JSON String as an embed. |
| ImportFile | Embed Name, JSON File | Import a JSON File as an embed. |
| Load | Embed | Load the embed with this name into memory. |
| Send | (Channel), (shouldTrack) | Send the currently loaded embed. |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ fun coreCommands(embedService: EmbedService) = commands {

command("Import") {
description = messages.descriptions.IMPORT
execute(WordArg("Embed Name"), SentenceArg("JSON")) {
execute(WordArg("Embed Name"), SentenceArg("JSON String")) {
val (name, json) = it.args
it.importJson(name, json, embedService)
}
}

command("ImportFile") {
description = ""
execute(WordArg("Embed Name"), FileArg("JSON")) {
description = messages.descriptions.IMPORT_FILE
execute(WordArg("Embed Name"), FileArg("JSON File")) {
val (name, jsonFile) = it.args
val json = jsonFile.readText()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Descriptions(
val DUPLICATE: String = "Create a new embed from an existing embed.",
val EXPORT: String = "Export the currently loaded embed to JSON.",
val IMPORT: String = "Import a JSON String as an embed.",
val IMPORT_FILE: String = "Import a JSON File as an embed.",
val LOAD: String = "Load the embed with this name into memory.",
val SEND: String = "Send the currently loaded embed.",

Expand Down

0 comments on commit 42747b0

Please sign in to comment.