gurkult / gurkbot

Our community bot, used for running the server.
MIT License
17 stars 16 forks source link

Add Ciphers cog with hash command #162

Closed gustavwilliam closed 2 years ago

gustavwilliam commented 2 years ago

Hashing is awesome, so we now have a basic hash command! :tada:

Commands

Hash

Run !hash <algorithm> <original> to hash a message.

Screenshot 2021-12-17 at 02 34 53

List algorithms

Run !hash algorithms to see the full list of available algorithms. These are the hashlib.algorithms_guaranteed algorithms, the right of which is used programmatically when generating a hash.

Screenshot 2021-12-17 at 02 27 08

Future features

It would be nice to support linking to messages to hash the message content, such as the following. This is currently not possible. Replying to the message should do the same thing

Screenshot 2021-12-17 at 02 38 18

The only major downside to allowing links to get the message content, is that you might want to hash the message link, instead of the message content of the link. We'd need to discuss this further, if we're interested in such a feature.

gustavwilliam commented 2 years ago

As a totally unbiased source, I can tell you that this is a splendid PR. Dawn + I approve it => merge.