linkie / linkie-discord

The discord bot for using Linkie!
Other
37 stars 4 forks source link

Allow reusing the last command in DMs #11

Open thecodewarrior opened 3 years ago

thecodewarrior commented 3 years ago

I'm porting a rather large mod from MCP to yarn, and it would be really nice if I could configure default mappings or if linkie could reuse the last mappings without you having to type them every time. It could probably work a couple ways:

The ideal would probably be that if you sent a message without a command it would implicitly reuse the last one you used:

!dv SomeName AnotherName yetAnotherName !dvm someMethod anotherMethod !dv SoManyNames

If that isn't possible, then having an empty command (and/or having the name as the command) would also work

!dv SomeName ! AnotherName !yetAnotherName

Even more ideal would be if it would reuse the last mapping, without carrying over the type (class/method/field)

!dvc SomeClass !m someMethod !f someField SomeAnything

shedaniel commented 3 years ago

ever considered using an auto remapper https://architectury.github.io/architectury-documentations/docs/forge_loom/using_mcp

thecodewarrior commented 3 years ago

I would, however the library is written in Kotlin, so the remapper wouldn't work.