Skip to content

Commit b72658f

Browse files
Merge pull request #3 from thatOneArchUser/main
pill request (again)
2 parents 18b806c + 85361c7 commit b72658f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cogs/q.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ async def a(self, c, *, data):
1515
return await ctx.reply(d)
1616
elif c == "hex" or c == "hexadecimal":
1717
return await ctx.reply(bytearray.fromhex(data).decode())
18-
elif c == "base32":
18+
elif c == "base32" or c == "b32":
1919
return await ctx.reply(base64.b32decode(data).decode("UTF-8"))
20-
elif c == "base64":
20+
elif c == "base64" or c == "b64":
2121
return await ctx.reply(base64.b64decode(data).decode("UTF-8"))
2222
elif c == "bf" or c == "brainfk" or c == "brainfuck":
2323
return await ctx.reply(brainfuck.evaluate(data))
2424
else: raise BadArgument
25+
26+
def setup(client:commands.Bot): client.add_cog(ex(client))

0 commit comments

Comments
 (0)