bot icon indicating copy to clipboard operation
bot copied to clipboard

Make `!source` a slash command

Open DMFriends opened this issue 1 year ago • 5 comments

I think the !source command should be made a slash command because, similarly to the reason why we made !tags a slash command, it would make it easier to look up the name of a cog without having to leave the Discord channel if you don't exactly remember the name offhand. Note: I'm fine with someone else implementing this if approved, I don't really have the time right now to contribute at all

DMFriends avatar Mar 01 '23 22:03 DMFriends

I assume we'd also implement autocomplete here?

Robin5605 avatar Mar 02 '23 03:03 Robin5605

Yes, that's what I was referring to when I said "it would make it easier to look up the name of a cog", just didn't have the word "autocomplete" offhand when I wrote the issue.

DMFriends avatar Mar 02 '23 03:03 DMFriends

Sounds fine to me, although the cog would need to go through some structural changes to support auto-complete. Technically it could produce a static mapping of all possible terms and their appropriate info (type, link etc.), since I don't see why it would change without the bot restarting in the process. It would have to be the last cog to be loaded though, or there would have to be some other mechanic that would allow the mapping to fill up.

mbaruh avatar Mar 04 '23 21:03 mbaruh

Can I be assigned this?

Ibrahim2750mi avatar Mar 05 '23 16:03 Ibrahim2750mi

Assigned

mbaruh avatar Mar 05 '23 21:03 mbaruh