aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar PureFunctor <[email protected]>2020-07-02 19:31:44 +0800
committerGravatar PureFunctor <[email protected]>2020-07-02 19:33:20 +0800
commitc7f6489453ccad4ec10bd316a641461ee8ca4c94 (patch)
tree967272c1aa8bb168aa0bf2a36473cd9651049643
parentSeparate the formula for the actual offset (diff)
Add 'enc'/'dec' aliases for encrypt/decrypt
-rw-r--r--bot/exts/evergreen/fun.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/fun.py b/bot/exts/evergreen/fun.py
index 5f5c3718..31dba936 100644
--- a/bot/exts/evergreen/fun.py
+++ b/bot/exts/evergreen/fun.py
@@ -151,7 +151,7 @@ class Fun(Cog):
await ctx.send(content=converted_text, embed=embed)
- @caesarcipher_group.command(name="encrypt", aliases=("rightshift", "rshift"))
+ @caesarcipher_group.command(name="encrypt", aliases=("rightshift", "rshift", "enc",))
async def caesarcipher_encrypt(self, ctx: Context, offset: int, *, msg: Union[Message, str]) -> None:
"""
Given a positive integer `offset`, encrypt the given `msg`.
@@ -165,7 +165,7 @@ class Fun(Cog):
else:
await self._caesar_cipher(ctx, offset, msg)
- @caesarcipher_group.command(name="decrypt", aliases=("leftshift", "lshift"))
+ @caesarcipher_group.command(name="decrypt", aliases=("leftshift", "lshift", "dec",))
async def caesarcipher_decrypt(self, ctx: Context, offset: int, *, msg: Union[Message, str]) -> None:
"""
Given a positive integer `offset`, decrypt the given `msg`.