File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -172,25 +172,6 @@ def paginate(text: str):
172172 else :
173173 await ctx .message .add_reaction ('\u2705 ' )
174174 print (f'[log] { ctx .author } executed .eval.' )
175-
176- # @commands.command()
177- # async def cexec(self, ctx, *, body):
178- # self.log(f"{self.gettime()}{ctx.author} executed {ctx.command}")
179- # if ctx.message.author.id not in oid: return
180- # if body.startswith("```c") and body.endswith("```"):
181- # body = body.replace("```c", "")
182- # body = body.replace("```", "")
183- # elif body.startswith("```") and body.endswith("```"):
184- # body = body.replace("```", "")
185- # def _cexec(code):
186- # oldstd = sys.stdout
187- # sys.stdout = open("out.txt", "w")
188- # Interpreter.run(code)
189- # sys.stdout.close()
190- # sys.stdout = oldstd
191- # with open("out.txt", "r") as f: data = f.read()
192- # return data
193- # await ctx.send(f"{_cexec(body)}")
194175
195176def setup (bot ):
196177 bot .add_cog (ErrorHandler (bot ))
You can’t perform that action at this time.
0 commit comments