Jonathanzhao02 / Snowboy

0 stars 0 forks source link

Add custom aliases #23

Open Jonathanzhao02 opened 4 years ago

Jonathanzhao02 commented 4 years ago

Allow guild admins/mods/whatevers to add up to ~10 or so custom aliases for other commands, i.e.: User: %alias rick Snowboy: What command would you like to alias rick with? User: %play rick roll Aliases would have to be stored in a guild's database, likely stored as: "GuildID:Aliases[0-9]", loading would just enumerate from 0 to 9 Deleting aliases would be %removealias or something along those lines. Using already existing command names as an alias should not be allowed. Replacing aliases should notify the user before doing so. Allow them to simply reply with 'cancel' to cancel an alias, or any other form of invalid input (i.e. a command that doesn't exist, like trying to alias rick to asdjfahhgak)