Skip to content

Commit c605c4a

Browse files
Update eval.py
1 parent 53a436f commit c605c4a

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

cogs/eval.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff 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

195176
def setup(bot):
196177
bot.add_cog(ErrorHandler(bot))

0 commit comments

Comments
 (0)