TiagoMarinho / Soph

A discord bot for generating images with artificial intelligence
19 stars 4 forks source link

`/dream` tag autocompletion #7

Closed TiagoMarinho closed 1 year ago

TiagoMarinho commented 1 year ago

Adding autocompletion by requesting tags from the danbooru API seems like a good idea.

Ideally, this would be made somewhere other than src/events/interaction.js though, as to keep code sufficiently modular and responsibilities well defined.

TiagoMarinho commented 1 year ago

After some testing I got to the conclusion that autocomplete is not desirable in its current state on Discord. It makes copy-pasting commands much harder and will not work once the prompt gets past 100 characters, as the whole prompt has to be provided to the autocomplete options so that it does not replace what was previously written.