Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.75 KB

id.md

File metadata and controls

45 lines (29 loc) · 1.75 KB

/id command

Get all unique identifiers for a card from one of them! This command is in development.

Definitions

Password: the number printed in the bottom-left corner of a Yu-Gi-Oh! card.

Konami ID: the ID assigned to the card in the official card database.

Parameters

Name Required? Description Type
input The password, Konami ID, or name you're searching by. text
type Whether you're searching by password, Konami ID, or name. one of "password", "kid", "name"

Current behaviour

If type is unspecified, infers the type of input using these rules:

  • numbers are treated as passwords
  • numbers that start with # are treated as Konami IDs
  • anything else is treated as a name

In the first two cases, a direct lookup of the card is performed using that password or Konami ID. In the latter case, an English-language fuzzy search is performed on the English card name.

If no match is found, an ephemeral reply informs only the caller. Otherwise, an ephemeral reply delivers all three identifiers to the user in a Discord embed.

Limitations

  • The name input currently only supports English.
  • The output also currently prints in English, and we don't have translations of the terms prepared.
  • Konami ID may be missing and display as #null.

Next steps

In no particular order:

  • support non-English searches
  • support cross-language searches
  • add support for more languages (Spanish, Japanese, Korean, Chinese)
  • localize labels used in the embed
  • set default language per server or per channel, including direct messages