Skip to content

Commit 88eacaa

Browse files
Update q.py
1 parent b72658f commit 88eacaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cogs/q.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import discord, base64, brainfuck #pip install brainfuck-interpreter
22
from discord.ext import commands
3+
from discord.errors import InvalidArgument
4+
from discord.ext.commands import *
35

46
class ex(commands.Cog):
57
def __init__(self, client:commands.Bot):
@@ -21,6 +23,6 @@ async def a(self, c, *, data):
2123
return await ctx.reply(base64.b64decode(data).decode("UTF-8"))
2224
elif c == "bf" or c == "brainfk" or c == "brainfuck":
2325
return await ctx.reply(brainfuck.evaluate(data))
24-
else: raise BadArgument
26+
else: raise InvalidArgument
2527

2628
def setup(client:commands.Bot): client.add_cog(ex(client))

0 commit comments

Comments
 (0)